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