Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Shells: User's Guide: HP 9000 Computers > Chapter 26 Getting Started With Key Shell

Setting Shell Variables

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

You can set any of the shell variables listed in Table 26-7 “Key Shell Variables”. However, the default values will normally be sufficient. For more information, refer to “Setting Environment and Shell Variables” in the Part IV “POSIX and Korn Shell” part of this manual.

You can set shell variables in either of two ways:

  • Temporarily, on the command line. For example, to force keysh to simulate softkeys rather than using the built-in labels, type:

    KEYSIM=trueReturn

    Use the unset command to unset a variable. For example, to return keysh to using the built-in labels, type:

    unset KEYSIMReturn

  • Permanently, in your .profileor .keyshrcfile. For example, to make the phrase "Hi there" a permanent part of your status line, add the line below to your .profile file.

    export KEYSH="Hi there"Return

Table 26-7 Key Shell Variables

Variable

Description

COLUMNS

Defines the width of the edit window (if different from the terminfo(4) default).

KEYBEL

Specifies the character sequence to be used for keysh's bell. The default is CTRL-G (ASCII 007). To disable the bell, set this variable to an empty string.

KEYENV

Specifies an alternate keysh configuration file. The default is $HOME/.keyshrc.

KEYESC

Specifies the maximum number of milliseconds allowed between characters that are part of a terminal escape sequence. The default is 350.

KEYKSH

If set, causes keysh to mimic the behavior of the Korn Shell. The softkeys and status line are not displayed. This mode is useful over slow modem lines.

KEYLOC

If set, specifies that keysh should leave the terminal keypad in local mode while commands are being entered. This mimics the behavior of the Korn Shell.

KEYMORE

If set, specifies that keysh should return to the first bank of softkeys after executing a command, rather than remaining on the bank where the command was located.

KEYPS1

If set, specifies that keysh should not reset the initial values of PS1, PS2, and PS3.

KEYSH

Lets you specify arbitrary text to include in the keysh status line.

KEYSIM

If set, specifies that keysh should simulate softkey labels rather than using the built-in labels on HP terminals.

When you use simulated softkey labels, keysh also shows an input mode indicator between the two groups of four softkey labels. This indicator shows your current command line editing mode. For example, vi insrt means that vi(1) is the editor and it is in insert mode.

KEYTSM

If set and Terminal Session Manager is running, specifies that keysh should not display TSM softkeys.

LANG

Defines the language in which softkeys and Key Shell messages are displayed. The default is C.

LC_TIME

Defines the format to use for time and date display on the status line. The default is american.

LINES

Defines the number of lines in the terminal screen (if different fromthe terminfo(4) default).

PAGER

Defines the pager to use for displaying online help. The default is more(1).

PATH

Defines the search path for commands.

TERM

Defines the terminal type.

TZ

Defines the time zone to use for time and date display on the status line.

 

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-1991 Hewlett-Packard Development Company, L.P.