Commit | Line | Data |
---|---|---|
88d0a458 KT |
1 | .th STTY II 8/5/73 |
2 | .sh NAME | |
3 | stty \*- set mode of typewriter | |
4 | .sh SYNOPSIS | |
5 | (stty = 31.) | |
6 | .br | |
7 | (file descriptor in r0) | |
8 | .br | |
9 | .ft B | |
10 | sys stty; arg | |
11 | .br | |
12 | .li | |
13 | ... | |
14 | .br | |
15 | arg: speed; 0; mode | |
16 | .s3 | |
17 | .nf | |
18 | stty(fildes, arg) | |
19 | int arg[3]; | |
20 | .fi | |
21 | .ft R | |
22 | .s3 | |
23 | .sh DESCRIPTION | |
24 | .it Stty | |
25 | sets mode bits and character speeds for the typewriter whose file descriptor | |
26 | is passed in r0 (resp. is the first argument to the call). | |
27 | First, the system delays until the typewriter is quiescent. | |
28 | Then the speed and general handling of the | |
29 | input side of the typewriter is set from | |
30 | the low byte of the first word of the | |
31 | .it arg, | |
32 | and the speed of the output side is set from the | |
33 | high byte of the first word of the | |
34 | .it arg. | |
35 | The speeds are selected from the following table. | |
36 | This table corresponds to the | |
37 | speeds supported by the DH-11 interface. | |
38 | The starred entries are those speeds actually supported | |
39 | by the DC-11 interfaces actually present; | |
40 | if a non-starred speed is selected, it will be ignored and | |
41 | the present speed left unchanged. | |
42 | .s3 | |
43 | .lp +8 4 | |
44 | 0 (turn off device) | |
45 | .lp +8 4 | |
46 | 1 50 baud | |
47 | .lp +8 4 | |
48 | 2 75 baud | |
49 | .lp +8 4 | |
50 | 3 110 baud | |
51 | .lp +8 4 | |
52 | 4* 134.5 baud | |
53 | .lp +8 4 | |
54 | 5* 150 baud | |
55 | .lp +8 4 | |
56 | 6 200 baud | |
57 | .lp +8 4 | |
58 | 7* 300 baud | |
59 | .lp +8 4 | |
60 | 8 600 baud | |
61 | .lp +8 4 | |
62 | 9* 1200 baud | |
63 | .lp +8 4 | |
64 | 10 1800 baud | |
65 | .lp +8 4 | |
66 | 11 2400 baud | |
67 | .lp +8 4 | |
68 | 12 4800 baud | |
69 | .lp +8 4 | |
70 | 13 9600 baud | |
71 | .lp +8 4 | |
72 | 14 External A | |
73 | .lp +8 4 | |
74 | 15 External B | |
75 | .s3 | |
76 | .i0 | |
77 | In the current configuration, | |
78 | only 150 and 300 baud are really supported, | |
79 | in that the code conversion and line control required for | |
80 | 2741's (134.5 baud) | |
81 | must be implemented by the user's | |
82 | program, | |
83 | and the half-duplex line discipline | |
84 | required for the 202 dataset (1200 baud) | |
85 | is not supplied. | |
86 | .s3 | |
87 | The | |
88 | second word of the | |
89 | .it arg | |
90 | is currently unused and is available for expansion. | |
91 | .s3 | |
92 | The third word of the | |
93 | .it arg | |
94 | sets the | |
95 | .it mode. | |
96 | It | |
97 | contains several bits which determine the | |
98 | system's treatment of the typewriter: | |
99 | .s3 | |
100 | .lp +12 5 | |
101 | 10000 no delays after tabs (e.g. TN 300) | |
102 | .lp +12 5 | |
103 | 200 even parity allowed on input (e. g. for M37s) | |
104 | .lp +12 5 | |
105 | 100 odd parity allowed on input | |
106 | .lp +12 5 | |
107 | 040 raw mode: wake up on all characters | |
108 | .lp +12 5 | |
109 | 020 map CR into LF; echo LF or CR as CR-LF | |
110 | .lp +12 5 | |
111 | 010 echo (full duplex) | |
112 | .lp +12 5 | |
113 | 004 map upper case to lower on input (e. g. M33) | |
114 | .lp +12 5 | |
115 | 002 echo and print tabs as spaces | |
116 | .lp +12 5 | |
117 | 001 inhibit all function delays (e. g. CRTs) | |
118 | .i0 | |
119 | .s3 | |
120 | Characters with the wrong parity, as determined by bits 200 and | |
121 | 100, are ignored. | |
122 | .s3 | |
123 | In raw mode, every character is passed back immediately | |
124 | to the program. No erase or kill processing is done; | |
125 | the end-of-file character (EOT), the interrupt character | |
126 | (DELETE) and the quit character (FS) are not treated specially. | |
127 | .s3 | |
128 | Mode 020 causes input carriage returns to be turned into | |
129 | new-lines; | |
130 | input of either CR or LF causes LF-CR both to | |
131 | be echoed | |
132 | (used for GE TermiNet 300's and other terminals without the newline function). | |
133 | .sh "SEE ALSO" | |
134 | stty(I), gtty(II) | |
135 | .sh DIAGNOSTICS | |
136 | The error bit | |
137 | (c-bit) is set if the file descriptor does not refer to a type\ 6writer. | |
138 | From C, a negative value indicates an error. |