browser

Terminal Device

device-terminal
calendarsave
The Terminal devices provides raw access to an ANSI-compliant terminal, in terms of input, output, and key presses.
;terminal
.macro terminal.input          $10
.macro terminal.output         $11
.macro terminal.on_keypress    $12
.macro terminal.on_argument    $14
=== [1][RO] input The ASCI code of the pressed key received by the terminal. === [1][RW] output The ASCII code of the character to be printed by the terminal. === [2][RW] on_keypress Address of the subroutine that will be executed when a key is pressed. === [2][RW] on_argument Address of the subroutine that will be executed when arguments are passed to the program. This handler gets triggered as soon as it is set, once for every character for each argument. Note that: dot-single Each argument character is read from terminal.input dot-single After each argument, $1E is written to terminal.input dot-single After all arguments, $1D is written to terminal.input