home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  

UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: truss Chapter 2
UNIX Commands
Next: Reference: tsort





] [



Set terminal modes. Without arguments, the terminal is reinitialized according to the TERM environment variable. tset is typically used in startup scripts ( .profile or .login ). type is the terminal type; if preceded by a ? , tset prompts the user to enter a different type, if needed. Press RETURN to use the default value, type . See also reset .



Print terminal name on standard output; useful for passing this value to TERM.

-e c

Set erase character to c ; default is ^H (backspace).

-i c

Set interrupt character to c (default is ^C).


Do not output terminal initialization setting.

-k c

Set line-kill character to c (default is ^U).

-m[ port [ baudrate ] : tty ]

Declare terminal specifications. port is the port type (usually dialup or plugboard ). tty is the terminal type; it can be preceded by ? as above. baudrate checks the port speed and can be preceded by any of these characters:


Port must be greater than baudrate .


Port must be less than baudrate .


Port must transmit at baudrate .


Negate a subsequent > , < , or @ character.


Initialize new tty driver modes. Useless because of redundancy with stty new .


Do not print "Erase set to" and "Kill set to" messages.


Report the terminal type.


Return the values of TERM assignments to shell environment. This is a commonly done via eval \`tset -s\` (in the C shell, you would surround this with the commands set noglob and unset noglob ).


Set TERM to wy50 :

eval `tset -s wy50`

Prompt user for terminal type (default will be vt100 ):

eval `tset -Qs -m '?vt100'`

Similar to above, but the baudrate must exceed 1200:

eval `tset -Qs -m '>1200:?xterm'`

Set terminal via modem; the ?$TERM checks that the terminal type is set (C shell only):

eval `tset -s -m dialup:'?vt100' "?$TERM"`

Previous: Reference: truss UNIX in a Nutshell: System V Edition Next: Reference: tsort
Reference: truss Book Index Reference: tsort

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System