This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

polling keyboard


I would like to get character input from either the keyboard or serial
port. I want to poll the device and if there is something available to
input, then input it. In Borland or MS C compilers there is a
"keypressed" function that you can use as follows:

if ( kbhit () )
   char_in = getc (stdin);

Is threre anything similar in one of the libraries with gcc ? I am
runnin linux ( RH6.0 ).




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]