read_char ( : : : Char, Code )

Reads a character from the current text window.

read_char reads a character from the keyboard in the current 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


Attention

The current window has to be a text window.


Parameters

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 TRUE, if a text window is activated. Otherwise an exception is raised.


Possible Predecessors

set_window, open_textwindow, search_font, set_font


Alternatives

read_string, fread_char, fread_string


See also

write_string, set_font



Copyright © 1996-1997 MVTec Software GmbH