[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] C programming



Hi Mani,

On Mon, 20 Sep 1999, Mani Murugesan wrote:

> Is there any C function to get the keystroke entered from the keyboard
> without echo and without waiting for the second keystroke? something
> similiar to the getch() function under Borland C and VC under dos?

I don't know about a function, but you could enable SIGIO on stdin
and install a signal handler. When stdin is ready with
data, the program will be signalled.

I don't remember the exact syntax..
Look at `man fcntl`


- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.

------------------------------