BSD 1 development
[unix-history] / man6 / ttytype.6
CommitLineData
46d26631
BJ
1.th TTYTYPE VI 11/15/77
2.sh NAME
3ttytype \- indicate (or inquire about) terminal type in system data base
4.sh SYNOPSIS
5.bd ttytype
6[
7.bd \-n
8] [
9[
10.bd \-d
11]
12type
13]
14.sh DESCRIPTION
15The system maintains a data base giving the type of each terminal and the
16home directory of the user logged in on that terminal.
17This information is initialized at login \-
18the terminal type from the
19.it ttytype
20data base,
21and the home directory from the user's entry in the password file.
22.it Ttytype
23can be used to interrogate and change the teletype type portion
24of this information.
25The most common use for
26.it ttytype
27is when using a dial-up port.
28.it Ttytype
29is necessary in this case because the system cannot know the type of
30terminal being used.
31.s3
32The options of
33.it ttytype
34are:
35.s3
36.lp +6 5
37\fB\-d\fR Perform the action implied by the rest of the command
38only if the terminal in use is a dial-up port.
39.s3
40.lp +6 5
41\fB\-n\fR Print the type codes for terminals on this system.
42.s3
43.i0
44If
45.it ttytype
46is given no arguments,
47it prints the type recorded in the data base for this terminal.
48If given a
49.it type
50the type recorded in the data base will be changed to that type.
51Thus to tell the system that you dialed up on an
52\s-2LSI ADM-3A\s0
53you could use the command
54.s3
55.dt
56.bd " ttytype adm3a"
57.s3
58If you frequently dial-up on a
59\s-2DECWRITER\-II\s0
60you could put the command
61.s3
62.dt
63.bd " ttytype \-d decwriter"
64.s3
65in your
66.bd \&.start_up
67file.
68.s3
69The more common types and abbreviations at UC Berkeley are:
70.s3
71.ta .75i 1.5i 2.25i 3i 3.75i
72.nf
73 adm3a 3a
74 adm3 3
75 dw2 decwriter
76 diablo dtc
77 dialup
78 gt40 40
79 gt42 42
80 hazeltine 2000
81 hp2645 2645
82 ti700 ti733 7
83 tty tty33 tty35 teletype
84 unknown u
85.fi
86.s3
87.sh FILES
88/etc/htmp data base
89.br
90/etc/utmp who file
91.br
92/etc/ttycap for \fB\-n\fR option
93.sh "SEE ALSO"
94sethome (VI), htmp (V), tset (VI), htmp (VII)
95.sh AUTHOR
96William Joy
97.sh BUGS