![]() |
Retro Rocket OS
|
Your keyboard layout is defined by a configuration file called a keymap, which controls what characters appear when you press keys.
They are used to change which key is mapped to which character add characters that are not on your keyboard, or not defined by the base set of characters.
Keymaps are stored in:
For example:
A keymap can be loaded at runtime by the KEYMAP Keyword.
Each line is one of:
This defines what a key produces:
Example:
This makes the 3 key produce £ when Shift is held.
Defines how a character looks on screen.
Example (£):
This defines the shape used whenever character &A3 is printed.
Take this value:
In binary, this is:
This means:
Each # is a lit pixel, each . is empty.
If a key is mapped to a character number, and that character has a symbol definition, that symbol will be shown when the key is pressed.
Example:
Pressing Shift+3 will produce £.