Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tset(1) — Dell System V Release 4 Issue 2.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stty(1)

termcap(1)

tty(1)



tset(1)        UNIX System V(Application Compatibility Package)         tset(1)


NAME
      tset - provide information for setting terminal modes

SYNOPSIS
      tset [options] [type]

DESCRIPTION
      tset allows the user to set a terminal's ERASE and KILL characters, and
      define the terminal's type and capabilities by creating values for the
      TERM and TERMCAP environment variables.  If a type is given with the -s
      option, tset creates information for a terminal of the specified type.
      The type may be any type given in /usr/share/lib/termcap.  If the type is
      not specified with the -s option, tset creates information for a terminal
      of the type defined by the value of the environment variable, TERM unless
      the -h or -m option is given.  If the TERM variable is undefined, tset
      looks in /usr/share/lib/termcap for the appropriate information.  If
      these options are used, tset searches the /etc/ttytype file for the
      terminal type corresponding to the current serial port; it then creates
      information for a terminal based on this type.  If the serial port is not
      found in /etc/ttytype, the terminal type is set to dumb.

      tset displays the created information on the standard output.  The
      information is in a form that can be used to set the current environment
      variables.  The exact form depends on the login shell from which tset was
      invoked.  The examples below illustrate how to use this information to
      change the variables.

      The following options are valid:

      -e[c]   Sets the ERASE character to [c] on all terminals.  The default
              setting is BACKSPACE, or CTRL-H.

      -E[c]   Identical to the -e optino except that it only operates on
              terminals that can backspace.

      -k[c]   Sets the KILL character to c, defaulting to CTRL-U.

      -       Prints the terminal type on the standard output.

      -s      Outputs the ``setenv'' commands [for csh(1)], or ``export'' and
              assignment commands [for sh(1)].  The type of commands are
              determined by the user's login shell.

      -S      Only outputs the strings to be placed in the environment
              variables.

      -r      Prints the terminal type on the diagnostic output.

      -Q      Suppresses the printing of the ``Erase set to'' and ``Kill set
              to'' messages.




10/89                                                                    Page 1







tset(1)        UNIX System V(Application Compatibility Package)         tset(1)


      -I      Suppresses printing of the terminal initialization strings.

      tset is most useful when included in the .login [for csh] or .profile
      [for sh] file executed automatically at login, with -m option is given,
      the first correct mapping prevails.

EXAMPLES
            tset gt42
            tset - mdialup>300:adm3a-mdialup:dw2-Qr-e#
            tset -mdial:ti733-mplug:?hp2621-munknown:?-e-k^U

      To use the information created by the -s option for the Bourne shell,
      (sh), repeat these commands:
            tset -s...>/tmp/tset$$
            /tmp/tset$$
            rm/tmp/tset$$

      To use the information for csh, use:
            set noglob
            set term=(`tset-S...')
            setenv TERM$term[1]
            setenv TERMCAP"$term[2]"
            unset term
            unset noglob

FILES
      /usr/share/lib/termcap        Terminal capability database.

SEE ALSO
      stty(1), termcap(1), tty(1)
























Page 2                                                                    10/89





Typewritten Software • bear@typewritten.org • Edmonds, WA 98026