HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)

k
keysh(1) keysh(1)
KEYESC Specifies the maximum allowable delay between characters (in milliseconds) if they are to
be treated as part of a terminal escape sequence. The default is 350 ms.
KEYKSH If set, specifies that keysh
should mimic the behavior of the Korn-shell as closely as possi-
ble. No softkeys or status-line are displayed. This mode is particularly useful over slow
modem lines.
KEYLOC If set, specifies that
keysh should leave the terminal keypad in local mode while com-
mands are being entered. This mimics the behavior of the Korn-shell.
KEYPS1 If set, specifies that
keysh should not reset the initial values of $PS1, $PS2, and $PS3.
Note that
$PS1 must be a constant character string in order for
keysh to recognize it
and provide subsequent softkey assistance.
KEYSH Specifies arbitrary text to be included in the
keysh status-line.
KEYSIM If set, specifies that keysh
should always simulate softkey labels and not use the built-in
labels on HP terminals.
KEYTSM If set, specifies that
keysh should not use the tsm softkeys when tsm is running. In
this case, the user can either use the
tsm hotkey, the backup softkeys, or the Switch
softkey command (see STANDARD SOFTKEY DEFINITIONS above) to switch tsm
win-
dows.
KSH DIFFERENCES
keysh is an extension of ksh(1) with the following exceptions:
Screen Updates
keysh optimizes its display output to take advantage of available terminal capabilities. Unlike the Korn-
shell which often has to redraw large portions of the command-line,
keysh can simply insert or delete
characters at the appropriate screen position.
This makes
keysh significantly faster over slow modem lines, especially if the $KEYKSH environment
variable is set (see Environment Variables above).
Emacs-Mode Editing
The new
<ESC>v command performs the function of the vi-mode v command.
An initial ˆN command recalls the history line following the history line executed as the previous com-
mand. This provides an easy mechanism to repeat a sequence of history commands.
gmacs editing mode is not supported; emacs editing mode follows the GNU emacs (18.54) definition of
ˆT.
The ˆ@ and <ESC>Kcommands are not supported.
The M-<letter> and M-]<letter> alias functions are not supported (in lieu of true softkey support).
Vi-Mode Editing
The new o command performs the function of the emacs-mode ˆO command.
An initial j command recalls the history line following the history line executed as the previous command.
This provides an easy mechanism to repeat a sequence of history commands.
The | command is not supported.
The @<letter> alias function is not supported (in lieu of true softkey support).
The u command performs an emacs-style nested undo; u<space> performs a traditional vi-style undo.
WARNINGS
keysh requires that the $TERM environment variable be set appropriately in your $HOME/.profile
file. It also requires that $LINES and $COLUMNS be set appropriately if running on a non-standard size
terminal. Otherwise, an error message or a garbled screen display results.
keysh requires that option softkeys be selected from left to right. When editing a command-line, it is pos-
sible to back up and insert a softkey out-of-order -- resulting in a command error.
keysh initializes $PS1, $PS2, and $PS3 and types them read-only do not change them. Instead, use
$KEYSH to display additional status information.
480 Hewlett-Packard Company 6 HP-UX 11i Version 3: February 2007