getKey()

The system function ConsoleLib.getKey waits for a key to be pressed and returns the integer code of the physical key that was pressed. This function reads a key from the input. Results may be interpreted in a portable way by comparing the result with the value returned by getKeyCode(String keyname).

  ConsoleLib.getKey( )
  returns (result INT)
result
An integer that represents the key pressed.

Related reference
EGL library ConsoleLib
getKey()

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.