For example, the cursor (arrow) keypad on the VT100 terminal (or above) can be in one of two modes: cursor mode and application mode. These keys send different escape sequences depending on which mode they are in. When the VT terminal is turned on (and when Kermit is started), the arrow keys are in cursor mode.
By default (that is, unless you give SET KEY commands to change things), Kermit uses the PC keyboard arrow keys as the VT terminal arrow keys. Each key has a "verb" assigned to it:
Up arrow \Kuparr Down arrow \Kdnarr Right arrow \Krtarr Left arrow \Klfarr
These verbs track the cursor keypad mode automatically, and send the appropriate escape sequences. For example, for DEC VT100 and higher:
Cursor Mode Application Mode \Kuparr CSI A SS3 A \Kdnarr CSI B SS3 B \Krtarr CSI C SS3 C \Klfarr CSI D SS3 D
where CSI is ESC followed by left bracket ([) on a 7-bit connection or decimal 155 on an 8-bit connection, and SS3 is ESC followed by O (uppercase letter O) on a 7-bit connection and decimal 143 on an 8-bit connection.
How does the cursor keypad mode change? The host can change it by sending special escape sequences, or you can change it yourself by using the command:
SET TERMINAL ARROW-KEYS { CURSOR, APPLICATION }
When arrow keys are not working, what could be the reason?
Here is a summary of the default uses of gray (cursor keypad) arrow keys in Kermit 95:
Shift Alt Ctrl Description
Terminal arrow keys X Go to bookmark in scrollback buffer X Search in scrollback buffer X X (unassigned) X Scroll left/right one column X X (unassigned) X X Scroll left/right 8 columns X X X Scroll all the way left or right
In the Command screen, the Up and Down arrow keys can be used for command recall.
In EMACS and Word Perfect modes, the arrow keys send the appropriate cursor movement commands for those applications.
Click Back on your Browser's Toolbar to return.