HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)

k
keysh(1) keysh(1)
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 windows.
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.
keysh normally maintains the $HOME/.keyshrc file without user intervention; however, start-up
errors may occasionally occur and persist. In this case, either execute the command kc restart
default
(to remove the file and revert to the default user configuration) or execute the command kc
write
(to rewrite the file with the current configuration).
Section 1402 Hewlett-Packard Company 6 HP-UX 11i Version 1: September 2005