Turbo Pascal Text Adventure Primer cover: BEACON, the adventure the primer builds in Turbo Pascal 2.0, mid-game on the Tatung Einstein
← Back to Modules
module
26

Appendix IV: The Keyboard

The Turbo Pascal course's Appendix IV lists every key, and every editor command. These are the ones this primer leans on.

Keys And Their Codes

What Read(Kbd, Ch) receives, as Ord(Ch):

Einstein keyCodeIn MAME
ENTER13Return
DELETE25Backspace
CONTROL and H8Ctrl and H
CONTROL and X24Ctrl and X
SPACE32Space
The keys marked with left, right and up arrows91, 93, 94: they type [, ], ^see the Turbo course's Appendix IV
ESC27Esc

CAPS LOCK is on when the Einstein starts, so letters arrive as capitals. Press it once for small letters. A key-by-key reader should UpCase every letter (S4), so the player can type either.

At A Readln

KeyDoes
CONTROL and H, or SHIFT and TABrubs out the last character
CONTROL and Xclears the line
DELETEnothing
ENTERfinishes the line

In BEACON

BEACON reads its commands a key at a time (S4, S18):

KeyDoes
a letter, either casetyped in capitals
SPACEa space
DELETE, or CONTROL and Hrubs out the last character
ENTERthe command is done
anything elseignored

In The Editor

KeysDoes
CONTROL and K, then CONTROL and Rreads a file from the disc into the text at the cursor: how each game section starts from the last
CONTROL and K, then CONTROL and Dleaves the editor

Get the Newsletter

New guides, disk images and community finds, roughly once a quarter. No spam, we promise, this isn't Tatung's marketing department.
Your subscription could not be saved. Please try again.
Your subscription has been successful.

Newsletter

Subscribe to our newsletter and stay updated.

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.