read_char๐
Short description๐
read_char โ Read a character from a window.
Signature๐
read_char( window WindowHandle, out string Char, out string Code )
Description๐
read_char reads a character from the keyboard in the
input window (= output window). If the character is printable it is returned
in Char. If a control key has been pressed, this will be indicated
by the value of Code. Some important keys are recognizable by
this value. Possible values are:
-
โcharacterโ: printable character
-
โleftโ: cursor left
-
โrightโ: cursor right
-
โupโ: cursor up
-
โdownโ: cursor down
-
โinsertโ: insert
-
โnoneโ: none of these keys
-
โcanceledโ:
read_charhas been canceled (not always possible, e.g., in native X11 windows)
Execution information๐
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters๐
WindowHandle (input_control) window โ (handle)
Window handle.
Char (output_control) string โ (string)
Input character (if it is not a control character).
Code (output_control) string โ (string)
Code for input character.
Result๐
read_char returns 2 (H_MSG_TRUE) if the window is valid.
Otherwise an exception is raised.
Combinations with other operators๐
Module๐
Foundation