 |
» |
|
|
 |
The previous procedure ensured the system side was set up
properly; now you are setting up the terminal side. If the terminal will be used as a
console, the default configuration is likely to be correct. If the terminal will not be used as a console (but
rather as an additional serial terminal), you might have to set
configuration modes.
From the new terminal, use the function keys to set the terminal's
features. In most cases, default settings will be sufficient. Add a getty entry for each new terminal in /etc/inittab. Entries must conform to the pattern id:run_state:action:process, as documented on the inittab(4) manpage.
A sample terminal entry resembles the following: ttp3:2:respawn:/usr/sbin/getty -h -t 60 tty0p3 9600 |
ttp3 is a label used by init to identify the action uniquely (see init(1M)). The 2 is the run state. Systems are shipped with the
multi-user run state (see the initdefault entry in inittab). When the system is running in single-user mode
(state s), this process is not executed. The respawn tells init to restart the process if it exits. The /usr/sbin/getty is the process used to set up serial terminal
and modem ports and provide the initial login prompt. The -h option ensures that the getty will not hang up the line before setting the port
speed. The -t 60 is a security option to require that the user
login name and password is typed within 60 seconds. tty0p3 identifies the port in /dev to which the getty attaches. The 9600 (highlighted) does not represent
the baud rate. It is a pointer into the /etc/gettydefs file, telling the system side what entry to use.
An H entry is also provided for hard-wired terminals.
See gettydefs(4).
Invoke the following command to activate the updated /etc/inittab file: Add an (optional) entry to /etc/ttytype. Entries should conform to the format documented
on the ttytype(4) manpage. In the following
example, 2392 is the terminal type; console and tty0p3 are the device file names in the /dev directory. Now that HP-UX is set to communicate with the new
terminal, verify that the communication parameters for the terminal
correspond to their /etc/gettydefs entries. Instructions on necessary changes will
be discussed in “Differences
between Console and Terminal Configuration ”, the
next section. With the configuration complete, your terminal should
display a login prompt. If no login is displayed, press Return several times. If a prompt fails to appear, consult the “Troubleshooting Terminal
Problems ” toward the end of this chapter.
Differences
between Console and Terminal Configuration |  |
As shipped, HP terminals are configured properly for use as
a system console. To use the terminal as a serial terminal, the
parameters shown in Table 3-2 “Key Terminal Configuration Parameters ” might
require configuration in /etc/gettydefs. Table 3-2 Key Terminal Configuration Parameters Parameter | Console (as shipped) | Serial Terminal (hard-wired) [1] | Serial Terminal (via modem) |
|---|
Data bits | 8 | 8 | 7 | Parity | no | no | even | Default speed | 9600 [2] | 9600 | 300[2] |
Running
Screen-Oriented Applications on a Terminal |  |
To run screen-oriented applications (such as SAM or swinstall) on a terminal that is not being used as a console,
you can use the H setting in /etc/gettydefs. As shown in Table 3-2 “Key Terminal Configuration Parameters ”,
this will give you 8 data bits and no parity, which are required
by screen-oriented applications. Edit the getty entry in /etc/inittab so that the device special file for the terminal points
to the H entry in /etc/gettydefs. ttp2:234:respawn:/usr/sbin/getty -h tty0p2 H |
Reissue the /sbin/init q command to activate the updated /etc/inittab file.
See gettydefs(4) in the HP-UX
Reference. Configuring
a Non-HP Terminal as a Console |  |
HP supports Wyse 60 terminals with native ASCII keyboards,
VT320, and VT100 compatible (as defined by DEC VT420) terminals,
in their default power-on configuration as system consoles for HP
9000 Series 800 E Family computers. Also, HP 700/60 terminals can
be configured to emulate the non-HP consoles. Only HP terminals
are supported as system consoles on other HP 9000 Series 800 computers. Two HP MUX interface modules support configuration of a non-HP
terminal console, provided you have the correct firmware version: Access port MUX16 (part number A1703-60022
for Series 800 HP-PB) with firmware version Rev 2.30 datecode 3341.
(If you installed the card, you should have recorded the firmware
revision on a worksheet in Appendix D.) The access port MUX module integrated into the core
I/O card of Model I computers.
If you are configuring a non-HP terminal or terminal emulation,
proceed through the instructions provided in the following sections,
and note the limitations described in “Limitations
to Non-HP Terminal Emulation”. Configuring
a DEC 420 Terminal to Emulate VT100 or VT320 Mode The DEC VT100 and VT320 terminals will work in their default
settings with HP-UX. For a VT420 terminal to work in HP-UX, it must
be configured to emulate either a VT100 or VT320 terminal, as follows: Install the hardware, as described in the terminal's manual. Enter set-up mode by pressing the F3 key. Select Default and press Return. Select General and press Return. Set the Mode. To emulate a VT320, select VT400
Mode, 7 bit Controls. To emulate a VT100, press Return until the selection reads "VT100 Mode."
Set the ID. To emulate a VT320, select VT320
ID. To emulate a VT100, select VT100 ID.
Return to the main settings and save the configuration.
Then press the F3 key to exit set-up mode.
Table 3-3 “Configuration Values for vt100 Compatibility ” shows the correct
values for a Model VT420 terminal set up to emulate a VT100.
Table 3-3 Configuration Values for vt100 Compatibility Global Set-Up | On-Line S1-Comm1 CRT
Saver Printer Shared 70 Hz | Display Set-Up | 80-Columns Interpret Controls No
Auto Wrap Smooth-2 Scroll Dark Screen Cursor Block
Cursor Style No_Status_Display Cursor_Blink 6x24 Pages 24
Lines/Screen Vertical Coupling Page Coupling No
Auto Resize Screen | General Set-Up | VT100 Mode [1] VT100
ID[1] User-Defined
Keys Unlocked User Features Unlocked Numeric
Keypad Normal Cursor Keys No New Line UPSS
DEC Supplemental When Available Update | Printer Set-Up | Speed=4800 No Printer to
Host Normal Print Mode XOFF 8
Bits, No Parity 1 Stop Bit Print Full Page Print
National Only No Terminator | Communications Set-Up Comm1 | Transmit=9600 Receive=Transmit XOFF
at 64 8 Bits, No Parity (console) 1 Stop Bit (console) No
Local Echo Data Leads Only Limited Transmit No
Auto Answerback Answerback= Not Concealed | Keyboard Set-Up | Caps Lock Auto Repeat Keyclick
High Margin Bell Off Warning Bell High Character
Mode <X Backspace [2] Local Compose Ignore
Alt F1=Hold F2=Print F3=Set-Up F4=Session F5=Break ,< and .> Keys <> Key `~ Key | Tabs Set-Up | 8 spaces apart, starting in column 9 |
Your VT420 terminal is now configured for use as an HP-UX
system console. Please be aware that the configuration is based
solely on the VT100 default configuration. You may notice the following differences between the DEC VT100,
VT320, or VT420 terminals and an HP terminal: Table 3-4 Unique Definitions of VT100 Keys Key | Meaning |
|---|
Backspace | Sends Delete character (octal \177) instead
of Backspace | Alt Char | Escape | Er Line | New Line or Line Feed | F1-F5 | (Consult DEC manual for captive meanings) | F6 (Inter/Halt) F7 (Resume) F8 (Cancel) F9 (Main Screen) F10 (Exit) F15-F20 FindSelect Remove Insert Here PrevNext | Inoperative in vt100 mode |
Using an
HP 700/60 Terminal in DEC Mode If you have reason to use an HP 700/60 terminal in DEC-emulation
mode, you might wish to change the operation of the Backspace key.
You can do so by using the HP 700/60 terminal's set-up menu. Enter the Setup menu and proceed to the Keyboard Configuration
menu. Set the Backspace key from Delete to Backspace. Save the Keyboard Configuration. Log out, then log back in again. Your keyboard will
now be set to erase characters correctly.
By default, the backspace key on both DEC terminals and emulation
is configured as DEL, echoes ^? on the screen, and does not erase. To set the
key to erase, execute an stty command as follows: Input the ^ and ? characters as separate keystrokes and be sure
to enclose them in quotation marks. HP 700/60 terminals in VT320 mode uses control-H for backspace. You can set this up in your .profile or .login file. Configuring
the Wyse 60 Terminal Configure the Wyse 60 terminal for use as an HP console by
executing the following set of instructions: Install the hardware, as described in the terminal's manual. Configure HP-UX to use the Wyse 60 terminfo file to communicate with the terminal. To do so,
set the TERM variable to wy60 by executing the following command for Posix or
Korn shell:
Your Wyse 60 terminal is now configured for use as an HP system
terminal. Please be aware that the configuration is based solely
on the Wyse 60 default configuration. If further adjustment is required,
use the terminal values provided in Table 3-5 “Wyse 60 Default Configuration Values ”. Table 3-5 Wyse 60 Default Configuration Values Display F1 | Columns Lines Page
Length Attributes Status Line Scroll
Speed Cursor Answerback Mode Background Screen
Saver Display Cursor Answerback Conceal | 80 24 1*Lines Char Standard Jump Blink
Block Off Dark On On Off | General F2 | Personality Comm mode Data/Printer Rcvd
CR Enhance End-of-Line-Wrap Auto Scroll Monitor Font
Load Send Ack Init Tabs Width
Change Clear | Wy60 Full Duplex Modem/Aux CR On On On Off On On Off Off | Keyboard F3 | Keyclick Return XMT
Limit Wyse Word Keylock Enter Fkey
Xmit Limit Language Key Repeat Corner Key Break Margin
Bell | On CR None Off Caps CR No US On Funct 250
ms Off | Comm F4 | Baud Rate Rcv Handshake Aux
Baud Rate Aux Rcv Handshake Data/Stop Bits XMT
Handshake Aux Data/Stop bits Aux Xmt Handshake Parity XPC
Handshake Aux Parity | 9600 None 9600 DSR 8/1 None 8/1 None None Off None | Misc F5 | Block End Auto Page TVI
955 Attribute VPG0 Blk End Labels Save
Labels Page Edit WPRT Intensity WPRT
Reverse WPRT Underline Test | us/cr Off No
Space None Off Off Off Normal Off Off Off | Tabs F6 | Tabs | (undefined) | Answerback F7 | Answerback | (blank) | FKeys F8 | All FKeys definition | (undefined) | FKey Labels F9 | All FKey labels | (undefined) |
Limitations
to Non-HP Terminal EmulationNon-HP terminal support has limitations to usage, particularly
in the area of keyboard differences. Observe the following: The CUE startup screen will work with
non-HP terminals only if the -T option is used with cuegetty (see cue(1) and cuegetty(1M)
in the HP-UX Reference). All HP terminals use screen buffers for the page-up/Prev
and page-down/Next functions. Non-HP terminals and terminal emulations
do not provide these keys; they rely on applications to handle them.
Wyse 60 Emulation Limitations The Wyse 60 overloads the meaning
of various ASCII control characters. As a result, the behavior of
some control characters may not be as the user expects. Use the DEL key (located next to Backspace) to backspace.
If using HP 700/60 with a PC-AT keyboard in Wyse60 mode, the DEL
key is located in the bottom row of the number pad. Unlike HP terminals, which provide two lines, Wyse
60 terminals provide a single line to display softkey labels. Sometimes,
this may result in truncated softkey labels. For example, the "Help
on Context" label for F1 might appear as "Help on C."
DEC VT-Series Limitations Two different kinds of keyboards are
available for DEC terminals — a DEC/ANSI keyboard with
programmable function (PF) keys and a PC-AT keyboard, which does not
provide programmable function keys. The function keys F1 through F4 on the DEC/ANSI keyboard are
preassigned. Different keys are used for its programmable function
(PF) keys. Certain applications, such as Dialog Manager based applications,
will remap some of the keys. Other commands may or may not have
any keyboard remapping. The DEC PC-AT keyboard does not provide PF1, PF2, PF3, or
PF4 keys. PF4 can be mapped on a DEC PC-AT keyboard to the - key. Table 3-6 “Function Key Mappings ” compares use of function
keys on the DEC/ANSI keyboard, DEC PC-AT keyboard, and an HP keyboard.
(Function keys on Wyse keyboards are consistent with HP keyboards.)
Table 3-6 Function Key Mappings HP or Wyse60 | DEC/ANSI keyboard in VT100 or HP700/60
in VT100 mode | DEC/ANSI keyboard in VT320 or HP700/60
in VT320 mode | DEC PC-AT keyboard |
|---|
F1 | PF2 | PF2 | / key | F2 | PF1 | PF1 | NumLock | F3 | space bar | space bar | space bar | F4 | PF3 | PF3 | * key | F5 | return | F10, [exit] | F5 | F6 | none | none | none | F7 | none | F18 | first unlabeled key to right of Pause/Break | F8 | none | F19 | second unlabeled key to right of Pause/Break |
Many applications use Tab for forward navigation and ShiftTab for backward navigation when moving from one field to
another. Users having DEC terminals or using terminals in DEC emulation
modes will find that these two actions are indistinguishable. Therefore,
you must navigate in a circular fashion to return to a desired field
(that is, Tab forward through the menus). DEC terminals do not support softkey menus; thus,
no such menus are displayed on these terminals.
|