⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 termcap.5

📁 Unix操作系统minix 2.0源码
💻 5
📖 第 1 页 / 共 5 页
字号:
2157(useful)S2434(for)S2583(drawing)S2944(a)S(box)150 3020 A(around)279 3201 A3511(the)S3665(edge)S3886(of)S4001(the)S4155(screen,)S4469(for)S4618(example.)S5040(If)S5138(the)S6504 V1080(terminal)S1453(has)S1624(switch-selectable)S2356(automatic)S2790(margins,)S3176(the)S10 B3336(termcap)S10 R3741(description)S4226(usually)S4554(assumes)S4927(that)S5116(this)S6624 V1080(feature)S1393(is)S1492(on,)S10 I1649(i.e.)S10 R1780(,)S10 B1837(am)S10 R1971(.)S2053(If)S2153(the)S2308(terminal)S2676(has)S2842(a)S2919(command)S3347(that)S3530(moves)S3824(to)S3934(the)S4089(\256rst)S4278(column)S4611(of)S4727(the)S4881(next)S5085(line,)S6744 V1080(that)S1267(command)S1699(can)S1875(be)S2006(given)S2265(as)S10 B2385(nw)S10 R2550(\(newline\).)S3023(It)S3121(is)S3224(permissible)S3725(for)S3880(this)S4062(to)S4177(clear)S4411(the)S4571(remainder)S5017(of)S5138(the)S6864 V1080(current)S1403(line,)S1616(so)S1742(if)S1841(the)S2001(terminal)S2374(has)S2545(no)S2682(correctly-working)S8 R3442(CR)S10 R3587(and)S8 R3764(LF)S10 R3896(it)S3988(may)S(still)151 4197 A4384(be)S4515(possible)S4880(to)S4994(craft)S5216(a)S6984 V1080(working)S10 B1440(nw)S10 R1594(out)S1747(of)S1856(one)S2026(or)S2135(both)S2338(of)S2447(them.)S7152 V1080(These)S(capabilities)459 1350 A1838(suf\256ce)S2137(to)S2245(describe)S(hardcopy)374 2611 A3015(and)S3190(glass-tty)S3561(terminals.)S4016(Thus)S4247(the)S4400(Teletype)S4783(model)S5064(33)S5194(is)S7272 V1080(described)S1491(as)S7903 V720(September)S1176(13,)S(1996)200 1326 A2586(\()S2628(1)S2703(November)S(1985)200 3153 A3361(\))S4990(Page)S5211(6)S8143 VEP%%Page: 7 7BP/slant 0 def/height 0 def480 V10 R720(TERMCAP)S1204(\()S1246(5)S1304(\))S2696(Eighth)S(Edition)296 2989 A4643(TERMCAP)S5127(\()S5169(5)S5227(\))S960 V1480(T3)S1608(|)S(tty33)206 1644 A1866(|)S1902(33)S2018(|)S2054(tty)S2176(|)S2212(Teletype)S2590(model)S2866(33:\\)S1080 V(:bl=\303G:co#72:cr=\303M:do=\303J:hc:os:)1356 1880 A1248 V1080(and)S1250(the)S1398(Lear)S1609(Siegler)S9 R1918(ADM)S10 R-12130(-)S10 R2187(3)S2262(is)S2354(described)S2765(as)S1416 V1480(l3)S1574(|)S1610(adm3)S1849(|)S1885(3)S1951(|)S1987(LSI)S9 R2164(ADM)S10 R2376(-3:\\)S1536 V(:am:bl=\303G:cl=\303Z:co#80:cr=\303M:do=\303J:le=\303H:li#24:sf=\303J:)2251 1880 A1704 V10 B1080(Parameterized)S1739(Strings)S1872 V10 R1080(Cursor)S1382(addressing)S1840(and)S2013(other)S2248(strings)S2544(requiring)S2941(parameters)S3412(are)S3565(described)S3980(by)S4109(a)S4183(parameterized)S4784(string)S5042(capa-)S1992 V(bility,)237 1080 A1347(with)S10 B1556(printf)S10 R1817(\(3\)-like)S2150(escapes)S10 B2488(%x)S10 R2668(in)S2776(it,)S2887(while)S3141(other)S3377(characters)S3816(are)S3969(passed)S(through)312 4266 A4607(unchanged.)S5121(For)S2112 V1080(example,)S1472(to)S1576(address)S1904(the)S2053(cursor)S2331(the)S10 B2480(cm)S10 R(capability)397 2636 A3060(is)S3154(given,)S3429(using)S3673(two)S3851(parameters:)S4349(the)S4499(row)S4683(and)S4855(column)S5183(to)S2232 V1080(move)S1338(to.)S1501(\(Rows)S1799(and)S1979(columns)S2354(are)S2513(numbered)S2950(from)S3181(zero)S3389(and)S3568(refer)S3794(to)S3906(the)S(physical)335 4063 A4432(screen)S4724(visible)S5026(to)S5138(the)S2352 V1080(user,)S1309(not)S1473(to)S1587(any)S1768(unseen)S2083(memory.)S2504(If)S2608(the)S2767(terminal)S3140(has)S3311(memory-relative)S4020(cursor)S4309(addressing,)S4801(that)S4989(can)S5166(be)S2472 V1080(indicated)S1474(by)S1599(an)S(analogous)407 1719 A10 B2151(CM)S10 R(capability.\))456 2344 A2640 V1080(The)S10 B1262(%)S10 R1387(encodings)S1819(have)S2034(the)S2182(following)S2598(meanings:)S2808 V1480(%%)S1880(output)S2161(`%')S2928 V1480(%d)S1880(output)S2161(value)S2404(as)S2513(in)S10 B2616(printf)S10 R2902(%d)S3048 V1480(%2)S1880(output)S2161(value)S2404(as)S2513(in)S10 B2616(printf)S10 R2902(%2d)S3168 V1480(%3)S1880(output)S2161(value)S2404(as)S2513(in)S10 B2616(printf)S10 R2902(%3d)S3288 V1480(%.)S1880(output)S2161(value)S2404(as)S2513(in)S10 B2616(printf)S10 R2902(%c)S3408 V1480(%+)S10 I1621(x)S10 R1880(add)S10 I2050(x)S10 R2128(to)S2231(value,)S2499(then)S2697(do)S2822(%.)S3528 V1480(%>)S10 I1621(xy)S10 R1880(if)S1967(value)S2210(>)S10 I2292(x)S10 R2370(then)S2568(add)S10 I2738(y)S10 R2791(,)S2841(no)S2966(output)S3648 V1480(%r)S1880(reverse)S2197(order)S2435(of)S2544(two)S2720(parameters,)S3213(no)S3338(output)S3768 V1480(%i)S1880(increment)S2308(by)S2433(one,)S2628(no)S2753(output)S3888 V1480(%n)S1880(exclusive-or)S2403(all)S2529(parameters)S2997(with)S(0140)200 3201 A3426(\(Datamedia)S(2500\))234 3922 A4008 V1480(%B)S1880(BCD)S2112(\(16)S10 Y2246(*)S10 R2296(\(value/10\)\))S2769(+)S2851(\(value%10\),)S3371(no)S3496(output)S4128 V1480(%D)S1880(Reverse)S2230(coding)S2528(\(value)S10 R-12805(-)S10 R2887(2)S10 Y2937(*)S10 R2987(\(value%16\)\),)S3541(no)S3666(output)S3947(\(Delta)S4225(Data\))S4296 V1080(Consider)S1499(the)S1678(Hewlett-Packard)S(2645,)225 2413 A2694(which,)S3021(to)S3155(get)S3334(to)S3468(row)S3681(3)S3787(and)S3988(column)S4345(12,)S4526(needs)S4812(to)S4947(be)S5099(sent)S4416 V1080(\\E&a12c03Y)S1652(padded)S1983(for)S2142(6)S(milliseconds.)533 2233 A2832(Note)S3069(that)S3261(the)S3425(order)S3679(of)S3804(the)S3967(row)S4164(and)S4349(column)S4690(coordinates)S5194(is)S4536 V1080(reversed)S1460(here)S1672(and)S1855(that)S2044(the)S2205(row)S2400(and)S2583(column)S2922(are)S3084(sent)S3284(as)S3406(two-digit)S3813(integers.)S4220(Thus)S4459(its)S10 B4592(cm)S10 R(capability)397 4759 A5194(is)S4656 V1080(cm=6\\E&%r%2c%2Y.)S4824 V1080(The)S1263(Microterm)S9 R1718(ACT-IV)S10 R2055(needs)S2311(the)S2461(current)S2774(row)S2958(and)S3130(column)S3458(sent)S3647(simply)S3947(encoded)S4309(in)S4414(binary)S(preceded)364 4698 A5089(by)S5216(a)S4944 V10 B1080(\303T)S10 R1181(,)S1240(cm=\303T%.%..)S1818(Terminals)S2261(that)S2446(use)S2614(%.)S2757(need)S2980(to)S3091(be)S3219(able)S3420(to)S(backspace)414 3531 A3978(the)S4134(cursor)S4419(\()S10 B4453(le)S10 R4526(\))S4593(and)S4771(to)S4882(move)S5138(the)S5064 V1080(cursor)S1358(up)S1484(one)S1655(line)S1832(on)S1958(the)S2107(screen)S2391(\()S10 B2425(up)S10 R2537(\).)S2647(This)S2852(is)S(necessary)392 2945 A(because)319 3363 A3708(it)S3790(is)S3883(not)S4037(always)S4343(safe)S4532(to)S4636(transmit)S10 B4993(\\n)S10 R5077(,)S10 B5129(\303D)S10 R5236(,)S5184 V1080(and)S10 B1254(\\r)S10 R1327(,)S1381(as)S1494(the)S1646(system)S1954(may)S2156(change)S2470(or)S2583(discard)S2903(them.)S3183(\(Programs)S3632(using)S10 B3877(termcap)S10 R4272(must)S4495(set)S4635(terminal)S4999(modes)S5304 V1080(so)S1204(that)S1390(tabs)S1587(are)S1746(not)S1909(expanded,)S2354(so)S10 B2478(\\t)S10 R2575(is)S2677(safe)S2875(to)S2988(send.)S3257(This)S3471(turns)S3707(out)S3870(to)S3984(be)S4115(essential)S4498(for)S4652(the)S4811(Ann)S5020(Arbor)S5424 V(4080.\))259 1080 A5592 V1080(A)S1181(\256nal)S1388(example)S1757(is)S1853(the)S2005(Lear)S2220(Siegler)S9 R2533(ADM)S10 R-12745(-)S10 R2802(3a,)S2951(which)S3226(offsets)S3524(row)S3710(and)S3884(column)S4214(by)S4343(a)S4417(blank)S4669(character,)S5094(thus)S5712 V1080(cm=\\E=%+)S1573(%+)S1739(.)S5880 V1080(Row)S1298(or)S1410(column)S1739(absolute)S2102(cursor)S2382(addressing)S2841(can)S3010(be)S3134(given)S3386(as)S3499(single)S3768(parameter)S(capabilities)459 4201 A10 B4689(ch)S10 R4819(\(horizontal)S6000 V(position)323 1080 A1434(absolute\))S1834(and)S10 B2010(cv)S10 R2136(\(vertical)S(position)323 2504 A2858(absolute\).)S3308(Sometimes)S3786(these)S4024(are)S4179(shorter)S4489(than)S4692(the)S4845(more)S5082(gen-)S6120 V1080(eral)S1261(two-parameter)S1879(sequence)S2277(\(as)S2424(with)S2632(the)S2784(Hewlett-Packard)S(2645\))234 3492 A3755(and)S3929(can)S4098(be)S4222(used)S4435(in)S4542(preference)S4999(to)S10 B5107(cm)S10 R5236(.)S6240 V1080(If)S1176(there)S1406(are)S1558(parameterized)S2158(local)S2382(motions)S2732(\()S10 I2766(e.g.)S10 R2919(,)S2971(move)S10 I3221(n)S10 R(positions)362 3306 A3695(to)S3800(the)S3950(right\))S4201(these)S4435(can)S4602(be)S4724(given)S4974(as)S10 B5085(DO)S10 R5236(,)S6360 V10 B1080(LE)S10 R1214(,)S10 B1269(RI)S10 R1381(,)S1436(and)S10 B1611(UP)S10 R1776(with)S1985(a)S2060(single)S2330(parameter)S2764(indicating)S3196(how)S3399(many)S(positions)362 3653 A4046(to)S4155(move.)S4459(These)S4731(are)S4886(primarily)S6480 V1080(useful)S1351(if)S1438(the)S1586(terminal)S1947(does)S2156(not)S2309(have)S10 B2524(cm)S10 R2653(,)S2703(such)S2912(as)S3021(the)S3169(Tektronix)S(4025.)225 3591 A6648 V10 B1080(Cursor)S1413(Motions)S6816 V10 R1080(If)S1178(the)S1331(terminal)S1697(has)S1861(a)S1936(fast)S2112(way)S2310(to)S2418(home)S2671(the)S2824(cursor)S3106(\(to)S3249(the)S3403(very)S(upper)229 3613 A3873(left)S4039(corner)S4328(of)S4443(the)S4597(screen\),)S4945(this)S5121(can)S6936 V1080(be)S1209(given)S1466(as)S10 B1584(ho)S10 R1690(.)S1774(Similarly,)S2208(a)S2287(fast)S2467(way)S2669(of)S(getting)279 2787 A3100(to)S3212(the)S3369(lower)S3633(left-hand)S4031(corner)S4323(can)S4497(be)S4626(given)S4882(as)S10 B4999(ll)S10 R5055(;)S5116(this)S7056 V1080(may)S(involve)301 1278 A1604(going)S1857(up)S1982(with)S10 B2186(up)S10 R2323(from)S2544(the)S2693(home)S(position,)348 2942 A3316(but)S3470(a)S3541(program)S(should)267 3908 A4201(never)S4451(do)S4577(this)S4748(itself)S4976(\(unless)S7176 V10 B1080(ll)S10 R1174(does\),)S(because)319 1455 A1812(it)S1906(can)S2084(make)S2340(no)S2477(assumption)S(about)223 2971 A3231(the)S3391(effect)S3659(of)S3780(moving)S4123(up)S4260(from)S4493(the)S4653(home)S(position.)348 4913 A7296 V1080(Note)S1304(that)S1483(the)S1634(home)S(position)323 1885 A2236(is)S2331(the)S2482(same)S2717(as)S2829(cursor)S3109(address)S3439(\(0,0\):)S3689(to)S3796(the)S3948(top)S4105(left)S4269(corner)S4556(of)S4669(the)S4821(screen,)S5133(not)S7416 V1080(of)S1189(memory.)S1599(\(Therefore,)S2082(the)S2230(\\EH)S2418(sequence)S2812(on)S2937(Hewlett-Packard)S3641(terminals)S(cannot)268 4041 A4334(be)S4454(used)S4663(for)S10 B4806(ho)S10 R4912(.\))S7903 V720(Page)S941(7)S2586(\()S2628(1)S2703(November)S(1985)200 3153 A3361(\))S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Page: 8 8BP/slant 0 def/height 0 def480 V10 R720(TERMCAP)S1204(\()S1246(5)S1304(\))S2696(Eighth)S(Edition)296 2989 A4643(TERMCAP)S5127(\()S5169(5)S5227(\))S960 V10 B1080(Area)S1318(Clears)S1128 V10 R1080(If)S1177(the)S1329(terminal)S1694(can)S1863(clear)S2089(from)S2314(the)S2467(current)S(position)323 2783 A3136(to)S3244(the)S3397(end)S3572(of)S3686(the)S3839(line,)S4045(leaving)S4371(the)S4524(cursor)S4806(where)S5083(it)S5169(is,)S1248 V1080(this)S(should)267 1254 A1550(be)S1674(given)S1926(as)S10 B2039(ce)S10 R2129(.)S2208(If)S2305(the)S2456(terminal)S2820(can)S2988(clear)S3213(from)S3437(the)S3588(current)S(position)323 3902 A4253(to)S4359(the)S4510(end)S4683(of)S4795(the)S4946(display,)S1368 V1080(this)S(should)267 1253 A1548(be)S1671(given)S1922(as)S10 B2034(cd)S10 R2135(.)S10 B2213(cd)S10 R2342(must)S2565(only)S2771(be)S(invoked)323 2894 A3245(from)S3469(the)S3620(\256rst)S3805(column)S4134(of)S4246(a)S4319(line.)S4549(\(Therefore,)S5036(it)S5121(can)S1488 V1080(be)S1200(simulated)S1616(by)S1741(a)S1811(request)S2127(to)S2230(delete)S2496(a)S2566(large)S2793(number)S3125(of)S3234(lines,)S3474(if)S3561(

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -