GetRawKeyWithScreen

Obtains the next available keystroke from the specified screen.

Library:LibC
Classification:Novell
Service:Screen Support

Syntax

  #include <screen.h> 
   
  int GetRawKeyWithScreen (
     scr_t      scrID,
     uint8_t   *type,
     uint8_t   *value,
     uint8_t   *status,
     uint8_t   *scancode );
  

Parameters

scrID

(IN) Specifies the screen.

type

(OUT) Specifies the key type. See Section 23.2, Key Types.

value

(OUT) Points to the ASCII value of the key that was pressed.

status

(OUT) Points to whether a modifier key was pressed, for example the Shift Key. For a list of possible values, see Section 23.3, Key Status.

scancode

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

Return Values

If successful, returns 0. Otherwise, returns a nonzero error code.

Decimal

Constant

Description

63

EINTR

The Escape key was entered.

Remarks

The GetRawKeyWithScreen function handles certain blocking and unblocking events that the GetKey function ignores. For example, GetRawKeyWithScreen knows how to clean up if the thread calling this function is blocked when the owner of the thread is unloaded.

See Also