Skip to content
Advertisement

Tag: keystroke

Calling “select” on fd 0 requires to fire

I’m trying to use “select()” to test if a key has been struck and then read it. It sort of works but only if {Enter} is pressed after the character. Sample code is as follows: If I press A nothing happens, but if I Press A{Enter}, the output is: The output is the same if I press ABC{Enter} Why is

Advertisement