Link to home
Start Free TrialLog in
Avatar of maliksl4141
maliksl4141

asked on

set term

Hi..

 what is the purpose of doing this;

 set term=vt100, export term;

 tq
 newbie
Avatar of jlevie
jlevie

That tells applications that might be run from that session that the current terminal type is the same as a VT100. This is important for text (not GUI) apps that use curses for screen manipulation. By knowing the terminal type they can emit control codes and escape sequences to control the appearance of the screen. Some applications also use that information to control mapping of function keys and/or the keypad.
Avatar of maliksl4141

ASKER

what are  other choices other than
vt=100

tq
It's way too many to list here. You can see the names of the common types by looking at the files in the terminfo database, either /usr/lib/terminfo/*/* or /usr/share/terminfo/*/*. I'm not in front of a Solaris box right now and don't remember which.

What matters is that you have the correct term setting for whatever terminal you are using. When using a local terminal (either a real terminal or a terminal emulator) that looks like a VT100 you'd need term=vt100. If you were on a Sun console you'd need term-sun, and so forth.
Correction on the path to the terminfo files. On Solaris it's /usr/share/lib/terminfo. And there's some 1670 terminal types on a Solaris 8 system.
one more q

 how to know what term i'm currently use.

  tq
  newbie
ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
tq
it helps me