|
|
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: 5779 (0x1693)
Names: »curs_initscr.3x«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat3/curs_initscr.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 20 20 20 20 20 20 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 ┆ u_ a_ l Library Funct┆ 0x0040…0060 69 6f 6e 73 20 20 20 20 20 20 20 20 63 75 72 73 5f 69 6e 69 74 73 63 72 28 33 78 29 0a 0a 0a 0a ┆ions curs_initscr(3x) ┆ 0x0060…0080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆ 0x0080…00a0 20 20 63 75 72 73 5f 69 6e 69 74 73 63 72 3a 20 20 69 6e 69 74 73 63 72 2c 20 6e 65 77 74 65 72 ┆ curs_initscr: initscr, newter┆ 0x00a0…00c0 6d 2c 20 65 6e 64 77 69 6e 2c 20 69 73 65 6e 64 77 69 6e 2c 20 73 65 74 5f 74 65 72 6d 2c 0a 20 ┆m, endwin, isendwin, set_term, ┆ 0x00c0…00e0 20 20 20 20 64 65 6c 73 63 72 65 65 6e 20 2d 20 63 75 72 73 65 73 20 73 63 72 65 65 6e 20 69 6e ┆ delscreen - curses screen in┆ 0x00e0…0100 69 74 69 61 6c 69 7a 61 74 69 6f 6e 20 61 6e 64 20 6d 61 6e 69 70 75 6c 61 74 69 6f 6e 0a 20 20 ┆itialization and manipulation ┆ 0x0100…0120 20 20 20 72 6f 75 74 69 6e 65 73 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e ┆ routines S S S SY Y Y YN N N┆ 0x0120…0140 08 4e 54 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 ┆ NT T T TA A A AX X X X # #┆ 0x0140…0160 08 23 08 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 ┆ # #i i i in n n nc c c cl l l l┆ 0x0160…0180 75 08 75 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 ┆u u u ud d d de e e e < < < <c c┆ 0x0180…01a0 08 63 08 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 ┆ c cu u u ur r r rs s s se e e e┆ 0x01a0…01c0 73 08 73 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 20 20 ┆s s s s. . . .h h h h> > > > ┆ 0x01c0…01e0 20 20 20 57 08 57 08 57 08 57 49 08 49 08 49 08 49 4e 08 4e 08 4e 08 4e 44 08 44 08 44 08 44 4f ┆ W W W WI I I IN N N ND D D DO┆ 0x01e0…0200 08 4f 08 4f 08 4f 57 08 57 08 57 08 57 20 2a 08 2a 08 2a 08 2a 69 08 69 08 69 08 69 6e 08 6e 08 ┆ O O OW W W W * * * *i i i in n ┆ 0x0200…0220 6e 08 6e 69 08 69 08 69 08 69 74 08 74 08 74 08 74 73 08 73 08 73 08 73 63 08 63 08 63 08 63 72 ┆n ni i i it t t ts s s sc c c cr┆ 0x0220…0240 08 72 08 72 08 72 28 08 28 08 28 08 28 29 08 29 08 29 08 29 0a 0a 20 20 20 20 20 69 08 69 08 69 ┆ r r r( ( ( () ) ) ) i i i┆ 0x0240…0260 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 64 ┆ in n n nt t t t e e e en n n nd┆ 0x0260…0280 08 64 08 64 08 64 77 08 77 08 77 08 77 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 28 08 28 08 28 ┆ d d dw w w wi i i in n n n( ( (┆ 0x0280…02a0 08 28 29 08 29 08 29 08 29 0a 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 ┆ () ) ) ) i i i in n n nt ┆ 0x02a0…02c0 74 08 74 08 74 20 69 08 69 08 69 08 69 73 08 73 08 73 08 73 65 08 65 08 65 08 65 6e 08 6e 08 6e ┆t t t i i i is s s se e e en n n┆ 0x02c0…02e0 08 6e 64 08 64 08 64 08 64 77 08 77 08 77 08 77 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 28 08 ┆ nd d d dw w w wi i i in n n n( ┆ 0x02e0…0300 28 08 28 08 28 29 08 29 08 29 08 29 0a 0a 20 20 20 20 20 53 08 53 08 53 08 53 43 08 43 08 43 08 ┆( ( () ) ) ) S S S SC C C ┆ 0x0300…0320 43 52 08 52 08 52 08 52 45 08 45 08 45 08 45 45 08 45 08 45 08 45 4e 08 4e 08 4e 08 4e 20 2a 08 ┆CR R R RE E E EE E E EN N N N * ┆ 0x0320…0340 2a 08 2a 08 2a 6e 08 6e 08 6e 08 6e 65 08 65 08 65 08 65 77 08 77 08 77 08 77 74 08 74 08 74 08 ┆* * *n n n ne e e ew w w wt t t ┆ 0x0340…0360 74 65 08 65 08 65 08 65 72 08 72 08 72 08 72 6d 08 6d 08 6d 08 6d 28 08 28 08 28 08 28 74 08 74 ┆te e e er r r rm m m m( ( ( (t t┆ 0x0360…0380 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 08 2c 08 2c 08 2c ┆ t ty y y yp p p pe e e e, , , ,┆ 0x0380…03a0 20 6f 08 6f 08 6f 08 6f 75 08 75 08 75 08 75 74 08 74 08 74 08 74 66 08 66 08 66 08 66 64 08 64 ┆ o o o ou u u ut t t tf f f fd d┆ 0x03a0…03c0 08 64 08 64 2c 08 2c 08 2c 08 2c 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 66 08 66 08 66 08 ┆ d d, , , , i i i in n n nf f f ┆ 0x03c0…03e0 66 64 08 64 08 64 08 64 29 08 29 08 29 08 29 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 08 68 08 ┆fd d d d) ) ) ) c c c ch h ┆ 0x03e0…0400 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 74 08 74 08 74 08 74 ┆h ha a a ar r r r * * * *t t t t┆ 0x0400…0420 79 08 79 08 79 08 79 70 08 70 08 70 08 70 65 08 65 08 65 08 65 3b 08 3b 08 3b 08 3b 0a 20 20 20 ┆y y y yp p p pe e e e; ; ; ; ┆ 0x0420…0440 20 20 46 08 46 08 46 08 46 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 20 2a ┆ F F F FI I I IL L L LE E E E *┆ 0x0440…0460 08 2a 08 2a 08 2a 6f 08 6f 08 6f 08 6f 75 08 75 08 75 08 75 74 08 74 08 74 08 74 66 08 66 08 66 ┆ * * *o o o ou u u ut t t tf f f┆ 0x0460…0480 08 66 64 08 64 08 64 08 64 2c 08 2c 08 2c 08 2c 20 2a 08 2a 08 2a 08 2a 69 08 69 08 69 08 69 6e ┆ fd d d d, , , , * * * *i i i in┆ 0x0480…04a0 08 6e 08 6e 08 6e 66 08 66 08 66 08 66 64 08 64 08 64 08 64 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 ┆ n n nf f f fd d d d; ; ; ; ┆ 0x04a0…04c0 20 20 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 45 08 45 08 45 08 45 45 08 ┆ S S S SC C C CR R R RE E E EE ┆ 0x04c0…04e0 45 08 45 08 45 4e 08 4e 08 4e 08 4e 20 2a 08 2a 08 2a 08 2a 73 08 73 08 73 08 73 65 08 65 08 65 ┆E E EN N N N * * * *s s s se e e┆ 0x04e0…0500 08 65 74 08 74 08 74 08 74 5f 08 5f 08 5f 08 5f 74 08 74 08 74 08 74 65 08 65 08 65 08 65 72 08 ┆ et t t t_ _ _ _t t t te e e er ┆ 0x0500…0520 72 08 72 08 72 6d 08 6d 08 6d 08 6d 28 08 28 08 28 08 28 6e 08 6e 08 6e 08 6e 65 08 65 08 65 08 ┆r r rm m m m( ( ( (n n n ne e e ┆ 0x0520…0540 65 77 08 77 08 77 08 77 29 08 29 08 29 08 29 0a 20 20 20 20 20 53 08 53 08 53 08 53 43 08 43 08 ┆ew w w w) ) ) ) S S S SC C ┆ 0x0540…0560 43 08 43 52 08 52 08 52 08 52 45 08 45 08 45 08 45 45 08 45 08 45 08 45 4e 08 4e 08 4e 08 4e 20 ┆C CR R R RE E E EE E E EN N N N ┆ 0x0560…0580 2a 08 2a 08 2a 08 2a 6e 08 6e 08 6e 08 6e 65 08 65 08 65 08 65 77 08 77 08 77 08 77 3b 08 3b 08 ┆* * * *n n n ne e e ew w w w; ; ┆ 0x0580…05a0 3b 08 3b 0a 0a 20 20 20 20 20 76 08 76 08 76 08 76 6f 08 6f 08 6f 08 6f 69 08 69 08 69 08 69 64 ┆; ; v v v vo o o oi i i id┆ 0x05a0…05c0 08 64 08 64 08 64 20 64 08 64 08 64 08 64 65 08 65 08 65 08 65 6c 08 6c 08 6c 08 6c 73 08 73 08 ┆ d d d d d d de e e el l l ls s ┆ 0x05c0…05e0 73 08 73 63 08 63 08 63 08 63 72 08 72 08 72 08 72 65 08 65 08 65 08 65 65 08 65 08 65 08 65 6e ┆s sc c c cr r r re e e ee e e en┆ 0x05e0…0600 08 6e 08 6e 08 6e 28 08 28 08 28 08 28 73 08 73 08 73 08 73 70 08 70 08 70 08 70 29 08 29 08 29 ┆ n n n( ( ( (s s s sp p p p) ) )┆ 0x0600…0620 08 29 0a 20 20 20 20 20 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 45 08 45 ┆ ) S S S SC C C CR R R RE E┆ 0x0620…0640 08 45 08 45 45 08 45 08 45 08 45 4e 08 4e 08 4e 08 4e 20 2a 08 2a 08 2a 08 2a 73 08 73 08 73 08 ┆ E EE E E EN N N N * * * *s s s ┆ 0x0640…0660 73 70 08 70 08 70 08 70 3b 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 ┆sp p p p; ; ; ; D D D DE E E ES┆ 0x0660…0680 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 ┆ S S SC C C CR R R RI I I IP P P┆ 0x0680…06a0 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 ┆ PT T T TI I I IO O O ON N N N ┆ 0x06a0…06c0 20 20 20 20 5f 08 69 5f 08 6e 5f 08 69 5f 08 74 5f 08 73 5f 08 63 5f 08 72 20 69 73 20 61 6c 6d ┆ _ i_ n_ i_ t_ s_ c_ r is alm┆ 0x06c0…06e0 6f 73 74 20 61 6c 77 61 79 73 20 74 68 65 20 66 69 72 73 74 20 72 6f 75 74 69 6e 65 20 74 68 61 ┆ost always the first routine tha┆ 0x06e0…0700 74 20 73 68 6f 75 6c 64 20 62 65 0a 20 20 20 20 20 63 61 6c 6c 65 64 20 28 74 68 65 20 65 78 63 ┆t should be called (the exc┆ 0x0700…0720 65 70 74 69 6f 6e 73 20 61 72 65 20 5f 08 73 5f 08 6c 5f 08 6b 5f 5f 08 69 5f 08 6e 5f 08 69 5f ┆eptions are _ s_ l_ k__ i_ n_ i_┆ 0x0720…0740 08 74 2c 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 74 5f 08 65 5f 08 72 2c 20 5f 08 72 5f 08 69 5f 08 ┆ t, _ f_ i_ l_ t_ e_ r, _ r_ i_ ┆ 0x0740…0760 70 5f 08 6f 5f 08 66 5f 08 66 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 2c 0a 20 20 20 20 20 5f 08 75 ┆p_ o_ f_ f_ l_ i_ n_ e, _ u┆ 0x0760…0780 5f 08 73 5f 08 65 5f 5f 08 65 5f 08 6e 5f 08 76 20 61 6e 64 2c 20 66 6f 72 20 6d 75 6c 74 69 70 ┆_ s_ e__ e_ n_ v and, for multip┆ 0x0780…07a0 6c 65 2d 74 65 72 6d 69 6e 61 6c 20 61 70 70 6c 69 63 61 74 69 6f 6e 73 2c 20 5f 08 6e 5f 08 65 ┆le-terminal applications, _ n_ e┆ 0x07a0…07c0 5f 08 77 5f 08 74 5f 08 65 5f 08 72 5f 08 6d 2e 29 0a 20 20 20 20 20 54 68 69 73 20 64 65 74 65 ┆_ w_ t_ e_ r_ m.) This dete┆ 0x07c0…07e0 72 6d 69 6e 65 73 20 74 68 65 20 74 65 72 6d 69 6e 61 6c 20 74 79 70 65 20 61 6e 64 20 69 6e 69 ┆rmines the terminal type and ini┆ 0x07e0…0800 74 69 61 6c 69 7a 65 73 20 61 6c 6c 20 5f 08 63 5f 08 75 5f 08 72 5f 08 73 5f 08 65 5f 08 73 0a ┆tializes all _ c_ u_ r_ s_ e_ s ┆ 0x0800…0820 20 20 20 20 20 64 61 74 61 20 73 74 72 75 63 74 75 72 65 73 2e 20 20 5f 08 69 5f 08 6e 5f 08 69 ┆ data structures. _ i_ n_ i┆ 0x0820…0840 5f 08 74 5f 08 73 5f 08 63 5f 08 72 20 61 6c 73 6f 20 63 61 75 73 65 73 20 74 68 65 20 66 69 72 ┆_ t_ s_ c_ r also causes the fir┆ 0x0840…0860 73 74 20 63 61 6c 6c 20 74 6f 0a 20 20 20 20 20 5f 08 72 5f 08 65 5f 08 66 5f 08 72 5f 08 65 5f ┆st call to _ r_ e_ f_ r_ e_┆ 0x0860…0880 08 73 5f 08 68 20 74 6f 20 63 6c 65 61 72 20 74 68 65 20 73 63 72 65 65 6e 2e 20 20 49 66 20 65 ┆ s_ h to clear the screen. If e┆ 0x0880…08a0 72 72 6f 72 73 20 6f 63 63 75 72 2c 20 5f 08 69 5f 08 6e 5f 08 69 5f 08 74 5f 08 73 5f 08 63 5f ┆rrors occur, _ i_ n_ i_ t_ s_ c_┆ 0x08a0…08c0 08 72 0a 20 20 20 20 20 77 72 69 74 65 73 20 61 6e 20 61 70 70 72 6f 70 72 69 61 74 65 20 65 72 ┆ r writes an appropriate er┆ 0x08c0…08e0 72 6f 72 20 6d 65 73 73 61 67 65 20 74 6f 20 73 74 61 6e 64 61 72 64 20 65 72 72 6f 72 20 61 6e ┆ror message to standard error an┆ 0x08e0…0900 64 0a 20 20 20 20 20 65 78 69 74 73 3b 20 6f 74 68 65 72 77 69 73 65 2c 20 61 20 70 6f 69 6e 74 ┆d exits; otherwise, a point┆ 0x0900…0920 65 72 20 69 73 20 72 65 74 75 72 6e 65 64 20 74 6f 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 ┆er is returned to s s s st t t t┆ 0x0920…0940 64 08 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 49 ┆d d d ds s s sc c c cr r r r. I┆ 0x0940…0960 66 20 74 68 65 0a 20 20 20 20 20 70 72 6f 67 72 61 6d 20 6e 65 65 64 73 20 61 6e 20 69 6e 64 69 ┆f the program needs an indi┆ 0x0960…0980 63 61 74 69 6f 6e 20 6f 66 20 65 72 72 6f 72 20 63 6f 6e 64 69 74 69 6f 6e 73 2c 20 5f 08 6e 5f ┆cation of error conditions, _ n_┆ 0x0980…09a0 08 65 5f 08 77 5f 08 74 5f 08 65 5f 08 72 5f 08 6d 0a 20 20 20 20 20 73 68 6f 75 6c 64 20 62 65 ┆ e_ w_ t_ e_ r_ m should be┆ 0x09a0…09c0 20 75 73 65 64 20 69 6e 73 74 65 61 64 20 6f 66 20 5f 08 69 5f 08 6e 5f 08 69 5f 08 74 5f 08 73 ┆ used instead of _ i_ n_ i_ t_ s┆ 0x09c0…09e0 5f 08 63 5f 08 72 3b 20 5f 08 69 5f 08 6e 5f 08 69 5f 08 74 5f 08 73 5f 08 63 5f 08 72 20 73 68 ┆_ c_ r; _ i_ n_ i_ t_ s_ c_ r sh┆ 0x09e0…0a00 6f 75 6c 64 20 6f 6e 6c 79 20 62 65 0a 20 20 20 20 20 63 61 6c 6c 65 64 20 6f 6e 63 65 20 70 65 ┆ould only be called once pe┆ 0x0a00…0a20 72 20 61 70 70 6c 69 63 61 74 69 6f 6e 2e 0a 0a 20 20 20 20 20 41 20 70 72 6f 67 72 61 6d 20 74 ┆r application. A program t┆ 0x0a20…0a40 68 61 74 20 6f 75 74 70 75 74 73 20 74 6f 20 6d 6f 72 65 20 74 68 61 6e 20 6f 6e 65 20 74 65 72 ┆hat outputs to more than one ter┆ 0x0a40…0a60 6d 69 6e 61 6c 20 73 68 6f 75 6c 64 20 75 73 65 0a 20 20 20 20 20 74 68 65 20 5f 08 6e 5f 08 65 ┆minal should use the _ n_ e┆ 0x0a60…0a80 5f 08 77 5f 08 74 5f 08 65 5f 08 72 5f 08 6d 20 72 6f 75 74 69 6e 65 20 66 6f 72 20 65 61 63 68 ┆_ w_ t_ e_ r_ m routine for each┆ 0x0a80…0aa0 20 74 65 72 6d 69 6e 61 6c 20 69 6e 73 74 65 61 64 20 6f 66 20 5f 08 69 5f 08 6e 5f 08 69 5f 08 ┆ terminal instead of _ i_ n_ i_ ┆ 0x0aa0…0ac0 74 5f 08 73 5f 08 63 5f 08 72 2e 20 20 41 0a 20 20 20 20 20 70 72 6f 67 72 61 6d 20 74 68 61 74 ┆t_ s_ c_ r. A program that┆ 0x0ac0…0ae0 20 6e 65 65 64 73 20 61 6e 20 69 6e 64 69 63 61 74 69 6f 6e 20 6f 66 20 65 72 72 6f 72 20 63 6f ┆ needs an indication of error co┆ 0x0ae0…0b00 6e 64 69 74 69 6f 6e 73 2c 20 73 6f 20 69 74 0a 20 20 20 20 20 63 61 6e 20 63 6f 6e 74 69 6e 75 ┆nditions, so it can continu┆ 0x0b00…0b20 65 20 74 6f 20 72 75 6e 20 69 6e 20 61 20 6c 69 6e 65 2d 6f 72 69 65 6e 74 65 64 20 6d 6f 64 65 ┆e to run in a line-oriented mode┆ 0x0b20…0b40 20 69 66 20 74 68 65 20 74 65 72 6d 69 6e 61 6c 0a 20 20 20 20 20 63 61 6e 6e 6f 74 20 73 75 70 ┆ if the terminal cannot sup┆ 0x0b40…0b60 70 6f 72 74 20 61 20 73 63 72 65 65 6e 2d 6f 72 69 65 6e 74 65 64 20 70 72 6f 67 72 61 6d 2c 20 ┆port a screen-oriented program, ┆ 0x0b60…0b80 77 6f 75 6c 64 20 61 6c 73 6f 20 75 73 65 0a 20 20 20 20 20 74 68 69 73 20 72 6f 75 74 69 6e 65 ┆would also use this routine┆ 0x0b80…0ba0 2e 20 20 54 68 65 20 72 6f 75 74 69 6e 65 20 5f 08 6e 5f 08 65 5f 08 77 5f 08 74 5f 08 65 5f 08 ┆. The routine _ n_ e_ w_ t_ e_ ┆ 0x0ba0…0bc0 72 5f 08 6d 20 73 68 6f 75 6c 64 20 62 65 20 63 61 6c 6c 65 64 20 6f 6e 63 65 20 66 6f 72 0a 20 ┆r_ m should be called once for ┆ 0x0bc0…0be0 20 20 20 20 65 61 63 68 20 74 65 72 6d 69 6e 61 6c 2e 20 20 49 74 20 72 65 74 75 72 6e 73 20 61 ┆ each terminal. It returns a┆ 0x0be0…0c00 20 76 61 72 69 61 62 6c 65 20 6f 66 20 74 79 70 65 20 53 43 52 45 45 4e 20 2a 20 77 68 69 63 68 ┆ variable of type SCREEN * which┆ 0x0c00…0c20 0a 20 20 20 20 20 73 68 6f 75 6c 64 20 62 65 20 73 61 76 65 64 20 61 73 20 61 20 72 65 66 65 72 ┆ should be saved as a refer┆ 0x0c20…0c40 65 6e 63 65 20 74 6f 20 74 68 61 74 20 74 65 72 6d 69 6e 61 6c 2e 20 20 54 68 65 20 61 72 67 75 ┆ence to that terminal. The argu┆ 0x0c40…0c60 2d 0a 20 20 20 20 20 6d 65 6e 74 73 20 61 72 65 20 74 68 65 20 5f 08 74 5f 08 79 5f 08 70 5f 08 ┆- ments are the _ t_ y_ p_ ┆ 0x0c60…0c80 65 20 6f 66 20 74 68 65 20 74 65 72 6d 69 6e 61 6c 20 74 6f 20 62 65 20 75 73 65 64 20 69 6e 20 ┆e of the terminal to be used in ┆ 0x0c80…0ca0 70 6c 61 63 65 20 6f 66 0a 20 20 20 20 20 24 54 45 52 4d 2c 20 61 20 66 69 6c 65 20 70 6f 69 6e ┆place of $TERM, a file poin┆ 0x0ca0…0cc0 74 65 72 20 66 6f 72 20 6f 75 74 70 75 74 20 74 6f 20 74 68 65 20 74 65 72 6d 69 6e 61 6c 2c 20 ┆ter for output to the terminal, ┆ 0x0cc0…0ce0 61 6e 64 0a 20 20 20 20 20 61 6e 6f 74 68 65 72 20 66 69 6c 65 20 70 6f 69 6e 74 65 72 20 66 6f ┆and another file pointer fo┆ 0x0ce0…0d00 72 20 69 6e 70 75 74 20 66 72 6f 6d 20 74 68 65 20 74 65 72 6d 69 6e 61 6c 20 28 69 66 20 5f 08 ┆r input from the terminal (if _ ┆ 0x0d00…0d20 74 5f 08 79 5f 08 70 5f 08 65 20 69 73 0a 20 20 20 20 20 4e 55 4c 4c 2c 20 24 54 45 52 4d 20 77 ┆t_ y_ p_ e is NULL, $TERM w┆ 0x0d20…0d40 69 6c 6c 20 62 65 20 75 73 65 64 29 2e 20 20 54 68 65 20 70 72 6f 67 72 61 6d 20 6d 75 73 74 20 ┆ill be used). The program must ┆ 0x0d40…0d60 61 6c 73 6f 20 63 61 6c 6c 0a 20 20 20 20 20 5f 08 65 5f 08 6e 5f 08 64 5f 08 77 5f 08 69 5f 08 ┆also call _ e_ n_ d_ w_ i_ ┆ 0x0d60…0d80 6e 20 66 6f 72 20 65 61 63 68 20 74 65 72 6d 69 6e 61 6c 20 62 65 69 6e 67 20 75 73 65 64 20 62 ┆n for each terminal being used b┆ 0x0d80…0da0 65 66 6f 72 65 20 65 78 69 74 69 6e 67 20 66 72 6f 6d 0a 20 20 20 20 20 63 75 72 73 65 73 2e 20 ┆efore exiting from curses. ┆ 0x0da0…0dc0 20 49 66 20 5f 08 6e 5f 08 65 5f 08 77 5f 08 74 5f 08 65 5f 08 72 5f 08 6d 20 69 73 20 63 61 6c ┆ If _ n_ e_ w_ t_ e_ r_ m is cal┆ 0x0dc0…0de0 6c 65 64 20 6d 6f 72 65 20 74 68 61 6e 20 6f 6e 63 65 20 66 6f 72 20 74 68 65 20 73 61 6d 65 0a ┆led more than once for the same ┆ 0x0de0…0e00 20 20 20 20 20 74 65 72 6d 69 6e 61 6c 2c 20 74 68 65 20 66 69 72 73 74 20 74 65 72 6d 69 6e 61 ┆ terminal, the first termina┆ 0x0e00…0e20 6c 20 72 65 66 65 72 72 65 64 20 74 6f 20 6d 75 73 74 20 62 65 20 74 68 65 20 6c 61 73 74 0a 20 ┆l referred to must be the last ┆ 0x0e20…0e40 20 20 20 20 6f 6e 65 20 66 6f 72 20 77 68 69 63 68 20 5f 08 65 5f 08 6e 5f 08 64 5f 08 77 5f 08 ┆ one for which _ e_ n_ d_ w_ ┆ 0x0e40…0e60 69 5f 08 6e 20 69 73 20 63 61 6c 6c 65 64 2e 0a 0a 20 20 20 20 20 41 20 70 72 6f 67 72 61 6d 20 ┆i_ n is called. A program ┆ 0x0e60…0e80 73 68 6f 75 6c 64 20 61 6c 77 61 79 73 20 63 61 6c 6c 20 5f 08 65 5f 08 6e 5f 08 64 5f 08 77 5f ┆should always call _ e_ n_ d_ w_┆ 0x0e80…0ea0 08 69 5f 08 6e 20 62 65 66 6f 72 65 20 65 78 69 74 69 6e 67 20 6f 72 20 65 73 63 61 70 2d 0a 20 ┆ i_ n before exiting or escap- ┆ 0x0ea0…0ec0 20 20 20 20 69 6e 67 20 66 72 6f 6d 20 5f 08 63 5f 08 75 5f 08 72 5f 08 73 5f 08 65 5f 08 73 20 ┆ ing from _ c_ u_ r_ s_ e_ s ┆ 0x0ec0…0ee0 6d 6f 64 65 20 74 65 6d 70 6f 72 61 72 69 6c 79 2e 20 20 54 68 69 73 20 72 6f 75 74 69 6e 65 20 ┆mode temporarily. This routine ┆ 0x0ee0…0f00 72 65 73 74 6f 72 65 73 20 74 74 79 0a 20 20 20 20 20 6d 6f 64 65 73 2c 20 6d 6f 76 65 73 20 74 ┆restores tty modes, moves t┆ 0x0f00…0f20 68 65 20 63 75 72 73 6f 72 20 74 6f 20 74 68 65 20 6c 6f 77 65 72 20 6c 65 66 74 2d 68 61 6e 64 ┆he cursor to the lower left-hand┆ 0x0f20…0f40 20 63 6f 72 6e 65 72 20 6f 66 20 74 68 65 0a 20 20 20 20 20 73 63 72 65 65 6e 20 61 6e 64 20 72 ┆ corner of the screen and r┆ 0x0f40…0f60 65 73 65 74 73 20 74 68 65 20 74 65 72 6d 69 6e 61 6c 20 69 6e 74 6f 20 74 68 65 20 70 72 6f 70 ┆esets the terminal into the prop┆ 0x0f60…0f80 65 72 20 6e 6f 6e 2d 76 69 73 75 61 6c 0a 20 20 20 20 20 6d 6f 64 65 2e 20 20 43 61 6c 6c 69 6e ┆er non-visual mode. Callin┆ 0x0f80…0fa0 67 20 5f 08 72 5f 08 65 5f 08 66 5f 08 72 5f 08 65 5f 08 73 5f 08 68 20 6f 72 20 5f 08 64 5f 08 ┆g _ r_ e_ f_ r_ e_ s_ h or _ d_ ┆ 0x0fa0…0fc0 6f 5f 08 75 5f 08 70 5f 08 64 5f 08 61 5f 08 74 5f 08 65 20 61 66 74 65 72 20 61 20 74 65 6d 70 ┆o_ u_ p_ d_ a_ t_ e after a temp┆ 0x0fc0…0fe0 6f 72 61 72 79 20 65 73 63 61 70 65 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 63 61 75 73 65 73 20 74 ┆orary escape causes t┆ 0x0fe0…1000 68 65 20 70 72 6f 67 72 61 6d 20 74 6f 20 72 65 73 75 6d 65 20 76 69 73 75 61 6c 20 6d 6f 64 65 ┆he program to resume visual mode┆ 0x1000…1020 2e 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 69 5f 08 73 5f 08 65 5f 08 6e 5f 08 64 5f 08 77 5f 08 ┆. The _ i_ s_ e_ n_ d_ w_ ┆ 0x1020…1040 69 5f 08 6e 20 72 6f 75 74 69 6e 65 20 72 65 74 75 72 6e 73 20 54 52 55 45 20 69 66 20 5f 08 65 ┆i_ n routine returns TRUE if _ e┆ 0x1040…1060 5f 08 6e 5f 08 64 5f 08 77 5f 08 69 5f 08 6e 20 68 61 73 20 62 65 65 6e 20 63 61 6c 6c 65 64 0a ┆_ n_ d_ w_ i_ n has been called ┆ 0x1060…1080 20 20 20 20 20 77 69 74 68 6f 75 74 20 61 6e 79 20 73 75 62 73 65 71 75 65 6e 74 20 63 61 6c 6c ┆ without any subsequent call┆ 0x1080…10a0 73 20 74 6f 20 5f 08 77 5f 08 72 5f 08 65 5f 08 66 5f 08 72 5f 08 65 5f 08 73 5f 08 68 2c 20 61 ┆s to _ w_ r_ e_ f_ r_ e_ s_ h, a┆ 0x10a0…10c0 6e 64 20 46 41 4c 53 45 20 6f 74 68 65 72 2d 0a 20 20 20 20 20 77 69 73 65 2e 0a 0a 20 20 20 20 ┆nd FALSE other- wise. ┆ 0x10c0…10e0 20 54 68 65 20 5f 08 73 5f 08 65 5f 08 74 5f 5f 08 74 5f 08 65 5f 08 72 5f 08 6d 20 72 6f 75 74 ┆ The _ s_ e_ t__ t_ e_ r_ m rout┆ 0x10e0…1100 69 6e 65 20 69 73 20 75 73 65 64 20 74 6f 20 73 77 69 74 63 68 20 62 65 74 77 65 65 6e 20 64 69 ┆ine is used to switch between di┆ 0x1100…1120 66 66 65 72 65 6e 74 0a 20 20 20 20 20 74 65 72 6d 69 6e 61 6c 73 2e 20 20 54 68 65 20 73 63 72 ┆fferent terminals. The scr┆ 0x1120…1140 65 65 6e 20 72 65 66 65 72 65 6e 63 65 20 5f 08 6e 5f 08 65 5f 08 77 20 62 65 63 6f 6d 65 73 20 ┆een reference _ n_ e_ w becomes ┆ 0x1140…1160 74 68 65 20 6e 65 77 20 63 75 72 72 65 6e 74 0a 20 20 20 20 20 74 65 72 6d 69 6e 61 6c 2e 20 20 ┆the new current terminal. ┆ 0x1160…1180 54 68 65 20 70 72 65 76 69 6f 75 73 20 74 65 72 6d 69 6e 61 6c 20 69 73 20 72 65 74 75 72 6e 65 ┆The previous terminal is returne┆ 0x1180…11a0 64 20 62 79 20 74 68 65 20 72 6f 75 74 69 6e 65 2e 0a 20 20 20 20 20 54 68 69 73 20 69 73 20 74 ┆d by the routine. This is t┆ 0x11a0…11c0 68 65 20 6f 6e 6c 79 20 72 6f 75 74 69 6e 65 20 77 68 69 63 68 20 6d 61 6e 69 70 75 6c 61 74 65 ┆he only routine which manipulate┆ 0x11c0…11e0 73 20 53 43 52 45 45 4e 20 70 6f 69 6e 74 65 72 73 3b 0a 20 20 20 20 20 61 6c 6c 20 6f 74 68 65 ┆s SCREEN pointers; all othe┆ 0x11e0…1200 72 20 72 6f 75 74 69 6e 65 73 20 61 66 66 65 63 74 20 6f 6e 6c 79 20 74 68 65 20 63 75 72 72 65 ┆r routines affect only the curre┆ 0x1200…1220 6e 74 20 74 65 72 6d 69 6e 61 6c 2e 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 64 5f 08 65 5f 08 6c ┆nt terminal. The _ d_ e_ l┆ 0x1220…1240 5f 08 73 5f 08 63 5f 08 72 5f 08 65 5f 08 65 5f 08 6e 20 72 6f 75 74 69 6e 65 20 66 72 65 65 73 ┆_ s_ c_ r_ e_ e_ n routine frees┆ 0x1240…1260 20 73 74 6f 72 61 67 65 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65 0a 20 20 20 ┆ storage associated with the ┆ 0x1260…1280 20 20 53 43 52 45 45 4e 20 64 61 74 61 20 73 74 72 75 63 74 75 72 65 2e 20 54 68 65 20 5f 08 65 ┆ SCREEN data structure. The _ e┆ 0x1280…12a0 5f 08 6e 5f 08 64 5f 08 77 5f 08 69 5f 08 6e 20 72 6f 75 74 69 6e 65 20 64 6f 65 73 20 6e 6f 74 ┆_ n_ d_ w_ i_ n routine does not┆ 0x12a0…12c0 20 64 6f 20 74 68 69 73 2c 0a 20 20 20 20 20 73 6f 20 5f 08 64 5f 08 65 5f 08 6c 5f 08 73 5f 08 ┆ do this, so _ d_ e_ l_ s_ ┆ 0x12c0…12e0 63 5f 08 72 5f 08 65 5f 08 65 5f 08 6e 20 73 68 6f 75 6c 64 20 62 65 20 63 61 6c 6c 65 64 20 61 ┆c_ r_ e_ e_ n should be called a┆ 0x12e0…1300 66 74 65 72 20 5f 08 65 5f 08 6e 5f 08 64 5f 08 77 5f 08 69 5f 08 6e 20 69 66 20 61 20 70 61 72 ┆fter _ e_ n_ d_ w_ i_ n if a par┆ 0x1300…1320 74 69 63 75 6c 61 72 0a 20 20 20 20 20 53 43 52 45 45 4e 20 69 73 20 6e 6f 20 6c 6f 6e 67 65 72 ┆ticular SCREEN is no longer┆ 0x1320…1340 20 6e 65 65 64 65 64 2e 0a 0a 52 08 52 08 52 08 52 45 08 45 08 45 08 45 54 08 54 08 54 08 54 55 ┆ needed. R R R RE E E ET T T TU┆ 0x1340…1360 08 55 08 55 08 55 52 08 52 08 52 08 52 4e 08 4e 08 4e 08 4e 20 56 08 56 08 56 08 56 41 08 41 08 ┆ U U UR R R RN N N N V V V VA A ┆ 0x1360…1380 41 08 41 4c 08 4c 08 4c 08 4c 55 08 55 08 55 08 55 45 08 45 08 45 08 45 0a 20 20 20 20 20 5f 08 ┆A AL L L LU U U UE E E E _ ┆ 0x1380…13a0 65 5f 08 6e 5f 08 64 5f 08 77 5f 08 69 5f 08 6e 20 72 65 74 75 72 6e 73 20 74 68 65 20 69 6e 74 ┆e_ n_ d_ w_ i_ n returns the int┆ 0x13a0…13c0 65 67 65 72 20 45 52 52 20 75 70 6f 6e 20 66 61 69 6c 75 72 65 20 61 6e 64 20 4f 4b 20 75 70 6f ┆eger ERR upon failure and OK upo┆ 0x13c0…13e0 6e 20 73 75 63 2d 0a 20 20 20 20 20 63 65 73 73 66 75 6c 20 63 6f 6d 70 6c 65 74 69 6f 6e 2e 0a ┆n suc- cessful completion. ┆ 0x13e0…1400 0a 20 20 20 20 20 52 6f 75 74 69 6e 65 73 20 74 68 61 74 20 72 65 74 75 72 6e 20 70 6f 69 6e 74 ┆ Routines that return point┆ 0x1400…1420 65 72 73 20 61 6c 77 61 79 73 20 72 65 74 75 72 6e 20 4e 55 4c 4c 20 6f 6e 20 65 72 72 6f 72 2e ┆ers always return NULL on error.┆ 0x1420…1440 0a 0a 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f 54 08 54 08 54 08 54 45 08 45 08 45 08 45 53 08 ┆ N N N NO O O OT T T TE E E ES ┆ 0x1440…1460 53 08 53 08 53 0a 20 20 20 20 20 54 68 65 20 68 65 61 64 65 72 20 66 69 6c 65 20 3c 08 3c 08 3c ┆S S S The header file < < <┆ 0x1460…1480 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 08 73 08 73 65 08 ┆ <c c c cu u u ur r r rs s s se ┆ 0x1480…14a0 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 3e 08 3e 08 3e 08 ┆e e es s s s. . . .h h h h> > > ┆ 0x14a0…14c0 3e 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 69 6e 63 6c 75 64 65 73 20 74 68 65 20 68 65 61 ┆> automatically includes the hea┆ 0x14c0…14e0 64 65 72 0a 20 20 20 20 20 66 69 6c 65 73 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 74 08 74 ┆der files < < < <s s s st t┆ 0x14e0…1500 08 74 08 74 64 08 64 08 64 08 64 69 08 69 08 69 08 69 6f 08 6f 08 6f 08 6f 2e 08 2e 08 2e 08 2e ┆ t td d d di i i io o o o. . . .┆ 0x1500…1520 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 20 61 6e 64 20 3c 08 3c 08 3c 08 3c 75 08 75 08 75 08 ┆h h h h> > > > and < < < <u u u ┆ 0x1520…1540 75 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 74 08 74 08 74 08 74 72 08 72 08 72 08 72 6c 08 6c ┆un n n nc c c ct t t tr r r rl l┆ 0x1540…1560 08 6c 08 6c 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 2e 0a 0a 20 20 20 20 ┆ l l. . . .h h h h> > > >. ┆ 0x1560…1580 20 4e 6f 74 65 20 74 68 61 74 20 5f 08 69 5f 08 6e 5f 08 69 5f 08 74 5f 08 73 5f 08 63 5f 08 72 ┆ Note that _ i_ n_ i_ t_ s_ c_ r┆ 0x1580…15a0 20 61 6e 64 20 5f 08 6e 5f 08 65 5f 08 77 5f 08 74 5f 08 65 5f 08 72 5f 08 6d 20 6d 61 79 20 62 ┆ and _ n_ e_ w_ t_ e_ r_ m may b┆ 0x15a0…15c0 65 20 6d 61 63 72 6f 73 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45 45 08 45 08 45 08 45 ┆e macros. S S S SE E E EE E E E┆ 0x15c0…15e0 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 ┆ A A A AL L L LS S S SO O O O ┆ 0x15e0…1600 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 69 6f 6e 73 20 28 33 29 3a 20 63 75 72 73 65 73 ┆ Library Functions (3): curses┆ 0x1600…1620 2c 20 63 75 72 73 5f 6b 65 72 6e 65 6c 2c 20 63 75 72 73 5f 72 65 66 72 65 73 68 2c 0a 20 20 20 ┆, curs_kernel, curs_refresh, ┆ 0x1620…1640 20 20 63 75 72 73 5f 73 6c 6b 2c 20 63 75 72 73 5f 75 74 69 6c 0a 0a 44 65 63 65 6d 62 65 72 20 ┆ curs_slk, curs_util December ┆ 0x1640…1660 31 39 39 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 ┆1990 T┆ 0x1660…1680 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a ┆X Programmer's Reference ┆ 0x1680…1693 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆ ┆