Hi,

Does anyone know which function/library I should use to be able to read a line of user input without Curse? And once I find this function, the following code structure should be able to pick up the keyboard I/O stream right?

Code:
fd_set rset;
int max_sd=highest_sd++;

while(1) {
 FD_SET(0, &rset);
 if( select(max_sd, &rset, NULL, NULL, NULL) < 0 ) {
  //error code
 }

 if( FD_ISSET( 0, &rset ) {
   //a line has been entered, do something useful here
 } else if( FD_ISSET( other_sd, &rset) {....
 } else {
  //error: select() not blocking
 }

Thanks