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

k
keysh(1) keysh(1)
NAME
keysh - context-sensitive softkey shell
SYNOPSIS
keysh
DESCRIPTION
keysh is an extension of the standard Korn-shell (for a description of the basic Korn-shell functionality,
see ksh(1)).
keysh uses hierarchical softkey menus and context-sensitive help to aid users in building command-lines,
combining the power of the Korn-shell with the ease-of-use of a menu system.
And keysh is entirely data-driven, allowing its menus and help to be easily extended as needed.
Note that during keysh invocation, the environment variable
$TERM must specify the terminal type, as
defined in the terminfo(4) database (see
ENVIRONMENT VARIABLES below).
COMMAND ENTRY
keysh continually parses the command-line and always presents the user with an appropriate set of
current choices on the softkey labels.
The user can select these softkeys to create readable softkey commands on the command-line.
keysh
automatically translates these softkey commands into equivalent
HP-UX commands prior to executing
them.
Alternatively, the user can ignore the softkeys altogether in favor of entering the traditional
HP-UX com-
mands directly, as when using the Korn-shell.
During command entry,
keysh ordinarily displays a status-line near the bottom of the screen. This
status-line contains information such as the host name, current directory, and time and date.
Whenever the user must perform an action to complete the current softkey command, keysh temporarily
displays a prompt message in place of the status-line. This message briefly describes the required action.
Softkey Types
keysh presents four basic softkey types:
--Help-- Selecting the --Help-- softkey causes keysh to display help information associ-
ated with the next selected softkey, rather than actually performing its action.
--More-- If there are more current choices than there are softkeys, keysh breaks the choices
into banks and displays a special --More-- softkey along with the first bank.
Selecting the --More-- softkey causes keysh to display the next bank of softkeys
in sequence, eventually cycling back to the first.
<param> parameter softkeys are displayed as a name enclosed between a pair of less-than and
greater-than symbols. They indicate that the user-supplied text (such as a file name)
should be entered into the command-line at that point, rather than actually selecting
the softkey. (Actually selecting the softkey only causes keysh to display a hint mes-
sage on the status line; the command-line remains unchanged.)
option All other softkeys are option softkeys that can be used to insert the corresponding
command or option name into the command-line.
Softkeys can be selected from left to right.
Editing The Command-Line
keysh supports the normal Korn-shell command-line editing modes. In addition, keysh also recognizes
the cursor movement and editing keys found on most terminals, as defined in the terminfo(4) database.
These include:
<Clear display> Clear the screen and command-line. If the screen is scrolled, clear only from the cur-
sor position to the end of scrolling memory.
<Clear line> Clear from the cursor position to the end of the command-line.
<Delete line> Clear the entire command-line.
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 1397