Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ttytype(VI) — UNIX 1BSD

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sethome (VI)

htmp (V)

tset (VI)

htmp (VII)

TTYTYPE(VI)  −  PWB/UNIX 11/15/77

NAME

ttytype − indicate (or inquire about) terminal type in system data base

SYNOPSIS

ttytype [ −n ] [ [ −d ] type ]

DESCRIPTION

The system maintains a data base giving the type of each terminal and the home directory of the user logged in on that terminal.  This information is initialized at login − the terminal type from the ttytype data base, and the home directory from the user’s entry in the password file.  Ttytype can be used to interrogate and change the teletype type portion of this information.  The most common use for ttytype is when using a dial-up port.  Ttytype is necessary in this case because the system cannot know the type of terminal being used.  The options of ttytype are:

−dPerform the action implied by the rest of the command only if the terminal in use is a dial-up port. 

−nPrint the type codes for terminals on this system. 

If ttytype is given no arguments, it prints the type recorded in the data base for this terminal.  If given a type the type recorded in the data base will be changed to that type.  Thus to tell the system that you dialed up on an LSI ADM-3A you could use the command "ttytype adm3a" If you frequently dial-up on a DECWRITER−II you could put the command "ttytype −d decwriter" in your .start_up file.  The more common types and abbreviations at UC Berkeley are:

adm3a3a
adm33
dw2decwriter
diablodtc
dialup
gt4040
gt4242
hazeltine2000
hp26452645
ti700ti7337
ttytty33tty35teletype
unknownu

FILES

/etc/htmpdata base
/etc/utmpwho file
/etc/ttycapfor −n option

SEE ALSO

sethome (VI), htmp (V), tset (VI), htmp (VII)

AUTHOR

William Joy

BUGS

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