📄 tty.4
字号:
993(nt)S1045(tr)S1075(ro)S1111(ol)S1163(l)S1218(M)S1220(Mo)S1311(od)S1363(de)S1415(es)S1462(s)S1080 V1080(The)S10 B1262(c_c\257ag)S10 R1583(\256eld)S1787(contains)S2147(the)S2295(following)S2711(single)S2976(bit)S3107(\257ags)S3322(and)S3492(bit)S3623(\256eld)S3827(for)S3970(basic)S4202(hardware)S4603(control:)S1248 V10 B1080(CLOCAL)S1368 V10 R(Ignore)263 1440 A1728(modem)S2054(status)S2308(lines.)S1536 V10 B1080(CREAD)S1656 V10 R1440(Enable)S(receiver.)351 1745 A2146(\(The)S(receiver)326 2362 A2713(is)S2805(always)S3110(enabled.\))S1824 V10 B1080(CSIZE)S10 R1440(Number)S1799(of)S1912(bits)S2087(per)S2246(byte.)S10 B2499(CSIZE)S10 R2831(masks)S3112(off)S3260(the)S3413(values)S10 B3700(CS5)S10 R3879(,)S10 B3934(CS6)S10 R4113(,)S10 B4168(CS7)S10 R4377(and)S10 B4552(CS8)S10 R4761(that)S4942(indicate)S1944 V1440(that)S1616(5,)S1716(6,)S1816(7)S1891(or)S2000(8)S2075(bits)S2245(are)S2394(used.)S2112 V10 B1080(CSTOPB)S2232 V10 R1440(Send)S1666(two)S1842(stop)S2034(bits)S2204(instead)S2514(of)S2623(one.)S2843(Two)S3053(stop)S3245(bits)S3415(are)S3564(normally)S3952(used)S4161(at)S(110)150 4259 A4434(baud)S4654(or)S4763(less.)S2400 V10 B1080(PARENB)S2520 V10 R1440(Enable)S1745(parity)S2005(generation.)S2688 V10 B1080(PARODD)S2808 V10 R1440(Generate)S(odd)150 1830 A2005(parity)S2265(if)S2352(parity)S2612(is)S2704(generated,)S3146(otherwise)S3563(even)S3778(parity.)S2976 V10 B1080(HUPCL)S3096 V10 R1440(Drop)S1672(the)S1820(modem)S2146(control)S2456(lines)S2671(on)S2796(the)S2944(last)S3109(close)S3341(of)S3450(the)S3598(terminal)S3959(line.)S4185(\(Not)S4395(implemented.\))S3264 V870(L)S872(Lo)S936(oc)S988(ca)S1035(al)S1082(l)S1137(M)S1139(Mo)S1230(od)S1282(de)S1334(es)S1381(s)S3384 V1080(The)S10 B1262(c_l\257ag)S10 R1566(\256eld)S1770(contains)S2130(the)S2278(following)S2694(single)S2959(bit)S3090(\257ags)S3305(that)S3481(control)S3791(various)S4112(functions:)S3552 V10 B1080(ECHO)S10 R1440(Enable)S1758(echoing)S2114(of)S(input)206 2236 A2481(characters.)S2980(Most)S(input)206 3225 A3470(characters)S3919(are)S4082(echoed)S4406(as)S4529(they)S4741(are.)S4954(Control)S3672 V1440(characters)S1893(are)S2060(echoed)S2388(as)S10 B2515(\303)S10 I2549(X)S10 R2654(where)S10 I2944(X)S10 R3049(is)S3159(the)S3324(letter)S3574(used)S3800(to)S3920(say)S4096(that)S4289(the)S4454(control)S4781(character)S5194(is)S3792 V10 B1440(CTRL)S10 B-11720(-)S10 I1777(X)S10 R1839(.)S1919(The)S10 B2106(CR)S10 R2252(,)S10 B2307(NL)S10 R2477(and)S10 B2652(TAB)S10 R2890(characters)S3331(are)S3486(echoed)S3802(with)S4012(their)S4228(normal)S4544(effect)S4806(unless)S5088(they)S3912 V1440(are)S1589(escaped)S1933(by)S10 B2058(LNEXT)S10 R2405(.)S4080 V10 B1080(ECHOE)S4200 V10 R1440(If)S10 B(ICANON)409 1548 A10 R1997(and)S10 B2182(ECHO)S10 R2518(are)S2682(set)S2834(then)S3047(echo)S10 B3277(ERASE)S10 R3653(and)S10 B3838(KILL)S10 R4129(as)S4254(one)S4440(or)S4565(more)S(backspace-)448 4813 A4320 V(space-backspace)672 1440 A2141(sequences)S2578(to)S2685(wipe)S2910(out)S3067(the)S3219(last)S3388(character)S3788(or)S3901(the)S4053(entire)S4312(line,)S4516(otherwise)S4936(they)S5137(are)S4440 V1440(echoed)S1750(as)S1859(they)S2057(are.)S4608 V10 B(ECHOK)374 1080 A4728 V10 R1440(If)S10 B(ICANON)409 1544 A10 R1990(and)S10 B2172(ECHO)S10 R2505(are)S2666(set)S2815(and)S10 B2997(ECHOE)S10 R3397(is)S3501(not)S3666(set)S3815(then)S4025(output)S4318(an)S10 B4450(NL)S10 R4627(after)S4850(the)S10 B5010(KILL)S4848 V10 R1440(character.)S1886(\(For)S(hardcopy)374 2085 A2484(terminals)S2884(it)S2965(is)S3057(best)S3244(to)S3347(unset)S10 B3584(ECHOE)S10 R3972(and)S4142(to)S4245(set)S10 B(ECHOK)374 4382 A10 R4756(.\))S5016 V10 B1080(ECHONL)S5136 V10 R1440(Echo)S10 B1672(NL)S10 R1837(even)S2052(if)S10 B2139(ECHO)S10 R2460(is)S2552(not)S2705(set,)S2867(but)S10 B(ICANON)409 3020 A10 R3454(is)S3546(set.)S5304 V10 B(ICANON)409 1080 A5424 V10 R(Canonical)408 1440 A(input.)231 1873 A2154(This)S2358(enables)S2685(line)S2861(oriented)S(input)206 3216 A3447(and)S3617(erase)S3850(and)S(kill)134 4020 A4179(processing.)S5592 V10 B1080(IEXTEN)S5712 V10 R1440(Enable)S1745(implementation)S2401(de\256ned)S(input)206 2722 A2953(extensions.)S5880 V10 B1080(ISIG)S10 R1440(Enable)S1745(the)S1893(signal)S2158(characters)S10 B2593(INTR)S10 R2845(,)S10 B2895(QUIT)S10 R3177(and)S10 B3347(SUSP)S10 R3594(.)S6048 V10 B1080(NOFLSH)S6168 V10 R1440(Disable)S1773(the)S1921(\257ushing)S2269(of)S2378(the)S(input)206 2526 A2757(and)S2927(output)S3208(queues)S3512(that)S3688(is)S3780(normally)S(done)195 4168 A4388(if)S4475(a)S4545(signal)S4810(is)S4902(sent.)S6336 V10 B1080(TOSTOP)S6456 V10 R1440(Send)S1683(a)S10 B1770(SIGTTOU)S10 R2270(signal)S2552(if)S2656(job)S2826(control)S3153(is)S3262(implemented)S3829(and)S4016(a)S(background)474 4104 A4621(process)S4966(tries)S5183(to)S6576 V1440(write.)S1723(\(Minix)S2027(has)S2186(no)S2311(job)S2464(control.\))S6744 V870(I)S872(In)S908(np)S960(pu)S1012(ut)S1064(t)S1119(a)S1121(an)S1168(nd)S1220(d)S1297(o)S1299(ou)S1351(ut)S1403(tp)S1433(pu)S1485(ut)S1537(t)S1592(s)S1594(sp)S1635(pe)S1687(ee)S1734(ed)S1781(d)S6864 V1080(The)S(input)206 1271 A1511(and)S1690(output)S1980(speed)S2243(are)S2401(encoded)S2770(into)S2960(the)S10 B3118(c_ispeed)S10 R3517(and)S10 B3697(c_ospeed)S10 R4118(\256elds.)S10 B4421(<termios.h>)S10 R4976(de\256nes)S6984 V1080(the)S1245(symbols)S10 B1621(B0)S10 R1738(,)S10 B1805(B50)S10 R1972(,)S10 B2039(B75)S10 R2206(,)S10 B(B110)217 2272 A10 R2489(,)S10 B(B134)217 2555 A10 R2772(,)S10 B(B150)217 2838 A10 R3055(,)S10 B(B200)217 3121 A10 R3338(,)S10 B(B300)217 3404 A10 R3621(,)S10 B(B600)217 3687 A10 R3904(,)S10 B(B1200)267 3970 A10 R4237(,)S10 B(B1800)267 4303 A10 R4570(,)S10 B(B2400)267 4636 A10 R4903(,)S10 B(B4800)267 4969 A10 R5236(,)S7104 V10 B(B9600)267 1080 A10 R1347(,)S10 B(B19200)317 1406 A10 R1723(,)S10 B(B38400)317 1782 A10 R2099(,)S10 B(B57600)317 2158 A10 R2509(and)S10 B(B115200)367 2688 A10 R3089(as)S3207(values)S3498(used)S3716(to)S3828(indicate)S4182(the)S4340(given)S4598(baud)S4828(rates.)S5104(The)S7224 V1080(zero)S1287(baud)S1515(rate,)S10 B1725(B0)S10 R1842(,)S1900(if)S1995(used)S2212(for)S2363(the)S(input)206 2519 A2757(speed)S3018(causes)S3313(the)S(input)206 3468 A3706(speed)S3967(to)S4077(be)S4204(equal)S4454(to)S4564(the)S4719(output)S5007(speed.)S7344 V(Setting)285 1080 A1414(the)S1586(output)S1891(speed)S2169(to)S2296(zero)S2519(hangs)S2802(up)S2951(the)S3124(line.)S3375(One)S(should)267 3593 A3910(use)S4094(the)S4267(functions)S10 B4691(cfgetispeed\(\))S10 R5236(,)S7464 V10 B1080(cfgetospeed\(\))S10 R1647(,)S10 B1727(cfsetispeed\(\))S10 R2316(and)S10 B2516(cfsetospeed\(\))S10 R3127(to)S3260(get)S3437(or)S3575(set)S3741(a)S3840(speed,)S(because)319 4148 A4521(the)S10 B4698(c_ispeed)S10 R5116(and)S7903 V720(September)S1176(13,)S(1996)200 1326 A4990(Page)S5211(4)S8143 VEP%%Page: 5 5BP/slant 0 def/height 0 def480 V10 R720(TTY)S925(\()S967(4)S1025(\))S2696(Eighth)S(Edition)296 2989 A4922(TTY)S5127(\()S5169(4)S5227(\))S960 V10 B1080(c_ospeed)S10 R1500(\256elds)S1752(may)S1960(not)S2123(be)S2253(visible)S(under)229 2556 A2820(other)S3062(implementations.)S3817(\(The)S10 B4043(c_ispeed)S10 R4442(and)S10 B4622(c_ospeed)S10 R5043(\256elds)S1080 V1080(and)S1250(the)S10 B(B57600)317 1398 A10 R1740(and)S10 B(B115200)367 1910 A10 R2302(symbols)S2661(are)S2810(Minix)S3080(speci\256c.\))S1248 V870(S)S872(Sp)S930(pe)S982(ec)S1029(ci)S1076(ia)S1106(al)S1153(l)S1208(c)S1210(ch)S1257(ha)S1309(ar)S1356(ra)S1392(ac)S1439(ct)S1486(te)S1516(er)S1563(rs)S1599(s)S1368 V1080(The)S10 B1263(c_cc)S10 R1474(array)S1708(contains)S2069(the)S2218(special)S2524(characters)S2961(that)S3139(can)S3306(be)S3428(modi\256ed.)S3862(The)S4046(array)S4281(has)S4442(length)S10 B(NCCS)275 4720 A10 R5022(and)S5194(is)S1488 V1080(subscripted)S1574(by)S1710(the)S1869(symbols)S10 B2239(VEOF)S10 R2519(,)S10 B2580(VEOL)S10 R2865(,)S10 B2926(VERASE)S10 R3335(,)S10 B3396(VINTR)S10 R3721(,)S10 B3781(VKILL)S10 R4105(,)S10 B4165(VMIN)S10 R4445(,)S10 B4505(VQUIT)S10 R4835(,)S10 B4895(VTIME)S10 R5236(,)S1608 V10 B1080(VSUSP)S10 R1400(,)S10 B1479(VSTART)S10 R1888(,)S10 B1967(VSTOP)S10 R2303(,)S10 B2382(VREPRINT)S10 R2909(,)S10 B2989(VLNEXT)S10 R3464(and)S10 B(VDISCARD)533 3664 A10 R4197(.)S4302(All)S4486(these)S4748(symbols)S5137(are)S1728 V1080(de\256ned)S1408(in)S10 B1518(<termios.h>)S10 R2038(.)S2120(Some)S2381(implementations)S3082(may)S3286(give)S3490(the)S3644(same)S3882(values)S4170(to)S4279(the)S10 B4433(VMIN)S10 R4744(and)S10 B4920(VTIME)S1848 V10 R1080(subscripts)S1512(and)S1687(the)S10 B1840(VEOF)S10 R2150(and)S10 B2325(VEOL)S10 R2641(subscripts)S3074(respectively,)S3617(and)S3793(may)S(ignore)257 3997 A4285(changes)S4640(to)S10 B4749(START)S10 R5116(and)S1968 V10 B1080(STOP)S10 R1343(.)S1418(\(Under)S1729(Minix)S1999(all)S2125(special)S2430(characters)S2865(have)S3080(there)S3307(own)S10 I3505(c_cc)S10 R3715(slot)S3885(and)S4055(can)S4220(all)S4346(be)S4466(modi\256ed.\))S2136 V870(R)S872(Ra)S941(aw)S988(w)S1088(I)S1090(I/)S1126(/O)S1156(O)S1256(P)S1258(Pa)S1316(ar)S1363(ra)S1399(am)S1446(me)S1526(et)S1573(te)S1603(er)S1650(rs)S1686(s)S2256 V1080(The)S10 B1286(MIN)S10 R1542(and)S10 B1736(TIME)S10 R2053(parameters)S2545(can)S2734(be)S2879(used)S3113(to)S3241(adjust)S3531(a)S3626(raw)S(connection)441 3828 A4319(to)S4447(bursty)S(input.)231 4748 A10 B5054(MIN)S2376 V10 R1080(represents)S1526(a)S1608(minimum)S2035(number)S2379(of)S2500(bytes)S2749(that)S2936(must)S3167(be)S(received)342 3298 A3676(before)S3970(a)S4051(read)S4261(call)S4443(returns.)S10 B4809(TIME)S10 R5113(is)S5216(a)S2496 V1080(timer)S1318(of)S1427(0.1)S(second)279 1577 A1881(granularity)S2348(that)S2524(can)S2689(be)S2810(used)S3020(to)S3124(time)S3329(out)S3483(a)S3554(read.)S(Setting)285 3804 A4115(either)S4371(of)S4481(these)S4714(parameters)S5183(to)S2616 V1080(zero)S1279(has)S1438(special)S1743(meaning,)S2139(which)S2410(leads)S2642(to)S2745(the)S2893(following)S3309(four)S(possibilities:)508 3502 A2784 V10 B1080(MIN)S1312(>)S1394(0,)S1494(TIME)S1787(>)S1869(0)S2904 V1330(TIME)S10 R1642(is)S1753(an)S1892(inter-byte)S2328(timer)S2585(that)S2780(is)S2891(started)S3204(\(and)S3427(restarted\))S3853(when)S4115(a)S4204(byte)S4421(is)S(received.)367 4532 A4969(A)S5087(read)S3024 V(succeeds)358 1330 A1720(when)S1970(either)S2232(the)S2387(minimum)S2809(number)S3148(of)S3264(characters)S3706(is)S(received)342 3805 A4179(or)S4295(the)S4449(timer)S4693(expires.)S5065(Note)S3144 V1330(that)S1506(the)S1654(timer)S1892(starts)S10 B2130(after)S10 R2363(the)S2511(\256rst)S2693(character,)S3114(so)S3228(the)S3376(read)S3575(returns)S3880(at)S3978(least)S4188(one)S4358(byte.)S3312 V10 B1080(MIN)S1312(>)S1394(0,)S1494(TIME)S1787(=)S1869(0)S3432 V10 R1330(Now)S1567(the)S1731(timer)S1985(is)S2093(disabled,)S2495(and)S2682(a)S2769(reader)S3064(blocks)S3368(inde\256nitely)S(until)184 3868 A4094(at)S4209(least)S10 B4436(MIN)S10 R4685(characters)S5137(are)S3552 V(received.)367 1330 A3720 V10 B1080(MIN)S1312(=)S1394(0,)S1494(TIME)S1787(>)S1869(0)S3840 V1330(TIME)S10 R1623(is)S1715(now)S1913(a)S1983(read)S2182(timer)S2420(that)S2596(is)S2688(started)S2982(when)S3225(a)S3295(read)S3494(is)S3586(executed.)S4019(The)S4201(read)S(will)157 4400 A4583(return)S4850(if)S4938(the)S5087(read)S3960 V1330(timer)S1577(expires)S1902(or)S2020(if)S2116(at)S2223(least)S2442(one)S2621(byte)S2828(is)S(input.)231 2929 A3219(\(Note)S3483(that)S3668(a)S
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -