getkey

Retrieves one key-press from the keyboard of the application screen, if this screen is not identical to the System Console or System Logger screen.

Library:LibC
Classification:Novell
Service:Screen Support

Syntax

  #include <screen.h> 
   
  int getkey (
     int   *keytype,
     int   *modifier,
     int   *scancode);
  

Parameters

keytype

(OUT) Specifies the type of key. For a list, see Section 23.2, Key Types.

modifier

(OUT) Specifies whether the key includes a modifier. For a list, see Section 23.3, Key Status.

scancode

(OUT) Specifies the codes emitted by the keyboard when a key is pressed.

Return Values

If successful, returns 0.

Remarks

The key is echoed to the screen.

See Also

ungetkey