APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed


Set and initialize terminal type. Not entirely useless nowadays, though when dumb terminals were more common, so was this. You'd have a tset line in your .profile:

eval `tset -m vt100:vt100 -m
ansi:${TERM:-ansi} -m :\?${TERM:-ansi}
-e -r -s -Q`

If your terminal was not known (either from /etc/ttytype or from the TERM environment variable), that line would cause you to be prompted with

TERM = (ansi)

What's happening there is that the "tset" program in your .profile is telling you that it will assume you are an "ansi" terminal unless you tell it differently. Ordinarily you would just hit ENTER to accept "ansi", but you could type "wyse60" or "vt100" or any other valid terminal name if you were not, in fact, using an ansi terminal.

Tset would then output the proper initialization strings for your terminal.

See Termcap and Terminfo for more. -

Got something to add? Send me email.

Increase ad revenue 50-250% with Ezoic

More Articles by

Find me on Google+

© Tony Lawrence

Kerio Samepage

Have you tried Searching this site?

Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us