1 03/11/76 set_tty, stty
2
3 Function: The set_tty command specifies properties of the user's
4 terminal. It is needed only in those rare cases when Multics does not
5 recognize the terminal being used at login.
6
7
8 Syntax: set_tty -control_args
9
10
11 where control_args may be chosen from the following control arguments:
12
13 -terminal_type XX, causes the user's terminal type to be set
14 -ttp XX to device type XX, where XX can be any one of
15 the following:
16
17 TTY37, tty37 device similar to Teletype
18 Model 37
19 TTY33, tty33 device similar to Teletype
20 Model 33 or 35
21 TTY38, tty38 device similar to Teletype
22 Model 38
23 TN300, tn300 device similar to GE TermiNet
24 300 or 1200
25
26 The default modes for the new terminal type
27 are turned on.
28
29 -modes XX sets the modes for terminal I/O according to
30 XX, which is a string of mode names separated
31 by commas, each one optionally preceded by "^"
32 to turn the specified mode off. A subset of
33 modes the DFAST user may need to set are given
34 below. Other modes are, however, supported.
35 A full set of modes is printed with the -print
36 control argument. Valid mode names are:
37
38 ll_^Hn where _^Hn is an integer
39 10 <= N >= 255 specifying the
40 length in character positions
41 of a terminal line.
42 crecho, crecho specifies that a
43 ^crecho carriage return is to be echoed
44 when the user types linefeed
45 ^crecho turns this mode off.
46 lfecho, lfecho specifies that a
47 ^lfecho line feed is to
48 be echoed when a carriage
49 return is typed ^lfecho turns
50 this mode off.
51 tabecho specifies that the appropriate
52 ^tabecho number of blanks are to be
53 echoed when a tab is typed.
54
55 Modes not specified in XX are left unchanged.
56 See "Notes" below.
57
58 -reset turns off all modes that are not specifically
59 set by the default modes string for the
60 current terminal type.
61
62 -tabs specifies that the device has
63 software-settable tabs, and that the tabs are
64 to be set. This control argument currently has
65 effect only for GE TermiNet 300-like devices.
66
67 -print causes the terminal type and a complete set of
68 modes to be printed on the terminal. If any
69 other control arguments are specified, the
70 type and modes printed reflect the result of
71 the command.
72
73
74 Notes:
75
76 The set_tty command performs the following steps in the specified
77 order:
78
79
80 1. If the -terminal_type control argument is specified, set the
81 specified device type and turn on the default modes for that
82 type.
83
84 2. If the -reset control argument is specified, turn off all
85 modes that are not set in the default modes string for the
86 current terminal type.
87
88 3. If the -modes control argument is specified, turn on or off
89 those modes explicitly specified.
90
91 4. If the -tabs control argument is specified, and the terminal
92 has settable tabs, set the tabs.
93
94 5. If the -print control argument is specified, print the type
95 and modes on the terminal.
96
97
98 Examples:
99
100 In the following example, a user of a TermiNet 300 with tabs
101 establishes his terminal type.
102
103
104 ! set_tty -terminal_type tn300 -tabs -reset
105
106
107 In the next example, the user wants to use the linefeed key on his
108 terminal for the newline character instead of the carriage return key.
109 After the change, the user will type linefeed and the terminal will
110 echo with carriage return so the carriage will be positioned for the
111 next line.
112
113
114 ! set_tty -modes crecho
115
116
117 In the next example the user changes the line length to 60 characters.
118 Lines that are longer than 60 characters will be continued on the
119 following line. Lines that are continued will begin with "\c".
120
121
122 ! set_tty -modes ll60