%!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 def systemdict /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 add currentpoint pop X m}bind def /H{//res div 0 transform X round X itransform pop currentpoint X pop moveto}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 fill gr}bind def 1 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} if end /BP{ save mark devps begin m0 /DocumentInitState [ matrix currentmatrix currentlinewidth currentlinecap currentlinejoin currentdash currentgray currentmiterlimit ] cvx def }bind def /EP{ end cleartomark restore showpage}def /Encoding-1 256 array def 0 1 255 {Encoding-1 exch /.notdef put} for Encoding-1 8#301 StandardEncoding 8#101 26 getinterval putinterval %A-B Encoding-1 8#341 StandardEncoding 8#141 26 getinterval putinterval %a-b Encoding-1 8#241 StandardEncoding 8#301 16 getinterval putinterval %accents Encoding-1 8#373 StandardEncoding 8#365 1 getinterval putinterval %dotlessi Encoding-1 dup 8#41 /copyright put dup 8#42 /registered put dup 8#43 /trademark put dup 8#44 /logicalnot put dup 8#45 /Eth put dup 8#46 /eth put dup 8#47 /Thorn put dup 8#50 /thorn put dup 8#51 /brokenbar put dup 8#52 /degree put dup 8#53 /divide put dup 8#54 /multiply put dup 8#55 /minus put dup 8#56 /onehalf put dup 8#57 /onequarter put dup 8#60 /threequarters put dup 8#101 /Aacute put dup 8#102 /Acircumflex put dup 8#103 /Adieresis put dup 8#104 /Agrave put dup 8#105 /Aring put dup 8#106 /Atilde put dup 8#107 /Ccedilla put dup 8#110 /Eacute put dup 8#111 /Ecircumflex put dup 8#112 /Edieresis put dup 8#113 /Egrave put dup 8#114 /Iacute put dup 8#115 /Icircumflex put dup 8#116 /Idieresis put dup 8#117 /Igrave put dup 8#120 /Ntilde put dup 8#121 /Oacute put dup 8#122 /Ocircumflex put dup 8#123 /Odieresis put dup 8#124 /Ograve put dup 8#125 /Otilde put dup 8#126 /Scaron put dup 8#127 /Uacute put dup 8#130 /Ucircumflex put dup 8#131 /Udieresis put dup 8#132 /Ugrave put dup 8#133 /Ydieresis put dup 8#134 /Zcaron put dup 8#135 /aacute put dup 8#136 /acircumflex put dup 8#137 /adieresis put dup 8#140 /agrave put dup 8#141 /aring put dup 8#142 /atilde put dup 8#143 /ccedilla put dup 8#144 /eacute put dup 8#145 /ecircumflex put dup 8#146 /edieresis put dup 8#147 /egrave put dup 8#150 /iacute put dup 8#151 /icircumflex put dup 8#152 /idieresis put dup 8#153 /igrave put dup 8#154 /ntilde put dup 8#155 /oacute put dup 8#156 /ocircumflex put dup 8#157 /odieresis put dup 8#160 /ograve put dup 8#161 /otilde put dup 8#162 /scaron put dup 8#163 /uacute put dup 8#164 /ucircumflex put dup 8#165 /udieresis put dup 8#166 /ugrave put dup 8#167 /ydieresis put dup 8#170 /zcaron put pop /Enc-dict 30 dict def Enc-dict /tmpstr1 50 string put Enc-dict /tmpstr2 50 string put Enc-dict /tmpstr3 50 string dup (Encoding-) exch cvs pop put /AEnc-def { % arguments: the original font's name, encoding nr Enc-dict begin tmpstr2 cvs /Enc-no exch def % Remember the number in a string dup /OrigName exch def % remember the name findfont 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 } forall newdict begin /Encoding tmpstr3 9 Enc-no putinterval tmpstr3 0 9 Enc-no length add getinterval cvn load def % Replace encoding currentdict /UniqueID known { /UniqueID UniqueID Enc-no cvi 49999 mul add def } if % Derive New UniqueID end % newdict /FNlength OrigName tmpstr1 cvs length def % convert name, remember length FNlength 1 add Enc-no length add string dup 0 OrigName tmpstr1 cvs putinterval dup FNlength (-) putinterval dup FNlength 1 add Enc-no putinterval dup 0 tmpstr1 0 FNlength getinterval putinterval % Add old name cvn dup newdict /FontName 3 2 roll put newdict definefont end % 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 1 BP /slant 0 def /height 0 def 480 V 10 R 720(TERMCAP)S 1204(\()S 1246(3)S 1304(\))S 2696(Eighth)S (Edition)296 2989 A 4643(TERMCAP)S 5127(\()S 5169(3)S 5227(\))S 960 V 9 R 720(N)S 722(NA)S 790(AM)S 858(ME)S 940(E)S 1080 V 10 R 1080(termcap,)S 1455(tgetent,)S 1779(tgetnum,)S 2158(tget\257ag,)S 2510(tgetstr,)S 2812(tgoto,)S 3068(tputs)S 10 R-1 3288(-)S 10 R 3370(terminal)S 3731(independent)S 4247(operation)S 4652(routines)S 1248 V 9 R 720(S)S 722(SY)S 774(YN)S 842(NO)S 910(OP)S 978(PS)S 1030(SI)S 1082(IS)S 1115(S)S 1368 V 10 B 1080(#include)S 1482()S 1608 V 1080(int)S 1236(tgetent\(char)S 1802(*)S 10 I 1852(bp)S 10 B 1952(,)S 2015(char)S 2249(*)S 10 I 2299(name)S 10 B 2517(\))S 1728 V 1080(int)S 1236(tget\257ag\(char)S 1823(*)S 10 I 1873(id)S 10 B 1951(\))S 1848 V 1080(int)S 1236(tgetnum\(char)S 1863(*)S 10 I 1913(id)S 10 B 1991(\))S 1968 V 1080(char)S 1314(*tgetstr\(char)S 1913(*)S 10 I 1963(id)S 10 B 2041(,)S 2104(char)S 2338(**)S 10 I 2438(area)S 10 B 2622(\))S 2088 V 1080(char)S 1314(*tgoto\(char)S 1850(*)S 10 I 1900(cm)S 10 B 2018(,)S 2081(int)S 10 I 2237(destcol)S 10 B 2522(,)S 2585(int)S 10 I (destline)313 2741 A 10 B 3054(\))S 2208 V 1080(int)S 1236(tputs\(char)S 1723(*)S 10 I 1773(cp)S 10 B 1868(,)S 1931(int)S 10 I 2087(affcnt)S 10 B 2316(,)S 2379(void)S 2601(\(*)S 10 I 2685(outc)S 10 B (\)\(int\)\))254 2858 A 2376 V 9 R 720(D)S 722(DE)S 790(ES)S 848(SC)S 900(CR)S 962(RI)S 1024(IP)S 1057(PT)S 1109(TI)S 1167(IO)S 1200(ON)S 1268(N)S 2496 V 10 R 1080(These)S 1350(functions)S 1753(extract)S 2057(and)S 2231(use)S (capabilities)459 2395 A 2884(from)S 3110(the)S 3263(terminal)S (capability)397 3629 A 4056(data)S 4254(base)S 10 B 4463(termcap)S 10 R 4822(\(5\).)S 5020(These)S 2616 V 1080(are)S 1229(low)S 1405(level)S 1626(routines;)S 2003(see)S 10 B 2157(curses)S 10 R 2426(\(3\))S 2569(for)S 2712(a)S 2782(higher)S 3064(level)S 3285(package.)S 2784 V 10 B 1080(Tgetent)S 10 R 1441(extracts)S 1785(the)S 1939(entry)S 2177(for)S 2326(terminal)S 10 I 2693(name)S 10 R 2942(into)S 3129(the)S 3283(buffer)S 3561(at)S 10 I 3665(bp)S 10 R 3773(.)S 10 I 3854(Bp)S 10 R (should)267 3997 A 4295(be)S 4421(a)S 4497(character)S 4899(buffer)S 5177(of)S 2904 V 1080(size)S (1024)200 1265 A 1493(and)S 1665(must)S 1887(be)S 2009(retained)S (through)312 2361 A 2700(all)S 2828(subsequent)S 3301(calls)S 3513(to)S 10 B 3618(tgetnum)S 10 R 3977(,)S 10 B 4029(tget\257ag)S 10 R 4348(,)S 4400(and)S 10 B 4572(tgetstr)S 10 R 4853(.)S 10 B 4930(Tgetent)S 3024 V 10 R 1080(returns)S 10 R-1 1388(-)S 10 R 1445(1)S 1523(if)S 1613(it)S (cannot)268 1697 A 1993(\256nd)S 2177(a)S 2250(termcap)S 2603(\256le,)S 2786(0)S 2865(if)S 2956(the)S 3108(terminal)S 3473(name)S 3720(given)S 3972(does)S 4185(not)S 4342(have)S 4561(an)S 4685(entry,)S 4946(and)S 5120(1)S 5199(if)S 3144 V 1080(all)S 1206(goes)S 1415(well.)S 3312 V 10 B 1080(Tgetent)S 10 R 1436(uses)S 1634(the)S 1782(following)S 2198(recipe)S 2470(to)S 2573(\256nd)S 2754(the)S 2902(termcap)S 3252(\256le)S 3406(and)S 3576(entry)S 10 I 3808(name)S 10 R 4034(:)S 3480 V 1330(if)S 1417($TERMCAP)S 1968(is)S 2060(itself)S 2287(a)S 2357(termcap)S 2707(entry)S 2939(for)S 10 I 3082(name)S 3600 V 10 R 1330(then)S 3720 V 1580(use)S 1739($TERMCAP)S 3840 V 1330(elif)S 1490($TERMCAP)S 2041(names)S 2323(a)S 2393(\256le)S 3960 V 1330(then)S 4080 V 1580(use)S 1739(entry)S 10 I 1971(name)S 10 R (found)234 2214 A 2473(in)S 2576(that)S 2752(\256le)S 4200 V 1330(elif)S 1490(this)S 1660(is)S 1752(Minix-vmd)S 4320 V 1330(then)S 4440 V 1580(if)S 1667($TERMPATH)S 2286(is)S 2378(de\256ned)S 4560 V 1580(then)S 4680 V 1830(search)S 2123(the)S 2281(termcap)S 2641(\256les)S 2844(named)S 3147(in)S 3261($TERMPATH)S 3891(for)S 4045(the)S 4204(\256rst)S 4397(occurance)S 4842(of)S 4962(a)S 10 I 5043(name)S 4800 V 10 R 1830(entry)S 2062(and)S 2232(use)S 2391(that)S 2567(entry)S 4920 V 1580(else)S 5040 V 1830(the)S 1993(path)S 10 B 2206($HOME/.termcap:/etc/termcap:/usr/etc/termcap")S 10 R 4396(is)S 4503(searched)S 4896(for)S 5054(entry)S 5160 V 10 I 1830(name)S 5280 V 10 R 1580(\256)S 5400 V 1330(\256)S 5568 V 10 B 1080(Tgetnum)S 10 R 1497(gets)S 1684(the)S 1832(numeric)S 2187(value)S 2430(of)S (capability)397 2539 A 10 I 2961(id)S 10 R 3047(,)S 3097(returning)S 10 R-1 3491(-)S 10 R 3548(1)S 3623(if)S 3710(is)S 3802(not)S 3955(given)S 4204(for)S 4348(the)S 4497(terminal.)S 10 B 4909(Tget\257ag)S 5688 V 10 R 1080(returns)S 1391(1)S 1472(if)S 1565(the)S 1719(speci\256ed)S (capability)397 2108 A 2536(is)S 2634(present)S 2956(in)S 3065(the)S 3219(terminal's)S 3659(entry,)S 3921(0)S 4001(if)S 4093(it)S 4179(is)S 4276(not.)S 10 B 4484(Tgetstr)S 10 R 4828(returns)S 5138(the)S 5808 V 1080(string)S 1350(value)S 1610(of)S 1736(the)S (capability)397 1901 A 10 I 2340(id)S 10 R 2426(,)S (places)252 2493 A 2787(it)S 2885(in)S 3005(the)S 3170(buffer)S 3459(at)S 10 I 3574(area)S 10 R 3766(,)S 3833(and)S 4020(advances)S 4431(the)S 10 I 4596(area)S 10 R 4822(pointer.)S 5199(It)S 5928 V 1080(decodes)S 1433(the)S 1585(abbreviations)S 2156(for)S 2303(this)S 2477(\256eld)S 2684(described)S 3098(in)S 10 B 3204(termcap)S 10 R 3563(\(5\),)S 3734(except)S 4025(for)S 4171(cursor)S 4451(addressing)S 4909(and)S 5082(pad-)S 6048 V 1080(ding)S 1283(information.)S 10 B 1833(Tgetstr)S 10 R 2172(returns)S 2477(NULL)S 2772(if)S 2859(the)S (capability)397 3007 A 3429(was)S 3611(not)S (found.)259 3764 A 6216 V 10 B 1080(Tgoto)S 10 R 1362(returns)S 1673(a)S 1749(cursor)S 2033(addressing)S 2495(string)S 2756(decoded)S 3123(from)S 10 I 3351(cm)S 10 R 3501(to)S 3611(go)S 3743(to)S 3853(column)S 10 I 4186(destcol)S 10 R 4503(in)S 4613(line)S 10 I (destline)313 4796 A 10 R 5117(.)S 5199(It)S 6336 V 1080(uses)S 1282(the)S 1434(external)S 1788(variables)S 10 B 2180(UP)S 10 R (\(from)230 2343 A 2601(the)S 10 B 2752(up)S 10 R (capability\))431 2892 A 3351(and)S 10 B 3524(BC)S 10 R 3692(\(if)S 10 B 3816(bc)S 10 R 3945(is)S 4040(given)S 4291(rather)S 4555(than)S 10 B 4756(bs)S 10 R 4851(\))S 4913(if)S (neces-)258 5003 A 6456 V 1080(sary)S 1276(to)S 1382(avoid)S 1633(placing)S 10 B 1957(\\n)S 10 R 2041(,)S 10 B 2095(\303D)S 10 R 2231(or)S 10 B 2344(\303@)S 10 R 2500(in)S 2607(the)S 2759(returned)S 3124(string.)S 3432(\(Programs)S 3881(which)S 4156(call)S 4331(tgoto)S (should)267 4566 A 4862(be)S 4986(sure)S 5183(to)S 6576 V 1080(turn)S 1268(off)S 1412(the)S 1561(XTABS)S 1917(bit\(s\),)S 2180(since)S 10 B 2412(tgoto)S 10 R 2655(may)S 2853(now)S 3051(output)S 3332(a)S 3402(tab.)S 3600(Note)S 3821(that)S 3997(programs)S 4402(using)S 4644(termcap)S (should)267 4994 A 6696 V 1080(in)S 1186(general)S 1511(turn)S 1701(off)S 1847(XTABS)S 2206(anyway)S 2547(since)S 2782(some)S 3022(terminals)S 3425(use)S 3587(CTRL-I)S 3941(for)S 4087(other)S 4323(functions,)S 4751(such)S 4964(as)S (non-)184 5077 A 6816 V 1080(destructive)S (space.\))283 1547 A 1880(If)S 1973(a)S 10 B 2043(%)S 10 R 2168(sequence)S 2562(is)S 2654(given)S 2902(which)S 3173(is)S 3265(not)S (understood,)471 3418 A 3914(then)S 10 B 4112(tgoto)S 10 R 4355(returns)S 4660(OOPS.)S 6984 V 10 B 1080(Tputs)S 10 R 1377(decodes)S 1746(the)S 1914(leading)S 2255(padding)S 2623(information)S 3143(of)S 3272(the)S 3440(string)S 10 I 3714(cp)S 10 R 3817(;)S 10 I 3890(affcnt)S 10 R 4164(gives)S 4421(the)S 4589(number)S 4941(of)S 5071(lines)S 7104 V 1080(affected)S 1434(by)S 1562(the)S 1713(operation,)S 2146(or)S 2258(1)S 2336(if)S 2426(this)S 2599(is)S 2694(not)S 2850(applicable,)S 10 I 3317(outc)S 10 R 3518(is)S 3613(a)S 3686(routine)S 3999(which)S 4273(is)S 4367(called)S 4635(with)S (each)185 4841 A 5053(char-)S 7224 V 1080(acter)S 1305(in)S 1412(turn.)S 1653(The)S 1839(external)S 2193(variable)S 10 B 2547(ospeed)S 10 R (should)267 2867 A 3163(contain)S 3488(the)S 3640(output)S 3925(speed)S 4183(of)S 4296(the)S 4448(terminal)S 4813(as)S 4926(encoded)S 7344 V 1080(by)S 10 B 1207(stty)S 10 R 1364(\(3\).)S 1559(The)S 1743(external)S 2095(variable)S 10 B 2447(PC)S 10 R (should)267 2609 A 2902(contain)S 3224(a)S 3295(pad)S 3466(character)S 3863(to)S 3967(be)S 4088(used)S (\(from)230 4298 A 4554(the)S 10 B 4703(pc)S 10 R (capability\))431 4830 A 7464 V 1080(if)S 1167(a)S 1237(null)S 1418(\()S 10 B 1452(\303@)S 10 R 1579(\))S 1638(is)S 1730(inappropriate.)S 7903 V 720(Page)S 941(1)S 2669(\()S 2711(May)S 2920(15,)S (1985)200 3070 A 3278(\))S 4455(September)S 4911(13,)S (1996)200 5061 A 8143 V EP %%Page: 2 2 BP /slant 0 def /height 0 def 480 V 10 R 720(TERMCAP)S 1204(\()S 1246(3)S 1304(\))S 2696(Eighth)S (Edition)296 2989 A 4643(TERMCAP)S 5127(\()S 5169(3)S 5227(\))S 960 V 9 R 720(S)S 722(SE)S 774(EE)S 832(E)S 928(A)S 930(AL)S 998(LS)S 1056(SO)S 1108(O)S 1080 V 10 B 1080(curses)S 10 R 1349(\(3\),)S 10 B 1517(termcap)S 10 R 1876(\(5\).)S 1248 V 9 R 720(A)S 722(AU)S 790(UT)S 858(TH)S 916(HO)S 984(OR)S 1052(R)S 1368 V 10 R (William)330 1080 A 1435(Joy)S 1536 V 9 R 720(N)S 722(NO)S 790(OT)S 858(TE)S 916(ES)S 974(S)S 1656 V 10 R 1080(The)S 1263(Minix)S 1534(implementation)S 2191(does)S 2402(not)S (support)301 2557 A 2885(any)S 3057(of)S 3168(the)S 3318(external)S 3670(variables,)S 4086(only)S 4291(the)S 4441(functions)S 4842(calls.)S 5104(The)S 1776 V 1080(Minix-vmd)S 1562(termcap)S 1912(does)S (support)301 2121 A 2447(it)S 2528(all,)S (although)351 2679 A (noone)245 3055 A 3325(in)S 3428(his)S 3570(right)S 3785(mind)S 4016(meddles)S 4376(with)S 4580(those)S 4817(variables.)S 7903 V 720(September)S 1176(13,)S (1996)200 1326 A 2669(\()S 2711(May)S 2920(15,)S (1985)200 3070 A 3278(\))S 4990(Page)S 5211(2)S 8143 V EP %%Trailer %%DocumentFonts: Times-Roman Times-Bold Times-Italic %%Pages: 2