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 de®ned 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-UXcommands prior to executing them.

Alternatively, the user can ignore the softkeys altogether in favor of entering the traditional HP-UXcommands directly, as when using the Korn-shell.

During command entry, keysh ordinarily displays a status-linenear 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 brie¯y describes the required action.

Softkey Types

keysh presents four basic softkey types:

--Help--Selecting the --Help--softkey causes keysh to display help information associated 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 ®rst bank. Selecting the --More--softkey causes keysh to display the next bank of softkeys in sequence, eventually cycling back to the ®rst.

<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 ®le 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 message 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 de®ned 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.

k

HP-UX Release 11i: December 2000

− 1 −

Section 1383