COHERENT manpages

This page displays the COHERENT manpage for ttytype [Select a default terminal type for a port].

List of available manpages
Index


ttytype -- Command

Select a default terminal type for a port
ttytype

The command ttytype selects a default terminal type for a given port.

The default terminal types are recorded in file /etc/ttytype. You must edit
this  file  to  ensure  that  the  default  terminal  types  are  described
correctly.  The following gives a example version of /etc/ttytype:

    ansipc    console    The COHERENT console
    adm3a     com1l      The old Kaypro II
    vt100     com2r      Remote logins

The  first string  gives the  type of  terminal.  This  string must  name a
terminal that is recognized by termcap and terminfo The second string gives
the device  with which  this terminal type  is linked.  The  console device
should  always be  linked to  terminal  type ansipc.  Other devices  can be
linked  to the  type of  terminal  most often  used on  them; on  the above
example, the  user has a Kaypro  II that is wired  into his COHERENT system
via a local  serial port.  ttytype ignores all strings  after the first two
in  each line,  so you  can add  comments to  each entry,  as in  the above
example.

You can use ttytype to set a terminal type automatically at login time.  To
do so, edit the file /etc/profile and replace the line

    export TERM=ansipc

with the command:

    export TERM=`/usr/bin/ttytype`

Files

/etc/ttytype -- File of default terminal types

See Also

commands,
termcap,
terminfo