Skip to contentSkip to conversation

Detecting keyboard event (input) for non X application

DISCUSSION Alain Birtz 1 participant 1 message May 26, 2000

lore
Share & tools
lore
#0 lore raw

Within an infinite loop, how to know if there is a keyboard input ? Is there something similar to XNextEvent for non X application ?

getchar do not work since it stop and wait for the next keyboard event. What I need is a function that I can call periodically to know if there is a keyboard input.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/