Key pressed.
Posted in 1998
Juan Manuel Hernandez del Olmo — — source: Informix-list mailing list archive (1991-1998)
Key pressed. I need a C function that returns the key a user has pressed, without = awaiting for the user to press. Or, I would need to modify the following = function, so it doesn't wait for the pulsation. /* It waits until the pulsation of a key, then it returns its INTEGER code = */ int fgl_getkey( int args ) { extern short _acckey; short keyhit; short eflastkey; eflastkey =3D (( keyhit =3D rgetkey() ) =3D=3D _acckey ) ? 2016 : = keyhit; clrmsg(); retlong(( long ) eflastkey ); return( 1 ); }