What is the best way to check the keyboard?, I want the programme
to pause if P is pressed, Halt if ESC or put the emergency break on if
space is pressed.

Would it be best to do this with interupts?, was using scanf, and getch
but both seem to require a CR after the character has been pressed.

I remember doing this in TC and using the kbhit() function but that dont
work in linux, is there a similar way?

TIA
Regards
Andrew

--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to