Unit 'keyboard' Package
[Overview][Constants][Types][Procedures and functions][Index] [#rtl]

InitKeyboard

Initialize the keyboard driver.

Declaration

Source position: keybrdh.inc line 230

procedure InitKeyboard;

Description

InitKeyboard initializes the keyboard driver. If the driver is already active, it does nothing. When the driver is initialized, it will do everything necessary to ensure the functioning of the keyboard, including allocating memory, initializing the terminal etc.

This function should be called once, before using any of the keyboard functions. When it is called, the DoneKeyboard function should also be called before exiting the program or changing the keyboard driver with SetKeyboardDriver.

On Unix, the default keyboard driver sets terminal in raw mode. In raw mode the line feed behaves as an actual linefeed, i.e. the cursor is moved down one line. while the x coordinate does not change. To compensate, the default keyboard sets driver line ending of system.output to #13#10.

For an example, see most other functions.

Errors

None.

See also

DoneKeyboard

  

Deactivate keyboard driver.

SetKeyboardDriver

  

Set a new keyboard driver.


Documentation generated on: Nov 23 2024