Getch() waits for a keypress...

Programma Computer programma@tin.it
Tue Apr 24 07:16:00 GMT 2001


Hello everyone.

I think a lot of other people have asked you this, but I'm a newbie with a
big (for me) problem.

I'm using gcc 1.1.2 realease on a ReadHat Linux 6.2, Intel PC.

Function Getch() stops the execution of the program till the user press a
key. On other platforms/compilers this function do not wait for the
keypress.

I know Getch() is not standard, but I want to ask You if someone knows
another way to do what I need, with gcc/Linux.

Another question: is there any function I can use to put a character in the
keyboard buffer ?

Please, help me.
Thankyou in advantage.

Davide Guolo
Programma Computer



More information about the Gcc mailing list