k

keysh(1)

keysh(1)

KEYKSH

If set, speci®es 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, speci®es 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, speci®es 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

Speci®es arbitrary text to be included in the keysh status-line.

KEYSIM

If set, speci®es that keysh should always simulate softkey labels and not use the built-in

 

labels on HP terminals.

KEYTSM

If set, speci®es 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 signi®cantly 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) de®nition of ÃT.

The Ã@ and <ESC>n ÃK commands 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 ®le. 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 possible 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 ®le 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 ®le and revert to the default user con®guration) or execute the command kc write (to rewrite the ®le with the current con®guration).

Section 1388

− 6 −

HP-UX Release 11i: December 2000