| Short Name | Long name | Function |
|---|---|---|
| kcuu1 | KEY_UP | Move cursor up in text TextArea, else sent to Java |
| kcud1 | KEY_DOWN | Move cursor down in text TextArea, else sent to Java |
| kcuf1 | KEY_RIGHT | Move cursor right in TextField or TextArea, else sent to Java |
| kcub1 | KEY_LEFT | Move cursor left in TextField or TextArea, else sent to Java |
| kopt | KEY_OPTIONS | Show Barmenu attached to Frame |
| knp | KEY_NPAGE | Page Down in TextArea, else sent to Java |
| kpp | KEY_PPAGE | Page Up in TextArea, else sent to Java |
| kslt | KEY_SELECT | Select active Window from list |
| krfr | KEY_REFRESH | Redraw the screen |
| kich1 | KEY_IC | Toggle insert mode in TextComponent |
| kdch1 | KEY_DC | Delete character under cursor in TextComponent |
| kbs | KEY_BACKSPACE | Destructive backspace |
| kend | KEY_END | Goto end of line |
| kEND | KEY_SEND | Goto end of TextArea |
| khome | KEY_HOME | Goto beginning of line |
| kHOME | KEY_SHOME | Goto beginning of TextArea |
| kext | KEY_EXIT | Exit tuipeer |
| ktab | KEY_TAB | Move focus to next enabled control. |
| kbtab,kcbt | KEY_BTAB | Move focus to previous enabled control |
| In a TextArea, TAB and BTAB insert tabs and move the cursor within the TextArea, except when in vi mode. | ||
| kcmd | KEY_COMMAND | Enter vi command mode. |
| kel | KEY_EOL | Erase to end of line |
| kll | KEY_LL | Move cursor to beginning of next line in TextArea, else send to Java |
| kLEFT | KEY_SLEFT | Shift TextArea left, else send to Java |
| kRIGHT | KEY_SRIGHT | Shift TextArea right, else send to Java |
| kprt | KEY_PRINT | Send a screen dump to the default printer |
Most Components send function keys to the Java application. TextField processes most editing keys locally. TextArea processes all editing keys locally. Currently, the only way to move focus from a TextArea is to enter vi mode and tab.
| Terminfo name | Java name |
|---|---|
| KEY_HOME | VK_HOME |
| KEY_END | VK_END |
| KEY_PPAGE | VK_PAGE_UP |
| KEY_NPAGE | VK_PAGE_DOWN |
| KEY_UP | VK_UP |
| KEY_DOWN | VK_DOWN |
| KEY_LEFT | VK_LEFT |
| KEY_RIGHT | VK_RIGHT |
| KEY_IC | VK_INSERT |
| KEY_DC | VK_DELETE |
| KEY_HELP | VK_HELP |
| KEY_TAB | VK_TAB |
| KEY_BTAB | -VK_TAB |
| KEY_LL | -VK_ENTER |
| KEY_F(1) | VK_F1 |
| Currently, F1 is used locally to close the active window | |
| KEY_F(2) | VK_F2 |
| KEY_F(3) | VK_F3 |
| KEY_F(4) | VK_F4 |
| KEY_F(5) | VK_F5 |
| KEY_F(6) | VK_F6 |
| KEY_F(7) | VK_F7 |
| KEY_F(8) | VK_F8 |
| KEY_F(9) | VK_F9 |
| KEY_F(10) | VK_F10 |
| KEY_F(11) | -VK_F1 |
| KEY_F(12) | -VK_F2 |
| KEY_F(13) | -VK_F3 |
| KEY_F(14) | -VK_F4 |
| KEY_F(15) | -VK_F5 |
| Currently, F15 is used locally to resize the active window | |
| KEY_F(16) | -VK_F6 |
| KEY_F(17) | -VK_F7 |
| Currently, F17 is used locally to zoom the active window to full screen | |
| KEY_F(18) | -VK_F8 |
| KEY_F(19) | -VK_F9 |
| KEY_F(20) | -VK_F10 |
| KEY_SHOME | -VK_HOME |
| KEY_SEND | -VK_END |
| KEY_SLEFT | -VK_LEFT |
| KEY_SRIGHT | -VK_RIGHT |
| KEY_SHELP | -VK_HELP |