📄 tty.4
字号:
(input)206 1660 A1899(character)S2303(if)S10 B(IGNCR)336 2398 A10 R2767(or)S10 B(ICRNL)325 2884 A10 R3242(is)S3342(set.)S3537(It)S3632(is)S3732(a)S3810(carriage)S4169(return)S(\('\\r'\).)223 4443 A4724(If)S10 B(IGNCR)336 4825 A10 R5194(is)S1368 V1330(set)S1469(then)S10 B1669(CR)S10 R1842(is)S1936(discarded.)S2399(If)S10 B(ICRNL)325 2493 A10 R2844(is)S2937(set)S3075(and)S10 B(IGNCR)336 3246 A10 R3608(is)S3701(not)S3855(set)S3993(then)S10 B4192(CR)S10 R4364(is)S4457(changed)S4818(into)S5000(an)S10 B5121(NL)S1488 V10 R1330(and)S1500(has)S1659(the)S1807(same)S2039(function)S2399(as)S10 B2508(NL.)S1656 V1080(NL)S10 R1245(\(\303J\))S1776 V1330(Special)S(input)206 1652 A1883(character)S2279(if)S10 B(ICANON)409 2366 A10 R2800(is)S2892(set.)S3079(It)S3166(is)S3258(both)S3461(a)S3531(newline)S3875(\('\\n'\))S4114(and)S4284(a)S4354(line)S4530(break.)S1896 V1330(Special)S1658(output)S1945(character)S2347(if)S10 B2440(OPOST)S10 R2812(and)S10 B2988(ONLCR)S10 R3383(are)S3539(set.)S3733(A)S10 B3838(CR)S4016(NL)S10 R4188(sequence)S4589(is)S4688(output)S4976(instead)S2016 V1330(of)S1439(just)S10 B1609(NL)S10 R1749(.)S1824(\(Minix)S2128(speci\256c,)S2486(but)S2639(almost)S2932(mandatory)S3387(on)S3512(any)S3682(UNIX-like)S4145(system.\))S2184 V10 B1080(TAB)S10 R(\(\303I\))136 1312 A2304 V1330(Special)S1655(character)S2054(on)S2182(output)S2466(if)S10 B2556(OPOST)S10 R2925(and)S10 B3098(XTABS)S10 R3462(are)S3614(set.)S3804(It)S3894(is)S3989(transformed)S4504(into)S4689(the)S4841(number)S5177(of)S2424 V(spaces)263 1330 A(necessary)392 1624 A2047(to)S(reach)219 2156 A2406(a)S2482(column)S(position)323 2814 A3168(that)S3350(is)S3448(a)S(multiple)335 3524 A3890(of)S4005(eight.)S4286(\(Only)S4551(needed)S4866(for)S5014(termi-)S2544 V1330(nals)S(without)307 1517 A1849(hardware)S2250(tabs.\))S2712 V10 B1080(EOL)S10 R(\(undefined\))470 1317 A2832 V1330(Special)S(input)206 1652 A1883(character)S2279(if)S10 B(ICANON)409 2366 A10 R2800(is)S2892(set.)S3079(It)S3166(is)S3258(an)S(additional)402 3378 A3805(line)S3981(break.)S3000 V10 B1080(SUSP)S10 R1352(\(\303Z\))S3120 V1330(Special)S(input)206 1655 A1889(character)S2288(if)S2378(job)S2534(control)S2847(is)S2943(implemented)S3497(and)S10 B3671(ISIG)S10 R3912(is)S4008(set.)S4199(It)S4290(causes)S4582(a)S10 B4656(SIGTSTP)S10 R5110(sig-)S3240 V1330(nal)S1478(to)S1581(be)S1701(send)S1910(to)S2013(the)S2161(terminal)S2522(process)S(group.)259 2849 A3158(\(Minix)S3462(does)S3671(not)S3824(have)S4039(job)S4192(control.\))S3408 V10 B1080(STOP)S10 R1368(\(\303S\))S3528 V1330(Special)S(input)206 1652 A1883(character)S2279(if)S10 B2366(IXON)S10 R2654(is)S2746(set.)S2933(It)S3020(suspends)S3407(terminal)S3768(output)S4049(and)S4219(is)S4311(then)S4509(discarded.)S3696 V10 B1080(START)S10 R1441(\(\303Q\))S3816 V1330(Special)S1662(output)S1953(character)S2359(if)S10 B2456(IXON)S10 R2754(is)S2856(set.)S3054(It)S3152(starts)S3401(terminal)S3773(output)S4065(if)S4163(suspended)S4617(and)S4798(is)S4901(then)S5110(dis-)S3936 V1330(carded.)S1675(If)S10 B(IXANY)331 1769 A10 R2126(is)S2219(also)S2407(set)S2545(then)S2743(any)S2913(other)S3145(character)S3541(also)S3728(starts)S3966(terminal)S4327(output,)S4633(but)S4786(they)S4984(are)S5133(not)S4056 V1330(discarded.)S4224 V10 B1080(REPRINT)S10 R1559(\(\303R\))S4344 V1330(Special)S(input)206 1661 A1901(character)S2306(if)S10 B2402(IEXTEN)S10 R2822(and)S10 B3001(ECHO)S10 R3331(are)S3489(set.)S3685(Reprints)S4060(the)S(input)206 4217 A4457(queue)S4732(from)S4963(the)S5121(last)S4464 V1330(line)S1507(break)S1757(onwards.)S2174(A)S2273(reprint)S2568(also)S2756(happens)S3111(automatically)S3685(if)S3773(the)S3922(echoed)S(input)206 4233 A4465(has)S4625(been)S4840(messed)S5161(up)S4584 V1330(by)S1455(other)S1687(output)S1968(and)S10 B2138(ERASE)S10 R2499(is)S2591(typed.)S4752 V10 B1080(LNEXT)S10 R1452(\(\303V\))S4872 V1330(Special)S(input)206 1661 A1901(character)S2306(if)S10 B2402(IEXTEN)S10 R2823(is)S2925(set.)S3122(It)S3219(is)S3321(the)S("literal)277 3479 A3791(next")S4040(character)S4446(that)S4632(causes)S4930(the)S5088(next)S4992 V1330(character)S1726(to)S1829(be)S(input)206 1949 A(without)307 2180 A2512(any)S2682(special)S2987(processing.)S5160 V10 B(DISCARD)460 1080 A10 R1565(\(\303O\))S5280 V1330(Special)S(input)206 1658 A1895(character)S2297(if)S10 B2390(IEXTEN)S10 R2807(is)S2906(set.)S3100(Causes)S3417(output)S3705(to)S3815(be)S3942(discarded)S(until)184 4360 A4576(it)S4664(is)S4763(typed)S5018(again.)S5400 V1330(\(Implemented)S1920(only)S(under)229 2123 A2377(Minix-vmd.\))S5568 V1080(All)S1240(of)S1355(these)S1593(characters)S2034(except)S10 B2328(CR)S10 R2474(,)S10 B2530(NL)S10 R2701(and)S10 B2877(TAB)S10 R3115(may)S3319(be)S3445(changed)S3811(or)S3926(disabled)S(under)229 4293 A4554(Minix.)S4881(\(Changes)S5688 V1080(to)S10 B1200(START)S10 R1578(and)S10 B1765(STOP)S10 R2069(may)S2283(be)S(ignored)307 2419 A(under)229 2767 A3037(other)S3285(termios)S3628(implementations.\))S4423(The)S10 B4621(REPRINT)S10 R5116(and)S5808 V10 B1080(LNEXT)S10 R1452(characters)S1887(are)S2037(Minix)S2308(extensions)S2758(that)S2935(are)S3085(commonly)S3540(present)S3857(in)S3961(other)S4194(implementations.)S8 R4935(POSIX)S10 R5194(is)S5928 V1080(unclear)S1405(on)S1533(whether)S10 B1886(IEXTEN,)S(IGNCR)336 2325 A10 R2689(and)S10 B(ICRNL)325 2862 A10 R(should)267 3215 A3510(be)S3632(active)S3900(in)S(non-canonical)570 4005 A4602(mode,)S4877(but)S(under)229 5032 A6048 V1080(Minix)S1350(they)S1548(are.)S6216 V870(T)S872(Te)S936(er)S983(rm)S1019(mi)S1099(in)S1129(na)S1181(al)S1228(l)S1283(a)S1285(at)S1332(tt)S1362(tr)S1392(ri)S1428(ib)S1458(bu)S1510(ut)S1562(te)S1592(es)S1639(s)S6336 V1080(The)S1267(attributes)S1672(of)S1786(a)S1861(terminal,)S2252(such)S2466(as)S2581(whether)S2937(the)S3091(mode)S(should)267 3345 A3643(be)S(canonical)386 3769 A4186(or)S(non-canonical,)595 4301 A4927(are)S5082(con-)S6456 V1080(trolled)S1368(by)S1493(routines)S1842(that)S2018(use)S2177(the)S10 B2325(termios)S10 R2675(structure)S3053(as)S3162(de\256ned)S3483(in)S10 B3586(<termios.h>)S10 R4106(:)S6624 V1440(struct)S1689(termios)S2016({)S6744 V1640(tc\257ag_t)S2140(c_i\257ag;)S2890(/*)S(input)206 2993 A3224(modes)S3511(*/)S6864 V1640(tc\257ag_t)S2140(c_o\257ag;)S2890(/*)S2993(output)S3274(modes)S3561(*/)S6984 V1640(tc\257ag_t)S2140(c_c\257ag;)S2890(/*)S2993(control)S3303(modes)S3590(*/)S7104 V1640(tc\257ag_t)S2140(c_l\257ag;)S2890(/*)S2993(local)S3214(modes)S3501(*/)S7224 V1640(speed_t)S2140(c_ispeed;)S2890(/*)S(input)206 2993 A3224(speed)S3478(*/)S7344 V1640(speed_t)S2140(c_ospeed;)S2890(/*)S2993(output)S3274(speed)S3528(*/)S7464 V1640(cc_t)S2140(c_cc[NCCS];)S2890(/*)S2993(control)S3303(characters)S3738(*/)S7903 V720(September)S1176(13,)S(1996)200 1326 A4990(Page)S5211(2)S8143 VEP%%Page: 3 3BP/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 V1440(};)S1128 V1080(The)S1262(types)S10 B1499(tc\257ag)S10 R1734(,)S10 B1784(speed_t)S10 R2134(and)S10 B2304(cc_t)S10 R2503(are)S2652(de\256ned)S2973(in)S10 B3076(<termios.h>)S10 R3621(as)S3730(unsigned)S4117(integral)S4450(types.)S1296 V870(I)S872(In)S908(np)S960(pu)S1012(ut)S1064(t)S1119(M)S1121(Mo)S1212(od)S1264(de)S1316(es)S1363(s)S1416 V1080(The)S10 B1262(c_i\257ag)S10 R1566(\256eld)S1770(contains)S2130(the)S2278(following)S2694(single)S2959(bit)S3090(\257ags)S3305(that)S3481(control)S(input)206 3791 A4022(processing:)S1584 V10 B(ICRNL)325 1080 A1704 V10 R1330(Map)S10 B1539(CR)S10 R1710(to)S10 B1813(NL)S10 R1978(on)S(input.)231 2103 A1872 V10 B(IGNCR)336 1080 A1992 V10 R(Ignore)263 1330 A10 B1618(CR)S10 R1789(on)S(input.)231 1914 A2195(This)S2399(\257ag)S2575(overrides)S10 B(ICRNL)325 2975 A10 R3300(.)S2160 V10 B1080(INLCR)S2280 V10 R1330(Map)S10 B1539(NL)S10 R1704(to)S10 B1807(CR)S10 R1978(on)S(input.)231 2103 A2384(This)S2588(is)S(done)195 2680 A2900(after)S3111(the)S10 B(IGNCR)336 3259 A10 R3620(check.)S2448 V10 B1080(IXON)S2568 V10 R1330(Enable)S1635(start/stop)S2029(output)S2310(control.)S2736 V10 B1080(IXOFF)S2856 V10 R1330(Enable)S1635(start/stop)S(input)206 2029 A2260(control.)S2620(\(Not)S2830(implemented.\))S3024 V10 B(IXANY)331 1080 A3144 V10 R1330(Allow)S1607(any)S1777(character)S2173(to)S2276(restart)S2554(output.)S2885(\(Minix)S3189(speci\256c.\))S3312 V10 B1080(ISTRIP)S3432 V10 R1330(Strip)S1551(characters)S1986(to)S2089(seven)S2343(bits.)S3600 V10 B1080(IGNPAR)S3720 V10 R(Ignore)263 1330 A1618(characters)S2053(with)S2257(parity)S2517(errors.)S2828(\(Not)S3038(implemented.\))S3888 V10 B1080(INPCK)S4008 V10 R1330(Enable)S(input)206 1635 A1866(parity)S2126(checking.)S2564(\(Not)S2774(implemented.\))S4176 V10 B1080(PARMRK)S4296 V10 R1330(Mark)S1585(parity)S1857(errors)S2130(by)S(preceding)397 2268 A2703(the)S2864(faulty)S3137(character)S3546(with)S('\\377',)271 3763 A4072('\\0'.)S4306(The)S4501(character)S('\\377')246 4910 A5194(is)S4416 V(preceded)364 1330 A1719(by)S1844(another)S('\\377')246 2171 A2442(to)S2545(avoid)S2793(ambiguity.)S3275(\(Not)S3485(implemented.\))S4584 V10 B1080(BRKINT)S4704 V10 R1330(Send)S1564(the)S1720(signal)S10 B1993(SIGINT)S10 R2378(to)S2489(the)S2645(terminal)S3014(process)S(group)234 3349 A3616(when)S(receiving)375 3867 A4276(a)S4355(break)S(condition.)404 4613 A5076(\(Not)S4824 V1330(implemented.\))S4992 V10 B1080(IGNBRK)S5112 V10 R(Ignore)263 1330 A1623(break)S(condition.)404 1877 A2336(If)S2434(neither)S10 B2744(BRKINT)S10 R3171(or)S10 B3285(IGNBRK)S10 R3723(is)S3820(set)S3962(a)S4038(break)S4293(is)S(input)206 4391 A4628(as)S4743(a)S4819(single)S5090('\\0',)S5232 V1330(or)S1439(if)S10 B1526(PARMRK)S10 R2005(is)S2097(set)S2234(as)S('\\377',)271 2343 A2639('\\0',)S2835('\\0'.)S3056(\(Breaks)S3395(are)S3544(always)S(ignored.\))366 3849 A5400 V870(O)S872(Ou)S947(ut)S999(tp)S1029(pu)S1081(ut)S1133(t)S1188(M)S1190(Mo)S1281(od)S1333(de)S1385(es)S1432(s)S5520 V1080(The)S10 B1262(c_o\257ag)S10 R1588(\256eld)S1792(contains)S2152(the)S2300(following)S2716(single)S2981(bit)S3112(\257ags)S3327(that)S3503(control)S3813(output)S4094(processing:)S5688 V10 B1080(OPOST)S5808 V10 R1440(Perform)S1810(output)S2105(processing.)S2624(This)S2842(\257ag)S3033(is)S3140(the)S3303("main)S3585(switch")S3929(on)S4069(output)S4365(processing.)S4885(All)S5054(other)S5928 V1440(\257ags)S1655(are)S1804(Minix)S2074(speci\256c.)S6096 V10 B1080(ONLCR)S6216 V10 R1440(Transform)S1902(an)S10 B2033(NL)S10 R2209(to)S2323(a)S10 B2404(CR)S2586(NL)S10 R2762(sequence)S3167(on)S3303(output.)S3645(Note)S3877(that)S4064(a)S4145(key)S4326(labeled)S4654("RETURN")S5177(or)S6336 V1440("ENTER")S1876(usually)S2194(sends)S2445(a)S10 B2518(CR)S10 R2664(.)S2742(In)S2854(line)S3033(oriented)S3391(mode)S3641(this)S3813(is)S3907(normally)S4297(transformed)S4811(into)S10 B4994(NL)S10 R5161(by)S6456 V10 B(ICRNL)325 1440 A10 R1765(.)S10 B1846(NL)S10 R2017(is)S2115(the)S2269(normal)S2585(UNIX)S2870(line)S3053(delimiter)S3449(\('\\n'\).)S3745(On)S3900(output)S4188(an)S10 B4315(NL)S10 R4487(is)S4586(transformed)S5105(into)S6576 V1440(the)S10 B1600(CR)S1782(NL)S10 R1958(sequence)S2363(that)S2550(is)S(necessary)392 2653 A3081(to)S(reach)219 3195 A3450(the)S3609(\256rst)S3802(column)S4139(of)S4259(the)S4418(next)S4627(line.)S4864(\(This)S5113(is)S5216(a)S6696 V1440(common)S1819(output)S2103(processing)S2561(function)S2924(for)S3070(UNIX-like)S3536(systems,)S3907(but)S4063(not)S4219(always)S4527(separately)S4964(switch-)S6816 V1440(able)S1633(by)S1758(an)S10 B1878(ONLCR)S10 R2267(\257ag.\))S6984 V10 B1080(XTABS)S7104 V10 R1440(Transform)S1902(a)S10 B1983(TAB)S10 R2226(into)S2419(the)S2579(number)S2923(of)S(spaces)263 3044 A(necessary)392 3344 A3773(to)S(reach)219 3888 A4144(a)S4226(column)S(position)323 4564 A4924(that)S5112(is)S5216(a)S7224 V(multiple)335 1440 A1800(of)S1909(eight.)S7392 V10 B1080(ONOEOT)S7512 V10 R1440(Discard)S10 B1779(EOT)S10 R2016(\(\303D\))S2216(characters.)S2701(\(Minix-vmd)S3217(only.\))S7903 V720(Page)S941(3)S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Page: 4 4BP/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 V870(C)S872(Co)S941(on)S
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -