FYI tset and ttytype

James A. Wheeler jaws at
Sat May 11 03:22:42 AEST 1991

In /etc/profile I found this:
#The following line (if uncommented) will set TERM and TERMCAP (see ttytype)
# eval `tset -Q -s `

Having used tset at work, I thought I'd like to have it at home. 
The following is a description of how to setup for using it.
If you want to use tset(1) you should establish a file named /etc/ttytype
In that file you define the terminal type that is attached to the port.
The format of /etc/ttytype is a series of lines that define what
terminal is on each port. Here is an example:

$cat /etc/ttytype
vt100 tty000
dialup ph1

This says I have a vt100 attached to /dev/tty000, (actually my 6300 running
Kermit), and that the internal modem may have any type of terminal.

With "/etc/ttytype" setup, you can then alter the "tset" in /etc/profile.

Here is how mine is set

eval `tset -Q -s  -e'^h' -k'^u' -m 'dialup:?vt100'`

The options I'm using are:
        -Q  Quiet ( don't announce what the erase and Kill chars are.)
	-s  set the TERM and TERMCAP in the environment
	-e  The erase character
	-k  The kill character
	-m  map according to entry in /etc/ttytype for this port.
	    If they're on tty000, offer a default of vt100.

This will prompt the user to enter their terminal name, and supply them
with a default of vt100.  The prompt will look like this:

TERM = (vt100)

If the user just enters a <cr> then $TERM will be set to vt100, or of
course they may enter any other terminal name and it will be assigned to

Just thought you'd like to know . . . . 
 U.S.snail      --OR--      electronic speed 
 J.A. Wheeler           (jim.wheeler at  | Spread the word:
 CRAY Research, Inc.    (713)-297-7834 		|
 5 Post Oak Park        (800)-283-8998 		|"Chili:  Not just for
 suite 1960             (713)-968-1619  FAX     |  for breakfast, any more"
 Houston, Tx. 77027      

More information about the Comp.sys.3b1 mailing list