tset man page on Xenix

Man page or keyword search:  
man Server   1130 pages
apropos Keyword Search (all sections)
Output format
Xenix logo
[printable version]



     TSET(C)		      XENIX System V		       TSET(C)

     Name
	  tset - Sets terminal modes.

     Syntax
	  tset [ - ] [ -hrsuIQS ] [ -e[c] ] [ -E[c] ] [ -k[c] ]
	  [ -m [ident] [test baudrate ]:type ] [ type ]

     Description
	  tset causes terminal dependent processing such as setting
	  erase and kill characters, setting or resetting delays, and
	  the like.  It is driven by the /etc/ttytype and /etc/termcap
	  files.

	  The type of terminal is specified by the type argument.  The
	  type may be any type given in /etc/termcap. If type is not
	  specified, the terminal type is the value of the environment
	  variable TERM, unless the -h flag is set or any -m argument
	  is given.  In this case, the type is read from /etc/ttytype
	  (the port name to terminal type database).  The port name is
	  determined by a ttyname(S) call on the diagnostic output.
	  If the port is not found in /etc/ttytype the terminal type
	  is set to unknown.

	  Ports for which the terminal type is indeterminate are
	  identified in /etc/ttytype as dialup, plugboard, etc.	 The
	  user can specify how these identifiers should map to an
	  actual terminal type.	 The mapping flag, -m, is followed by
	  the appropriate identifier (a four-character or longer
	  substring is adequate), an optional test for baud rate, and
	  the terminal type to be used if the mapping conditions are
	  satisfied.  If more than one mapping is specified, the first
	  correct mapping prevails.  A missing identifier matches all
	  identifiers.	Baud rates are specified as with stty(C), and
	  are compared with the speed of the diagnostic output.	 The
	  test may be any combination of:  >, =, <, @, and !. (Note:
	  @ is a synonym for = and ! inverts the sense of the test.
	  Remember that escape characters are meaningful to the
	  shell.)

	  If the type as determined above begins with a question mark,
	  the user is asked if he really wants that type.  A null
	  response means to use that type; otherwise, another type can
	  be entered which will be used instead.  (The question mark
	  must be escaped to prevent filename expansion by the shell.)

	  tset is most useful when included in the .login (for csh(C))
	  or .profile (for sh(C)) file executed automatically at
	  login, with -m mapping used to specify the terminal type you
	  most frequently dial in on.

     Options
	  -e   This option sets the erase character to the named

     Page 1					      (printed 2/7/91)

     TSET(C)		      XENIX System V		       TSET(C)

	       character, c, with c defaulting to Ctrl-H.

	  -E   This flag is identical to -e except that it only
	       operates on terminals that can backspace.

	  -k   This option sets the kill character to the named
	       character, c, with c defaulting to Ctrl-U.  In all of
	       these flags, ``^X'' where X is any character is
	       equivalent to Ctrl-X .

	  -    This option prints the terminal type on the standard
	       output; this can be used to get the terminal type by
	       entering:

		    set termtype = `tset -`

	       If no other options are given, tset operates in ``fast
	       mode'' and only outputs the terminal type, bypassing
	       all other processing.

	  -h   Forces tset to search /etc/ttytype for information and
	       to overlook the environment variable, TERM.

	  -s   This option outputs ``setenv'' commands (if your
	       default shell is csh(C) or ``export'' and assignment
	       commands (if your default shell is sh(C));

	       For the -s option with the Bourne shell, enter:

		    tset -s ... > /tmp/tset$$
		    ./tmp/tset$$
		    rm /tmp/tset$$

	  -S   This option only outputs the strings to be placed in
	       the environment variables.

	       If you are using csh, enter:
		    set noglob
		    set term=('tset -S ....')
		    setenv TERM $term[1]
		    setenv TERMCAP "$term[2]"
		    unset term
		    unset noglob

	  -r   This option displays the terminal type on the
	       diagnostic output.

	  -Q   This option suppresses displaying the ``Erase set to''
	       and ``Kill set to'' messages.

	  -I   This option suppresses outputting the terminal

     Page 2					      (printed 2/7/91)

     TSET(C)		      XENIX System V		       TSET(C)

	       initialization strings.

	  -m[ident][test baudrate]:type
	       Allows a user to specify how a given serial port is is
	       to be mapped to an actual terminal type.	 The option
	       applies to any serial port in /etc/ttytype whose type
	       is indeterminate (e.g., dialup, etc.).  The type
	       specifies the terminal type to be used, and ident
	       identifies the name of the indeterminate type to be
	       matched.	 If no ident is given, all indeterminate types
	       are matched.  The test baudrate defines a test to be
	       performed on the serial port before the type is
	       assigned.  The baudrate must be as defined in stty(C).
	       The test may be any combination of:  >, =, <, @, and !.
	       If the type begins with a question mark, the user is
	       asked if he really wants that type.  A null response
	       means to use that type; otherwise, another type can be
	       entered which will be used instead.  The question mark
	       must be escaped to prevent filename expansion by the
	       shell.  If more than one -m option is given, the first
	       correct mapping prevails.

	  tset is most useful when included in the .login [for csh(C)]
	  or .profile [for sh(C)] file executed automatically at
	  login, with -m mapping used to specify the terminal type you
	  most frequently dial in on.

     Examples
	  tset gt42

	       Sets the terminal type to gt42.

	  tset -mdialup\>300:adm3a -mdialup:dw2 -Qr -e#

	       If the entry in /etc/ttytype corresponding to the login
	       port is ``dialup'', and the port speed is greater than
	       300 baud, set the terminal type to adm3a.  If the
	       /etc/ttytype entry is ``dialup'' and the port speed is
	       less than or equal to 300 baud, set the terminal type
	       to dw2.	Set the erase character to ``#'', and display
	       the terminal type (but not the erase character) on
	       standard error.

	  tset -m dial:ti733 -m plug:\?hp2621 -m unknown:\? -e -k^U

	       If the /etc/ttytype entry begins with ``dial'', the
	       terminal type becomes ti733.  If the entry begins with
	       ``plug'', tset prompts with:

		    TERM = (hp2621)

	       Enter the correct terminal type if it is different than

     Page 3					      (printed 2/7/91)

     TSET(C)		      XENIX System V		       TSET(C)

	       that shown.  If the entry is ``unknown'', tset prompts
	       with:

		    TERM = (unknown)

	       In any case, erase is set to the terminal's backspace
	       character, the kill character is set to Ctrl-U, and the
	       terminal type is displayed on standard error.

     Files
	  /etc/ttytype	 Port name to terminal type map database

	  /etc/termcap	 Terminal capability database

     See Also
	  tty(M), termcap(M), stty(C)

     Credit
	  This utility was developed at the University of California
	  at Berkeley and is used with permission.

     Page 4					      (printed 2/7/91)

[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Xenix

List of man pages available for Xenix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net