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

📄 termcap.5

📁 Unix操作系统minix 2.0源码
💻 5
📖 第 1 页 / 共 5 页
字号:
10 R2756(character,)S10 B3183(\303X)S10 R3321(maps)S3564(to)S3673(a)S3749(control-X)S4172(for)S4321(any)S4497(appropriate)S4987(X,)S5116(and)S6192 V1080(the)S1230(sequences)S10 B1665(\\n)S1776(\\r)S1876(\\t)S1966(\\b)S2078(\\f)S10 R2168(map)S2369(to)S2475(linefeed,)S2853(return,)S3147(tab,)S(backspace,)439 3323 A3790(and)S3963(formfeed,)S4386(respectively.)S4951(Finally,)S6312 V1080(characters)S1519(may)S1721(be)S1845(given)S2097(as)S2210(three)S2441(octal)S2666(digits)S2918(after)S3132(a)S10 B3205(\\)S10 R3233(,)S3286(and)S3459(the)S3610(characters)S10 B4048(\303)S10 R4110(and)S10 B4283(\\)S10 R4339(may)S4540(be)S4663(given)S4914(as)S10 B5026(\\\303)S10 R5116(and)S6432 V10 B1080(\\\\)S10 R1136(.)S1214(If)S1310(it)S1394(is)S(necessary)392 1489 A1909(to)S(place)213 2015 A2257(a)S10 B2331(:)S10 R2394(in)S2501(a)S(capability)397 2575 A3001(it)S3086(must)S3310(be)S3434(escaped)S3782(in)S3889(octal)S4114(as)S10 B(\\072)178 4227 A10 R4405(.)S4484(If)S4581(it)S4666(is)S(necessary)392 4762 A5183(to)S6552 V(place)213 1080 A1329(a)S8 R1405(NUL)S10 R1607(character)S2014(in)S2128(a)S2209(string)S(capability)397 2473 A2905(it)S2996(must)S3226(be)S3356(encoded)S3726(as)S10 B(\\200)178 3845 A10 R4023(.)S4108(\(The)S4334(routines)S4693(that)S4879(deal)S5082(with)S6672 V10 B1080(termcap)S10 R1474(use)S1635(C)S1729(strings)S2024(and)S2196(strip)S2402(the)S2552(high)S2757(bits)S2929(of)S3041(the)S3192(output)S3476(very)S3683(late,)S3882(so)S3999(that)S4178(a)S10 B(\\200)178 4251 A10 R4457(comes)S4742(out)S4898(as)S5010(a)S10 B(\\000)178 5083 A6792 V10 R1080(would.\))S6960 V1080(Sometimes)S1554(individual)S(capabilities)459 1988 A2474(must)S2696(be)S2818(commented)S3314(out.)S3519(To)S3659(do)S3787(this,)S3985(put)S4141(a)S4214(period)S4499(before)S4785(the)S4936(capabil-)S7080 V1080(ity)S1211(name.)S1504(For)S1669(example,)S2060(see)S2214(the)S2362(\256rst)S10 B2544(cr)S10 R2659(and)S10 B2829(ta)S10 R2938(in)S3041(the)S3189(example)S(above.)265 3555 A7903 V720(Page)S941(5)S2586(\()S2628(1)S2703(November)S(1985)200 3153 A3361(\))S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Page: 6 6BP/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(Preparing)S1542(Descriptions)S1128 V10 R1080(We)S1245(now)S(outline)279 1443 A1747(how)S1945(to)S2048(prepare)S2376(descriptions)S2887(of)S2996(terminals.)S3446(The)S3628(most)S3848(effective)S4227(way)S4421(to)S4525(prepare)S4854(a)S4925(terminal)S1248 V1080(description)S1560(is)S1659(by)S1791(imitating)S2186(the)S2341(description)S2820(of)S2936(a)S3013(similar)S3325(terminal)S3693(in)S10 B3803(termcap)S10 R4202(and)S4379(to)S4489(build)S4727(up)S4859(a)S4936(descrip-)S1368 V1080(tion)S1269(gradually,)S1707(using)S1957(partial)S2248(descriptions)S2767(with)S10 B2980(vi)S10 R3100(to)S3212(check)S3481(that)S3666(they)S3873(are)S4031(correct.)S4396(Be)S4542(aware)S4818(that)S5003(a)S5082(very)S1488 V(unusual)312 1080 A1421(terminal)S1786(may)S(expose)279 1988 A2296(de\256ciencies)S2801(in)S2908(the)S(ability)257 3060 A3346(of)S3458(the)S10 B3609(termcap)S10 R4004(\256le)S4161(to)S4267(describe)S4631(it)S4715(or)S(bugs)189 4827 A5044(in)S10 B5150(vi)S10 R5236(.)S1608 V1080(To)S1220(easily)S1484(test)S1653(a)S1727(new)S1924(terminal)S2289(description)S(you)150 2765 A2944(can)S3113(set)S3254(the)S3406(environment)S3943(variable)S9 B4295(TERMCAP)S10 R4784(to)S4891(the)S5043(abso-)S1728 V1080(lute)S1270(pathname)S1700(of)S1823(a)S1907(\256le)S2075(containing)S2538(the)S2700(description)S(you)150 3186 A3374(are)S3536(working)S3909(on)S4047(and)S4230(programs)S(will)157 4648 A(look)178 4843 A5059(there)S1848 V1080(rather)S1341(than)S1539(in)S10 B1642(/etc/termcap)S10 R2189(.)S9 B2260(TERMCAP)S10 R2745(can)S2910(also)S3097(be)S3217(set)S3354(to)S3457(the)S10 B3605(termcap)S10 R3997(entry)S4229(itself)S4457(to)S4561(avoid)S4810(reading)S5138(the)S1968 V1080(\256le)S1234(when)S1477(starting)S1804(up)S1929(a)S1999(program.)S2136 V1080(To)S1220(get)S1371(the)S1522(padding)S1873(for)S2019(insert-line)S2456(right)S2674(\(if)S2798(the)S2949(terminal)S3313(manufacturer)S3879(did)S4035(not)S4191(document)S4616(it\),)S4760(a)S4834(severe)S5121(test)S2256 V1080(is)S1182(to)S1295(use)S10 B1464(vi)S10 R1585(to)S1698(edit)S10 B1884(/etc/passwd)S10 R2420(at)S(9600)200 2528 A2763(baud,)S3018(delete)S(roughly)312 3294 A3641(16)S3776(lines)S4001(from)S4232(the)S4390(middle)S4703(of)S4821(the)S4978(screen,)S2376 V1080(then)S1279(hit)S1411(the)S1560(`u')S1704(key)S1875(several)S2187(times)S2431(quickly.)S2808(If)S2902(the)S3051(display)S3367(messes)S3679(up,)S3831(more)S4065(padding)S4415(is)S4509(usually)S4826(needed.)S5188(A)S2496 V1080(similar)S1385(test)S1550(can)S1715(be)S1835(used)S2044(for)S2187(insert-character.)S2664 V10 B1080(Basic)S(Capabilities)515 1334 A2832 V10 R1080(The)S1263(number)S1596(of)S1706(columns)S2072(on)S(each)185 2198 A2409(line)S2586(of)S2696(the)S2845(display)S3161(is)S3254(given)S3503(by)S3629(the)S10 B3778(co)S10 R3899(numeric)S(capability.)422 4255 A4728(If)S4822(the)S4971(display)S2952 V1080(is)S1186(a)S9 R1268(CRT)S10 R1444(,)S1508(then)S1720(the)S1882(number)S2228(of)S2351(lines)S2580(on)S2719(the)S2881(screen)S3178(is)S3284(given)S3546(by)S3685(the)S10 B3846(li)S10 R(capability.)422 3940 A4425(If)S4531(the)S4692(display)S5020(wraps)S3072 V(around)279 1080 A1390(to)S1499(the)S1653(beginning)S2085(of)S2200(the)S2354(next)S2558(line)S2740(when)S2989(the)S3143(cursor)S(reaches)303 3426 A3760(the)S3915(right)S4137(margin,)S4479(then)S4684(it)S(should)267 4772 A5071(have)S3192 V1080(the)S10 B1230(am)S10 R(capability.)422 1391 A1865(If)S1960(the)S2110(terminal)S2473(can)S2640(clear)S2864(its)S2986(screen,)S3296(the)S3446(code)S3663(to)S3768(do)S3895(this)S4067(is)S4161(given)S4411(by)S4538(the)S10 B4688(cl)S10 R4787(string)S5042(capa-)S3312 V(bility.)237 1080 A1372(If)S1470(the)S1623(terminal)S1989(overstrikes)S2461(\(rather)S2761(than)S2964(clearing)S3319(the)S(position)323 3472 A3825(when)S4074(a)S4150(character)S4552(is)S(overwritten\),)524 4650 A5205(it)S3432 V(should)267 1080 A1376(have)S1595(the)S10 B1746(os)S10 R(capability.)422 1863 A2338(If)S2434(the)S2585(terminal)S2949(is)S3044(a)S3117(printing)S3463(terminal,)S3852(with)S4059(no)S4187(soft)S(copy)195 4366 A4589(unit,)S4798(give)S4999(it)S5083(both)S3552 V10 B1080(hc)S10 R1209(and)S10 B1382(os)S10 R1471(.)S1549(\()S10 B1583(os)S10 R1701(applies)S2015(to)S2122(storage)S2442(scope)S2700(terminals,)S3129(such)S3342(as)S3455(the)S3607(Tektronix)S(4010)200 4033 A4262(series,)S4546(as)S4659(well)S4862(as)S4975(to)S5082(hard)S3672 V(copy)195 1080 A1304(and)S9 R1476(APL)S10 R1676(terminals.\))S2163(If)S2259(there)S2489(is)S2584(a)S2657(code)S2875(to)S2981(move)S3232(the)S3383(cursor)S3663(to)S3769(the)S3920(left)S4083(edge)S4301(of)S4413(the)S4564(current)S4878(row,)S5088(give)S3792 V1080(this)S1255(as)S10 B1369(cr)S10 R1459(.)S1539(\(Normally)S1989(this)S(will)157 2164 A2351(be)S2476(carriage-return,)S10 B3133(\303M)S10 R3262(.\))S3377(If)S3476(there)S3709(is)S3807(a)S3883(code)S4104(to)S(produce)324 4213 A4568(an)S4694(audible)S5021(signal)S3912 V1080(\(bell,)S1315(beep,)S10 I1555(etc.)S10 R1714(\),)S1798(give)S1996(this)S2166(as)S10 B2275(bl)S10 R2359(.)S4080 V1080(If)S1176(there)S1406(is)S1501(a)S1574(code)S1792(\(such)S2038(as)S(backspace\))448 2150 A2626(to)S2732(move)S2983(the)S3134(cursor)S3414(one)S(position)323 3588 A3940(to)S4047(the)S4199(left,)S4388(that)S(capability)397 4568 A(should)267 4994 A4200 V1080(be)S1204(given)S1456(as)S10 B1569(le)S10 R1642(.)S1721(Similarly,)S2150(codes)S2408(to)S2515(move)S2767(to)S2874(the)S3026(right,)S3269(up,)S3422(and)S3595(down)S(should)267 3846 A4141(be)S4264(given)S4515(as)S10 B4627(nd)S10 R4739(,)S10 B4792(up)S10 R4904(,)S4957(and)S10 B5130(do)S10 R5236(,)S4320 V1080(respectively.)S1655(These)S10 I1934(local)S2173(cursor)S2473(motions)S10 R(should)267 2837 A3142(not)S3308(alter)S3527(the)S3689(text)S3879(they)S4091(pass)S4303(over;)S4549(for)S4706(example,)S(you)150 5111 A4440 V1080(would)S1364(not)S1525(normally)S1921(use)S2088(nd=)S2303(unless)S2587(the)S2743(terminal)S3112(has)S3278(the)S10 B3433(os)S10 R(capability,)422 3554 A(because)319 4008 A4359(the)S(space)224 4514 A4770(would)S5053(erase)S4560 V1080(the)S1228(character)S1624(moved)S1922(over.)S4728 V1080(A)S1198(very)S1422(important)S1858(point)S2109(here)S2328(is)S2440(that)S2636(the)S2804(local)S3045(cursor)S3342(motions)S3711(encoded)S4092(in)S10 B4216(termcap)S10 R4629(have)S(unde\256ned)396 4865 A4848 V1080(behavior)S1475(at)S1591(the)S1757(left)S1935(and)S2123(top)S2294(edges)S2566(of)S2693(a)S9 R2779(CRT)S10 R2998(display.)S3380(Programs)S(should)267 3808 A4117(never)S4383(attempt)S4727(to)S(backspace)414 4847 A4968 V(around)279 1080 A1398(the)S1560(left)S1734(edge,)S1988(unless)S10 B2278(bw)S10 R2446(is)S2552(given,)S2839(and)S3023(never)S3287(attempt)S3629(to)S3747(go)S3887(up)S4027(off)S4185(the)S4348(top)S4516(using)S4773(local)S5009(cursor)S5088 V1080(motions.)S5256 V1080(In)S1189(order)S1427(to)S1530(scroll)S1779(text)S1955(up,)S2105(a)S2175(program)S2541(goes)S2751(to)S2855(the)S3004(bottom)S3314(left)S3475(corner)S3759(of)S3869(the)S4018(screen)S4302(and)S4473(sends)S4722(the)S10 B4871(sf)S10 R4970(\(index\))S5376 V1080(string.)S1385(To)S1523(scroll)S1773(text)S1950(down,)S2224(a)S2295(program)S2662(goes)S2872(to)S2976(the)S3124(top)S3277(left)S3437(corner)S3720(of)S3829(the)S3977(screen)S4260(and)S4430(sends)S4678(the)S10 B4826(sr)S10 R4935(\(reverse)S5496 V1080(index\))S1362(string.)S1666(The)S1848(strings)S10 B2141(sf)S10 R2239(and)S10 B2409(sr)S10 R2519(have)S(unde\256ned)396 2735 A3157(behavior)S3535(when)S3779(not)S3933(on)S4059(their)S4270(respective)S4705(corners)S5028(of)S5138(the)S5616 V1080(screen.)S1415(Parameterized)S2020(versions)S2382(of)S2493(the)S(scrolling)352 2643 A3021(sequences)S3455(are)S10 B3605(SF)S10 R3749(and)S10 B3920(SR)S10 R4049(,)S4100(which)S4372(have)S4588(the)S4737(same)S4970(seman-)S5736 V1080(tics)S1264(as)S10 B1393(sf)S10 R1511(and)S10 B1701(sr)S10 R1830(except)S2138(that)S2334(they)S2552(take)S2765(one)S2955(parameter)S3404(and)S3594(scroll)S3863(that)S4059(many)S4327(lines.)S4612(They)S4864(also)S5071(have)S5856 V(unde\256ned)396 1080 A1501(behavior)S1878(except)S2166(at)S2264(the)S2412(appropriate)S2896(corner)S3179(of)S3288(the)S3436(screen.)S6024 V1080(The)S10 B1273(am)S10 R(capability)397 1443 A1876(tells)S2081(whether)S2443(the)S2603(cursor)S2892(sticks)S3158(at)S3268(the)S3428(right)S3655(edge)S3882(of)S4003(the)S4163(screen)S4458(when)S4713(text)S4901(is)S5005(output)S6144 V1080(there,)S1336(but)S1493(this)S1667(does)S1880(not)S(necessarily)448 2037 A2514(apply)S2766(to)S10 B2873(nd)S10 R3013(from)S3237(the)S3388(last)S3556(column.)S3935(Leftward)S4334(local)S4558(motion)S4870(is)S4965(de\256ned)S6264 V1080(from)S1306(the)S1459(left)S1624(edge)S1844(only)S2052(when)S10 B2300(bw)S10 R2459(is)S2556(given;)S2837(then)S3040(an)S10 B3165(le)S10 R3268(from)S3494(the)S3647(left)S3812(edge)S(will)157 4032 A4219(move)S4472(to)S4581(the)S4735(right)S4956(edge)S5177(of)S6384 V1080(the)S1234(previous)S1611(row.)S1849(This)S2059(is)S

⌨️ 快捷键说明

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