For most effective use of your terminal, HP-UX must know the type
of terminal or graphics display you're using. If no terminal type is
provided, the default value is TERM=hp.
The tset command sets terminal characteristics.
The default local login script prompts you to enter your terminal type
as follows:
Pressing Enter sets the TERM environment variable to hp,
the default value. This value works with Hewlett-Packard terminals, but
it may not let you take full advantage of your terminal or graphics
display features. Entering a different value sets the TERM
environment variable to that value.
Selecting a Value for the TERM Variable |
 |
HP-UX supports many terminal types. The /usr/share/lib/terminfo
database tells HP-UX how to communicate with each terminal type. When
you assign a value to TERM, the value must equal a value in
the terminfo database.
For example, the files listed under /usr/share/lib/terminfo/2
show all acceptable TERM values that begin with 2 (this
is only a partial listing):
ls /usr/share/lib/terminfo/2
2382 2397a 2621a 2623p 2626-x40 2640a
2392 2500 2621k45 2624 2626A 2640b
2392A 2621 2621nl 2624a 2626P 2644
2392a 2621-48 2621nt 2624p 2626a 2645
2393 2621-ba 2621p 2625 2626p 2647
2393A 2621-fl 2621wl 2626 2627 2647F
.
.
.
|
Here are the most common terminal and graphics display settings
for Hewlett-Packard equipment. When more than one choice is listed,
all choices are equivalent.
- If You Are Using a ..
Set TERM to ..
- terminal
the terminal's model number; for example 2622,
hp2622, 262x, or 2392
- Vectra
2392
- medium resolution graphics display (512x600 pixels)
300l or hp300l
- high resolution graphics display (1024x768 pixels)
300h or hp300h
- HP 98550 display station (1280x1024 pixels)
98550, hp98550, 98550a, or hp98550a
- HP 98720 or HP 98721 display station (1280x1024 pixels)
98720, hp98720, 98720a, hp98720a,
98721, hp98721, 98721a, or hp98721a
Setting TERM with the tset Command |
 |
The tset command (with the -s option) sets the value of TERM
and initializes your terminal characteristics. If you always log in
using the same terminal type, you may change your .profile to
eliminate the TERM prompt. Your .profile contains a line
similar to:
eval ` tset -s -Q -m ':?hp' `
|
This command displays the TERM prompt.
To customize the command, replace ?hp with your terminal type.
For example, the following command initializes your
terminal as a high-resolution graphics display (300h), but the
TERM prompt itself does not display:
eval ` tset -s -Q -m ':300h' `
|
If you use more than one type of terminal (such as one at work and one
at home), you can modify your tset command to include multiple
terminal types. See tset(1)
in the HP-UX Reference for more information.