|
|
Both TAM and ETI use a set of virtual function keys that translate between an escape character sequence entered at the keyboard and a bit pattern inside the machine. Under the TAM transition library, the TAM virtual key values are translated into ETI virtual key values.
``Translation between TAM escape sequences and virtual key values'' lists these equivalent virtual key values. Entering the escape sequence listed in the left column will generate the corresponding TAM virtual function key value given in the middle column. The right column lists the ETI equivalent of the TAM virtual key and is for reference only.
Translation between TAM escape sequences and virtual key values
Virtual key value | ||
---|---|---|
TAM escape
sequence | TAM | ETI |
ESC-! | s_F1 | KEY_F(8) |
ESC-@ | s_F2 | KEY_F(9) |
ESC-# | s_F3 | KEY_F(10) |
ESC-$ | s_F4 | KEY_F(11) |
ESC-% | s_F5 | KEY_F(12) |
ESC-^ | s_F6 | KEY_F(13) |
ESC-& | s_F7 | KEY_F(14) |
ESC-* | s_F8 | KEY_F(15) |
ESC-f1 | PF1 | KEY_F(16) |
ESC-f2 | PF2 | KEY_F(17) |
ESC-f4 | PF3 | KEY_F(18) |
ESC-f4 | PF4 | KEY_F(19) |
ESC-f5 | PF5 | KEY_F(20) |
ESC-f6 | PF6 | KEY_F(21) |
ESC-f7 | PF7 | KEY_F(22) |
ESC-f8 | PF8 | KEY_F(23) |
ESC-f9 | PF9 | KEY_F(24) |
ESC-f0 | PF10 | KEY_F(25) |
ESC-f- | PF11 | KEY_F(26) |
ESC-f= | PF12 | KEY_F(27) |
ESC-1 | F1 | KEY_F(0) |
ESC-2 | F2 | KEY_F(1) |
ESC-3 | F3 | KEY_F(2) |
ESC-4 | F4 | KEY_F(3) |
ESC-5 | F5 | KEY_F(4) |
ESC-6 | F6 | KEY_F(5) |
ESC-7 | F7 | KEY_F(6) |
ESC-8 | F8 | KEY_F(7) |
ESC-bg | Beg | KEY_BEG |
ESC-BG | s_Beg | KEY_SBEG |
ESC-br | Break | KEY_BREAK |
ESC-bw | Back | KEY_LEFT |
ESC-BW | s_Back | KEY_SLEFT |
ESC-ce | Clear | KEY_CLEAR |
ESC-CE | Clear | KEY_CLEAR |
ESC-ci | ClearLine | KEY_EOL |
ESC-CI | s_ClearLine | KEY_SEOL |
ESC-cl | Close | KEY_CLOSE |
ESC-CL | Close | KEY_CLOSE |
ESC-cm | Cmd | KEY_COMMAND |
ESC-CM | s_Cmd | KEY_SCOMMAND |
ESC-cn | Cancl | KEY_CANCEL |
ESC-CN | s_Cancl | KEY_SCANCEL |
ESC-cp | Copy | KEY_COPY |
ESC-CP | s_Copy | KEY_SCOPY |
ESC-cr | Creat | KEY_CREATE |
ESC-CR | s_Creat | KEY_SCREATE |
ESC-dc | DleteChar | KEY_DC |
ESC-Del | DleteChar | KEY_DC |
ESC-DC | s_DleteChar | KEY_SDC |
ESC-dl | Dlete | KEY_DL |
ESC-DL | s_Dlete | KEY_SDL |
ESC-dn | Down | KEY_DOWN |
ESC-DN | RollDn | KEY_SF |
ESC-en | End | KEY_END |
ESC-EN | s_End | KEY_SEND |
ESC-ESC | Esc | none |
ESC-ex | Exit | KEY_EXIT |
ESC-EX | s_Exit | KEY_SEXIT |
ESC-fi | Find | KEY_FIND |
ESC-FI | s_Find | KEY_SFIND |
ESC-fw | Forward | KEY_RIGHT |
ESC-FW | s_Forward | KEY_SRIGHT |
ESC-hl | Help | KEY_HELP |
ESC-? | Help | KEY_HELP |
ESC-HL | s_Help | KEY_SHELP |
ESC-hm | Home | KEY_HOME |
ESC-HM | s_Home | KEY_SHOME |
ESC-im | InputMode | KEY_IC |
ESC-NJ | s_InputMode | KEY_SIC |
ESC-mk | Mark | KEY_MARK |
ESC-MK | Slect | KEY_SELECT |
ESC-ms | Msg | KEY_MESSAGE |
ESC-MS | s_Msg | KEY_SMESSAGE |
ESC-mv | Move | KEY_MOVE |
ESC-MV | s_Move | KEY_SMOVE |
ESC-nx | Next | KEY_NEXT |
ESC-NX | s_Next | KEY_SNEXT |
ESC-op | Open | KEY_OPEN |
ESC-OP | Close | KEY_CLOSE |
ESC-ot | Opts | KEY_OPTIONS |
ESC-OT | s_Opts | KEY_SOPTIONS |
ESC-pg | Page | KEY_NPAGE |
ESC-PG | s_Page | KEY_PPAGE |
ESC-pr | KEY_PRINT | |
ESC-PR | s_Print | KEY_SPRINT |
ESC-pv | Prev | KEY_PREVIOUS |
ESC-PV | s_Prev | KEY_SPREVIOUS |
ESC-rd | RollDn | KEY_SF |
ESC-RD | RollDn | KEY_SF |
ESC-re | Ref | KEY_REFERENCE |
ESC-RE | Rstrt | KEY_RESTART |
ESC-rf | Rfrsh | KEY_REFRESH |
ESC-RF | Clear | KEY_CLEAR |
ESC-rm | Rsume | KEY_RESUME |
ESC-RM | s_Rsume | KEY_SRSUME |
ESC-ro | Redo | KEY_REDO |
ESC-RO | s_Redo | KEY_SREDO |
ESC-rp | Rplac | KEY_REPLACE |
ESC-RP | s_Rplac | KEY_SREPLACE |
ESC-rs | Rstrt | KEY_REFERENCE |
ESC-RS | Rstrt | KEY_RESTART |
ESC-ru | RollUp | KEY-SR |
ESC-RU | RollUp | KEY_SR |
ESC-sl | Slect | KEY_SELECT |
ESC-SL | Slect | KEY_SELECT |
ESC-ss | Suspd | KEY_SUSPEND |
ESC-SS | s_Suspd | KEY_SSUSPEND |
ESC-sv | Save | KEY_SAVE |
ESC-SV | s_Save | KEY_SSAVE |
ESC-ud | Undo | KEY_UNDO |
ESC-UD | s_Undo | KEY_SUNDO |
ESC-up | Up | KEY_UP |
ESC-UP | RollUp | KEY_SR |
Some keyboards have one or more keys that emit escape sequences that are identical to the UNIX PC keyboard sequences but do not match in terms of functionality. The function of an operationally incompatible key will always map to its terminfo specification. The TAM specific function implied by the same escape sequence will be accessible through the technique describe above. Mechanisms in curses(3ocurses) automatically handle timing conflicts between actual keyboard function keys and UNIX PC keyboard escape sequences.