keysh(1)

keysh(1)

EXAMPLES

To add the od (see od(1)) softkey to the end of the top-level softkey menu and label it Octal_dump,

kc softkey add od with_label Octal_dump

To add the paste(1) softkey to the beginning of the top-level softkey menu and label it Paste,

kc softkey add paste and_place as_first_softkey

To add the custom emacs softkey from the ®le Ärpt/.softkeys to the top-level softkey menu immediately before the ls (see ls(1)) softkey,

kc softkey add emacs from_user rpt and_place before_softkey ls

To add all invisible softkeys from the ®le Ärpt/.softkeys,

kc softkey add invisibles from_user rpt

To add the backup softkeys from the ®le $HOME/.softkeys,

kc softkey add backups

To delete the Edit_file softkey from the top-level softkey menu,

kc softkey delete Edit_file

To disable the --Help--softkey,

kc options help off

To con®gure the user name into the status-line,

kc status_line user_name on

To con®gure the exit-value of the last command executed into the status-line,

KEYSH="\${?#0}"

To list the ten largest ®les in the current directory,

ls long_format Sort_lines numerically reverse_order \ starting_at_field 5 head

STANDARD SOFTKEY DEFINITIONS

Copy_files, Move_files, Print_files , Set_file_attribs, Switch.

adjust, ar, bdf, cal, cancel, cat, cd, cdb, chatr, chgrp, chmod, chown, cmp, col, comm, cpio, cut, dd, df, diff, dircmp, disable, du, elm, enable, exit, find, fold, grep, head, jobs, kill, lp, lpstat, ls, mailx, make, man, mkdir, more, nm, nroff, od, paste, pg, pr, ps, remsh, rlogin, rm, rmdir, sdiff, set, shar, sort, tail, tar, tee, touch, tr, umask, uname, vi, wc, who, write, xd, xdb.

ENVIRONMENT VARIABLES

TERM Speci®es the terminal type, as de®ned in the terminfo(4) database. This variable must be either part of keysh's invocation environment or it must be set within one of the standard Korn-shell start-up ®les.

COLUMNS Speci®es the number of columns in the terminal screen if different than the terminfo(4) default.

LINES Speci®es the number of lines in the terminal screen if not the same as the terminfo(4) default.

PAGER

Speci®es the preferred pager

to be used to display help. The default

is more (see

 

more(1)).

 

 

TZ

Speci®es the time-zone to be used for time and date representations on the status-line. The

 

default is en_US.roman8 .

 

 

KEYBEL

Speci®es the character sequence sent to the terminal by keysh to ring the bell. The

 

default is ÃG.

 

 

KEYENV

Speci®es an alternate keysh con®guration ®le. The default is $HOME/.keyshrc.

KEYESC

Speci®es 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.

 

HP-UX Release 11i: December 2000

− 5 −

Section 1387

k