|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: c
Length: 21545 (0x5429)
Names: »curses.3x«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat3/curses.3x«
0x0000…0020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆ 0x0020…0040 08 75 5f 08 61 5f 08 6c 09 09 4c 69 62 72 61 72 79 09 46 75 6e 63 74 69 6f 6e 73 09 20 20 20 20 ┆ u_ a_ l Library Functions ┆ 0x0040…0060 20 20 20 63 75 72 73 65 73 28 33 78 29 0a 0a 0a 0a 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d ┆ curses(3x) N N N NA A A AM┆ 0x0060…0080 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 20 20 63 75 72 73 65 73 20 2d 20 43 52 54 20 ┆ M M ME E E E curses - CRT ┆ 0x0080…00a0 73 63 72 65 65 6e 20 68 61 6e 64 6c 69 6e 67 20 61 6e 64 20 6f 70 74 69 6d 69 7a 61 74 69 6f 6e ┆screen handling and optimization┆ 0x00a0…00c0 20 70 61 63 6b 61 67 65 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 ┆ package S S S SY Y Y YN N N NT┆ 0x00c0…00e0 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 23 08 23 08 23 08 ┆ T T TA A A AX X X X # # # ┆ 0x00e0…0100 23 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 ┆#i i i in n n nc c c cl l l lu u┆ 0x0100…0120 08 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 63 08 63 08 63 08 ┆ u ud d d de e e e < < < <c c c ┆ 0x0120…0140 63 75 08 75 08 75 08 75 72 08 72 08 72 08 72 73 08 73 08 73 08 73 65 08 65 08 65 08 65 73 08 73 ┆cu u u ur r r rs s s se e e es s┆ 0x0140…0160 08 73 08 73 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 0a 44 08 44 08 44 ┆ s s. . . .h h h h> > > > D D D┆ 0x0160…0180 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 ┆ DE E E ES S S SC C C CR R R RI ┆ 0x0180…01a0 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 ┆I I IP P P PT T T TI I I IO O O ┆ 0x01a0…01c0 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 54 68 65 20 5f 08 63 5f 08 75 5f 08 72 5f 08 73 5f 08 ┆ON N N N The _ c_ u_ r_ s_ ┆ 0x01c0…01e0 65 5f 08 73 09 6c 69 62 72 61 72 79 09 72 6f 75 74 69 6e 65 73 20 67 69 76 65 20 74 68 65 20 75 ┆e_ s library routines give the u┆ 0x01e0…0200 73 65 72 20 61 20 74 65 72 6d 69 6e 61 6c 2d 0a 20 20 20 20 20 69 6e 64 65 70 65 6e 64 65 6e 74 ┆ser a terminal- independent┆ 0x0200…0220 20 6d 65 74 68 6f 64 09 6f 66 20 75 70 64 61 74 69 6e 67 20 63 68 61 72 61 63 74 65 72 20 73 63 ┆ method of updating character sc┆ 0x0220…0240 72 65 65 6e 73 20 77 69 74 68 20 72 65 61 2d 0a 20 20 20 20 20 73 6f 6e 61 62 6c 65 20 6f 70 74 ┆reens with rea- sonable opt┆ 0x0240…0260 69 6d 69 7a 61 74 69 6f 6e 2e 20 20 41 20 70 72 6f 67 72 61 6d 20 75 73 69 6e 67 20 74 68 65 73 ┆imization. A program using thes┆ 0x0260…0280 65 20 72 6f 75 74 69 6e 65 73 20 6d 75 73 74 0a 20 20 20 20 20 62 65 09 63 6f 6d 70 69 6c 65 64 ┆e routines must be compiled┆ 0x0280…02a0 20 77 69 74 68 20 74 68 65 20 2d 08 2d 08 2d 08 2d 6c 08 6c 08 6c 08 6c 63 08 63 08 63 08 63 75 ┆ with the - - - -l l l lc c c cu┆ 0x02a0…02c0 08 75 08 75 08 75 72 08 72 08 72 08 72 73 08 73 08 73 08 73 65 08 65 08 65 08 65 73 08 73 08 73 ┆ u u ur r r rs s s se e e es s s┆ 0x02c0…02e0 08 73 20 6f 70 74 69 6f 6e 20 6f 66 20 63 08 63 08 63 08 63 63 08 63 08 63 08 63 2e 0a 0a 20 20 ┆ s option of c c c cc c c c. ┆ 0x02e0…0300 20 20 20 54 68 65 20 5f 08 63 5f 08 75 5f 08 72 5f 08 73 5f 08 65 5f 08 73 09 70 61 63 6b 61 67 ┆ The _ c_ u_ r_ s_ e_ s packag┆ 0x0300…0320 65 09 61 6c 6c 6f 77 73 3a 09 20 6f 76 65 72 61 6c 6c 20 73 63 72 65 65 6e 2c 20 77 69 6e 64 6f ┆e allows: overall screen, windo┆ 0x0320…0340 77 09 61 6e 64 20 70 61 64 0a 20 20 20 20 20 6d 61 6e 69 70 75 6c 61 74 69 6f 6e 3b 20 6f 75 74 ┆w and pad manipulation; out┆ 0x0340…0360 70 75 74 20 74 6f 20 77 69 6e 64 6f 77 73 20 61 6e 64 20 70 61 64 73 3b 20 72 65 61 64 69 6e 67 ┆put to windows and pads; reading┆ 0x0360…0380 20 74 65 72 6d 69 6e 61 6c 0a 20 20 20 20 20 69 6e 70 75 74 3b 20 63 6f 6e 74 72 6f 6c 20 6f 76 ┆ terminal input; control ov┆ 0x0380…03a0 65 72 20 74 65 72 6d 69 6e 61 6c 20 61 6e 64 20 5f 08 63 5f 08 75 5f 08 72 5f 08 73 5f 08 65 5f ┆er terminal and _ c_ u_ r_ s_ e_┆ 0x03a0…03c0 08 73 20 69 6e 70 75 74 20 61 6e 64 20 6f 75 74 70 75 74 0a 20 20 20 20 20 6f 70 74 69 6f 6e 73 ┆ s input and output options┆ 0x03c0…03e0 3b 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 71 75 65 72 79 09 72 6f 75 74 69 6e 65 73 3b 20 63 6f ┆; environment query routines; co┆ 0x03e0…0400 6c 6f 72 09 6d 61 6e 69 70 75 6c 61 74 69 6f 6e 3b 20 75 73 65 0a 20 20 20 20 20 6f 66 09 73 6f ┆lor manipulation; use of so┆ 0x0400…0420 66 74 20 6c 61 62 65 6c 20 6b 65 79 73 3b 20 74 65 72 6d 69 6e 66 6f 20 61 63 63 65 73 73 3b 20 ┆ft label keys; terminfo access; ┆ 0x0420…0440 61 6e 64 20 61 63 63 65 73 73 20 74 6f 09 6c 6f 77 2d 6c 65 76 65 6c 0a 20 20 20 20 20 5f 08 63 ┆and access to low-level _ c┆ 0x0440…0460 5f 08 75 5f 08 72 5f 08 73 5f 08 65 5f 08 73 20 72 6f 75 74 69 6e 65 73 2e 0a 0a 20 20 20 20 20 ┆_ u_ r_ s_ e_ s routines. ┆ 0x0460…0480 54 6f 09 69 6e 69 74 69 61 6c 69 7a 65 20 74 68 65 20 72 6f 75 74 69 6e 65 73 2c 20 74 68 65 20 ┆To initialize the routines, the ┆ 0x0480…04a0 72 6f 75 74 69 6e 65 20 5f 08 69 5f 08 6e 5f 08 69 5f 08 74 5f 08 73 5f 08 63 5f 08 72 20 6f 72 ┆routine _ i_ n_ i_ t_ s_ c_ r or┆ 0x04a0…04c0 09 5f 08 6e 5f 08 65 5f 08 77 5f 08 74 5f 08 65 5f 08 72 5f 08 6d 0a 20 20 20 20 20 6d 75 73 74 ┆ _ n_ e_ w_ t_ e_ r_ m must┆ 0x04c0…04e0 20 62 65 20 63 61 6c 6c 65 64 20 62 65 66 6f 72 65 20 61 6e 79 20 6f 66 20 74 68 65 20 6f 74 68 ┆ be called before any of the oth┆ 0x04e0…0500 65 72 20 72 6f 75 74 69 6e 65 73 20 74 68 61 74 20 64 65 61 6c 0a 20 20 20 20 20 77 69 74 68 20 ┆er routines that deal with ┆ 0x0500…0520 77 69 6e 64 6f 77 73 20 61 6e 64 20 73 63 72 65 65 6e 73 20 61 72 65 20 75 73 65 64 2e 09 20 54 ┆windows and screens are used. T┆ 0x0520…0540 68 65 20 72 6f 75 74 69 6e 65 20 5f 08 65 5f 08 6e 5f 08 64 5f 08 77 5f 08 69 5f 08 6e 20 6d 75 ┆he routine _ e_ n_ d_ w_ i_ n mu┆ 0x0540…0560 73 74 0a 20 20 20 20 20 62 65 09 63 61 6c 6c 65 64 20 62 65 66 6f 72 65 20 65 78 69 74 69 6e 67 ┆st be called before exiting┆ 0x0560…0580 2e 09 54 6f 20 67 65 74 20 63 68 61 72 61 63 74 65 72 2d 61 74 2d 61 2d 74 69 6d 65 20 69 6e 70 ┆. To get character-at-a-time inp┆ 0x0580…05a0 75 74 0a 20 20 20 20 20 77 69 74 68 6f 75 74 20 65 63 68 6f 69 6e 67 20 28 6d 6f 73 74 20 69 6e ┆ut without echoing (most in┆ 0x05a0…05c0 74 65 72 61 63 74 69 76 65 2c 09 73 63 72 65 65 6e 20 6f 72 69 65 6e 74 65 64 09 70 72 6f 67 72 ┆teractive, screen oriented progr┆ 0x05c0…05e0 61 6d 73 0a 20 20 20 20 20 77 61 6e 74 20 74 68 69 73 29 2c 20 74 68 65 20 66 6f 6c 6c 6f 77 69 ┆ams want this), the followi┆ 0x05e0…0600 6e 67 20 73 65 71 75 65 6e 63 65 09 73 68 6f 75 6c 64 20 62 65 20 75 73 65 64 3a 0a 0a 09 20 20 ┆ng sequence should be used: ┆ 0x0600…0620 5f 08 69 5f 08 6e 5f 08 69 5f 08 74 5f 08 73 5f 08 63 5f 08 72 2c 5f 08 63 5f 08 62 5f 08 72 5f ┆_ i_ n_ i_ t_ s_ c_ r,_ c_ b_ r_┆ 0x0620…0640 08 65 5f 08 61 5f 08 6b 2c 5f 08 6e 5f 08 6f 5f 08 65 5f 08 63 5f 08 68 5f 08 6f 3b 0a 0a 20 20 ┆ e_ a_ k,_ n_ o_ e_ c_ h_ o; ┆ 0x0640…0660 20 20 20 4d 6f 73 74 20 70 72 6f 67 72 61 6d 73 20 77 6f 75 6c 64 20 61 64 64 69 74 69 6f 6e 61 ┆ Most programs would additiona┆ 0x0660…0680 6c 6c 79 20 75 73 65 20 74 68 65 20 73 65 71 75 65 6e 63 65 3a 0a 0a 09 20 20 5f 08 6e 5f 08 6f ┆lly use the sequence: _ n_ o┆ 0x0680…06a0 5f 08 6e 5f 08 6c 2c 5f 08 69 5f 08 6e 5f 08 74 5f 08 72 5f 08 66 5f 08 6c 5f 08 75 5f 08 73 5f ┆_ n_ l,_ i_ n_ t_ r_ f_ l_ u_ s_┆ 0x06a0…06c0 08 68 28 5f 08 73 5f 08 74 5f 08 64 5f 08 73 5f 08 63 5f 08 72 2c 5f 08 46 5f 08 41 5f 08 4c 5f ┆ h(_ s_ t_ d_ s_ c_ r,_ F_ A_ L_┆ 0x06c0…06e0 08 53 5f 08 45 29 2c 5f 08 6b 5f 08 65 5f 08 79 5f 08 70 5f 08 61 5f 08 64 28 5f 08 73 5f 08 74 ┆ S_ E),_ k_ e_ y_ p_ a_ d(_ s_ t┆ 0x06e0…0700 5f 08 64 5f 08 73 5f 08 63 5f 08 72 2c 5f 08 54 5f 08 52 5f 08 55 5f 08 45 29 3b 0a 0a 20 20 20 ┆_ d_ s_ c_ r,_ T_ R_ U_ E); ┆ 0x0700…0720 20 20 42 65 66 6f 72 65 20 61 20 5f 08 63 5f 08 75 5f 08 72 5f 08 73 5f 08 65 5f 08 73 20 70 72 ┆ Before a _ c_ u_ r_ s_ e_ s pr┆ 0x0720…0740 6f 67 72 61 6d 20 69 73 09 72 75 6e 2c 20 74 68 65 20 74 61 62 20 73 74 6f 70 73 20 6f 66 20 74 ┆ogram is run, the tab stops of t┆ 0x0740…0760 68 65 20 74 65 72 6d 69 2d 0a 20 20 20 20 20 6e 61 6c 20 73 68 6f 75 6c 64 09 62 65 20 73 65 74 ┆he termi- nal should be set┆ 0x0760…0780 20 61 6e 64 20 69 74 73 20 69 6e 69 74 69 61 6c 69 7a 61 74 69 6f 6e 20 73 74 72 69 6e 67 73 2c ┆ and its initialization strings,┆ 0x0780…07a0 20 69 66 0a 20 20 20 20 20 64 65 66 69 6e 65 64 2c 20 6d 75 73 74 20 62 65 20 6f 75 74 70 75 74 ┆ if defined, must be output┆ 0x07a0…07c0 2e 20 20 54 68 69 73 20 63 61 6e 09 62 65 20 64 6f 6e 65 09 62 79 20 65 78 65 63 75 74 69 6e 67 ┆. This can be done by executing┆ 0x07c0…07e0 20 74 68 65 0a 20 20 20 20 20 74 08 74 08 74 08 74 70 08 70 08 70 08 70 75 08 75 08 75 08 75 74 ┆ the t t t tp p p pu u u ut┆ 0x07e0…0800 08 74 08 74 08 74 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 69 08 69 08 69 08 69 74 08 74 08 ┆ t t t i i i in n n ni i i it t ┆ 0x0800…0820 74 08 74 20 63 6f 6d 6d 61 6e 64 20 61 66 74 65 72 20 74 68 65 20 73 68 65 6c 6c 20 65 6e 76 69 ┆t t command after the shell envi┆ 0x0820…0840 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c 65 20 54 45 52 4d 0a 20 20 20 20 20 68 61 73 20 62 ┆ronment variable TERM has b┆ 0x0840…0860 65 65 6e 20 65 78 70 6f 72 74 65 64 2e 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 63 5f 08 75 5f 08 ┆een exported. The _ c_ u_ ┆ 0x0860…0880 72 5f 08 73 5f 08 65 5f 08 73 09 6c 69 62 72 61 72 79 09 70 65 72 6d 69 74 73 09 6d 61 6e 69 70 ┆r_ s_ e_ s library permits manip┆ 0x0880…08a0 75 6c 61 74 69 6f 6e 20 6f 66 09 64 61 74 61 20 73 74 72 75 63 74 75 72 65 73 2c 0a 20 20 20 20 ┆ulation of data structures, ┆ 0x08a0…08c0 20 63 61 6c 6c 65 64 20 5f 08 77 5f 08 69 5f 08 6e 5f 08 64 5f 08 6f 5f 08 77 5f 08 73 2c 20 77 ┆ called _ w_ i_ n_ d_ o_ w_ s, w┆ 0x08c0…08e0 68 69 63 68 20 63 61 6e 20 62 65 20 74 68 6f 75 67 68 74 20 6f 66 20 61 73 09 74 77 6f 2d 64 69 ┆hich can be thought of as two-di┆ 0x08e0…0900 6d 65 6e 73 69 6f 6e 61 6c 0a 20 20 20 20 20 61 72 72 61 79 73 20 6f 66 20 63 68 61 72 61 63 74 ┆mensional arrays of charact┆ 0x0900…0920 65 72 73 20 72 65 70 72 65 73 65 6e 74 69 6e 67 20 61 6c 6c 20 6f 72 20 70 61 72 74 20 6f 66 20 ┆ers representing all or part of ┆ 0x0920…0940 61 09 43 52 54 0a 20 20 20 20 20 73 63 72 65 65 6e 2e 20 20 41 09 64 65 66 61 75 6c 74 09 77 69 ┆a CRT screen. A default wi┆ 0x0940…0960 6e 64 6f 77 20 63 61 6c 6c 65 64 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 64 08 64 08 64 08 ┆ndow called s s s st t t td d d ┆ 0x0960…0980 64 73 08 73 08 73 08 73 63 08 63 08 63 08 63 72 08 72 08 72 08 72 2c 20 77 68 69 63 68 20 69 73 ┆ds s s sc c c cr r r r, which is┆ 0x0980…09a0 20 74 68 65 20 73 69 7a 65 0a 20 20 20 20 20 6f 66 09 74 68 65 20 74 65 72 6d 69 6e 61 6c 20 73 ┆ the size of the terminal s┆ 0x09a0…09c0 63 72 65 65 6e 2c 20 69 73 09 73 75 70 70 6c 69 65 64 2e 20 20 4f 74 68 65 72 73 20 6d 61 79 20 ┆creen, is supplied. Others may ┆ 0x09c0…09e0 62 65 20 63 72 65 61 74 65 64 0a 20 20 20 20 20 77 69 74 68 20 5f 08 6e 5f 08 65 5f 08 77 5f 08 ┆be created with _ n_ e_ w_ ┆ 0x09e0…0a00 77 5f 08 69 5f 08 6e 2e 0a 0a 20 20 20 20 20 57 69 6e 64 6f 77 73 20 61 72 65 20 72 65 66 65 72 ┆w_ i_ n. Windows are refer┆ 0x0a00…0a20 72 65 64 20 74 6f 20 62 79 09 76 61 72 69 61 62 6c 65 73 20 64 65 63 6c 61 72 65 64 20 61 73 20 ┆red to by variables declared as ┆ 0x0a20…0a40 57 49 4e 44 4f 57 20 2a 2e 0a 20 20 20 20 20 54 68 65 73 65 20 64 61 74 61 09 73 74 72 75 63 74 ┆WINDOW *. These data struct┆ 0x0a40…0a60 75 72 65 73 20 61 72 65 20 6d 61 6e 69 70 75 6c 61 74 65 64 20 77 69 74 68 09 72 6f 75 74 69 6e ┆ures are manipulated with routin┆ 0x0a60…0a80 65 73 0a 20 20 20 20 20 64 65 73 63 72 69 62 65 64 20 6f 6e 20 33 58 20 70 61 67 65 73 20 28 77 ┆es described on 3X pages (w┆ 0x0a80…0aa0 68 6f 73 65 20 6e 61 6d 65 73 09 62 65 67 69 6e 20 22 63 75 72 73 5f 22 29 2e 09 20 41 6d 6f 6e ┆hose names begin "curs_"). Amon┆ 0x0aa0…0ac0 67 0a 20 20 20 20 20 77 68 69 63 68 20 74 68 65 20 6d 6f 73 74 20 62 61 73 69 63 20 72 6f 75 74 ┆g which the most basic rout┆ 0x0ac0…0ae0 69 6e 65 73 20 61 72 65 20 5f 08 6d 5f 08 6f 5f 08 76 5f 08 65 20 61 6e 64 09 5f 08 61 5f 08 64 ┆ines are _ m_ o_ v_ e and _ a_ d┆ 0x0ae0…0b00 5f 08 64 5f 08 63 5f 08 68 2e 09 4d 6f 72 65 20 67 65 6e 2d 0a 20 20 20 20 20 65 72 61 6c 20 76 ┆_ d_ c_ h. More gen- eral v┆ 0x0b00…0b20 65 72 73 69 6f 6e 73 20 6f 66 20 74 68 65 73 65 20 72 6f 75 74 69 6e 65 73 20 61 72 65 20 69 6e ┆ersions of these routines are in┆ 0x0b20…0b40 63 6c 75 64 65 64 20 77 69 74 68 20 6e 61 6d 65 73 0a 20 20 20 20 20 62 65 67 69 6e 6e 69 6e 67 ┆cluded with names beginning┆ 0x0b40…0b60 20 77 69 74 68 20 5f 08 77 2c 20 61 6c 6c 6f 77 69 6e 67 09 74 68 65 20 75 73 65 72 20 74 6f 20 ┆ with _ w, allowing the user to ┆ 0x0b60…0b80 73 70 65 63 69 66 79 20 61 20 77 69 6e 64 6f 77 2e 0a 20 20 20 20 20 54 68 65 20 72 6f 75 74 69 ┆specify a window. The routi┆ 0x0b80…0ba0 6e 65 73 20 6e 6f 74 20 62 65 67 69 6e 6e 69 6e 67 09 77 69 74 68 20 5f 08 77 20 61 66 66 65 63 ┆nes not beginning with _ w affec┆ 0x0ba0…0bc0 74 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 64 08 64 08 64 08 64 73 08 73 08 73 08 73 63 08 ┆t s s s st t t td d d ds s s sc ┆ 0x0bc0…0be0 63 08 63 08 63 72 08 72 08 72 08 72 2e 29 0a 0a 20 20 20 20 20 41 66 74 65 72 20 75 73 69 6e 67 ┆c c cr r r r.) After using┆ 0x0be0…0c00 20 72 6f 75 74 69 6e 65 73 20 74 6f 20 6d 61 6e 69 70 75 6c 61 74 65 09 61 20 77 69 6e 64 6f 77 ┆ routines to manipulate a window┆ 0x0c00…0c20 2c 20 5f 08 72 5f 08 65 5f 08 66 5f 08 72 5f 08 65 5f 08 73 5f 08 68 20 69 73 0a 20 20 20 20 20 ┆, _ r_ e_ f_ r_ e_ s_ h is ┆ 0x0c20…0c40 63 61 6c 6c 65 64 2c 20 74 65 6c 6c 69 6e 67 20 5f 08 63 5f 08 75 5f 08 72 5f 08 73 5f 08 65 5f ┆called, telling _ c_ u_ r_ s_ e_┆ 0x0c40…0c60 08 73 20 74 6f 20 6d 61 6b 65 20 74 68 65 09 75 73 65 72 27 73 20 43 52 54 20 73 63 72 65 65 6e ┆ s to make the user's CRT screen┆ 0x0c60…0c80 20 6c 6f 6f 6b 0a 20 20 20 20 20 6c 69 6b 65 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 64 08 ┆ look like s s s st t t td ┆ 0x0c80…0ca0 64 08 64 08 64 73 08 73 08 73 08 73 63 08 63 08 63 08 63 72 08 72 08 72 08 72 2e 20 20 54 68 65 ┆d d ds s s sc c c cr r r r. The┆ 0x0ca0…0cc0 20 63 68 61 72 61 63 74 65 72 73 20 69 6e 20 61 20 77 69 6e 64 6f 77 20 61 72 65 20 61 63 74 75 ┆ characters in a window are actu┆ 0x0cc0…0ce0 61 6c 6c 79 20 6f 66 0a 20 20 20 20 20 74 79 70 65 20 63 08 63 08 63 08 63 68 08 68 08 68 08 68 ┆ally of type c c c ch h h h┆ 0x0ce0…0d00 74 08 74 08 74 08 74 79 08 79 08 79 08 79 70 08 70 08 70 08 70 65 08 65 08 65 08 65 2c 20 28 63 ┆t t t ty y y yp p p pe e e e, (c┆ 0x0d00…0d20 68 61 72 61 63 74 65 72 20 61 6e 64 20 61 74 74 72 69 62 75 74 65 20 64 61 74 61 29 20 73 6f 20 ┆haracter and attribute data) so ┆ 0x0d20…0d40 74 68 61 74 20 6f 74 68 65 72 0a 20 20 20 20 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 61 62 6f 75 ┆that other information abou┆ 0x0d40…0d60 74 20 74 68 65 20 63 68 61 72 61 63 74 65 72 20 6d 61 79 20 61 6c 73 6f 20 62 65 20 73 74 6f 72 ┆t the character may also be stor┆ 0x0d60…0d80 65 64 09 77 69 74 68 20 65 61 63 68 0a 20 20 20 20 20 63 68 61 72 61 63 74 65 72 2e 0a 0a 0a 0a ┆ed with each character. ┆ 0x0d80…0da0 0a 0a 0a 20 20 20 20 20 53 70 65 63 69 61 6c 20 77 69 6e 64 6f 77 73 20 63 61 6c 6c 65 64 20 5f ┆ Special windows called _┆ 0x0da0…0dc0 08 70 5f 08 61 5f 08 64 5f 08 73 20 6d 61 79 20 61 6c 73 6f 20 62 65 20 6d 61 6e 69 70 75 6c 61 ┆ p_ a_ d_ s may also be manipula┆ 0x0dc0…0de0 74 65 64 2e 20 20 54 68 65 73 65 0a 20 20 20 20 20 61 72 65 20 77 69 6e 64 6f 77 73 20 77 68 69 ┆ted. These are windows whi┆ 0x0de0…0e00 63 68 20 61 72 65 20 6e 6f 74 20 63 6f 6e 73 74 72 61 69 6e 65 64 20 74 6f 20 74 68 65 20 73 69 ┆ch are not constrained to the si┆ 0x0e00…0e20 7a 65 20 6f 66 20 74 68 65 0a 20 20 20 20 20 73 63 72 65 65 6e 20 61 6e 64 09 77 68 6f 73 65 20 ┆ze of the screen and whose ┆ 0x0e20…0e40 63 6f 6e 74 65 6e 74 73 20 6e 65 65 64 20 6e 6f 74 09 62 65 20 63 6f 6d 70 6c 65 74 65 6c 79 20 ┆contents need not be completely ┆ 0x0e40…0e60 64 69 73 70 6c 61 79 65 64 2e 0a 20 20 20 20 20 53 65 65 20 63 75 72 73 5f 70 61 64 28 33 58 29 ┆displayed. See curs_pad(3X)┆ 0x0e60…0e80 20 66 6f 72 20 6d 6f 72 65 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 2e 0a 0a 20 20 20 20 20 49 6e 09 ┆ for more information. In ┆ 0x0e80…0ea0 61 64 64 69 74 69 6f 6e 20 74 6f 20 64 72 61 77 69 6e 67 20 63 68 61 72 61 63 74 65 72 73 20 6f ┆addition to drawing characters o┆ 0x0ea0…0ec0 6e 20 74 68 65 20 73 63 72 65 65 6e 2c 20 76 69 64 65 6f 0a 20 20 20 20 20 61 74 74 72 69 62 75 ┆n the screen, video attribu┆ 0x0ec0…0ee0 74 65 73 09 61 6e 64 20 63 6f 6c 6f 72 73 20 6d 61 79 20 62 65 20 69 6e 63 6c 75 64 65 64 2c 20 ┆tes and colors may be included, ┆ 0x0ee0…0f00 63 61 75 73 69 6e 67 20 74 68 65 09 63 68 61 72 61 63 2d 0a 20 20 20 20 20 74 65 72 73 20 74 6f ┆causing the charac- ters to┆ 0x0f00…0f20 20 73 68 6f 77 20 75 70 20 69 6e 09 73 75 63 68 20 6d 6f 64 65 73 20 61 73 20 75 6e 64 65 72 6c ┆ show up in such modes as underl┆ 0x0f20…0f40 69 6e 65 64 2c 20 69 6e 20 72 65 76 65 72 73 65 0a 20 20 20 20 20 76 69 64 65 6f 2c 20 6f 72 20 ┆ined, in reverse video, or ┆ 0x0f40…0f60 69 6e 20 63 6f 6c 6f 72 09 6f 6e 20 74 65 72 6d 69 6e 61 6c 73 20 74 68 61 74 20 73 75 70 70 6f ┆in color on terminals that suppo┆ 0x0f60…0f80 72 74 20 73 75 63 68 20 64 69 73 70 6c 61 79 0a 20 20 20 20 20 65 6e 68 61 6e 63 65 6d 65 6e 74 ┆rt such display enhancement┆ 0x0f80…0fa0 73 2e 20 20 4c 69 6e 65 20 64 72 61 77 69 6e 67 20 63 68 61 72 61 63 74 65 72 73 20 6d 61 79 09 ┆s. Line drawing characters may ┆ 0x0fa0…0fc0 62 65 20 73 70 65 63 69 66 69 65 64 20 74 6f 0a 20 20 20 20 20 62 65 09 6f 75 74 70 75 74 2e 09 ┆be specified to be output. ┆ 0x0fc0…0fe0 20 4f 6e 20 69 6e 70 75 74 2c 20 5f 08 63 5f 08 75 5f 08 72 5f 08 73 5f 08 65 5f 08 73 20 69 73 ┆ On input, _ c_ u_ r_ s_ e_ s is┆ 0x0fe0…1000 20 61 6c 73 6f 20 61 62 6c 65 20 74 6f 20 74 72 61 6e 73 6c 61 74 65 20 61 72 72 6f 77 0a 20 20 ┆ also able to translate arrow ┆ 0x1000…1020 20 20 20 61 6e 64 20 66 75 6e 63 74 69 6f 6e 20 6b 65 79 73 20 74 68 61 74 20 74 72 61 6e 73 6d ┆ and function keys that transm┆ 0x1020…1040 69 74 20 65 73 63 61 70 65 20 73 65 71 75 65 6e 63 65 73 20 69 6e 74 6f 20 73 69 6e 67 6c 65 0a ┆it escape sequences into single ┆ 0x1040…1060 20 20 20 20 20 76 61 6c 75 65 73 2e 20 20 54 68 65 20 76 69 64 65 6f 09 61 74 74 72 69 62 75 74 ┆ values. The video attribut┆ 0x1060…1080 65 73 2c 20 6c 69 6e 65 20 64 72 61 77 69 6e 67 20 63 68 61 72 61 63 74 65 72 73 2c 20 61 6e 64 ┆es, line drawing characters, and┆ 0x1080…10a0 0a 20 20 20 20 20 69 6e 70 75 74 20 76 61 6c 75 65 73 20 75 73 65 20 6e 61 6d 65 73 2c 20 64 65 ┆ input values use names, de┆ 0x10a0…10c0 66 69 6e 65 64 20 69 6e 09 3c 08 3c 08 3c 08 3c 63 08 63 08 63 08 63 75 08 75 08 75 08 75 72 08 ┆fined in < < < <c c c cu u u ur ┆ 0x10c0…10e0 72 08 72 08 72 73 08 73 08 73 08 73 65 08 65 08 65 08 65 73 08 73 08 73 08 73 2e 08 2e 08 2e 08 ┆r r rs s s se e e es s s s. . . ┆ 0x10e0…1100 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 2c 20 73 75 63 68 20 61 73 0a 20 20 20 20 20 41 5f ┆.h h h h> > > >, such as A_┆ 0x1100…1120 52 45 56 45 52 53 45 2c 09 41 43 53 5f 48 4c 49 4e 45 2c 20 61 6e 64 20 4b 45 59 5f 4c 45 46 54 ┆REVERSE, ACS_HLINE, and KEY_LEFT┆ 0x1120…1140 2e 0a 0a 20 20 20 20 20 49 66 09 74 68 65 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 09 76 61 72 69 61 ┆. If the environment varia┆ 0x1140…1160 62 6c 65 73 20 4c 49 4e 45 53 09 61 6e 64 20 43 4f 4c 55 4d 4e 53 20 61 72 65 09 73 65 74 2c 20 ┆bles LINES and COLUMNS are set, ┆ 0x1160…1180 6f 72 0a 20 20 20 20 20 69 66 09 74 68 65 20 70 72 6f 67 72 61 6d 20 69 73 20 65 78 65 63 75 74 ┆or if the program is execut┆ 0x1180…11a0 69 6e 67 20 69 6e 20 61 20 77 69 6e 64 6f 77 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 2c 20 6c 69 6e ┆ing in a window environment, lin┆ 0x11a0…11c0 65 0a 20 20 20 20 20 61 6e 64 20 63 6f 6c 75 6d 6e 09 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 69 6e ┆e and column information in┆ 0x11c0…11e0 20 74 68 65 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 77 69 6c 6c 20 6f 76 65 72 72 69 64 65 0a 20 ┆ the environment will override ┆ 0x11e0…1200 20 20 20 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 72 65 61 64 20 62 79 20 5f 08 74 5f 08 65 5f 08 ┆ information read by _ t_ e_ ┆ 0x1200…1220 72 5f 08 6d 5f 08 69 5f 08 6e 5f 08 66 5f 08 6f 2e 20 20 54 68 69 73 20 77 6f 75 6c 64 20 65 66 ┆r_ m_ i_ n_ f_ o. This would ef┆ 0x1220…1240 66 65 63 74 20 61 09 70 72 6f 67 72 61 6d 0a 20 20 20 20 20 72 75 6e 6e 69 6e 67 20 69 6e 09 61 ┆fect a program running in a┆ 0x1240…1260 6e 20 41 54 26 54 09 36 33 30 20 6c 61 79 65 72 2c 20 66 6f 72 20 65 78 61 6d 70 6c 65 2c 09 77 ┆n AT&T 630 layer, for example, w┆ 0x1260…1280 68 65 72 65 20 74 68 65 20 73 69 7a 65 20 6f 66 0a 20 20 20 20 20 61 20 73 63 72 65 65 6e 20 69 ┆here the size of a screen i┆ 0x1280…12a0 73 20 63 68 61 6e 67 65 61 62 6c 65 2e 0a 0a 20 20 20 20 20 49 66 09 74 68 65 20 65 6e 76 69 72 ┆s changeable. If the envir┆ 0x12a0…12c0 6f 6e 6d 65 6e 74 09 76 61 72 69 61 62 6c 65 20 54 45 52 4d 49 4e 46 4f 20 69 73 20 64 65 66 69 ┆onment variable TERMINFO is defi┆ 0x12c0…12e0 6e 65 64 2c 20 61 6e 79 20 70 72 6f 67 72 61 6d 0a 20 20 20 20 20 75 73 69 6e 67 20 5f 08 63 5f ┆ned, any program using _ c_┆ 0x12e0…1300 08 75 5f 08 72 5f 08 73 5f 08 65 5f 08 73 20 63 68 65 63 6b 73 20 66 6f 72 20 61 20 6c 6f 63 61 ┆ u_ r_ s_ e_ s checks for a loca┆ 0x1300…1320 6c 20 74 65 72 6d 69 6e 61 6c 20 64 65 66 69 6e 69 74 69 6f 6e 20 62 65 66 6f 72 65 0a 20 20 20 ┆l terminal definition before ┆ 0x1320…1340 20 20 63 68 65 63 6b 69 6e 67 20 69 6e 20 74 68 65 20 73 74 61 6e 64 61 72 64 20 70 6c 61 63 65 ┆ checking in the standard place┆ 0x1340…1360 2e 0a 0a 20 20 20 20 20 54 68 65 20 69 6e 74 65 67 65 72 20 76 61 72 69 61 62 6c 65 73 20 4c 49 ┆. The integer variables LI┆ 0x1360…1380 4e 45 53 20 61 6e 64 20 43 4f 4c 53 20 61 72 65 20 64 65 66 69 6e 65 64 20 69 6e 0a 20 20 20 20 ┆NES and COLS are defined in ┆ 0x1380…13a0 20 3c 08 3c 08 3c 08 3c 63 08 63 08 63 08 63 75 08 75 08 75 08 75 72 08 72 08 72 08 72 73 08 73 ┆ < < < <c c c cu u u ur r r rs s┆ 0x13a0…13c0 08 73 08 73 65 08 65 08 65 08 65 73 08 73 08 73 08 73 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 ┆ s se e e es s s s. . . .h h h h┆ 0x13c0…13e0 3e 08 3e 08 3e 08 3e 09 61 6e 64 20 77 69 6c 6c 20 62 65 20 66 69 6c 6c 65 64 20 69 6e 20 62 79 ┆> > > > and will be filled in by┆ 0x13e0…1400 20 5f 08 69 5f 08 6e 5f 08 69 5f 08 74 5f 08 73 5f 08 63 5f 08 72 20 77 69 74 68 20 74 68 65 20 ┆ _ i_ n_ i_ t_ s_ c_ r with the ┆ 0x1400…1420 73 69 7a 65 20 6f 66 0a 20 20 20 20 20 74 68 65 20 73 63 72 65 65 6e 2e 20 20 54 68 65 20 63 6f ┆size of the screen. The co┆ 0x1420…1440 6e 73 74 61 6e 74 73 09 54 52 55 45 20 61 6e 64 20 46 41 4c 53 45 20 68 61 76 65 20 74 68 65 09 ┆nstants TRUE and FALSE have the ┆ 0x1440…1460 76 61 6c 75 65 73 20 31 08 31 08 31 08 31 0a 20 20 20 20 20 61 6e 64 20 30 08 30 08 30 08 30 2c ┆values 1 1 1 1 and 0 0 0 0,┆ 0x1460…1480 20 72 65 73 70 65 63 74 69 76 65 6c 79 2e 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 63 5f 08 75 5f ┆ respectively. The _ c_ u_┆ 0x1480…14a0 08 72 5f 08 73 5f 08 65 5f 08 73 09 72 6f 75 74 69 6e 65 73 20 61 6c 73 6f 20 64 65 66 69 6e 65 ┆ r_ s_ e_ s routines also define┆ 0x14a0…14c0 20 74 68 65 20 57 49 4e 44 4f 57 09 2a 20 76 61 72 69 61 62 6c 65 20 63 08 63 08 63 08 63 75 08 ┆ the WINDOW * variable c c c cu ┆ 0x14c0…14e0 75 08 75 08 75 72 08 72 08 72 08 72 73 08 73 08 73 08 73 63 08 63 08 63 08 63 72 08 72 08 72 08 ┆u u ur r r rs s s sc c c cr r r ┆ 0x14e0…1500 72 0a 20 20 20 20 20 77 68 69 63 68 20 69 73 20 75 73 65 64 20 66 6f 72 20 63 65 72 74 61 69 6e ┆r which is used for certain┆ 0x1500…1520 20 6c 6f 77 2d 6c 65 76 65 6c 20 6f 70 65 72 61 74 69 6f 6e 73 20 6c 69 6b 65 20 63 6c 65 61 72 ┆ low-level operations like clear┆ 0x1520…1540 69 6e 67 0a 20 20 20 20 20 61 6e 64 20 72 65 64 72 61 77 69 6e 67 20 61 20 73 63 72 65 65 6e 20 ┆ing and redrawing a screen ┆ 0x1540…1560 63 6f 6e 74 61 69 6e 69 6e 67 20 67 61 72 62 61 67 65 2e 09 20 54 68 65 20 63 08 63 08 63 08 63 ┆containing garbage. The c c c c┆ 0x1560…1580 75 08 75 08 75 08 75 72 08 72 08 72 08 72 73 08 73 08 73 08 73 63 08 63 08 63 08 63 72 08 72 08 ┆u u u ur r r rs s s sc c c cr r ┆ 0x1580…15a0 72 08 72 20 63 61 6e 0a 20 20 20 20 20 62 65 09 75 73 65 64 20 69 6e 09 6f 6e 6c 79 20 61 20 66 ┆r r can be used in only a f┆ 0x15a0…15c0 65 77 20 72 6f 75 74 69 6e 65 73 2e 0a 0a 20 20 20 20 20 52 08 52 08 52 08 52 6f 08 6f 08 6f 08 ┆ew routines. R R R Ro o o ┆ 0x15c0…15e0 6f 75 08 75 08 75 08 75 74 08 74 08 74 08 74 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 65 08 65 ┆ou u u ut t t ti i i in n n ne e┆ 0x15e0…1600 08 65 08 65 20 61 08 61 08 61 08 61 6e 08 6e 08 6e 08 6e 64 08 64 08 64 08 64 20 41 08 41 08 41 ┆ e e a a a an n n nd d d d A A A┆ 0x1600…1620 08 41 72 08 72 08 72 08 72 67 08 67 08 67 08 67 75 08 75 08 75 08 75 6d 08 6d 08 6d 08 6d 65 08 ┆ Ar r r rg g g gu u u um m m me ┆ 0x1620…1640 65 08 65 08 65 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 4e 08 4e 08 4e 08 4e 61 08 61 08 61 ┆e e en n n nt t t t N N N Na a a┆ 0x1640…1660 08 61 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 73 08 73 08 73 08 73 0a 20 20 20 20 20 4d 61 6e ┆ am m m me e e es s s s Man┆ 0x1660…1680 79 20 5f 08 63 5f 08 75 5f 08 72 5f 08 73 5f 08 65 5f 08 73 20 72 6f 75 74 69 6e 65 73 20 68 61 ┆y _ c_ u_ r_ s_ e_ s routines ha┆ 0x1680…16a0 76 65 20 74 77 6f 20 6f 72 20 6d 6f 72 65 20 76 65 72 73 69 6f 6e 73 2e 20 20 54 68 65 20 72 6f ┆ve two or more versions. The ro┆ 0x16a0…16c0 75 2d 0a 20 20 20 20 20 74 69 6e 65 73 20 70 72 65 66 69 78 65 64 20 77 69 74 68 20 5f 08 77 20 ┆u- tines prefixed with _ w ┆ 0x16c0…16e0 72 65 71 75 69 72 65 20 61 20 77 69 6e 64 6f 77 20 61 72 67 75 6d 65 6e 74 2e 20 20 54 68 65 20 ┆require a window argument. The ┆ 0x16e0…1700 72 6f 75 2d 0a 20 20 20 20 20 74 69 6e 65 73 20 70 72 65 66 69 78 65 64 20 77 69 74 68 20 5f 08 ┆rou- tines prefixed with _ ┆ 0x1700…1720 70 20 72 65 71 75 69 72 65 20 61 20 70 61 64 20 61 72 67 75 6d 65 6e 74 2e 20 20 54 68 6f 73 65 ┆p require a pad argument. Those┆ 0x1720…1740 20 77 69 74 68 6f 75 74 0a 20 20 20 20 20 61 20 70 72 65 66 69 78 20 67 65 6e 65 72 61 6c 6c 79 ┆ without a prefix generally┆ 0x1740…1760 09 75 73 65 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 64 08 64 08 64 08 64 73 08 73 08 73 08 ┆ use s s s st t t td d d ds s s ┆ 0x1760…1780 73 63 08 63 08 63 08 63 72 08 72 08 72 08 72 2e 0a 0a 20 20 20 20 20 54 68 65 20 72 6f 75 74 69 ┆sc c c cr r r r. The routi┆ 0x1780…17a0 6e 65 73 20 70 72 65 66 69 78 65 64 20 77 69 74 68 09 5f 08 6d 5f 08 76 20 72 65 71 75 69 72 65 ┆nes prefixed with _ m_ v require┆ 0x17a0…17c0 20 61 6e 20 5f 08 78 09 61 6e 64 20 5f 08 79 20 63 6f 6f 72 64 69 6e 61 74 65 0a 20 20 20 20 20 ┆ an _ x and _ y coordinate ┆ 0x17c0…17e0 74 6f 09 6d 6f 76 65 20 74 6f 09 62 65 66 6f 72 65 20 70 65 72 66 6f 72 6d 69 6e 67 20 74 68 65 ┆to move to before performing the┆ 0x17e0…1800 20 61 70 70 72 6f 70 72 69 61 74 65 20 61 63 74 69 6f 6e 2e 20 20 54 68 65 20 5f 08 6d 5f 08 76 ┆ appropriate action. The _ m_ v┆ 0x1800…1820 0a 20 20 20 20 20 72 6f 75 74 69 6e 65 73 20 69 6d 70 6c 79 20 61 20 63 61 6c 6c 20 74 6f 20 5f ┆ routines imply a call to _┆ 0x1820…1840 08 6d 5f 08 6f 5f 08 76 5f 08 65 20 62 65 66 6f 72 65 20 74 68 65 20 63 61 6c 6c 20 74 6f 20 74 ┆ m_ o_ v_ e before the call to t┆ 0x1840…1860 68 65 20 6f 74 68 65 72 0a 20 20 20 20 20 72 6f 75 74 69 6e 65 2e 20 20 54 68 65 20 63 6f 6f 72 ┆he other routine. The coor┆ 0x1860…1880 64 69 6e 61 74 65 20 5f 08 79 09 61 6c 77 61 79 73 20 72 65 66 65 72 73 20 74 6f 20 74 68 65 20 ┆dinate _ y always refers to the ┆ 0x1880…18a0 72 6f 77 20 28 6f 66 20 74 68 65 0a 20 20 20 20 20 77 69 6e 64 6f 77 29 2c 20 61 6e 64 20 5f 08 ┆row (of the window), and _ ┆ 0x18a0…18c0 78 20 61 6c 77 61 79 73 20 72 65 66 65 72 73 20 74 6f 20 74 68 65 20 63 6f 6c 75 6d 6e 2e 20 20 ┆x always refers to the column. ┆ 0x18c0…18e0 54 68 65 20 75 70 70 65 72 0a 20 20 20 20 20 6c 65 66 74 2d 68 61 6e 64 20 63 6f 72 6e 65 72 20 ┆The upper left-hand corner ┆ 0x18e0…1900 69 73 20 61 6c 77 61 79 73 09 28 30 2c 30 29 2c 20 6e 6f 74 20 28 31 2c 31 29 2e 0a 0a 20 20 20 ┆is always (0,0), not (1,1). ┆ 0x1900…1920 20 20 54 68 65 20 72 6f 75 74 69 6e 65 73 20 70 72 65 66 69 78 65 64 20 77 69 74 68 09 5f 08 6d ┆ The routines prefixed with _ m┆ […truncated at 200 lines…]