1 | .. comment SPDX-License-Identifier: CC-BY-SA-4.0 |
---|
2 | |
---|
3 | Device- and Class-Specific Functions |
---|
4 | #################################### |
---|
5 | |
---|
6 | General Terminal Interface |
---|
7 | ========================== |
---|
8 | |
---|
9 | Interface Characteristics |
---|
10 | ------------------------- |
---|
11 | |
---|
12 | Opening a Terminal Device File |
---|
13 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
14 | |
---|
15 | Process Groups (TTY) |
---|
16 | ~~~~~~~~~~~~~~~~~~~~ |
---|
17 | |
---|
18 | The Controlling Terminal |
---|
19 | ~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
20 | |
---|
21 | Terminal Access Control |
---|
22 | ~~~~~~~~~~~~~~~~~~~~~~~ |
---|
23 | |
---|
24 | Input Processing and Reading Data |
---|
25 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
26 | |
---|
27 | Canonical Mode Input Processing |
---|
28 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
29 | |
---|
30 | Noncanonical Mode Input Processing |
---|
31 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
32 | |
---|
33 | - Case A - MIN > 0 and TIME > 0 |
---|
34 | |
---|
35 | - Case B - MIN > 0 and TIME = 0 |
---|
36 | |
---|
37 | - Case C - MIN = 0 and TIME > 0 |
---|
38 | |
---|
39 | - Case D - MIN = 0 and TIME = 0 |
---|
40 | |
---|
41 | Writing Data and Output Processing |
---|
42 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
43 | |
---|
44 | Special Characters |
---|
45 | ~~~~~~~~~~~~~~~~~~ |
---|
46 | |
---|
47 | .. code:: c |
---|
48 | |
---|
49 | INTR, Constant, Implemented |
---|
50 | QUIT, Constant, Implemented |
---|
51 | ERASE, Constant, Implemented |
---|
52 | KILL, Constant, Implemented |
---|
53 | EOF, Constant, Implemented |
---|
54 | NL, Constant, Implemented |
---|
55 | EOL, Constant, Implemented |
---|
56 | SUSP, Constant, Implemented |
---|
57 | STOP, Constant, Implemented |
---|
58 | START, Constant, Implemented |
---|
59 | CR, Constant, Implemented |
---|
60 | |
---|
61 | Modem Disconnect |
---|
62 | ~~~~~~~~~~~~~~~~ |
---|
63 | |
---|
64 | Closing a Terminal Device File |
---|
65 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
66 | |
---|
67 | Parameters That Can Be Set |
---|
68 | -------------------------- |
---|
69 | |
---|
70 | termios Structure |
---|
71 | ~~~~~~~~~~~~~~~~~ |
---|
72 | |
---|
73 | .. code:: c |
---|
74 | |
---|
75 | tcflag_t, Type, Implemented |
---|
76 | cc_t, Type, Implemented |
---|
77 | struct termios, Type, Implemented |
---|
78 | |
---|
79 | Input Modes |
---|
80 | ~~~~~~~~~~~ |
---|
81 | |
---|
82 | .. code:: c |
---|
83 | |
---|
84 | BRKINT, Constant, Implemented |
---|
85 | ICRNL, Constant, Implemented |
---|
86 | IGNBREAK, Constant, Unimplemented |
---|
87 | IGNCR, Constant, Implemented |
---|
88 | IGNPAR, Constant, Implemented |
---|
89 | INLCR, Constant, Implemented |
---|
90 | INPCK, Constant, Implemented |
---|
91 | ISTRIP, Constant, Implemented |
---|
92 | IXOFF, Constant, Implemented |
---|
93 | IXON, Constant, Implemented |
---|
94 | PARMRK, Constant, Implemented |
---|
95 | |
---|
96 | Output Modes |
---|
97 | ~~~~~~~~~~~~ |
---|
98 | |
---|
99 | .. code:: c |
---|
100 | |
---|
101 | OPOST, Constant, Implemented |
---|
102 | |
---|
103 | Control Modes |
---|
104 | ~~~~~~~~~~~~~ |
---|
105 | |
---|
106 | .. code:: c |
---|
107 | |
---|
108 | CLOCAL, Constant, Implemented |
---|
109 | CREAD, Constant, Implemented |
---|
110 | CSIZE, Constant, Implemented |
---|
111 | CS5, Constant, Implemented |
---|
112 | CS6, Constant, Implemented |
---|
113 | CS7, Constant, Implemented |
---|
114 | CS8, Constant, Implemented |
---|
115 | CSTOPB, Constant, Implemented |
---|
116 | HUPCL, Constant, Implemented |
---|
117 | PARENB, Constant, Implemented |
---|
118 | PARODD, Constant, Implemented |
---|
119 | |
---|
120 | Local Modes |
---|
121 | ~~~~~~~~~~~ |
---|
122 | |
---|
123 | .. code:: c |
---|
124 | |
---|
125 | ECHO, Constant, Implemented |
---|
126 | ECHOE, Constant, Implemented |
---|
127 | ECHOK, Constant, Implemented |
---|
128 | ECHONL, Constant, Implemented |
---|
129 | ICANON, Constant, Implemented |
---|
130 | IEXTEN, Constant, Implemented |
---|
131 | ISIG, Constant, Implemented |
---|
132 | NOFLSH, Constant, Implemented |
---|
133 | TOSTOP, Constant, Implemented |
---|
134 | |
---|
135 | Special Control Characters |
---|
136 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
137 | |
---|
138 | .. code:: c |
---|
139 | |
---|
140 | VEOF, Constant, Implemented |
---|
141 | VEOL, Constant, Implemented |
---|
142 | VERASE, Constant, Implemented |
---|
143 | VINTR, Constant, Implemented |
---|
144 | VKILL, Constant, Implemented |
---|
145 | VQUIT, Constant, Implemented |
---|
146 | VSUSP, Constant, Implemented |
---|
147 | VSTART, Constant, Implemented |
---|
148 | VSTOP, Constant, Implemented |
---|
149 | VMIN, Constant, Implemented |
---|
150 | VTIME, Constant, Implemented |
---|
151 | |
---|
152 | Baud Rate Values |
---|
153 | ---------------- |
---|
154 | |
---|
155 | .. code:: c |
---|
156 | |
---|
157 | B0, Constant, Implemented |
---|
158 | B50, Constant, Implemented |
---|
159 | B75, Constant, Implemented |
---|
160 | B110, Constant, Implemented |
---|
161 | B134, Constant, Implemented |
---|
162 | B150, Constant, Implemented |
---|
163 | B200, Constant, Implemented |
---|
164 | B300, Constant, Implemented |
---|
165 | B600, Constant, Implemented |
---|
166 | B1200, Constant, Implemented |
---|
167 | B1800, Constant, Implemented |
---|
168 | B2400, Constant, Implemented |
---|
169 | B4800, Constant, Implemented |
---|
170 | B9600, Constant, Implemented |
---|
171 | B19200, Constant, Implemented |
---|
172 | B38400, Constant, Implemented |
---|
173 | |
---|
174 | Baud Rate Functions |
---|
175 | ~~~~~~~~~~~~~~~~~~~ |
---|
176 | |
---|
177 | .. code:: c |
---|
178 | |
---|
179 | cfgetospeed(), Function, Implemented |
---|
180 | cfsetospeed(), Function, Implemented |
---|
181 | cfgetispeed(), Function, Implemented |
---|
182 | cfsetispeed(), Function, Implemented |
---|
183 | TCIFLUSH, Constant, Implemented |
---|
184 | TCOFLUSH, Constant, Implemented |
---|
185 | TCIOFLUSH, Constant, Implemented |
---|
186 | TCOOFF, Constant, Implemented |
---|
187 | TCOON, Constant, Implemented |
---|
188 | TCIOOFF, Constant, Implemented |
---|
189 | TCIOON, Constant, Implemented |
---|
190 | |
---|
191 | General Terminal Interface Control Functions |
---|
192 | ============================================ |
---|
193 | |
---|
194 | Get and Set State |
---|
195 | ----------------- |
---|
196 | |
---|
197 | .. code:: c |
---|
198 | |
---|
199 | tcgetattr(), Function, Implemented |
---|
200 | tcsetattr(), Function, Implemented |
---|
201 | |
---|
202 | Line Control Functions |
---|
203 | ---------------------- |
---|
204 | |
---|
205 | .. code:: c |
---|
206 | |
---|
207 | tcsendbreak(), Function, Dummy Implementation |
---|
208 | tcdrain(), Function, Implemented |
---|
209 | tcflush(), Function, Dummy Implementation |
---|
210 | tcflow(), Function, Dummy Implementation |
---|
211 | |
---|
212 | Get Foreground Process Group ID |
---|
213 | ------------------------------- |
---|
214 | |
---|
215 | .. code:: c |
---|
216 | |
---|
217 | tcgetprgrp(), Function, Implemented, SUSP |
---|
218 | |
---|
219 | Set Foreground Process Group ID |
---|
220 | ------------------------------- |
---|
221 | |
---|
222 | .. code:: c |
---|
223 | |
---|
224 | tcsetprgrp(), Function, Dummy Implementation |
---|
225 | |
---|
226 | .. COMMENT: COPYRIGHT (c) 1988-2002. |
---|
227 | |
---|
228 | .. COMMENT: On-Line Applications Research Corporation (OAR). |
---|
229 | |
---|
230 | .. COMMENT: All rights reserved. |
---|
231 | |
---|