read_char — Read a character from a text window.
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:
none of these keys
read_char has been cancelled (Windows only)
The window has to be a text window.
Input character (if it is not a control character).
Code for input character.
read_char returns 2 (H_MSG_TRUE) if the text window is valid. Otherwise an exception is raised.
read_string, fread_char, fread_string