📄 termios.3
字号:
%!PS-Adobe-1.0%%Creator: devps (Pipeline Associates, Inc.)%%CreationDate: Fri Sep 13 13:07:02 1996%%Pages: (atend)%%DocumentFonts: (atend)/devps 180 dict def devps begin/res 10.000000 def/y_offset 843 def/X{exch}bind def/mm {transform round X round X itransform} bind def/r{rmoveto}bind def/m{moveto}bind def/l{lineto}bind def/rl{rlineto}bind def/st{stroke}bind def/gs{gsave}bind def/gr{grestore}bind def/cp{currentpoint}bind def/np{newpath}bind def/ct{curveto}bind defsystemdict /setpacking known { /savepacking currentpacking def true setpacking } if/m0{0 0 moveto}bind def/xc{//res div}bind def/yc{//res neg div //y_offset add}bind def/lc{yc X xc X l st}bind def/mc{yc X xc X m}bind def/el{gs /a X def a div 1 X scale cp np a xc 2 div 0 360 arc st gr}bind def/ar{cp 7 2 roll np xc 5 1 roll atan 3 1 roll atan X arc st}bind def/sp{yc X xc X 6 2 roll yc X xc X 6 2 roll yc X xc X 6 2 roll ct}bind def/V{//res neg div //y_offset addcurrentpoint pop Xm}bind def/H{//res div0 transform X round X itransform popcurrentpoint X popmoveto}bind def/h{//res div 0 r}bind def/v{//res neg div 0 X r}bind def/S{X H show}bind def/A{H //res div 1 index stringwidth pop sub 1 index length div 0 3 2 roll ashow}bind def/psize 10 def/height 0 def/cheight { height 0 ne { height } { psize } ifelse } bind def/slant 0 def/FF{findfont X dup 30 div 0 mm pop setlinewidth /psize X def [psize 0 cheight slant sin slant cos div mul cheight 0 0] makefont setfont}bind def/shade{gs /dy X def /dx X def np m 0 /dy rl /dx 0 rl 0 /dy neg rl /dx neg 0 rl closepath .9 setgray fillgr}bind def1 setlinecap/resolution res 72 mul def/startFig { /SavedState save def userdict maxlength dict begin currentpoint transform DocumentInitState setmiterlimit setgray setdash setlinejoin setlinecap setlinewidth setmatrix itransform moveto /ury exch def /urx exch def /lly exch def /llx exch def /y exch 72 mul resolution div def /x exch 72 mul resolution div def currentpoint /cy exch def /cx exch def /sx x urx llx sub div def /sy y ury lly sub div def sx sy scale cx sx div llx sub cy sy div ury sub translate /DefFigCTM matrix currentmatrix def /initmatrix { DefFigCTM setmatrix } def /defaultmatrix { DefFigCTM exch copy } def /initgraphics { DocumentInitState setmiterlimit setgray setdash setlinejoin setlinecap setlinewidth setmatrix DefFigCTM setmatrix } def /showpage { initgraphics } def}bind def/clipFig { currentpoint 6 2 roll newpath 4 copy 4 2 roll moveto 6 -1 roll exch lineto exch lineto exch lineto closepath clip newpath moveto}bind def/doclip { llx lly urx ury clipFig } def/endFig { end SavedState restore}bind def/globalstart { fontnum psize slant height resolution currentpoint pagesave restore gsave }bind def/globalend { grestore moveto /resolution exch def /height exch def /slant exch def /psize exch def /fontnum exch def F /pagesave save def}bind def/fontnum 1 def systemdict /setpacking known { savepacking setpacking} ifend/BP{save mark devps begin m0/DocumentInitState [ matrix currentmatrix currentlinewidth currentlinecapcurrentlinejoin currentdash currentgray currentmiterlimit ] cvx def}bind def/EP{end cleartomark restore showpage}def/Encoding-1 256 array def0 1 255 {Encoding-1 exch /.notdef put} forEncoding-1 8#301 StandardEncoding 8#101 26 getinterval putinterval %A-BEncoding-1 8#341 StandardEncoding 8#141 26 getinterval putinterval %a-bEncoding-1 8#241 StandardEncoding 8#301 16 getinterval putinterval %accentsEncoding-1 8#373 StandardEncoding 8#365 1 getinterval putinterval %dotlessiEncoding-1dup 8#41 /copyright putdup 8#42 /registered putdup 8#43 /trademark putdup 8#44 /logicalnot putdup 8#45 /Eth putdup 8#46 /eth putdup 8#47 /Thorn putdup 8#50 /thorn putdup 8#51 /brokenbar putdup 8#52 /degree putdup 8#53 /divide putdup 8#54 /multiply putdup 8#55 /minus putdup 8#56 /onehalf putdup 8#57 /onequarter putdup 8#60 /threequarters putdup 8#101 /Aacute putdup 8#102 /Acircumflex putdup 8#103 /Adieresis putdup 8#104 /Agrave putdup 8#105 /Aring putdup 8#106 /Atilde putdup 8#107 /Ccedilla putdup 8#110 /Eacute putdup 8#111 /Ecircumflex putdup 8#112 /Edieresis putdup 8#113 /Egrave putdup 8#114 /Iacute putdup 8#115 /Icircumflex putdup 8#116 /Idieresis putdup 8#117 /Igrave putdup 8#120 /Ntilde putdup 8#121 /Oacute putdup 8#122 /Ocircumflex putdup 8#123 /Odieresis putdup 8#124 /Ograve putdup 8#125 /Otilde putdup 8#126 /Scaron putdup 8#127 /Uacute putdup 8#130 /Ucircumflex putdup 8#131 /Udieresis putdup 8#132 /Ugrave putdup 8#133 /Ydieresis putdup 8#134 /Zcaron putdup 8#135 /aacute putdup 8#136 /acircumflex putdup 8#137 /adieresis putdup 8#140 /agrave putdup 8#141 /aring putdup 8#142 /atilde putdup 8#143 /ccedilla putdup 8#144 /eacute putdup 8#145 /ecircumflex putdup 8#146 /edieresis putdup 8#147 /egrave putdup 8#150 /iacute putdup 8#151 /icircumflex putdup 8#152 /idieresis putdup 8#153 /igrave putdup 8#154 /ntilde putdup 8#155 /oacute putdup 8#156 /ocircumflex putdup 8#157 /odieresis putdup 8#160 /ograve putdup 8#161 /otilde putdup 8#162 /scaron putdup 8#163 /uacute putdup 8#164 /ucircumflex putdup 8#165 /udieresis putdup 8#166 /ugrave putdup 8#167 /ydieresis putdup 8#170 /zcaron putpop/Enc-dict 30 dict defEnc-dict /tmpstr1 50 string putEnc-dict /tmpstr2 50 string putEnc-dict /tmpstr3 50 string dup (Encoding-) exch cvs pop put/AEnc-def { % arguments: the original font's name, encoding nrEnc-dict begintmpstr2 cvs /Enc-no exch def % Remember the number in a stringdup /OrigName exch def % remember the namefindfont dup maxlength dict /newdict exch def % get dictionary for new font{ exch dup /FID ne { exch newdict 3 1 roll put } { pop pop } % Ignore FID ifelse} forallnewdict begin/Encoding tmpstr3 9 Enc-no putinterval tmpstr3 0 9 Enc-no length add getinterval cvn load def % Replace encodingcurrentdict /UniqueID known{ /UniqueID UniqueID Enc-no cvi 49999 mul add def } if % Derive New UniqueIDend % newdict/FNlength OrigName tmpstr1 cvs length def % convert name, remember lengthFNlength 1 add Enc-no length add stringdup 0 OrigName tmpstr1 cvs putintervaldup FNlength (-) putintervaldup FNlength 1 add Enc-no putintervaldup 0 tmpstr1 0 FNlength getinterval putinterval % Add old namecvn dup newdict /FontName 3 2 roll put newdict definefontend % Enc-dict} def/Times-Roman 1 AEnc-def pop/R-1{/Times-Roman-1 FF}def/R{/Times-Roman FF}def/B{/Times-Bold FF}def/I{/Times-Italic FF}def%%EndProlog%%Page: 1 1BP/slant 0 def/height 0 def480 V10 R720(TERMIOS)S1171(\()S1213(3)S1271(\))S2696(Eighth)S(Edition)296 2989 A4676(TERMIOS)S5127(\()S5169(3)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R1080(termios,)S1455(tcgetattr,)S1859(tcsetattr,)S2252(cfgetispeed,)S2784(cfgetospeed,)S3338(cfsetispeed,)S3859(cfsetospeed,)S(tcsendbreak,)506 4402 A4956(tcdrain,)S1200 V1080(tc\257ush,)S1398(tc\257ow)S10 R-11675(-)S10 R1757(change)S2067(terminal)S2428(attributes)S1368 V9 R720(S)S722(SY)S774(YN)S842(NO)S910(OP)S978(PS)S1030(SI)S1082(IS)S1115(S)S1488 V10 B1080(#include)S1482(<termios.h>)S1728 V1080(int)S1236(tcgetattr\(int)S10 I1797(fd)S10 B1875(,)S1938(struct)S2229(termios)S2592(*)S10 I2642(tp)S10 B2720(\))S1848 V1080(int)S1236(tcsetattr\(int)S10 I1786(fd)S10 B1864(,)S1927(int)S10 I2083(action)S10 B2334(,)S2397(const)S2659(struct)S2950(termios)S3313(*)S10 I3363(tp)S10 B3441(\))S2088 V1080(speed_t)S1443(cfgetispeed\(const)S2216(struct)S2507(termios)S2870(*)S10 I2920(tp)S10 B2998(\))S2208 V1080(speed_t)S1443(cfgetospeed\(const)S2238(struct)S2529(termios)S2892(*)S10 I2942(tp)S10 B3020(\))S2328 V1080(int)S1236(cfsetispeed\(struct)S2027(termios)S2390(*)S10 I2440(tp)S10 B2518(,)S2581(speed_t)S10 I2944(speed)S10 B3173(\))S2448 V1080(int)S1236(cfsetospeed\(struct)S2049(termios)S2412(*)S10 I2462(tp)S10 B2540(,)S2603(speed_t)S10 I2966(speed)S10 B3195(\))S2688 V1080(int)S(tcsendbreak\(int)679 1236 A10 I1953(fd)S10 B2031(,)S2094(int)S10 I2250(duration)S10 B2595(\))S2808 V1080(int)S1236(tcdrain\(int)S10 I1740(fd)S10 B1818(\))S2928 V1080(int)S1236(tc\257ush\(int)S10 I1712(fd)S10 B1790(,)S1853(int)S10 I2009(queue_selector)S10 B2618(\))S3048 V1080(int)S1236(tc\257ow\(int)S10 I1684(fd)S10 B1762(,)S1825(int)S10 I1981(action)S10 B2232(\))S3216 V9 R720(D)S722(DE)S790(ES)S848(SC)S900(CR)S962(RI)S1024(IP)S1057(PT)S1109(TI)S1167(IO)S1200(ON)S1268(N)S3336 V10 R1080(These)S1359(are)S1521(the)S1682(user)S1888(functions)S2300(that)S2489(modify)S2817(the)S2979(tty)S3124(attributes)S3538(mentioned)S4001(in)S10 B4118(tty)S10 R4236(\(4\).)S4443(In)S4566(the)S4728(following,)S10 I5183(fd)S3456 V10 R1080(refers)S1347(to)S1461(an)S1591(open)S1821(terminal)S2192(device)S2490(\256le,)S10 I2679(tp)S10 R2792(is)S2894(the)S3052(address)S3389(of)S3508(a)S10 B3588(struct)S3876(termios)S10 R4201(,)S4261(and)S10 I4441(speed)S10 R4705(and)S4885(values)S5177(of)S3576 V1080(type)S10 B1278(speed_t)S10 R1628(are)S1777(equal)S2020(to)S2123(one)S2293(of)S2402(the)S10 B2550(B0)S10 R2667(,)S10 B2717(B50)S10 R2884(,)S2935(etc.)S3104(baud)S3325(rate)S3503(symbols.)S3913(All)S4068(functions,)S4493(symbols,)S4878(and)S5049(types)S3696 V1080(are)S1229(declared)S1596(in)S10 B1699(<termios.h>)S10 R2219(.)S3864 V1080(The)S1262(effects)S1557(of)S1666(the)S1814(tty)S1945(functions)S2344(are:)S4032 V10 B1080(tcgetattr\()S10 I1485(fd)S10 B1563(,)S10 I1613(tp)S10 B1691(\))S4152 V10 R1440(Get)S1611(the)S1759(current)S(settings)307 2070 A2402(of)S2511(the)S2659(tty)S2790(attributes.)S4320 V10 B1080(tcsetattr\()S10 I1474(fd)S10 B1552(,)S1602(TCSANOW,)S10 I2172(tp)S10 B2250(\))S4440 V10 R1440(Set)S1594(the)S1742(terminal)S2103(attributes.)S2553(The)S2735(change)S3045(occurs)S3333(immediately.)S4608 V10 B1080(tcsetattr\()S10 I1474(fd)S10 B1552(,)S(TCSADRAIN,)625 1602 A10 I2252(tp)S10 B2330(\))S4728 V10 R1440(Set)S1595(the)S1744(terminal)S2106(attributes.)S2557(The)S2740(change)S3051(occurs)S3340(once)S3556(all)S3683(the)S3832(output)S(waiting)302 4115 A4444(in)S4549(the)S4699(output)S4982(queues)S4848 V1440(has)S1599(been)S(transmitted.)478 1814 A2342(This)S(should)267 2546 A2838(be)S2958(used)S
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -