The Cterm keyboard: ------------------- To exit Cterm on the TI Pro press -BRK/PAUS. With the PC/AT, use Ctrl-Break/ScrollLock. For DELETE (ascii 127) press -BACKSPACE. For NO SCROLL (ie. Xon/Xoff toggling) use BRK/PAUS (TI only). Top-row key clusters: VT100 key clusters +---------------+-------+-------+ +-------+-------+-------+-------+ | SET UP | BREAK | BACK | | ^ | | | <- | -> | | | | SPACE | | | | v | | | +---------------+-------+-------+ +-------+-------+-------+-------+ TI Pro equivalents +-------+-------+-------+-------+ +-------+-------+-------+-------+ | F1 | F2 | F3 | F4 | | F9 | F10 | F11 | F12 | +-------+-------+-------+-------+ +-------+-------+-------+-------+ IBM PC/AT equivalents +-------+-------+-------+-------+ +-------+-------+-------+-------+ | F1 | *F2 | F3 | F4 | | F7 | F8 | F9 | F10 | +-------+-------+-------+-------+ +-------+-------+-------+-------+ *NB: If MVESC is defined in PC.h, F2 becomes the Esc key. The normal arrow keys are equivalent to F9-F12 (ie. hitting F9 will send the same vt100 escape sequence as would be sent when the Up key is pressed). F3 is the vt100 BREAK key: -------------------------- hitting yields ------- ------ BREAK (F3) long break (200 ms). Shift-BREAK (SHIFT-F3) drop DTR and RTS for 0.25 seconds Ctrl-BREAK (CTRL-F3) send Answerback message to host (NB: BREAK (ie. F3) should not be confused with the BRK/PAUS key on the TI Pro nor with the Break key on the IBM PC/AT) The Keypad: VT100 keypad 1st label: TI Pro equivalent 2nd label: IBM PC/AT equivalent +-------+-------+-------+-------+ +-------+-------+-------+-------+ | PF1 | PF2 | PF3 | PF4 | | = | + | SPAC | TAB | | | | | | | Esc | Num Lk| ScrlLk| SysReq| +-------+-------+-------+-------+ +-------+-------+-------+-------+ | 7 | 8 | 9 | - | | 7 | 8 | 9 | - | | | | | | | | | | | +-------+-------+-------+-------+ +-------+-------+-------+-------+ | 4 | 5 | 6 | , | | 4 | 5 | 6 | , | | | | | | | | | | | +-------+-------+-------+-------+ +-------+-------+-------+-------+ | 1 | 2 | 3 | | | 1 | 2 | 3 | | | | | |(PRINT)| | | | | | +-------+-------+-------+ | +-------+-------+-------+ ENTER | | 0 | . | ENTER | | 0 | . | | | | | | | | | | +---------------+-------+-------+ +---------------+-------+-------+ Some technical details: On the TI Pro, to properly emulate the vt100 keypad, the scan codes for the keypad keys "0" thru "9", "-", "," and "ENTER" have been re-mapped to F5, F6, F7 or F8 (using either ctrl, alt or shift) depending on their relative positions on the keypad. +-------+-------+-------+-------+ | 7 | 8 | 9 | - | | F5 | F6 | F7 | F8 | aN = alt N +-------+-------+-------+-------+ cN = ctrl N | 4 | 5 | 6 | , | sN = shift N | cF5 | cF6 | cF7 | cF8 | +-------+-------+-------+-------+ | 1 | 2 | 3 | aF8 | | aF5 | aF6 | aF7 | | +-------+-------+-------+ ENTER | | 0 | . | | | sF5 sF6 | sF7 | sF8 | +---------------+-------+-------+ On the IBM PC/AT, to properly emulate the vt100 keypad, cterm installs and uses its own interrupt service routine at INT 9 thus intercepting the keycodes before they can be processed by BIOS. Among other things, this also allows cterm to control keyboard auto-repeating. This ISR is pretty basic and as such could use some work in the transition areas (on startup it assusmes the keyboard is in a "normal" state so if Caps Lock or any other such function is active then it'll remain active until the user exits the program and the ISR is removed). If MVESC is defined at compile-time, F2 becomes the ESC key. If MVESC is left undefined, F2 is used as another SETUP key (ideally, the Esc key should be where the tilde/quote key is now). Ignored TI Pro keys: INS, DEL and PRNT. Ignored IBM PC/AT keys: F5 and F6.