home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume10 / pccurses14 / part06 < prev    next >
SHell self-extracting ARchive  |  1990-01-19  |  33.7 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was processed as: SHell self-extracting ARchive (archive/shar).

You can browse this item here: part06

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 73 75 |.sources|.misc.su|
|00000020| 62 6a 65 63 74 3a 20 76 | 31 30 69 30 32 30 3a 20 |bject: v|10i020: |
|00000030| 50 43 63 75 72 73 65 73 | 20 76 2e 31 2e 34 20 70 |PCcurses| v.1.4 p|
|00000040| 61 72 74 20 36 20 6f 66 | 20 37 0a 66 72 6f 6d 3a |art 6 of| 7.from:|
|00000050| 20 62 6c 40 69 6e 66 6f | 76 6f 78 2e 73 65 20 28 | bl@info|vox.se (|
|00000060| 42 6a 7c 72 6e 20 4c 61 | 72 73 73 6f 6e 29 0a 53 |Bj|rn La|rsson).S|
|00000070| 65 6e 64 65 72 3a 20 61 | 6c 6c 62 65 72 79 40 75 |ender: a|llbery@u|
|00000080| 75 6e 65 74 2e 55 55 2e | 4e 45 54 20 28 42 72 61 |unet.UU.|NET (Bra|
|00000090| 6e 64 6f 6e 20 53 2e 20 | 41 6c 6c 62 65 72 79 20 |ndon S. |Allbery |
|000000a0| 2d 20 63 6f 6d 70 2e 73 | 6f 75 72 63 65 73 2e 6d |- comp.s|ources.m|
|000000b0| 69 73 63 29 0a 0a 50 6f | 73 74 69 6e 67 2d 6e 75 |isc)..Po|sting-nu|
|000000c0| 6d 62 65 72 3a 20 56 6f | 6c 75 6d 65 20 31 30 2c |mber: Vo|lume 10,|
|000000d0| 20 49 73 73 75 65 20 32 | 30 0a 53 75 62 6d 69 74 | Issue 2|0.Submit|
|000000e0| 74 65 64 2d 62 79 3a 20 | 62 6c 40 69 6e 66 6f 76 |ted-by: |bl@infov|
|000000f0| 6f 78 2e 73 65 20 28 42 | 6a 7c 72 6e 20 4c 61 72 |ox.se (B|j|rn Lar|
|00000100| 73 73 6f 6e 29 0a 41 72 | 63 68 69 76 65 2d 6e 61 |sson).Ar|chive-na|
|00000110| 6d 65 3a 20 70 63 63 75 | 72 73 65 73 31 34 2f 70 |me: pccu|rses14/p|
|00000120| 61 72 74 30 36 0a 0a 23 | 20 2d 2d 2d 2d 2d 2d 2d |art06..#| -------|
|00000130| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000140| 2d 2d 2d 2d 2d 2d 20 63 | 75 74 20 68 65 72 65 20 |------ c|ut here |
|00000150| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000160| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 23 21 |--------|-----.#!|
|00000170| 20 2f 62 69 6e 2f 73 68 | 0a 23 20 54 68 69 73 20 | /bin/sh|.# This |
|00000180| 69 73 20 61 20 73 68 65 | 6c 6c 20 61 72 63 68 69 |is a she|ll archi|
|00000190| 76 65 2e 20 52 65 6d 6f | 76 65 20 61 6e 79 74 68 |ve. Remo|ve anyth|
|000001a0| 69 6e 67 20 62 65 66 6f | 72 65 20 74 68 65 20 60 |ing befo|re the `|
|000001b0| 63 75 74 27 20 6c 69 6e | 65 2c 0a 23 20 74 68 65 |cut' lin|e,.# the|
|000001c0| 6e 20 75 6e 70 61 63 6b | 20 62 79 20 73 61 76 69 |n unpack| by savi|
|000001d0| 6e 67 20 69 74 20 69 6e | 74 6f 20 61 20 66 69 6c |ng it in|to a fil|
|000001e0| 65 20 61 6e 64 20 74 79 | 70 69 6e 67 20 60 73 68 |e and ty|ping `sh|
|000001f0| 20 66 69 6c 65 27 2e 20 | 54 68 65 0a 23 20 61 72 | file'. |The.# ar|
|00000200| 63 68 69 76 65 20 65 6e | 64 73 20 62 79 20 65 78 |chive en|ds by ex|
|00000210| 69 74 28 30 29 2c 20 73 | 6f 20 64 6f 6e 27 74 20 |it(0), s|o don't |
|00000220| 77 6f 72 72 79 20 61 62 | 6f 75 74 20 74 72 61 69 |worry ab|out trai|
|00000230| 6c 69 6e 67 20 6a 75 6e | 6b 2e 0a 23 20 0a 23 20 |ling jun|k..# .# |
|00000240| 20 20 20 20 20 20 28 54 | 68 69 73 20 69 73 20 61 | (T|his is a|
|00000250| 72 63 68 69 76 65 20 36 | 20 69 6e 20 61 20 73 65 |rchive 6| in a se|
|00000260| 72 69 65 73 20 6f 66 20 | 37 29 2e 0a 23 20 0a 23 |ries of |7)..# .#|
|00000270| 20 43 6f 6e 74 65 6e 74 | 73 3a 0a 23 20 0a 23 20 | Content|s:.# .# |
|00000280| 20 20 63 75 72 73 65 73 | 2e 33 0a 23 20 20 20 72 | curses|.3.# r|
|00000290| 65 61 64 6d 65 2e 6e 6f | 77 0a 23 20 0a 23 20 57 |eadme.no|w.# .# W|
|000002a0| 72 61 70 70 65 64 20 62 | 79 20 55 53 45 52 40 4d |rapped b|y USER@M|
|000002b0| 53 2d 44 4f 53 20 2d 2d | 2d 20 53 75 6e 20 4a 61 |S-DOS --|- Sun Ja|
|000002c0| 6e 20 31 34 20 31 34 3a | 30 32 3a 35 32 20 31 39 |n 14 14:|02:52 19|
|000002d0| 39 30 0a 23 20 0a 50 41 | 54 48 3d 2f 62 69 6e 3a |90.# .PA|TH=/bin:|
|000002e0| 2f 75 73 72 2f 62 69 6e | 3a 2f 75 73 72 2f 75 63 |/usr/bin|:/usr/uc|
|000002f0| 62 20 3b 20 65 78 70 6f | 72 74 20 50 41 54 48 0a |b ; expo|rt PATH.|
|00000300| 69 66 20 74 65 73 74 20 | 2d 66 20 63 75 72 73 65 |if test |-f curse|
|00000310| 73 2e 33 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |s.3 -a "|${1}" !=|
|00000320| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00000330| 65 63 68 6f 20 57 69 6c | 6c 20 6e 6f 74 20 6f 76 |echo Wil|l not ov|
|00000340| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|00000350| 67 20 66 69 6c 65 20 5c | 22 63 75 72 73 65 73 2e |g file \|"curses.|
|00000360| 33 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 45 78 |3\".else|.echo Ex|
|00000370| 74 72 61 63 74 69 6e 67 | 20 2d 20 5c 22 63 75 72 |tracting| - \"cur|
|00000380| 73 65 73 2e 33 5c 22 0a | 73 65 64 20 22 73 2f 5e |ses.3\".|sed "s/^|
|00000390| 58 2f 2f 22 20 3e 63 75 | 72 73 65 73 2e 33 20 3c |X//" >cu|rses.3 <|
|000003a0| 3c 27 45 4e 44 5f 4f 46 | 5f 63 75 72 73 65 73 2e |<'END_OF|_curses.|
|000003b0| 33 27 0a 58 43 55 52 53 | 45 53 28 33 29 09 09 4d |3'.XCURS|ES(3)..M|
|000003c0| 53 2d 44 4f 53 20 50 72 | 6f 67 72 61 6d 6d 65 72 |S-DOS Pr|ogrammer|
|000003d0| 27 73 20 4d 61 6e 75 61 | 6c 09 09 20 20 43 55 52 |'s Manua|l.. CUR|
|000003e0| 53 45 53 28 33 29 0a 58 | 0a 58 4e 41 4d 45 0a 58 |SES(3).X|.XNAME.X|
|000003f0| 20 20 20 63 75 72 73 65 | 73 20 2d 20 73 63 72 65 | curse|s - scre|
|00000400| 65 6e 2f 77 69 6e 64 6f | 77 20 6d 61 6e 61 67 65 |en/windo|w manage|
|00000410| 6d 65 6e 74 20 6c 69 62 | 72 61 72 79 0a 58 0a 58 |ment lib|rary.X.X|
|00000420| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 58 20 20 20 |DESCRIPT|ION.X |
|00000430| 43 75 72 73 65 73 20 69 | 73 20 61 20 6c 69 62 72 |Curses i|s a libr|
|00000440| 61 72 79 20 6f 66 20 73 | 63 72 65 65 6e 20 61 6e |ary of s|creen an|
|00000450| 64 20 77 69 6e 64 6f 77 | 20 6d 61 6e 61 67 65 6d |d window| managem|
|00000460| 65 6e 74 20 72 6f 75 74 | 69 6e 65 73 2e 20 49 74 |ent rout|ines. It|
|00000470| 20 69 73 20 6d 6f 64 65 | 6c 65 64 0a 58 20 20 20 | is mode|led.X |
|00000480| 61 66 74 65 72 20 74 68 | 65 20 55 4e 49 58 20 63 |after th|e UNIX c|
|00000490| 75 72 73 65 73 20 61 6e | 64 20 6e 63 75 72 73 65 |urses an|d ncurse|
|000004a0| 73 20 6c 69 62 72 61 72 | 69 65 73 2e 20 4e 6f 72 |s librar|ies. Nor|
|000004b0| 6d 61 6c 6c 79 2c 20 70 | 72 6f 67 72 61 6d 73 20 |mally, p|rograms |
|000004c0| 77 72 69 74 74 65 6e 20 | 66 6f 72 0a 58 20 20 20 |written |for.X |
|000004d0| 50 43 63 75 72 73 65 73 | 20 73 68 6f 75 6c 64 20 |PCcurses| should |
|000004e0| 62 65 20 65 61 73 69 6c | 79 20 70 6f 72 74 65 64 |be easil|y ported|
|000004f0| 20 74 6f 20 55 4e 49 58 | 2c 20 61 6e 64 20 76 69 | to UNIX|, and vi|
|00000500| 63 65 20 76 65 72 73 61 | 2e 0a 58 0a 58 20 20 20 |ce versa|..X.X |
|00000510| 54 6f 20 75 73 65 20 74 | 68 65 20 72 6f 75 74 69 |To use t|he routi|
|00000520| 6e 65 73 2c 20 74 68 65 | 20 66 75 6e 63 74 69 6f |nes, the| functio|
|00000530| 6e 20 69 6e 69 74 73 63 | 72 28 29 20 6d 75 73 74 |n initsc|r() must|
|00000540| 20 66 69 72 73 74 20 62 | 65 20 63 61 6c 6c 65 64 | first b|e called|
|00000550| 2e 20 54 68 69 73 20 63 | 72 65 2d 0a 58 20 20 20 |. This c|re-.X |
|00000560| 61 74 65 73 20 74 77 6f | 20 27 77 69 6e 64 6f 77 |ates two| 'window|
|00000570| 73 27 20 66 6f 72 20 74 | 68 65 20 75 73 65 72 3a |s' for t|he user:|
|00000580| 20 73 74 64 73 63 72 20 | 61 6e 64 20 63 75 72 73 | stdscr |and curs|
|00000590| 63 72 2e 20 53 74 64 73 | 63 72 20 69 73 20 74 68 |cr. Stds|cr is th|
|000005a0| 65 20 64 65 66 61 75 6c | 74 0a 58 20 20 20 77 69 |e defaul|t.X wi|
|000005b0| 6e 64 6f 77 20 66 6f 72 | 20 74 68 65 20 75 73 65 |ndow for| the use|
|000005c0| 72 20 74 6f 20 6d 61 6b | 65 20 63 68 61 6e 67 65 |r to mak|e change|
|000005d0| 73 20 6f 6e 2c 20 61 6e | 64 20 63 75 72 73 63 72 |s on, an|d curscr|
|000005e0| 20 72 65 66 6c 65 63 74 | 73 20 74 68 65 20 63 75 | reflect|s the cu|
|000005f0| 72 72 65 6e 74 0a 58 20 | 20 20 63 6f 6e 74 65 6e |rrent.X | conten|
|00000600| 74 73 20 6f 66 20 74 68 | 65 20 70 68 79 73 69 63 |ts of th|e physic|
|00000610| 61 6c 20 64 69 73 70 6c | 61 79 20 73 63 72 65 65 |al displ|ay scree|
|00000620| 6e 2e 20 54 68 65 20 75 | 73 65 72 20 77 72 69 74 |n. The u|ser writ|
|00000630| 65 73 20 6f 72 20 65 64 | 69 74 73 20 74 68 65 20 |es or ed|its the |
|00000640| 73 74 64 2d 0a 58 20 20 | 20 73 63 72 20 77 69 6e |std-.X | scr win|
|00000650| 64 6f 77 20 74 6f 20 68 | 69 73 20 6c 69 6b 69 6e |dow to h|is likin|
|00000660| 67 2c 20 74 68 65 6e 20 | 63 61 6c 6c 73 20 74 68 |g, then |calls th|
|00000670| 65 20 72 65 66 72 65 73 | 68 28 29 20 66 75 6e 63 |e refres|h() func|
|00000680| 74 69 6f 6e 20 74 6f 20 | 6d 61 6b 65 20 63 75 72 |tion to |make cur|
|00000690| 73 63 72 0a 58 20 20 20 | 61 6e 64 20 74 68 65 20 |scr.X |and the |
|000006a0| 70 68 79 73 69 63 61 6c | 20 73 63 72 65 65 6e 20 |physical| screen |
|000006b0| 6c 6f 6f 6b 20 6c 69 6b | 65 20 73 74 64 73 63 72 |look lik|e stdscr|
|000006c0| 2e 20 57 68 65 6e 20 74 | 68 65 20 75 73 65 72 20 |. When t|he user |
|000006d0| 70 72 6f 67 72 61 6d 20 | 74 65 72 6d 69 6e 61 74 |program |terminat|
|000006e0| 65 73 2c 0a 58 20 20 20 | 69 74 20 73 68 6f 75 6c |es,.X |it shoul|
|000006f0| 64 20 63 61 6c 6c 20 74 | 68 65 20 65 6e 64 77 69 |d call t|he endwi|
|00000700| 6e 28 29 20 66 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |n() func|tion to |
|00000710| 72 65 73 74 6f 72 65 20 | 74 68 69 6e 67 73 20 74 |restore |things t|
|00000720| 6f 20 6e 6f 72 6d 61 6c | 2e 0a 58 0a 58 20 20 20 |o normal|..X.X |
|00000730| 54 68 65 72 65 20 61 72 | 65 20 61 6c 6c 20 73 6f |There ar|e all so|
|00000740| 72 74 73 20 6f 66 20 77 | 69 6e 64 6f 77 20 6d 61 |rts of w|indow ma|
|00000750| 6e 69 70 75 6c 61 74 69 | 6f 6e 20 72 6f 75 74 69 |nipulati|on routi|
|00000760| 6e 65 73 20 61 76 61 69 | 6c 61 62 6c 65 20 74 6f |nes avai|lable to|
|00000770| 20 74 68 65 20 70 72 6f | 2d 0a 58 20 20 20 67 72 | the pro|-.X gr|
|00000780| 61 6d 6d 65 72 3a 20 61 | 75 78 69 6c 69 61 72 79 |ammer: a|uxiliary|
|00000790| 20 77 69 6e 64 6f 77 73 | 20 6d 61 79 20 62 65 20 | windows| may be |
|000007a0| 63 72 65 61 74 65 64 2c | 20 65 64 69 74 65 64 2c |created,| edited,|
|000007b0| 20 6d 6f 76 65 64 20 61 | 6e 64 20 64 65 6c 65 74 | moved a|nd delet|
|000007c0| 65 64 2e 20 54 68 65 0a | 58 20 20 20 74 65 72 6d |ed. The.|X term|
|000007d0| 69 6e 61 6c 20 6d 61 79 | 20 62 65 20 73 65 74 20 |inal may| be set |
|000007e0| 69 6e 20 6d 61 6e 79 20 | 64 69 66 66 65 72 65 6e |in many |differen|
|000007f0| 74 20 6d 6f 64 65 73 2c | 20 6f 75 74 70 75 74 20 |t modes,| output |
|00000800| 74 65 78 74 20 6d 61 79 | 20 62 65 20 61 74 74 72 |text may| be attr|
|00000810| 69 62 75 74 65 64 0a 58 | 20 20 20 77 69 74 68 20 |ibuted.X| with |
|00000820| 62 6c 69 6e 6b 2c 20 62 | 6c 61 6e 6b 2c 20 62 6f |blink, b|lank, bo|
|00000830| 6c 64 20 61 6e 64 20 72 | 65 76 65 72 73 65 20 61 |ld and r|everse a|
|00000840| 74 74 72 69 62 75 74 65 | 73 2e 20 54 68 65 72 65 |ttribute|s. There|
|00000850| 20 61 72 65 20 77 69 6e | 64 6f 77 2d 73 70 65 63 | are win|dow-spec|
|00000860| 69 66 69 63 0a 58 20 20 | 20 70 72 69 6e 74 66 2d |ific.X | printf-|
|00000870| 20 61 6e 64 20 73 63 61 | 6e 66 2d 6c 69 6b 65 20 | and sca|nf-like |
|00000880| 72 6f 75 74 69 6e 65 73 | 2c 20 72 6f 75 74 69 6e |routines|, routin|
|00000890| 65 73 20 66 6f 72 20 73 | 63 72 6f 6c 6c 69 6e 67 |es for s|crolling|
|000008a0| 2c 20 62 6f 78 2d 64 72 | 61 77 69 6e 67 2c 20 77 |, box-dr|awing, w|
|000008b0| 69 6e 2d 0a 58 20 20 20 | 64 6f 77 20 6f 76 65 72 |in-.X |dow over|
|000008c0| 6c 61 79 69 6e 67 2c 20 | 63 6c 65 61 72 69 6e 67 |laying, |clearing|
|000008d0| 20 72 6f 75 74 69 6e 65 | 73 20 65 74 63 2e 20 43 | routine|s etc. C|
|000008e0| 75 72 73 65 73 20 61 6c | 73 6f 20 68 61 6e 64 6c |urses al|so handl|
|000008f0| 65 73 20 74 65 72 6d 69 | 6e 61 6c 20 66 75 6e 63 |es termi|nal func|
|00000900| 2d 0a 58 20 20 20 74 69 | 6f 6e 20 6b 65 79 73 2c |-.X ti|on keys,|
|00000910| 20 77 68 69 63 68 20 69 | 73 20 65 6e 61 62 6c 65 | which i|s enable|
|00000920| 73 20 62 79 20 63 61 6c | 6c 69 6e 67 20 74 68 65 |s by cal|ling the|
|00000930| 20 6b 65 79 70 61 64 28 | 29 20 66 75 6e 63 74 69 | keypad(|) functi|
|00000940| 6f 6e 2e 0a 58 0a 58 20 | 20 20 54 68 65 20 68 61 |on..X.X | The ha|
|00000950| 6e 64 6c 69 6e 67 20 6f | 66 20 63 68 61 72 61 63 |ndling o|f charac|
|00000960| 74 65 72 20 61 74 74 72 | 69 62 75 74 65 73 20 69 |ter attr|ibutes i|
|00000970| 73 20 64 69 66 66 65 72 | 65 6e 74 20 6f 6e 20 4d |s differ|ent on M|
|00000980| 47 41 2c 20 43 47 41 20 | 61 6e 64 20 48 65 72 63 |GA, CGA |and Herc|
|00000990| 75 6c 65 73 0a 58 20 20 | 20 61 64 61 70 74 65 72 |ules.X | adapter|
|000009a0| 73 2e 20 54 68 65 20 70 | 61 63 6b 61 67 65 20 68 |s. The p|ackage h|
|000009b0| 61 73 20 62 65 65 6e 20 | 74 65 73 74 65 64 20 77 |as been |tested w|
|000009c0| 69 74 68 20 74 68 65 6d | 20 61 6c 6c 2e 20 45 47 |ith them| all. EG|
|000009d0| 41 20 68 61 73 20 6e 6f | 74 20 62 65 65 6e 20 74 |A has no|t been t|
|000009e0| 65 73 2d 0a 58 20 20 20 | 74 65 64 2c 20 62 75 74 |es-.X |ted, but|
|000009f0| 20 73 68 6f 75 6c 64 20 | 61 6c 73 6f 20 77 6f 72 | should |also wor|
|00000a00| 6b 20 65 78 63 65 70 74 | 20 66 6f 72 20 73 70 65 |k except| for spe|
|00000a10| 63 69 61 6c 20 73 63 72 | 65 65 6e 20 6d 6f 64 65 |cial scr|een mode|
|00000a20| 73 2e 0a 58 0a 58 20 20 | 20 46 6f 72 20 6d 6f 72 |s..X.X | For mor|
|00000a30| 65 20 61 6e 64 20 64 65 | 74 61 69 6c 65 64 20 69 |e and de|tailed i|
|00000a40| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2c 20 73 65 65 20 |nformati|on, see |
|00000a50| 74 68 65 20 6c 69 62 72 | 61 72 79 20 73 6f 75 72 |the libr|ary sour|
|00000a60| 63 65 20 63 6f 64 65 73 | 2e 20 41 6c 6c 20 63 75 |ce codes|. All cu|
|00000a70| 72 73 65 73 0a 58 20 20 | 20 66 75 6e 63 74 69 6f |rses.X | functio|
|00000a80| 6e 73 20 61 72 65 20 70 | 72 65 63 65 64 65 64 20 |ns are p|receded |
|00000a90| 62 79 20 61 20 62 72 69 | 65 66 20 62 75 74 20 63 |by a bri|ef but c|
|00000aa0| 6f 6d 70 6c 65 74 65 20 | 64 65 73 63 72 69 70 74 |omplete |descript|
|00000ab0| 69 6f 6e 2e 0a 58 0a 58 | 43 4f 4d 50 49 4c 49 4e |ion..X.X|COMPILIN|
|00000ac0| 47 0a 58 20 20 20 41 6c | 6c 20 70 72 6f 67 72 61 |G.X Al|l progra|
|00000ad0| 6d 73 20 74 68 61 74 20 | 75 73 65 20 63 75 72 73 |ms that |use curs|
|00000ae0| 65 73 20 66 61 63 69 6c | 69 74 69 65 73 20 73 68 |es facil|ities sh|
|00000af0| 6f 75 6c 64 20 69 6e 63 | 6c 75 64 65 20 74 68 65 |ould inc|lude the|
|00000b00| 20 66 69 6c 65 20 3c 63 | 75 72 73 65 73 2e 68 3e | file <c|urses.h>|
|00000b10| 2c 0a 58 20 20 20 61 6e | 64 20 64 75 72 69 6e 67 |,.X an|d during|
|00000b20| 20 6c 69 6e 6b 69 6e 67 | 2c 20 74 68 65 20 6c 69 | linking|, the li|
|00000b30| 62 72 61 72 79 20 3f 63 | 75 72 73 65 73 2e 6c 69 |brary ?c|urses.li|
|00000b40| 62 20 73 68 6f 75 6c 64 | 20 62 65 20 73 70 65 63 |b should| be spec|
|00000b50| 69 66 69 65 64 20 74 6f | 20 74 68 65 20 6c 69 6e |ified to| the lin|
|00000b60| 2d 0a 58 20 20 20 6b 65 | 72 20 28 27 3f 27 20 69 |-.X ke|r ('?' i|
|00000b70| 73 20 27 73 27 2c 20 27 | 63 27 20 27 6d 27 20 6f |s 's', '|c' 'm' o|
|00000b80| 72 20 27 6c 27 20 66 6f | 72 20 73 6d 61 6c 6c 2c |r 'l' fo|r small,|
|00000b90| 20 63 6f 6d 70 61 63 74 | 2c 20 6d 65 64 69 75 6d | compact|, medium|
|00000ba0| 20 6f 72 20 6c 61 72 67 | 65 20 6d 65 6d 6f 72 79 | or larg|e memory|
|00000bb0| 0a 58 20 20 20 6d 6f 64 | 65 6c 20 72 65 73 70 65 |.X mod|el respe|
|00000bc0| 63 74 69 76 65 6c 79 29 | 2e 0a 58 0a 58 46 55 4e |ctively)|..X.XFUN|
|00000bd0| 43 54 49 4f 4e 53 0a 58 | 20 20 20 42 65 6c 6f 77 |CTIONS.X| Below|
|00000be0| 20 69 73 20 61 20 6c 69 | 73 74 20 6f 76 65 72 20 | is a li|st over |
|00000bf0| 74 68 65 20 61 76 61 69 | 6c 61 62 6c 65 20 66 75 |the avai|lable fu|
|00000c00| 6e 63 74 69 6f 6e 73 2c | 20 74 6f 67 65 74 68 65 |nctions,| togethe|
|00000c10| 72 20 77 69 74 68 20 61 | 20 62 72 69 65 66 20 64 |r with a| brief d|
|00000c20| 65 2d 0a 58 20 20 20 73 | 63 72 69 70 74 69 6f 6e |e-.X s|cription|
|00000c30| 20 6f 66 20 77 68 61 74 | 20 74 68 65 79 20 64 6f | of what| they do|
|00000c40| 2e 20 49 6e 20 67 65 6e | 65 72 61 6c 2c 20 66 75 |. In gen|eral, fu|
|00000c50| 6e 63 74 69 6f 6e 73 20 | 77 68 6f 73 65 20 6e 61 |nctions |whose na|
|00000c60| 6d 65 73 20 73 74 61 72 | 74 20 77 69 74 68 0a 58 |mes star|t with.X|
|00000c70| 20 20 20 27 77 27 20 64 | 69 66 66 65 72 20 66 72 | 'w' d|iffer fr|
|00000c80| 6f 6d 20 74 68 65 20 6f | 6e 65 20 77 69 74 68 6f |om the o|ne witho|
|00000c90| 75 74 20 27 77 27 20 28 | 6c 69 6b 65 20 77 6d 6f |ut 'w' (|like wmo|
|00000ca0| 76 65 20 76 73 2e 20 6d | 6f 76 65 29 20 73 69 67 |ve vs. m|ove) sig|
|00000cb0| 6e 69 66 79 20 74 68 61 | 74 0a 58 20 20 20 61 20 |nify tha|t.X a |
|00000cc0| 73 70 65 63 69 66 69 63 | 20 77 69 6e 64 6f 77 20 |specific| window |
|00000cd0| 69 73 20 75 73 65 64 2e | 20 57 69 74 68 6f 75 74 |is used.| Without|
|00000ce0| 20 61 20 27 77 27 2c 20 | 73 64 74 73 63 72 20 69 | a 'w', |sdtscr i|
|00000cf0| 73 20 69 6d 70 6c 69 65 | 64 2e 20 54 68 65 20 66 |s implie|d. The f|
|00000d00| 75 6e 63 74 69 6f 6e 73 | 0a 58 20 20 20 74 68 61 |unctions|.X tha|
|00000d10| 74 20 73 74 61 72 74 20 | 77 69 74 68 20 27 6d 76 |t start |with 'mv|
|00000d20| 27 20 62 65 66 6f 72 65 | 20 74 68 65 20 27 67 65 |' before| the 'ge|
|00000d30| 6e 65 72 65 69 63 27 20 | 66 75 6e 63 74 69 6f 6e |nereic' |function|
|00000d40| 20 6e 61 6d 65 20 73 69 | 67 6e 69 66 79 20 74 68 | name si|gnify th|
|00000d50| 61 74 20 61 0a 58 20 20 | 20 63 75 72 73 6f 72 20 |at a.X | cursor |
|00000d60| 6d 6f 74 69 6f 6e 20 73 | 68 6f 75 6c 64 20 62 65 |motion s|hould be|
|00000d70| 20 6d 61 64 65 20 62 65 | 66 6f 72 65 20 74 68 65 | made be|fore the|
|00000d80| 20 61 63 74 75 61 6c 20 | 77 6f 72 6b 2e 20 27 6d | actual |work. 'm|
|00000d90| 76 27 20 61 6e 64 20 27 | 77 27 20 63 6f 6d 62 69 |v' and '|w' combi|
|00000da0| 6e 65 0a 58 20 20 20 61 | 73 20 65 78 70 65 63 74 |ne.X a|s expect|
|00000db0| 65 64 2e 0a 58 0a 58 20 | 20 20 4d 6f 73 74 20 72 |ed..X.X | Most r|
|00000dc0| 6f 75 74 69 6e 65 73 20 | 74 68 61 74 20 72 65 74 |outines |that ret|
|00000dd0| 75 72 6e 20 61 6e 20 69 | 6e 74 20 77 69 6c 6c 20 |urn an i|nt will |
|00000de0| 72 65 74 75 72 6e 20 74 | 68 65 20 6d 61 6e 69 66 |return t|he manif|
|00000df0| 65 73 74 20 63 6f 6e 73 | 74 61 6e 74 20 45 52 52 |est cons|tant ERR|
|00000e00| 20 69 66 0a 58 20 20 20 | 74 68 65 72 65 20 69 73 | if.X |there is|
|00000e10| 20 61 20 66 61 69 6c 75 | 72 65 20 64 75 72 69 6e | a failu|re durin|
|00000e20| 67 20 65 78 65 63 75 74 | 69 6f 6e 2e 20 52 6f 75 |g execut|ion. Rou|
|00000e30| 74 69 6e 65 73 20 74 68 | 61 74 20 72 65 74 75 72 |tines th|at retur|
|00000e40| 6e 20 61 20 63 68 61 72 | 20 61 63 74 75 61 6c 6c |n a char| actuall|
|00000e50| 79 0a 58 20 20 20 72 65 | 74 75 72 6e 20 61 6e 20 |y.X re|turn an |
|00000e60| 69 6e 74 2c 20 73 6f 20 | 74 68 61 74 20 45 52 52 |int, so |that ERR|
|00000e70| 20 64 6f 65 73 20 6e 6f | 74 20 63 6f 6e 66 6c 69 | does no|t confli|
|00000e80| 63 74 20 77 69 74 68 20 | 74 68 65 20 63 68 61 72 |ct with |the char|
|00000e90| 61 63 74 65 72 20 63 6f | 64 65 20 30 78 66 66 2e |acter co|de 0xff.|
|00000ea0| 0a 58 20 20 20 41 6c 6c | 20 49 42 4d 20 50 43 20 |.X All| IBM PC |
|00000eb0| 63 68 61 72 61 63 74 65 | 72 73 20 66 72 6f 6d 20 |characte|rs from |
|00000ec0| 30 20 74 6f 20 30 78 66 | 66 20 61 72 65 20 61 6c |0 to 0xf|f are al|
|00000ed0| 6c 6f 77 65 64 20 66 6f | 72 20 75 73 61 67 65 20 |lowed fo|r usage |
|00000ee0| 77 69 74 68 20 63 75 72 | 73 65 73 2e 0a 58 20 20 |with cur|ses..X |
|00000ef0| 20 54 68 65 72 65 20 61 | 72 65 20 28 6e 6f 6e 2d | There a|re (non-|
|00000f00| 70 6f 72 74 61 62 6c 65 | 29 20 63 68 61 72 61 63 |portable|) charac|
|00000f10| 74 65 72 20 6f 75 74 70 | 75 74 20 72 6f 75 74 69 |ter outp|ut routi|
|00000f20| 6e 65 73 20 74 6f 20 77 | 72 69 74 65 20 74 68 65 |nes to w|rite the|
|00000f30| 20 73 70 65 63 69 61 6c | 0a 58 20 20 20 49 42 4d | special|.X IBM|
|00000f40| 20 66 6f 6e 74 73 20 66 | 6f 72 20 63 68 61 72 61 | fonts f|or chara|
|00000f50| 63 74 65 72 73 20 77 69 | 74 68 20 41 53 43 49 49 |cters wi|th ASCII|
|00000f60| 20 63 6f 64 65 20 6c 65 | 73 73 20 74 68 61 6e 20 | code le|ss than |
|00000f70| 30 78 32 30 20 28 63 6f | 6e 74 72 6f 6c 20 63 68 |0x20 (co|ntrol ch|
|00000f80| 61 72 61 63 2d 0a 58 20 | 20 20 74 65 72 73 29 2e |arac-.X | ters).|
|00000f90| 0a 58 0a 58 20 20 20 53 | 6f 6d 65 20 72 6f 75 74 |.X.X S|ome rout|
|00000fa0| 69 6e 65 73 2c 20 6c 69 | 6b 65 20 7b 6d 76 7d 7b |ines, li|ke {mv}{|
|00000fb0| 77 7d 20 70 72 69 6e 74 | 77 28 29 20 61 6e 64 20 |w} print|w() and |
|00000fc0| 7b 6d 76 7d 7b 77 7d 73 | 63 61 6e 77 28 29 20 72 |{mv}{w}s|canw() r|
|00000fd0| 65 74 75 72 6e 20 61 20 | 6d 65 61 6e 69 6e 67 66 |eturn a |meaningf|
|00000fe0| 75 6c 0a 58 20 20 20 70 | 6f 73 69 74 69 76 65 20 |ul.X p|ositive |
|00000ff0| 76 61 6c 75 65 20 69 66 | 20 74 68 65 20 6f 70 65 |value if| the ope|
|00001000| 72 61 74 69 6f 6e 20 69 | 73 20 73 75 63 63 65 73 |ration i|s succes|
|00001010| 73 66 75 6c 2e 0a 58 0a | 58 20 20 20 54 68 65 20 |sful..X.|X The |
|00001020| 63 75 72 73 65 73 20 70 | 61 63 6b 61 67 65 20 75 |curses p|ackage u|
|00001030| 73 65 73 20 73 6f 6d 65 | 20 70 72 65 64 65 66 69 |ses some| predefi|
|00001040| 6e 65 64 20 74 79 70 65 | 73 2c 20 76 61 72 69 61 |ned type|s, varia|
|00001050| 62 6c 65 73 20 61 6e 64 | 20 6d 61 6e 69 66 65 73 |bles and| manifes|
|00001060| 74 20 63 6f 6e 2d 0a 58 | 20 20 20 73 74 61 6e 74 |t con-.X| stant|
|00001070| 73 20 74 68 61 74 20 61 | 72 65 20 61 6c 73 6f 20 |s that a|re also |
|00001080| 61 76 61 69 6c 61 62 6c | 65 20 74 6f 20 74 68 65 |availabl|e to the|
|00001090| 20 70 72 6f 67 72 61 6d | 6d 65 72 2e 20 46 6f 72 | program|mer. For|
|000010a0| 20 65 78 61 6d 70 6c 65 | 2c 20 74 68 65 20 45 52 | example|, the ER|
|000010b0| 52 20 61 6e 64 0a 58 20 | 20 20 4f 4b 20 6d 61 63 |R and.X | OK mac|
|000010c0| 72 6f 73 20 73 68 6f 75 | 6c 64 20 62 65 20 75 73 |ros shou|ld be us|
|000010d0| 65 64 20 74 6f 20 74 65 | 73 74 20 66 6f 72 20 66 |ed to te|st for f|
|000010e0| 61 69 6c 75 72 65 20 6f | 66 20 63 75 72 73 65 73 |ailure o|f curses|
|000010f0| 20 66 75 6e 63 74 69 6f | 6e 73 2e 20 44 6f 6e 27 | functio|ns. Don'|
|00001100| 74 20 75 73 65 0a 58 20 | 20 20 74 68 65 20 6e 75 |t use.X | the nu|
|00001110| 6d 65 72 69 63 61 6c 20 | 76 61 6c 75 65 73 2c 20 |merical |values, |
|00001120| 73 69 6e 63 65 20 74 68 | 6f 73 65 20 61 72 65 20 |since th|ose are |
|00001130| 64 69 66 66 65 72 65 6e | 74 20 66 6f 72 20 64 69 |differen|t for di|
|00001140| 66 66 65 72 65 6e 74 20 | 76 65 72 73 69 6f 6e 73 |fferent |versions|
|00001150| 20 6f 66 0a 58 20 20 20 | 63 75 72 73 65 73 21 0a | of.X |curses!.|
|00001160| 58 0a 58 20 20 20 54 68 | 65 72 65 20 61 72 65 20 |X.X Th|ere are |
|00001170| 61 6c 73 6f 20 61 20 66 | 65 77 20 67 6c 6f 62 61 |also a f|ew globa|
|00001180| 6c 6c 79 20 61 63 63 65 | 73 73 69 62 6c 65 20 76 |lly acce|ssible v|
|00001190| 61 72 69 61 62 6c 65 73 | 20 74 68 61 74 20 73 68 |ariables| that sh|
|000011a0| 6f 75 6c 64 20 6e 6f 74 | 20 62 65 20 74 6f 75 2d |ould not| be tou-|
|000011b0| 0a 58 20 20 20 63 68 65 | 64 20 62 79 20 74 68 65 |.X che|d by the|
|000011c0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 70 72 6f | applica|tion pro|
|000011d0| 67 72 61 6d 2e 20 54 68 | 6f 73 65 20 75 6e 74 6f |gram. Th|ose unto|
|000011e0| 75 63 68 61 62 6c 65 20 | 76 61 72 69 61 62 6c 65 |uchable |variable|
|000011f0| 73 20 68 61 76 65 20 6e | 61 6d 65 73 0a 58 20 20 |s have n|ames.X |
|00001200| 20 73 74 61 72 74 69 6e | 67 20 77 69 74 68 20 61 | startin|g with a|
|00001210| 6e 20 75 6e 64 65 72 73 | 63 6f 72 65 20 28 5f 29 |n unders|core (_)|
|00001220| 20 74 6f 20 61 76 6f 69 | 64 20 63 6f 6e 66 6c 69 | to avoi|d confli|
|00001230| 63 74 73 2e 20 54 68 65 | 20 75 73 65 72 2d 61 63 |cts. The| user-ac|
|00001240| 63 65 73 73 69 62 6c 65 | 0a 58 20 20 20 74 79 70 |cessible|.X typ|
|00001250| 65 73 2c 20 76 61 72 69 | 61 62 6c 65 73 20 61 6e |es, vari|ables an|
|00001260| 64 20 63 6f 6e 73 74 61 | 6e 74 73 20 61 72 65 20 |d consta|nts are |
|00001270| 28 74 68 65 72 65 20 61 | 72 65 20 61 20 6e 75 6d |(there a|re a num|
|00001280| 62 65 72 20 6f 66 20 6f | 74 68 65 72 20 63 6f 6e |ber of o|ther con|
|00001290| 73 74 61 6e 74 73 0a 58 | 20 20 20 64 65 66 69 6e |stants.X| defin|
|000012a0| 69 6e 67 20 63 68 61 72 | 61 63 74 65 72 20 61 74 |ing char|acter at|
|000012b0| 74 72 69 62 75 74 65 20 | 6e 61 6d 65 73 20 61 6e |tribute |names an|
|000012c0| 64 20 66 75 6e 63 74 69 | 6f 6e 20 6b 65 79 20 6e |d functi|on key n|
|000012d0| 61 6d 65 73 20 2d 20 63 | 6f 6e 73 75 6c 74 20 74 |ames - c|onsult t|
|000012e0| 68 65 0a 58 20 20 20 3c | 63 75 72 73 65 73 2e 68 |he.X <|curses.h|
|000012f0| 3e 20 61 6e 64 20 3c 63 | 75 72 73 70 72 69 76 2e |> and <c|urspriv.|
|00001300| 68 3e 20 69 6e 63 6c 75 | 64 65 20 66 69 6c 65 73 |h> inclu|de files|
|00001310| 20 66 6f 72 20 64 65 74 | 61 69 6c 73 29 3a 0a 58 | for det|ails):.X|
|00001320| 0a 58 20 20 20 28 6d 61 | 6e 69 66 65 73 74 20 63 |.X (ma|nifest c|
|00001330| 6f 6e 73 74 61 6e 74 73 | 29 0a 58 0a 58 20 20 20 |onstants|).X.X |
|00001340| 09 54 52 55 45 09 09 09 | 09 62 6f 6f 6c 65 61 6e |.TRUE...|.boolean|
|00001350| 20 74 72 75 65 0a 58 09 | 46 41 4c 53 45 09 09 09 | true.X.|FALSE...|
|00001360| 09 62 6f 6f 6c 65 61 6e | 20 66 61 6c 73 65 0a 58 |.boolean| false.X|
|00001370| 09 45 52 52 09 09 09 09 | 75 6e 73 75 63 63 65 73 |.ERR....|unsucces|
|00001380| 73 66 75 6c 6c 20 6f 70 | 65 72 61 74 69 6f 6e 0a |sfull op|eration.|
|00001390| 58 09 4f 4b 09 09 09 09 | 73 75 63 63 65 73 73 66 |X.OK....|successf|
|000013a0| 75 6c 6c 20 6f 70 65 72 | 61 74 69 6f 6e 0a 58 0a |ull oper|ation.X.|
|000013b0| 58 20 20 20 28 74 79 70 | 65 73 29 0a 58 0a 58 20 |X (typ|es).X.X |
|000013c0| 20 20 09 57 49 4e 44 4f | 57 09 09 09 09 61 20 77 | .WINDO|W....a w|
|000013d0| 69 6e 64 6f 77 20 73 74 | 72 75 63 74 75 72 65 20 |indow st|ructure |
|000013e0| 74 79 70 65 0a 58 09 62 | 6f 6f 6c 09 09 09 09 62 |type.X.b|ool....b|
|000013f0| 6f 6f 6c 65 61 6e 20 66 | 6c 61 67 20 74 79 70 65 |oolean f|lag type|
|00001400| 0a 58 0a 58 20 20 20 28 | 76 61 72 69 61 62 6c 65 |.X.X (|variable|
|00001410| 73 29 0a 58 0a 58 20 20 | 20 09 57 49 4e 44 4f 57 |s).X.X | .WINDOW|
|00001420| 20 63 75 72 73 63 72 09 | 09 09 70 68 79 73 69 63 | curscr.|..physic|
|00001430| 61 6c 20 64 69 73 70 6c | 61 79 20 69 6d 61 67 65 |al displ|ay image|
|00001440| 0a 58 09 57 49 4e 44 4f | 57 20 73 74 64 73 63 72 |.X.WINDO|W stdscr|
|00001450| 09 09 09 64 65 66 61 75 | 6c 74 20 75 73 65 72 20 |...defau|lt user |
|00001460| 64 72 61 77 69 6e 67 20 | 62 6f 61 72 64 0a 58 20 |drawing |board.X |
|00001470| 20 20 09 69 6e 74 20 20 | 20 20 4c 49 4e 45 53 09 | .int | LINES.|
|00001480| 09 09 74 65 72 6d 69 6e | 61 6c 20 68 65 69 67 68 |..termin|al heigh|
|00001490| 74 0a 58 09 69 6e 74 20 | 20 20 20 43 4f 4c 53 09 |t.X.int | COLS.|
|000014a0| 09 09 74 65 72 6d 69 6e | 61 6c 20 77 69 64 74 68 |..termin|al width|
|000014b0| 0a 58 0a 58 20 20 20 54 | 68 65 20 66 6f 6c 6c 6f |.X.X T|he follo|
|000014c0| 77 69 6e 67 20 69 73 20 | 61 6e 20 61 6c 70 68 61 |wing is |an alpha|
|000014d0| 62 65 74 69 63 61 6c 20 | 6c 69 73 74 20 6f 66 20 |betical |list of |
|000014e0| 74 68 65 20 63 75 72 73 | 65 73 20 66 75 6e 63 74 |the curs|es funct|
|000014f0| 69 6f 6e 73 2c 20 74 6f | 67 65 74 68 65 72 0a 58 |ions, to|gether.X|
|00001500| 20 20 20 77 69 74 68 20 | 74 68 65 69 72 20 74 79 | with |their ty|
|00001510| 70 65 73 2c 20 70 61 72 | 61 6d 65 74 65 72 73 20 |pes, par|ameters |
|00001520| 61 6e 64 20 61 20 73 68 | 6f 72 74 20 63 6f 6d 6d |and a sh|ort comm|
|00001530| 65 6e 74 20 66 6f 72 20 | 65 61 63 68 2e 20 57 69 |ent for |each. Wi|
|00001540| 6e 20 69 73 20 61 20 77 | 69 6e 2d 0a 58 20 20 20 |n is a w|in-.X |
|00001550| 64 6f 77 3b 20 63 68 2c | 20 6c 2c 20 72 2c 20 74 |dow; ch,| l, r, t|
|00001560| 2c 20 62 2c 20 74 6c 2c | 20 74 72 2c 20 62 6c 20 |, b, tl,| tr, bl |
|00001570| 61 6e 64 20 62 72 20 61 | 72 65 20 63 68 61 72 61 |and br a|re chara|
|00001580| 63 74 65 72 73 3b 20 62 | 75 66 20 69 73 20 61 20 |cters; b|uf is a |
|00001590| 63 68 61 72 61 63 74 65 | 72 0a 58 20 20 20 62 75 |characte|r.X bu|
|000015a0| 66 66 65 72 3b 20 61 74 | 74 72 73 20 69 73 20 61 |ffer; at|trs is a|
|000015b0| 6e 20 61 74 74 72 69 62 | 75 74 65 20 62 69 74 20 |n attrib|ute bit |
|000015c0| 6d 61 70 3b 20 62 66 20 | 69 73 20 61 20 62 6f 6f |map; bf |is a boo|
|000015d0| 6c 65 61 6e 20 66 6c 61 | 67 2e 20 4e 6f 74 65 20 |lean fla|g. Note |
|000015e0| 74 68 61 74 0a 58 20 20 | 20 60 63 68 61 72 61 63 |that.X | `charac|
|000015f0| 74 65 72 27 20 72 65 74 | 75 72 6e 20 76 61 6c 75 |ter' ret|urn valu|
|00001600| 65 73 20 69 6e 20 74 68 | 69 73 20 63 6f 6e 74 65 |es in th|is conte|
|00001610| 78 74 20 75 73 75 61 6c | 6c 79 20 61 72 65 20 31 |xt usual|ly are 1|
|00001620| 36 20 62 69 74 73 2e 20 | 47 75 61 72 61 6e 74 65 |6 bits. |Guarante|
|00001630| 65 64 0a 58 20 20 20 70 | 6f 72 74 61 62 6c 65 20 |ed.X p|ortable |
|00001640| 66 75 6e 63 74 69 6f 6e | 73 20 61 72 65 20 6d 61 |function|s are ma|
|00001650| 72 6b 65 64 20 77 69 74 | 68 20 61 6e 20 61 73 74 |rked wit|h an ast|
|00001660| 65 72 69 73 6b 20 28 2a | 29 3a 0a 58 0a 58 0a 58 |erisk (*|):.X.X.X|
|00001670| 2a 20 20 69 6e 74 20 20 | 20 61 64 64 63 68 28 63 |* int | addch(c|
|00001680| 68 29 09 09 09 70 75 74 | 20 63 68 61 72 20 69 6e |h)...put| char in|
|00001690| 20 73 74 64 73 63 72 0a | 58 20 20 20 69 6e 74 09 | stdscr.|X int.|
|000016a0| 20 61 64 64 72 61 77 63 | 68 28 63 68 29 09 09 09 | addrawc|h(ch)...|
|000016b0| 70 75 74 20 72 61 77 20 | 63 68 61 72 20 69 6e 20 |put raw |char in |
|000016c0| 73 74 64 73 63 72 0a 58 | 2a 20 20 69 6e 74 09 20 |stdscr.X|* int. |
|000016d0| 61 64 64 73 74 72 28 73 | 74 72 29 09 09 09 70 75 |addstr(s|tr)...pu|
|000016e0| 74 20 73 74 72 69 6e 67 | 20 69 6e 20 73 74 64 73 |t string| in stds|
|000016f0| 63 72 0a 58 20 20 20 76 | 6f 69 64 09 20 61 74 74 |cr.X v|oid. att|
|00001700| 72 6f 66 66 28 61 74 74 | 72 73 29 09 09 09 63 6c |roff(att|rs)...cl|
|00001710| 65 61 72 20 61 74 74 72 | 69 62 75 74 65 28 73 29 |ear attr|ibute(s)|
|00001720| 20 69 6e 20 73 74 64 73 | 63 72 0a 58 20 20 20 76 | in stds|cr.X v|
|00001730| 6f 69 64 09 20 61 74 74 | 72 6f 6e 28 61 74 74 72 |oid. att|ron(attr|
|00001740| 73 29 09 09 09 61 64 64 | 20 61 74 74 72 69 62 75 |s)...add| attribu|
|00001750| 74 65 28 73 29 20 69 6e | 20 73 74 64 73 63 72 0a |te(s) in| stdscr.|
|00001760| 58 20 20 20 76 6f 69 64 | 09 20 61 74 74 72 73 65 |X void|. attrse|
|00001770| 74 28 61 74 74 72 73 29 | 09 09 09 73 65 74 20 73 |t(attrs)|...set s|
|00001780| 74 64 73 63 72 20 63 68 | 61 72 20 61 74 74 72 69 |tdscr ch|ar attri|
|00001790| 62 75 74 65 73 0a 58 20 | 20 20 69 6e 74 09 20 62 |butes.X | int. b|
|000017a0| 61 75 64 72 61 74 65 28 | 29 09 09 09 64 75 6d 6d |audrate(|)...dumm|
|000017b0| 79 20 66 6f 72 20 63 6f | 6d 70 61 74 69 62 69 6c |y for co|mpatibil|
|000017c0| 69 74 79 0a 58 20 20 20 | 76 6f 69 64 09 20 62 65 |ity.X |void. be|
|000017d0| 65 70 28 29 09 09 09 09 | 72 69 6e 67 20 74 68 65 |ep()....|ring the|
|000017e0| 20 62 65 6c 6c 0a 58 20 | 20 20 76 6f 69 64 09 20 | bell.X | void. |
|000017f0| 62 6f 72 64 65 72 28 6c | 2c 72 2c 74 2c 62 2c 74 |border(l|,r,t,b,t|
|00001800| 6c 2c 74 72 2c 62 6c 2c | 62 72 29 09 53 65 74 20 |l,tr,bl,|br).Set |
|00001810| 6e 6f 6e 2d 73 74 64 20 | 62 6f 78 20 63 68 61 72 |non-std |box char|
|00001820| 61 63 74 65 72 73 0a 58 | 2a 20 20 76 6f 69 64 09 |acters.X|* void.|
|00001830| 20 62 6f 78 28 77 69 6e | 2c 6c 2c 74 29 09 09 09 | box(win|,l,t)...|
|00001840| 62 6f 78 20 69 6e 20 61 | 20 77 69 6e 64 6f 77 2c |box in a| window,|
|00001850| 20 77 69 74 68 20 67 69 | 76 65 6e 20 63 68 61 72 | with gi|ven char|
|00001860| 61 63 74 65 72 73 0a 58 | 2a 20 20 76 6f 69 64 09 |acters.X|* void.|
|00001870| 20 63 62 72 65 61 6b 28 | 29 09 09 09 73 65 74 20 | cbreak(|)...set |
|00001880| 74 65 72 6d 69 6e 61 6c | 20 63 62 72 65 61 6b 20 |terminal| cbreak |
|00001890| 6d 6f 64 65 0a 58 2a 20 | 20 76 6f 69 64 09 20 63 |mode.X* | void. c|
|000018a0| 6c 65 61 72 28 29 09 09 | 09 63 6c 65 61 72 20 73 |lear()..|.clear s|
|000018b0| 74 64 73 63 72 0a 58 2a | 20 20 76 6f 69 64 09 20 |tdscr.X*| void. |
|000018c0| 63 6c 65 61 72 6f 6b 28 | 77 69 6e 2c 62 66 29 09 |clearok(|win,bf).|
|000018d0| 09 6d 61 72 6b 73 20 77 | 69 6e 64 6f 77 20 66 6f |.marks w|indow fo|
|000018e0| 72 20 73 63 72 65 65 6e | 20 63 6c 65 61 72 0a 58 |r screen| clear.X|
|000018f0| 2a 20 20 69 6e 74 09 20 | 63 6c 72 74 6f 62 6f 74 |* int. |clrtobot|
|00001900| 28 29 09 09 09 63 6c 65 | 61 72 20 65 6e 64 20 6f |()...cle|ar end o|
|00001910| 66 20 73 74 64 73 63 72 | 0a 58 2a 20 20 69 6e 74 |f stdscr|.X* int|
|00001920| 09 20 63 6c 72 74 6f 65 | 6f 6c 28 29 09 09 09 63 |. clrtoe|ol()...c|
|00001930| 6c 65 61 72 20 65 6e 64 | 20 6f 66 20 6c 69 6e 65 |lear end| of line|
|00001940| 20 69 6e 20 73 74 64 73 | 63 72 0a 58 2a 20 20 76 | in stds|cr.X* v|
|00001950| 6f 69 64 09 20 63 72 6d | 6f 64 65 28 29 09 09 09 |oid. crm|ode()...|
|00001960| 73 65 74 20 74 65 72 6d | 69 6e 61 6c 20 63 62 72 |set term|inal cbr|
|00001970| 65 61 6b 20 6d 6f 64 65 | 0a 58 20 20 20 76 6f 69 |eak mode|.X voi|
|00001980| 64 09 20 63 75 72 73 6f | 66 66 28 29 09 09 09 74 |d. curso|ff()...t|
|00001990| 75 72 6e 73 20 6f 66 66 | 20 68 61 72 64 77 61 72 |urns off| hardwar|
|000019a0| 65 20 63 75 72 73 6f 72 | 0a 58 20 20 20 76 6f 69 |e cursor|.X voi|
|000019b0| 64 09 20 63 75 72 73 6f | 6e 28 29 09 09 09 74 75 |d. curso|n()...tu|
|000019c0| 72 6e 73 20 6f 6e 20 68 | 61 72 64 77 61 72 65 20 |rns on h|ardware |
|000019d0| 63 75 72 73 6f 72 0a 58 | 20 20 20 76 6f 69 64 09 |cursor.X| void.|
|000019e0| 20 64 65 66 5f 70 72 6f | 67 5f 6d 6f 64 65 28 29 | def_pro|g_mode()|
|000019f0| 09 09 73 61 76 65 20 54 | 54 59 20 6d 6f 64 65 73 |..save T|TY modes|
|00001a00| 0a 58 20 20 20 76 6f 69 | 64 09 20 64 65 66 5f 73 |.X voi|d. def_s|
|00001a10| 68 65 6c 6c 5f 6d 6f 64 | 65 28 29 09 09 63 6f 6d |hell_mod|e()..com|
|00001a20| 70 61 74 69 62 69 6c 69 | 74 79 20 64 75 6d 6d 79 |patibili|ty dummy|
|00001a30| 0a 58 2a 20 20 69 6e 74 | 09 20 64 65 6c 63 68 28 |.X* int|. delch(|
|00001a40| 29 09 09 09 64 65 6c 65 | 74 65 20 61 20 63 68 61 |)...dele|te a cha|
|00001a50| 72 20 69 6e 20 73 74 64 | 73 63 72 0a 58 2a 20 20 |r in std|scr.X* |
|00001a60| 69 6e 74 09 20 64 65 6c | 65 74 65 6c 6e 28 29 09 |int. del|eteln().|
|00001a70| 09 09 64 65 6c 65 74 65 | 20 61 20 6c 69 6e 65 20 |..delete| a line |
|00001a80| 69 6e 20 73 74 64 73 63 | 72 0a 58 2a 20 20 76 6f |in stdsc|r.X* vo|
|00001a90| 69 64 09 20 64 65 6c 77 | 69 6e 28 77 69 6e 29 09 |id. delw|in(win).|
|00001aa0| 09 09 64 65 6c 65 74 65 | 20 61 20 77 69 6e 64 6f |..delete| a windo|
|00001ab0| 77 20 6f 72 20 61 20 73 | 75 62 77 69 6e 64 6f 77 |w or a s|ubwindow|
|00001ac0| 0a 58 20 20 20 76 6f 69 | 64 09 20 64 6f 75 70 64 |.X voi|d. doupd|
|00001ad0| 61 74 65 28 29 09 09 09 | 75 70 64 61 74 65 20 70 |ate()...|update p|
|00001ae0| 68 79 73 69 63 61 6c 20 | 73 63 72 65 65 6e 0a 58 |hysical |screen.X|
|00001af0| 2a 20 20 76 6f 69 64 09 | 20 65 63 68 6f 28 29 09 |* void.| echo().|
|00001b00| 09 09 09 73 65 74 20 74 | 65 72 6d 69 6e 61 6c 20 |...set t|erminal |
|00001b10| 65 63 68 6f 20 6d 6f 64 | 65 0a 58 2a 20 20 69 6e |echo mod|e.X* in|
|00001b20| 74 09 20 65 6e 64 77 69 | 6e 28 29 09 09 09 63 6c |t. endwi|n()...cl|
|00001b30| 65 61 6e 75 70 20 61 6e | 64 20 63 75 72 73 65 73 |eanup an|d curses|
|00001b40| 20 66 69 6e 69 74 69 61 | 6c 69 7a 61 74 69 6f 6e | finitia|lization|
|00001b50| 0a 58 2a 20 20 76 6f 69 | 64 09 20 65 72 61 73 65 |.X* voi|d. erase|
|00001b60| 28 29 09 09 09 65 72 61 | 73 65 20 73 74 64 73 63 |()...era|se stdsc|
|00001b70| 72 0a 58 20 20 20 69 6e | 74 09 20 65 72 61 73 65 |r.X in|t. erase|
|00001b80| 63 68 61 72 28 29 09 09 | 09 72 65 74 75 72 6e 20 |char()..|.return |
|00001b90| 63 68 61 72 20 64 65 6c | 65 74 65 20 63 68 61 72 |char del|ete char|
|00001ba0| 61 63 74 65 72 0a 58 20 | 20 20 69 6e 74 09 20 66 |acter.X | int. f|
|00001bb0| 69 78 74 65 72 6d 28 29 | 09 09 09 64 75 6d 6d 79 |ixterm()|...dummy|
|00001bc0| 20 66 6f 72 20 63 6f 6d | 70 61 74 69 62 69 6c 69 | for com|patibili|
|00001bd0| 74 79 0a 58 20 20 20 76 | 6f 69 64 09 20 66 6c 61 |ty.X v|oid. fla|
|00001be0| 73 68 28 29 09 09 09 66 | 6c 61 73 68 20 74 65 72 |sh()...f|lash ter|
|00001bf0| 6d 69 6e 61 6c 20 73 63 | 72 65 65 6e 0a 58 20 20 |minal sc|reen.X |
|00001c00| 20 76 6f 69 64 20 20 66 | 6c 75 73 68 69 6e 70 28 | void f|lushinp(|
|00001c10| 29 09 09 09 6b 69 6c 6c | 20 70 65 6e 64 69 6e 67 |)...kill| pending|
|00001c20| 20 6b 65 79 62 6f 61 72 | 64 20 69 6e 70 75 74 0a | keyboar|d input.|
|00001c30| 58 2a 20 20 69 6e 74 09 | 20 67 65 74 63 68 28 29 |X* int.| getch()|
|00001c40| 09 28 23 64 65 66 20 6d | 61 63 72 6f 29 09 67 65 |.(#def m|acro).ge|
|00001c50| 74 20 63 68 61 72 61 63 | 74 65 72 20 76 69 61 20 |t charac|ter via |
|00001c60| 73 74 64 73 63 72 0a 58 | 2a 20 20 69 6e 74 09 20 |stdscr.X|* int. |
|00001c70| 67 65 74 73 74 72 28 62 | 75 66 29 09 09 09 67 65 |getstr(b|uf)...ge|
|00001c80| 74 20 73 74 72 69 6e 67 | 20 76 69 61 20 73 74 64 |t string| via std|
|00001c90| 73 63 72 20 74 6f 20 61 | 20 62 75 66 66 65 72 0a |scr to a| buffer.|
|00001ca0| 58 2a 20 20 76 6f 69 64 | 09 20 67 65 74 79 78 28 |X* void|. getyx(|
|00001cb0| 77 69 6e 2c 79 2c 78 29 | 09 09 09 67 65 74 20 61 |win,y,x)|...get a|
|00001cc0| 20 77 69 6e 64 6f 77 27 | 73 20 63 75 72 73 6f 72 | window'|s cursor|
|00001cd0| 20 70 6f 73 69 74 69 6f | 6e 0a 58 2a 20 20 69 6e | positio|n.X* in|
|00001ce0| 74 09 20 67 65 74 74 6d | 6f 64 65 28 29 09 09 09 |t. gettm|ode()...|
|00001cf0| 64 75 6d 6d 79 20 66 6f | 72 20 63 6f 6d 70 61 74 |dummy fo|r compat|
|00001d00| 69 62 69 6c 69 74 79 0a | 58 20 20 20 76 6f 69 64 |ibility.|X void|
|00001d10| 09 20 69 64 6c 6f 6b 28 | 77 69 6e 2c 62 66 29 09 |. idlok(|win,bf).|
|00001d20| 09 09 64 75 6d 6d 79 20 | 66 6f 72 20 63 6f 6d 70 |..dummy |for comp|
|00001d30| 61 74 69 62 69 6c 69 74 | 79 0a 58 2a 20 20 69 6e |atibilit|y.X* in|
|00001d40| 74 09 20 69 6e 69 74 73 | 63 72 28 29 09 09 09 63 |t. inits|cr()...c|
|00001d50| 75 72 73 65 73 20 69 6e | 69 74 69 61 6c 69 7a 61 |urses in|itializa|
|00001d60| 74 69 6f 6e 20 28 72 65 | 74 20 31 20 69 66 20 4f |tion (re|t 1 if O|
|00001d70| 4b 29 0a 58 2a 20 20 69 | 6e 74 09 20 69 6e 63 68 |K).X* i|nt. inch|
|00001d80| 28 29 09 09 09 09 67 65 | 74 20 63 68 61 72 20 61 |()....ge|t char a|
|00001d90| 74 20 73 74 64 73 63 72 | 20 63 75 72 73 6f 72 0a |t stdscr| cursor.|
|00001da0| 58 2a 20 20 69 6e 74 09 | 20 69 6e 73 63 68 28 63 |X* int.| insch(c|
|00001db0| 68 29 09 09 09 69 6e 73 | 65 72 74 20 63 68 61 72 |h)...ins|ert char|
|00001dc0| 61 63 74 65 72 20 69 6e | 20 73 74 64 73 63 72 0a |acter in| stdscr.|
|00001dd0| 58 20 20 20 69 6e 74 09 | 20 69 6e 73 72 61 77 63 |X int.| insrawc|
|00001de0| 68 28 63 68 29 09 09 09 | 69 6e 73 65 72 74 20 72 |h(ch)...|insert r|
|00001df0| 61 77 20 63 68 61 72 61 | 63 74 65 72 20 69 6e 20 |aw chara|cter in |
|00001e00| 73 74 64 73 63 72 0a 58 | 2a 20 20 69 6e 74 09 20 |stdscr.X|* int. |
|00001e10| 69 6e 73 65 72 74 6c 6e | 28 29 09 09 09 69 6e 73 |insertln|()...ins|
|00001e20| 65 72 74 20 61 6e 20 65 | 6d 70 74 79 20 6c 69 6e |ert an e|mpty lin|
|00001e30| 65 20 69 6e 20 73 74 64 | 73 63 72 0a 58 20 20 20 |e in std|scr.X |
|00001e40| 76 6f 69 64 09 20 6b 65 | 79 70 61 64 28 77 69 6e |void. ke|ypad(win|
|00001e50| 2c 62 66 29 09 09 09 6d | 61 72 6b 73 20 61 20 77 |,bf)...m|arks a w|
|00001e60| 69 6e 64 6f 77 20 66 6f | 72 20 6b 65 79 70 61 64 |indow fo|r keypad|
|00001e70| 20 75 73 61 67 65 0a 58 | 20 20 20 69 6e 74 20 20 | usage.X| int |
|00001e80| 20 6b 69 6c 6c 63 68 61 | 72 28 29 09 09 09 72 65 | killcha|r()...re|
|00001e90| 74 75 72 6e 20 6c 69 6e | 65 20 64 65 6c 65 74 65 |turn lin|e delete|
|00001ea0| 20 63 68 61 72 61 63 74 | 65 72 0a 58 2a 20 20 76 | charact|er.X* v|
|00001eb0| 6f 69 64 09 20 6c 65 61 | 76 65 6f 6b 28 77 69 6e |oid. lea|veok(win|
|00001ec0| 2c 62 66 29 09 09 6d 61 | 72 6b 73 20 77 69 6e 64 |,bf)..ma|rks wind|
|00001ed0| 6f 77 20 66 6f 72 20 63 | 75 72 73 6f 72 20 27 75 |ow for c|ursor 'u|
|00001ee0| 70 64 61 74 65 20 6c 65 | 61 76 65 27 0a 58 2a 20 |pdate le|ave'.X* |
|00001ef0| 20 63 68 61 72 20 2a 6c | 6f 6e 67 6e 61 6d 65 28 | char *l|ongname(|
|00001f00| 29 09 09 09 72 65 74 75 | 72 6e 73 20 74 65 72 6d |)...retu|rns term|
|00001f10| 69 6e 61 6c 20 64 65 73 | 63 72 69 70 74 69 6f 6e |inal des|cription|
|00001f20| 20 73 74 72 69 6e 67 0a | 58 20 20 20 76 6f 69 64 | string.|X void|
|00001f30| 20 20 6d 65 74 61 28 77 | 69 6e 2c 62 66 29 09 09 | meta(w|in,bf)..|
|00001f40| 09 6d 61 72 6b 73 20 77 | 69 6e 64 6f 77 20 66 6f |.marks w|indow fo|
|00001f50| 72 20 6d 65 74 61 20 28 | 64 75 6d 6d 79 20 66 75 |r meta (|dummy fu|
|00001f60| 6e 63 74 69 6f 6e 29 0a | 58 2a 20 20 69 6e 74 09 |nction).|X* int.|
|00001f70| 20 6d 6f 76 65 28 79 2c | 78 29 09 09 09 6d 6f 76 | move(y,|x)...mov|
|00001f80| 65 20 63 75 72 73 6f 72 | 20 69 6e 20 73 74 64 73 |e cursor| in stds|
|00001f90| 63 72 0a 58 2a 20 20 69 | 6e 74 09 20 6d 76 61 64 |cr.X* i|nt. mvad|
|00001fa0| 64 63 68 28 79 2c 78 2c | 63 68 29 09 09 6d 6f 76 |dch(y,x,|ch)..mov|
|00001fb0| 65 20 26 20 70 75 74 20 | 63 68 61 72 20 69 6e 20 |e & put |char in |
|00001fc0| 73 74 64 73 63 72 0a 58 | 20 20 20 69 6e 74 09 20 |stdscr.X| int. |
|00001fd0| 6d 76 61 64 64 72 61 77 | 63 68 28 79 2c 78 2c 63 |mvaddraw|ch(y,x,c|
|00001fe0| 68 29 09 09 6d 6f 76 65 | 20 26 20 70 75 74 20 72 |h)..move| & put r|
|00001ff0| 61 77 20 63 68 61 72 20 | 69 6e 20 73 74 64 73 63 |aw char |in stdsc|
|00002000| 72 0a 58 2a 20 20 69 6e | 74 09 20 6d 76 61 64 64 |r.X* in|t. mvadd|
|00002010| 73 74 72 28 79 2c 78 2c | 73 74 72 29 09 09 6d 6f |str(y,x,|str)..mo|
|00002020| 76 65 20 26 20 70 75 74 | 20 73 74 72 69 6e 67 20 |ve & put| string |
|00002030| 69 6e 20 73 74 64 73 63 | 72 0a 58 20 20 20 69 6e |in stdsc|r.X in|
|00002040| 74 09 20 6d 76 63 6c 72 | 74 6f 62 6f 74 28 79 2c |t. mvclr|tobot(y,|
|00002050| 78 29 09 09 6d 6f 76 65 | 20 26 20 63 6c 65 61 72 |x)..move| & clear|
|00002060| 20 65 6e 64 20 6f 66 20 | 73 74 64 73 63 72 0a 58 | end of |stdscr.X|
|00002070| 20 20 20 69 6e 74 09 20 | 6d 76 63 6c 72 74 6f 65 | int. |mvclrtoe|
|00002080| 6f 6c 28 79 2c 78 29 09 | 09 6d 6f 76 65 20 26 20 |ol(y,x).|.move & |
|00002090| 63 6c 65 61 72 20 6c 69 | 6e 65 65 6e 64 20 69 6e |clear li|neend in|
|000020a0| 20 73 74 64 73 63 72 0a | 58 2a 20 20 69 6e 74 09 | stdscr.|X* int.|
|000020b0| 20 6d 76 63 75 72 28 6f | 6c 64 79 2c 6f 6c 64 78 | mvcur(o|ldy,oldx|
|000020c0| 2c 79 2c 78 29 09 09 6d | 6f 76 65 20 74 65 72 6d |,y,x)..m|ove term|
|000020d0| 69 6e 61 6c 20 63 75 72 | 73 6f 72 20 74 6f 20 3c |inal cur|sor to <|
|000020e0| 79 2c 78 3e 0a 58 2a 20 | 20 69 6e 74 09 20 6d 76 |y,x>.X* | int. mv|
|000020f0| 64 65 6c 63 68 28 79 2c | 78 29 09 09 09 6d 6f 76 |delch(y,|x)...mov|
|00002100| 65 20 26 20 64 65 6c 65 | 74 65 20 61 20 63 68 61 |e & dele|te a cha|
|00002110| 72 20 69 6e 20 73 74 64 | 73 63 72 0a 58 20 20 20 |r in std|scr.X |
|00002120| 69 6e 74 09 20 6d 76 64 | 65 6c 65 74 65 6c 6e 28 |int. mvd|eleteln(|
|00002130| 79 2c 78 29 09 09 6d 6f | 76 65 20 26 20 64 65 6c |y,x)..mo|ve & del|
|00002140| 65 74 65 20 61 20 6c 69 | 6e 65 20 69 6e 20 73 74 |ete a li|ne in st|
|00002150| 64 73 63 72 0a 58 2a 20 | 20 69 6e 74 09 20 6d 76 |dscr.X* | int. mv|
|00002160| 67 65 74 63 68 28 79 2c | 78 29 09 09 09 6d 6f 76 |getch(y,|x)...mov|
|00002170| 65 20 26 20 67 65 74 20 | 63 68 61 72 20 74 6f 20 |e & get |char to |
|00002180| 73 74 64 73 63 72 0a 58 | 2a 20 20 69 6e 74 09 20 |stdscr.X|* int. |
|00002190| 6d 76 67 65 74 73 74 72 | 28 79 2c 78 2c 62 75 66 |mvgetstr|(y,x,buf|
|000021a0| 29 09 09 6d 6f 76 65 20 | 26 20 67 65 74 20 73 74 |)..move |& get st|
|000021b0| 72 69 6e 67 20 76 69 61 | 20 73 74 64 73 63 72 20 |ring via| stdscr |
|000021c0| 74 6f 20 62 75 66 66 65 | 72 0a 58 2a 20 20 69 6e |to buffe|r.X* in|
|000021d0| 74 09 20 6d 76 69 6e 63 | 68 28 79 2c 78 2c 29 09 |t. mvinc|h(y,x,).|
|000021e0| 09 09 6d 6f 76 65 20 26 | 20 67 65 74 20 63 68 61 |..move &| get cha|
|000021f0| 72 20 61 74 20 73 74 64 | 73 63 72 20 63 75 72 73 |r at std|scr curs|
|00002200| 6f 72 0a 58 2a 20 20 69 | 6e 74 09 20 6d 76 69 6e |or.X* i|nt. mvin|
|00002210| 73 63 68 28 79 2c 78 2c | 63 68 29 09 09 6d 6f 76 |sch(y,x,|ch)..mov|
|00002220| 65 20 26 20 69 6e 73 65 | 72 74 20 63 68 61 72 20 |e & inse|rt char |
|00002230| 69 6e 20 73 74 64 73 63 | 72 0a 58 20 20 20 69 6e |in stdsc|r.X in|
|00002240| 74 09 20 6d 76 69 6e 73 | 72 61 77 63 68 28 79 2c |t. mvins|rawch(y,|
|00002250| 78 2c 63 68 29 09 09 6d | 6f 76 65 20 26 20 69 6e |x,ch)..m|ove & in|
|00002260| 73 65 72 74 20 72 61 77 | 20 63 68 61 72 20 69 6e |sert raw| char in|
|00002270| 20 73 74 64 73 63 72 0a | 58 20 20 20 69 6e 74 09 | stdscr.|X int.|
|00002280| 20 6d 76 69 6e 73 65 72 | 74 6c 6e 28 79 2c 78 29 | mvinser|tln(y,x)|
|00002290| 09 09 6d 6f 76 65 20 26 | 20 69 6e 73 65 72 74 20 |..move &| insert |
|000022a0| 6e 65 77 20 6c 69 6e 65 | 20 69 6e 20 73 74 64 73 |new line| in stds|
|000022b0| 63 72 0a 58 2a 20 20 69 | 6e 74 09 20 6d 76 70 72 |cr.X* i|nt. mvpr|
|000022c0| 69 6e 74 77 28 79 2c 78 | 2c 66 6d 74 2c 61 72 67 |intw(y,x|,fmt,arg|
|000022d0| 73 29 09 09 6d 6f 76 65 | 20 26 20 70 72 69 6e 74 |s)..move| & print|
|000022e0| 20 73 74 72 69 6e 67 20 | 69 6e 20 73 74 64 73 63 | string |in stdsc|
|000022f0| 72 0a 58 2a 20 20 69 6e | 74 09 20 6d 76 73 63 61 |r.X* in|t. mvsca|
|00002300| 6e 77 28 79 2c 78 2c 66 | 6d 74 2c 61 72 67 73 29 |nw(y,x,f|mt,args)|
|00002310| 09 09 6d 6f 76 65 20 26 | 20 67 65 74 20 76 61 6c |..move &| get val|
|00002320| 75 65 73 20 76 69 61 20 | 73 74 64 73 63 72 0a 58 |ues via |stdscr.X|
|00002330| 2a 20 20 69 6e 74 09 20 | 6d 76 77 61 64 64 63 68 |* int. |mvwaddch|
|00002340| 28 77 69 6e 2c 79 2c 78 | 2c 63 68 29 09 09 6d 6f |(win,y,x|,ch)..mo|
|00002350| 76 65 20 26 20 70 75 74 | 20 63 68 61 72 20 69 6e |ve & put| char in|
|00002360| 20 61 20 77 69 6e 64 6f | 77 0a 58 20 20 20 69 6e | a windo|w.X in|
|00002370| 74 09 20 6d 76 77 61 64 | 64 72 61 77 63 68 28 77 |t. mvwad|drawch(w|
|00002380| 69 6e 2c 79 2c 78 2c 63 | 68 29 09 6d 6f 76 65 20 |in,y,x,c|h).move |
|00002390| 26 20 70 75 74 20 72 61 | 77 20 63 68 61 72 20 69 |& put ra|w char i|
|000023a0| 6e 20 61 20 77 69 6e 64 | 6f 77 0a 58 2a 20 20 69 |n a wind|ow.X* i|
|000023b0| 6e 74 09 20 6d 76 77 61 | 64 64 73 74 72 28 77 69 |nt. mvwa|ddstr(wi|
|000023c0| 6e 2c 79 2c 78 2c 73 74 | 72 29 09 09 6d 6f 76 65 |n,y,x,st|r)..move|
|000023d0| 20 26 20 70 75 74 20 73 | 74 72 69 6e 67 20 69 6e | & put s|tring in|
|000023e0| 20 61 20 77 69 6e 64 6f | 77 0a 58 20 20 20 69 6e | a windo|w.X in|
|000023f0| 74 09 20 6d 76 77 63 6c | 72 74 6f 62 6f 74 28 77 |t. mvwcl|rtobot(w|
|00002400| 69 6e 2c 79 2c 78 29 09 | 09 6d 6f 76 65 20 26 20 |in,y,x).|.move & |
|00002410| 63 6c 65 61 72 20 65 6e | 64 20 6f 66 20 61 20 77 |clear en|d of a w|
|00002420| 69 6e 64 6f 77 0a 58 20 | 20 20 69 6e 74 09 20 6d |indow.X | int. m|
|00002430| 76 77 63 6c 72 74 6f 65 | 6f 6c 28 77 69 6e 2c 79 |vwclrtoe|ol(win,y|
|00002440| 2c 78 29 09 09 6d 6f 76 | 65 20 26 20 63 6c 65 61 |,x)..mov|e & clea|
|00002450| 72 20 6c 69 6e 65 65 6e | 64 20 69 6e 20 61 20 77 |r lineen|d in a w|
|00002460| 69 6e 64 6f 77 0a 58 2a | 20 20 69 6e 74 09 20 6d |indow.X*| int. m|
|00002470| 76 77 64 65 6c 63 68 28 | 77 69 6e 2c 79 2c 78 29 |vwdelch(|win,y,x)|
|00002480| 09 09 6d 6f 76 65 20 26 | 20 64 65 6c 65 74 65 20 |..move &| delete |
|00002490| 61 20 63 68 61 72 20 69 | 6e 20 61 20 77 69 6e 64 |a char i|n a wind|
|000024a0| 6f 77 0a 58 20 20 20 69 | 6e 74 09 20 6d 76 77 64 |ow.X i|nt. mvwd|
|000024b0| 65 6c 65 74 65 6c 6e 28 | 77 69 6e 2c 79 2c 78 29 |eleteln(|win,y,x)|
|000024c0| 09 09 6d 6f 76 65 20 26 | 20 64 65 6c 65 74 65 20 |..move &| delete |
|000024d0| 61 20 6c 69 6e 65 20 69 | 6e 20 61 20 77 69 6e 64 |a line i|n a wind|
|000024e0| 6f 77 0a 58 2a 20 20 69 | 6e 74 09 20 6d 76 77 67 |ow.X* i|nt. mvwg|
|000024f0| 65 74 63 68 28 77 69 6e | 2c 79 2c 78 29 09 09 6d |etch(win|,y,x)..m|
|00002500| 6f 76 65 20 26 20 67 65 | 74 20 63 68 61 72 20 74 |ove & ge|t char t|
|00002510| 6f 20 61 20 77 69 6e 64 | 6f 77 0a 58 2a 20 20 69 |o a wind|ow.X* i|
|00002520| 6e 74 09 20 6d 76 77 67 | 65 74 73 74 72 28 77 69 |nt. mvwg|etstr(wi|
|00002530| 6e 2c 79 2c 78 2c 73 74 | 72 29 09 09 6d 6f 76 65 |n,y,x,st|r)..move|
|00002540| 20 26 20 67 65 74 20 73 | 74 72 69 6e 67 20 74 6f | & get s|tring to|
|00002550| 20 61 20 77 69 6e 64 6f | 77 0a 58 2a 20 20 69 6e | a windo|w.X* in|
|00002560| 74 09 20 6d 76 77 69 6e | 63 68 28 77 69 6e 2c 79 |t. mvwin|ch(win,y|
|00002570| 2c 78 29 09 09 6d 6f 76 | 65 20 26 20 67 65 74 20 |,x)..mov|e & get |
|00002580| 63 68 61 72 20 61 74 20 | 77 69 6e 64 6f 77 20 63 |char at |window c|
|00002590| 75 72 73 6f 72 0a 58 2a | 20 20 69 6e 74 09 20 6d |ursor.X*| int. m|
|000025a0| 76 77 69 6e 73 63 68 28 | 77 69 6e 2c 79 2c 78 2c |vwinsch(|win,y,x,|
|000025b0| 63 68 29 09 09 6d 6f 76 | 65 20 26 20 69 6e 73 65 |ch)..mov|e & inse|
|000025c0| 72 74 20 63 68 61 72 20 | 69 6e 20 61 20 77 69 6e |rt char |in a win|
|000025d0| 64 6f 77 0a 58 20 20 20 | 69 6e 74 09 20 6d 76 77 |dow.X |int. mvw|
|000025e0| 69 6e 73 72 61 77 63 68 | 28 77 69 6e 2c 79 2c 78 |insrawch|(win,y,x|
|000025f0| 2c 63 68 29 09 6d 6f 76 | 65 20 26 20 69 6e 73 65 |,ch).mov|e & inse|
|00002600| 72 74 20 72 61 77 20 63 | 68 61 72 20 69 6e 20 61 |rt raw c|har in a|
|00002610| 20 77 69 6e 64 6f 77 0a | 58 20 20 20 69 6e 74 09 | window.|X int.|
|00002620| 20 6d 76 77 69 6e 73 65 | 72 74 6c 6e 28 77 69 6e | mvwinse|rtln(win|
|00002630| 2c 79 2c 78 29 09 09 6d | 6f 76 65 20 26 20 69 6e |,y,x)..m|ove & in|
|00002640| 73 65 72 74 20 6e 65 77 | 20 6c 69 6e 65 20 69 6e |sert new| line in|
|00002650| 20 77 69 6e 64 6f 77 0a | 58 20 20 20 69 6e 74 09 | window.|X int.|
|00002660| 20 6d 76 77 69 6e 28 77 | 69 6e 2c 79 2c 78 29 09 | mvwin(w|in,y,x).|
|00002670| 09 09 6d 6f 76 65 20 77 | 69 6e 64 6f 77 20 6f 6e |..move w|indow on|
|00002680| 20 70 68 79 73 69 63 61 | 6c 20 73 63 72 65 65 6e | physica|l screen|
|00002690| 0a 58 2a 20 20 69 6e 74 | 09 20 6d 76 77 70 72 69 |.X* int|. mvwpri|
|000026a0| 6e 74 77 28 77 69 6e 2c | 78 2c 79 2c 66 6d 74 2c |ntw(win,|x,y,fmt,|
|000026b0| 61 72 67 73 29 09 6d 6f | 76 65 20 26 20 70 72 69 |args).mo|ve & pri|
|000026c0| 6e 74 20 73 74 72 69 6e | 67 20 69 6e 20 61 20 77 |nt strin|g in a w|
|000026d0| 69 6e 64 6f 77 0a 58 2a | 20 20 69 6e 74 09 20 6d |indow.X*| int. m|
|000026e0| 76 77 73 63 61 6e 77 28 | 77 69 6e 2c 79 2c 78 2c |vwscanw(|win,y,x,|
|000026f0| 66 6d 74 2c 61 72 67 73 | 29 09 6d 6f 76 65 20 26 |fmt,args|).move &|
|00002700| 20 67 65 74 20 76 61 6c | 75 65 73 20 76 69 61 20 | get val|ues via |
|00002710| 61 20 77 69 6e 64 6f 77 | 0a 58 2a 20 20 57 49 4e |a window|.X* WIN|
|00002720| 44 4f 57 20 2a 6e 65 77 | 77 69 6e 28 6c 69 6e 65 |DOW *new|win(line|
|00002730| 73 2c 63 6f 6c 73 2c 62 | 65 67 79 2c 62 65 67 78 |s,cols,b|egy,begx|
|00002740| 29 09 63 72 65 61 74 65 | 20 61 20 6e 65 77 20 77 |).create| a new w|
|00002750| 69 6e 64 6f 77 0a 58 2a | 20 20 76 6f 69 64 09 20 |indow.X*| void. |
|00002760| 6e 6c 28 29 09 09 09 09 | 73 65 74 20 74 65 72 6d |nl()....|set term|
|00002770| 69 6e 61 6c 20 63 72 2d | 63 72 6c 66 20 6d 61 70 |inal cr-|crlf map|
|00002780| 70 69 6e 67 20 6d 6f 64 | 65 0a 58 2a 20 20 76 6f |ping mod|e.X* vo|
|00002790| 69 64 09 20 6e 6f 63 62 | 72 65 61 6b 28 29 09 09 |id. nocb|reak()..|
|000027a0| 09 75 6e 73 65 74 20 74 | 65 72 6d 69 6e 61 6c 20 |.unset t|erminal |
|000027b0| 63 62 72 65 61 6b 20 6d | 6f 64 0a 58 2a 20 20 76 |cbreak m|od.X* v|
|000027c0| 6f 69 64 09 20 6e 6f 63 | 72 6d 6f 64 65 28 29 09 |oid. noc|rmode().|
|000027d0| 09 09 75 6e 73 65 74 20 | 74 65 72 6d 69 6e 61 6c |..unset |terminal|
|000027e0| 20 63 62 72 65 61 6b 20 | 6d 6f 64 65 0a 58 20 20 | cbreak |mode.X |
|000027f0| 20 76 6f 69 64 09 20 6e | 6f 64 65 6c 61 79 28 77 | void. n|odelay(w|
|00002800| 69 6e 2c 62 66 29 09 09 | 6d 61 72 6b 73 20 77 69 |in,bf)..|marks wi|
|00002810| 6e 64 6f 77 20 66 6f 72 | 20 6e 6f 20 69 6e 70 75 |ndow for| no inpu|
|00002820| 74 20 77 61 69 74 0a 58 | 2a 20 20 76 6f 69 64 09 |t wait.X|* void.|
|00002830| 20 6e 6f 65 63 68 6f 28 | 29 09 09 09 75 6e 73 65 | noecho(|)...unse|
|00002840| 74 20 74 65 72 6d 69 6e | 61 6c 20 65 63 68 6f 20 |t termin|al echo |
|00002850| 6d 6f 64 65 0a 58 2a 20 | 20 76 6f 69 64 09 20 6e |mode.X* | void. n|
|00002860| 6f 6e 6c 28 29 09 09 09 | 09 75 6e 73 65 74 20 74 |onl()...|.unset t|
|00002870| 65 72 6d 69 6e 61 6c 20 | 63 72 2d 63 72 6c 66 20 |erminal |cr-crlf |
|00002880| 6d 61 70 70 69 6e 67 20 | 6d 6f 64 65 0a 58 2a 20 |mapping |mode.X* |
|00002890| 20 76 6f 69 64 09 20 6e | 6f 72 61 77 28 29 09 09 | void. n|oraw()..|
|000028a0| 09 75 6e 73 65 74 20 72 | 61 77 20 74 65 72 6d 69 |.unset r|aw termi|
|000028b0| 6e 61 6c 20 6d 6f 64 65 | 0a 58 2a 20 20 76 6f 69 |nal mode|.X* voi|
|000028c0| 64 09 20 6f 76 65 72 6c | 61 79 28 77 69 6e 31 2c |d. overl|ay(win1,|
|000028d0| 77 69 6e 32 29 09 09 6f | 76 65 72 6c 61 79 20 6f |win2)..o|verlay o|
|000028e0| 6e 65 20 77 69 6e 64 6f | 77 20 6f 6e 20 61 6e 6f |ne windo|w on ano|
|000028f0| 74 68 65 72 0a 58 2a 20 | 20 76 6f 69 64 09 20 6f |ther.X* | void. o|
|00002900| 76 65 72 77 72 69 74 65 | 28 77 69 6e 31 2c 77 69 |verwrite|(win1,wi|
|00002910| 6e 32 29 09 09 6f 76 65 | 72 77 72 69 74 65 20 6f |n2)..ove|rwrite o|
|00002920| 6e 65 20 77 69 6e 64 6f | 77 20 6f 6e 20 61 6e 6f |ne windo|w on ano|
|00002930| 74 68 65 72 0a 58 2a 20 | 20 69 6e 74 09 20 70 72 |ther.X* | int. pr|
|00002940| 69 6e 74 77 28 66 6d 74 | 2c 61 72 67 73 29 09 09 |intw(fmt|,args)..|
|00002950| 70 72 69 6e 74 20 73 74 | 72 69 6e 67 20 69 6e 20 |print st|ring in |
|00002960| 73 74 64 73 63 72 0a 58 | 2a 20 20 76 6f 69 64 09 |stdscr.X|* void.|
|00002970| 20 72 61 77 28 29 09 09 | 09 09 73 65 74 20 72 61 | raw()..|..set ra|
|00002980| 77 20 74 65 72 6d 69 6e | 61 6c 20 6d 6f 64 65 0a |w termin|al mode.|
|00002990| 58 20 20 20 76 6f 69 64 | 09 20 72 65 66 72 62 72 |X void|. refrbr|
|000029a0| 6b 28 62 66 29 09 09 09 | 73 65 74 20 73 63 72 65 |k(bf)...|set scre|
|000029b0| 65 6e 20 75 70 64 61 74 | 65 20 62 72 65 61 6b 20 |en updat|e break |
|000029c0| 6d 6f 64 65 0a 58 2a 20 | 20 76 6f 69 64 09 20 72 |mode.X* | void. r|
|000029d0| 65 66 72 65 73 68 28 29 | 09 09 09 72 65 66 72 65 |efresh()|...refre|
|000029e0| 73 68 20 73 74 64 73 63 | 72 0a 58 20 20 20 69 6e |sh stdsc|r.X in|
|000029f0| 74 09 20 72 65 73 65 74 | 74 65 72 6d 28 29 09 09 |t. reset|term()..|
|00002a00| 09 64 75 6d 6d 79 20 66 | 6f 72 20 63 6f 6d 70 61 |.dummy f|or compa|
|00002a10| 74 69 62 69 6c 69 74 79 | 0a 58 2a 20 20 69 6e 74 |tibility|.X* int|
|00002a20| 09 20 72 65 73 65 74 74 | 79 28 29 09 09 09 72 65 |. resett|y()...re|
|00002a30| 73 74 6f 72 65 20 74 65 | 72 6d 69 6e 61 6c 20 49 |store te|rminal I|
|00002a40| 2f 4f 20 6d 6f 64 65 73 | 0a 58 20 20 20 76 6f 69 |/O modes|.X voi|
|00002a50| 64 09 20 72 65 73 65 74 | 5f 70 72 6f 67 5f 6d 6f |d. reset|_prog_mo|
|00002a60| 64 65 28 29 09 09 72 65 | 73 74 6f 72 65 20 74 65 |de()..re|store te|
|00002a70| 72 6d 69 6e 61 6c 20 49 | 2f 4f 20 6d 6f 64 65 73 |rminal I|/O modes|
|00002a80| 0a 58 20 20 20 76 6f 69 | 64 09 20 72 65 73 65 74 |.X voi|d. reset|
|00002a90| 5f 73 68 65 6c 6c 5f 6d | 6f 64 65 28 29 09 09 73 |_shell_m|ode()..s|
|00002aa0| 65 74 20 74 65 72 6d 69 | 6e 61 6c 20 74 6f 20 64 |et termi|nal to d|
|00002ab0| 65 66 61 75 6c 74 20 6d | 6f 64 65 73 0a 58 20 20 |efault m|odes.X |
|00002ac0| 20 69 6e 74 09 20 73 61 | 76 65 6f 6c 64 74 65 72 | int. sa|veoldter|
|00002ad0| 6d 28 29 09 09 09 64 75 | 6d 6d 79 20 66 6f 72 20 |m()...du|mmy for |
|00002ae0| 63 6f 6d 70 61 74 69 62 | 69 6c 69 74 79 0a 58 20 |compatib|ility.X |
|00002af0| 20 20 69 6e 74 09 20 73 | 61 76 65 74 65 72 6d 28 | int. s|aveterm(|
|00002b00| 29 09 09 09 64 75 6d 6d | 79 20 66 6f 72 20 63 6f |)...dumm|y for co|
|00002b10| 6d 70 61 74 69 62 69 6c | 69 74 79 0a 58 2a 20 20 |mpatibil|ity.X* |
|00002b20| 69 6e 74 09 20 73 61 76 | 65 74 74 79 28 29 09 09 |int. sav|etty()..|
|00002b30| 09 73 61 76 65 20 74 65 | 72 6d 69 6e 61 6c 20 49 |.save te|rminal I|
|00002b40| 2f 4f 20 6d 6f 64 65 73 | 0a 58 2a 20 20 69 6e 74 |/O modes|.X* int|
|00002b50| 09 20 73 63 61 6e 77 28 | 66 6d 74 2c 61 72 67 73 |. scanw(|fmt,args|
|00002b60| 29 09 09 67 65 74 20 76 | 61 6c 75 65 73 20 76 69 |)..get v|alues vi|
|00002b70| 61 20 73 74 64 73 63 72 | 0a 58 2a 20 20 76 6f 69 |a stdscr|.X* voi|
|00002b80| 64 09 20 73 63 72 6f 6c | 6c 28 77 69 6e 29 09 09 |d. scrol|l(win)..|
|00002b90| 09 73 63 72 6f 6c 6c 20 | 73 63 72 6f 6c 6c 69 6e |.scroll |scrollin|
|00002ba0| 67 20 72 65 67 69 6f 6e | 20 6f 66 20 61 20 77 69 |g region| of a wi|
|00002bb0| 6e 64 6f 77 0a 58 2a 20 | 20 76 6f 69 64 09 20 73 |ndow.X* | void. s|
|00002bc0| 63 72 6f 6c 6c 6f 6b 28 | 77 69 6e 2c 62 66 29 09 |crollok(|win,bf).|
|00002bd0| 09 6d 61 72 6b 73 20 61 | 20 77 69 6e 64 6f 77 20 |.marks a| window |
|00002be0| 74 6f 20 61 6c 6c 6f 77 | 20 73 63 72 6f 6c 6c 0a |to allow| scroll.|
|00002bf0| 58 20 20 20 69 6e 74 09 | 20 73 65 74 73 63 72 72 |X int.| setscrr|
|00002c00| 65 67 28 6d 69 6e 79 2c | 6d 61 78 79 29 09 09 64 |eg(miny,|maxy)..d|
|00002c10| 65 66 69 6e 65 20 73 74 | 64 73 63 72 27 73 20 73 |efine st|dscr's s|
|00002c20| 63 72 6f 6c 6c 20 72 65 | 67 69 6f 6e 0a 58 2a 20 |croll re|gion.X* |
|00002c30| 20 69 6e 74 09 20 73 65 | 74 74 65 72 6d 28 29 09 | int. se|tterm().|
|00002c40| 09 09 64 75 6d 6d 79 20 | 66 6f 72 20 63 6f 6d 70 |..dummy |for comp|
|00002c50| 61 74 69 62 69 6c 69 74 | 79 0a 58 20 20 20 69 6e |atibilit|y.X in|
|00002c60| 74 09 20 73 65 74 75 70 | 74 65 72 6d 28 74 65 72 |t. setup|term(ter|
|00002c70| 6d 2c 66 64 2c 65 72 72 | 72 65 74 29 09 73 65 74 |m,fd,err|ret).set|
|00002c80| 20 75 70 20 74 65 72 6d | 69 6e 61 6c 20 28 6e 6f | up term|inal (no|
|00002c90| 2d 6f 70 20 6f 6e 20 50 | 43 29 0a 58 2a 20 20 76 |-op on P|C).X* v|
|00002ca0| 6f 69 64 09 20 73 74 61 | 6e 64 65 6e 64 28 29 09 |oid. sta|ndend().|
|00002cb0| 09 09 73 74 61 72 74 20 | 6e 6f 72 6d 61 6c 20 63 |..start |normal c|
|00002cc0| 68 61 72 73 20 69 6e 20 | 73 74 64 73 63 72 0a 58 |hars in |stdscr.X|
|00002cd0| 2a 20 20 76 6f 69 64 09 | 20 73 74 61 6e 64 6f 75 |* void.| standou|
|00002ce0| 74 28 29 09 09 09 73 74 | 61 72 74 20 73 74 61 6e |t()...st|art stan|
|00002cf0| 64 6f 75 74 20 63 68 61 | 72 73 20 69 6e 20 73 74 |dout cha|rs in st|
|00002d00| 64 73 63 72 0a 58 2a 20 | 20 57 49 4e 44 4f 57 20 |dscr.X* | WINDOW |
|00002d10| 2a 73 75 62 77 69 6e 28 | 77 69 6e 2c 6c 69 6e 65 |*subwin(|win,line|
|00002d20| 73 2c 63 6f 6c 73 2c 62 | 65 67 79 2c 62 65 67 78 |s,cols,b|egy,begx|
|00002d30| 29 20 63 72 65 61 74 65 | 20 61 20 73 75 62 2d 77 |) create| a sub-w|
|00002d40| 69 6e 64 6f 77 20 69 6e | 20 77 69 6e 64 6f 77 20 |indow in| window |
|00002d50| 77 69 6e 0a 58 20 20 20 | 69 6e 74 09 20 74 61 62 |win.X |int. tab|
|00002d60| 73 69 7a 65 28 74 73 29 | 09 09 09 73 65 74 2f 67 |size(ts)|...set/g|
|00002d70| 65 74 20 74 61 62 73 69 | 7a 65 20 6f 66 20 73 74 |et tabsi|ze of st|
|00002d80| 64 73 63 72 0a 58 2a 20 | 20 76 6f 69 64 09 20 74 |dscr.X* | void. t|
|00002d90| 6f 75 63 68 77 69 6e 28 | 77 69 6e 29 09 09 09 6d |ouchwin(|win)...m|
|00002da0| 61 72 6b 20 61 20 77 69 | 6e 64 6f 77 20 61 73 20 |ark a wi|ndow as |
|00002db0| 74 6f 74 61 6c 6c 79 20 | 6d 6f 64 69 66 69 65 64 |totally |modified|
|00002dc0| 0a 58 2a 20 20 63 68 61 | 72 09 2a 75 6e 63 74 72 |.X* cha|r.*unctr|
|00002dd0| 6c 28 63 68 29 09 09 09 | 63 68 61 72 2d 74 6f 2d |l(ch)...|char-to-|
|00002de0| 73 74 72 69 6e 67 20 63 | 6f 6e 76 65 72 74 65 72 |string c|onverter|
|00002df0| 0a 58 20 20 20 69 6e 74 | 09 20 75 6e 67 65 74 63 |.X int|. ungetc|
|00002e00| 68 28 63 68 29 09 28 23 | 64 65 66 20 6d 61 63 72 |h(ch).(#|def macr|
|00002e10| 6f 29 09 70 75 73 68 20 | 62 61 63 6b 20 61 20 63 |o).push |back a c|
|00002e20| 68 61 72 61 63 74 65 72 | 20 74 6f 20 69 6e 70 75 |haracter| to inpu|
|00002e30| 74 20 2a 2f 0a 58 2a 20 | 20 69 6e 74 09 20 77 61 |t */.X* | int. wa|
|00002e40| 64 64 63 68 28 77 69 6e | 2c 63 68 29 09 09 09 70 |ddch(win|,ch)...p|
|00002e50| 75 74 20 63 68 61 72 20 | 69 6e 20 61 20 77 69 6e |ut char |in a win|
|00002e60| 64 6f 77 0a 58 20 20 20 | 69 6e 74 09 20 77 61 64 |dow.X |int. wad|
|00002e70| 64 72 61 77 63 68 28 77 | 69 6e 2c 63 68 29 09 09 |drawch(w|in,ch)..|
|00002e80| 70 75 74 20 72 61 77 20 | 63 68 61 72 20 69 6e 20 |put raw |char in |
|00002e90| 61 20 77 69 6e 64 6f 77 | 0a 58 2a 20 20 69 6e 74 |a window|.X* int|
|00002ea0| 09 20 77 61 64 64 73 74 | 72 28 77 69 6e 2c 73 74 |. waddst|r(win,st|
|00002eb0| 72 29 09 09 70 75 74 20 | 73 74 72 69 6e 67 20 69 |r)..put |string i|
|00002ec0| 6e 20 61 20 77 69 6e 64 | 6f 77 0a 58 20 20 20 76 |n a wind|ow.X v|
|00002ed0| 6f 69 64 09 20 77 61 74 | 74 72 6f 66 66 28 77 69 |oid. wat|troff(wi|
|00002ee0| 6e 2c 61 74 74 72 73 29 | 09 09 63 6c 65 61 72 20 |n,attrs)|..clear |
|00002ef0| 61 74 74 72 69 62 75 74 | 65 28 73 29 20 69 6e 20 |attribut|e(s) in |
|00002f00| 77 69 6e 64 6f 77 0a 58 | 20 20 20 76 6f 69 64 09 |window.X| void.|
|00002f10| 20 77 61 74 74 72 6f 6e | 28 77 69 6e 2c 61 74 74 | wattron|(win,att|
|00002f20| 72 73 29 09 09 61 64 64 | 20 61 74 74 72 69 62 75 |rs)..add| attribu|
|00002f30| 74 65 28 73 29 20 69 6e | 20 77 69 6e 64 6f 77 0a |te(s) in| window.|
|00002f40| 58 20 20 20 76 6f 69 64 | 09 20 77 61 74 74 72 73 |X void|. wattrs|
|00002f50| 65 74 28 77 69 6e 2c 61 | 74 74 72 73 29 09 09 73 |et(win,a|ttrs)..s|
|00002f60| 65 74 20 77 69 6e 64 6f | 77 20 63 68 61 72 20 61 |et windo|w char a|
|00002f70| 74 74 72 69 62 75 74 65 | 73 0a 58 20 20 20 76 6f |ttribute|s.X vo|
|00002f80| 69 64 09 20 77 62 6f 72 | 64 65 72 28 77 69 6e 2c |id. wbor|der(win,|
|00002f90| 6c 2c 72 2c 74 2c 62 2c | 74 6c 2c 74 72 2c 62 6c |l,r,t,b,|tl,tr,bl|
|00002fa0| 2c 62 72 29 20 53 65 74 | 20 6e 6f 6e 2d 73 74 64 |,br) Set| non-std|
|00002fb0| 20 62 6f 78 20 63 68 61 | 72 61 63 74 65 72 73 0a | box cha|racters.|
|00002fc0| 58 20 20 20 69 6e 74 09 | 20 77 62 6f 78 28 77 69 |X int.| wbox(wi|
|00002fd0| 6e 2c 6d 69 6e 79 2c 6d | 69 6e 78 2c 6d 61 78 79 |n,miny,m|inx,maxy|
|00002fe0| 2c 6d 61 78 78 2c 6c 2c | 72 29 20 64 72 61 77 20 |,maxx,l,|r) draw |
|00002ff0| 61 20 62 6f 78 20 69 6e | 73 69 64 65 20 61 20 77 |a box in|side a w|
|00003000| 69 6e 64 6f 77 0a 58 2a | 20 20 76 6f 69 64 09 20 |indow.X*| void. |
|00003010| 77 63 6c 65 61 72 28 77 | 69 6e 29 09 09 09 63 6c |wclear(w|in)...cl|
|00003020| 65 61 72 20 61 20 77 69 | 6e 64 6f 77 0a 58 2a 20 |ear a wi|ndow.X* |
|00003030| 20 69 6e 74 09 20 77 63 | 6c 72 74 6f 62 6f 74 28 | int. wc|lrtobot(|
|00003040| 77 69 6e 29 09 09 09 63 | 6c 65 61 72 20 65 6e 64 |win)...c|lear end|
|00003050| 20 6f 66 20 61 20 77 69 | 6e 64 6f 77 0a 58 2a 20 | of a wi|ndow.X* |
|00003060| 20 69 6e 74 09 20 77 63 | 6c 72 74 6f 65 6f 6c 28 | int. wc|lrtoeol(|
|00003070| 77 69 6e 29 09 09 09 63 | 6c 65 61 72 20 65 6e 64 |win)...c|lear end|
|00003080| 20 6f 66 20 6c 69 6e 65 | 20 69 6e 20 61 20 77 69 | of line| in a wi|
|00003090| 6e 64 6f 77 0a 58 2a 20 | 20 69 6e 74 09 20 77 64 |ndow.X* | int. wd|
|000030a0| 65 6c 63 68 28 77 69 6e | 29 09 09 09 64 65 6c 65 |elch(win|)...dele|
|000030b0| 74 65 20 61 20 63 68 61 | 72 20 69 6e 20 61 20 77 |te a cha|r in a w|
|000030c0| 69 6e 64 6f 77 0a 58 2a | 20 20 69 6e 74 09 20 77 |indow.X*| int. w|
|000030d0| 64 65 6c 65 74 65 6c 6e | 28 77 69 6e 29 09 09 09 |deleteln|(win)...|
|000030e0| 64 65 6c 65 74 65 20 61 | 20 6c 69 6e 65 20 69 6e |delete a| line in|
|000030f0| 20 61 20 77 69 6e 64 6f | 77 0a 58 2a 20 20 76 6f | a windo|w.X* vo|
|00003100| 69 64 09 20 77 65 72 61 | 73 65 28 77 69 6e 29 09 |id. wera|se(win).|
|00003110| 09 09 65 72 61 73 65 20 | 61 20 77 69 6e 64 6f 77 |..erase |a window|
|00003120| 0a 58 2a 20 20 69 6e 74 | 09 20 77 67 65 74 63 68 |.X* int|. wgetch|
|00003130| 28 77 69 6e 29 09 09 09 | 67 65 74 20 63 68 61 72 |(win)...|get char|
|00003140| 20 76 69 61 20 61 20 77 | 69 6e 64 6f 77 0a 58 2a | via a w|indow.X*|
|00003150| 20 20 69 6e 74 09 20 77 | 67 65 74 73 74 72 28 77 | int. w|getstr(w|
|00003160| 69 6e 2c 62 75 66 29 09 | 09 67 65 74 20 73 74 72 |in,buf).|.get str|
|00003170| 69 6e 67 20 76 69 61 20 | 77 69 6e 64 6f 77 20 74 |ing via |window t|
|00003180| 6f 20 61 20 62 75 66 66 | 65 72 0a 58 2a 20 20 69 |o a buff|er.X* i|
|00003190| 6e 74 09 20 77 69 6e 63 | 68 28 77 69 6e 29 09 09 |nt. winc|h(win)..|
|000031a0| 09 67 65 74 20 63 68 61 | 72 20 61 74 20 77 69 6e |.get cha|r at win|
|000031b0| 64 6f 77 20 63 75 72 73 | 6f 72 0a 58 2a 20 20 69 |dow curs|or.X* i|
|000031c0| 6e 74 09 20 77 69 6e 73 | 63 68 28 77 69 6e 2c 63 |nt. wins|ch(win,c|
|000031d0| 68 29 09 09 09 69 6e 73 | 65 72 74 20 63 68 61 72 |h)...ins|ert char|
|000031e0| 61 63 74 65 72 20 69 6e | 20 61 20 77 69 6e 64 6f |acter in| a windo|
|000031f0| 77 0a 58 20 20 20 69 6e | 74 09 20 77 69 6e 73 72 |w.X in|t. winsr|
|00003200| 61 77 63 68 28 77 69 6e | 2c 63 68 29 09 09 69 6e |awch(win|,ch)..in|
|00003210| 73 65 72 74 20 72 61 77 | 20 63 68 61 72 61 63 74 |sert raw| charact|
|00003220| 65 72 20 69 6e 20 61 20 | 77 69 6e 64 6f 77 0a 58 |er in a |window.X|
|00003230| 2a 20 20 69 6e 74 09 20 | 77 69 6e 73 65 72 74 6c |* int. |winsertl|
|00003240| 6e 28 77 69 6e 29 09 09 | 09 69 6e 73 65 72 74 20 |n(win)..|.insert |
|00003250| 6e 65 77 20 6c 69 6e 65 | 20 69 6e 20 61 20 77 69 |new line| in a wi|
|00003260| 6e 64 6f 77 0a 58 2a 20 | 20 69 6e 74 09 20 77 6d |ndow.X* | int. wm|
|00003270| 6f 76 65 28 77 69 6e 2c | 79 2c 78 29 09 09 09 6d |ove(win,|y,x)...m|
|00003280| 6f 76 65 20 63 75 72 73 | 6f 72 20 69 6e 20 61 20 |ove curs|or in a |
|00003290| 77 69 6e 64 6f 77 0a 58 | 20 20 20 76 6f 69 64 09 |window.X| void.|
|000032a0| 20 77 6e 6f 75 74 72 65 | 66 72 65 73 68 28 77 69 | wnoutre|fresh(wi|
|000032b0| 6e 29 09 09 63 72 65 61 | 74 65 20 69 6e 74 65 72 |n)..crea|te inter|
|000032c0| 6e 61 6c 20 73 63 72 65 | 65 6e 20 69 6d 61 67 65 |nal scre|en image|
|000032d0| 0a 58 2a 20 20 69 6e 74 | 09 20 77 70 72 69 6e 74 |.X* int|. wprint|
|000032e0| 77 28 77 69 6e 2c 66 6d | 74 2c 61 72 67 73 29 09 |w(win,fm|t,args).|
|000032f0| 09 70 72 69 6e 74 20 73 | 74 72 69 6e 67 20 69 6e |.print s|tring in|
|00003300| 20 61 20 77 69 6e 64 6f | 77 0a 58 2a 20 20 76 6f | a windo|w.X* vo|
|00003310| 69 64 09 20 77 72 65 66 | 72 65 73 68 28 77 69 6e |id. wref|resh(win|
|00003320| 29 09 09 09 72 65 66 72 | 65 73 68 20 77 69 6e 64 |)...refr|esh wind|
|00003330| 6f 77 0a 58 2a 20 20 69 | 6e 74 09 20 77 73 63 61 |ow.X* i|nt. wsca|
|00003340| 6e 77 28 77 69 6e 2c 66 | 6d 74 2c 61 72 67 73 29 |nw(win,f|mt,args)|
|00003350| 09 09 67 65 74 20 76 61 | 6c 75 65 73 20 76 69 61 |..get va|lues via|
|00003360| 20 61 20 77 69 6e 64 6f | 77 0a 58 20 20 20 69 6e | a windo|w.X in|
|00003370| 74 09 20 77 73 65 74 73 | 63 72 72 65 67 28 77 69 |t. wsets|crreg(wi|
|00003380| 6e 2c 6d 69 6e 79 2c 6d | 61 78 79 29 09 64 65 66 |n,miny,m|axy).def|
|00003390| 69 6e 65 20 61 20 77 69 | 6e 64 6f 77 27 73 20 73 |ine a wi|ndow's s|
|000033a0| 63 72 6f 6c 6c 69 6e 67 | 20 72 65 67 69 6f 6e 0a |crolling| region.|
|000033b0| 58 2a 20 20 76 6f 69 64 | 09 20 77 73 74 61 6e 64 |X* void|. wstand|
|000033c0| 65 6e 64 28 77 69 6e 29 | 09 09 09 73 74 61 72 74 |end(win)|...start|
|000033d0| 20 6e 6f 72 6d 61 6c 20 | 63 68 61 72 73 20 69 6e | normal |chars in|
|000033e0| 20 77 69 6e 64 6f 77 0a | 58 2a 20 20 76 6f 69 64 | window.|X* void|
|000033f0| 09 20 77 73 74 61 6e 64 | 6f 75 74 28 77 69 6e 29 |. wstand|out(win)|
|00003400| 09 09 09 73 74 61 72 74 | 20 73 74 61 6e 64 6f 75 |...start| standou|
|00003410| 74 20 63 68 61 72 73 20 | 69 6e 20 77 69 6e 64 6f |t chars |in windo|
|00003420| 77 0a 58 20 20 20 69 6e | 74 09 20 77 74 61 62 73 |w.X in|t. wtabs|
|00003430| 69 7a 65 28 77 69 6e 2c | 74 73 29 09 09 73 65 74 |ize(win,|ts)..set|
|00003440| 2f 67 65 74 20 74 61 62 | 73 69 7a 65 20 6f 66 20 |/get tab|size of |
|00003450| 61 20 77 69 6e 64 6f 77 | 0a 58 20 20 20 69 6e 74 |a window|.X int|
|00003460| 09 20 77 75 6e 67 65 74 | 63 68 28 63 68 29 09 09 |. wunget|ch(ch)..|
|00003470| 09 70 75 73 68 20 62 61 | 63 6b 20 61 20 63 68 61 |.push ba|ck a cha|
|00003480| 72 61 63 74 65 72 20 74 | 6f 20 69 6e 70 75 74 20 |racter t|o input |
|00003490| 2a 2f 0a 58 0a 58 4d 49 | 53 53 49 4e 47 20 46 55 |*/.X.XMI|SSING FU|
|000034a0| 4e 43 54 49 4f 4e 53 0a | 58 0a 58 20 20 20 54 68 |NCTIONS.|X.X Th|
|000034b0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 66 75 6e 63 |e follow|ing func|
|000034c0| 74 69 6f 6e 73 20 65 78 | 69 73 74 69 6e 67 20 69 |tions ex|isting i|
|000034d0| 6e 20 55 4e 49 58 20 63 | 75 72 73 65 65 73 20 61 |n UNIX c|ursees a|
|000034e0| 72 65 20 6d 69 73 73 69 | 6e 67 20 69 6e 20 50 43 |re missi|ng in PC|
|000034f0| 63 75 72 73 65 73 3a 0a | 58 0a 58 20 20 20 67 65 |curses:.|X.X ge|
|00003500| 74 63 61 70 28 6e 61 6d | 29 09 09 09 09 67 65 74 |tcap(nam|)....get|
|00003510| 20 74 65 72 6d 69 6e 61 | 6c 20 63 61 70 61 62 69 | termina|l capabi|
|00003520| 6c 69 74 79 20 27 6e 61 | 6d 65 27 0a 58 0a 58 46 |lity 'na|me'.X.XF|
|00003530| 55 4e 43 54 49 4f 4e 53 | 20 55 4e 49 51 55 45 20 |UNCTIONS| UNIQUE |
|00003540| 54 4f 20 50 43 63 75 72 | 73 65 73 0a 58 0a 58 20 |TO PCcur|ses.X.X |
|00003550| 20 20 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 | The fo|llowing |
|00003560| 66 75 6e 63 74 69 6f 6e | 73 20 61 72 65 20 28 74 |function|s are (t|
|00003570| 6f 20 74 68 65 20 61 75 | 74 68 6f 72 27 73 20 6b |o the au|thor's k|
|00003580| 6e 6f 77 6c 65 64 67 65 | 29 20 75 6e 69 71 75 65 |nowledge|) unique|
|00003590| 20 74 6f 20 50 43 63 75 | 72 73 65 73 3a 0a 58 0a | to PCcu|rses:.X.|
|000035a0| 58 20 20 20 69 6e 74 09 | 20 61 64 64 72 61 77 63 |X int.| addrawc|
|000035b0| 68 28 63 68 29 09 09 09 | 70 75 74 20 72 61 77 20 |h(ch)...|put raw |
|000035c0| 63 68 61 72 20 69 6e 20 | 73 74 64 73 63 72 0a 58 |char in |stdscr.X|
|000035d0| 20 20 20 69 6e 74 09 20 | 77 61 64 64 72 61 77 63 | int. |waddrawc|
|000035e0| 68 28 77 69 6e 2c 63 68 | 29 09 09 70 75 74 20 72 |h(win,ch|)..put r|
|000035f0| 61 77 20 63 68 61 72 20 | 69 6e 20 61 20 77 69 6e |aw char |in a win|
|00003600| 64 6f 77 0a 58 20 20 20 | 69 6e 74 09 20 6d 76 61 |dow.X |int. mva|
|00003610| 64 64 72 61 77 63 68 28 | 79 2c 78 2c 63 68 29 09 |ddrawch(|y,x,ch).|
|00003620| 09 6d 6f 76 65 20 26 20 | 70 75 74 20 72 61 77 20 |.move & |put raw |
|00003630| 63 68 61 72 20 69 6e 20 | 73 74 64 73 63 72 0a 58 |char in |stdscr.X|
|00003640| 20 20 20 69 6e 74 09 20 | 6d 76 77 61 64 64 72 61 | int. |mvwaddra|
|00003650| 77 63 68 28 77 69 6e 2c | 79 2c 78 2c 63 68 29 09 |wch(win,|y,x,ch).|
|00003660| 6d 6f 76 65 20 26 20 70 | 75 74 20 72 61 77 20 63 |move & p|ut raw c|
|00003670| 68 61 72 20 69 6e 20 61 | 20 77 69 6e 64 6f 77 0a |har in a| window.|
|00003680| 58 20 20 20 69 6e 74 20 | 20 20 69 6e 73 72 61 77 |X int | insraw|
|00003690| 63 68 28 63 68 29 09 09 | 09 69 6e 73 65 72 74 20 |ch(ch)..|.insert |
|000036a0| 72 61 77 20 63 68 61 72 | 61 63 74 65 72 20 69 6e |raw char|acter in|
|000036b0| 20 73 74 64 73 63 72 0a | 58 20 20 20 69 6e 74 20 | stdscr.|X int |
|000036c0| 20 20 77 69 6e 73 72 61 | 77 63 68 28 77 69 6e 2c | winsra|wch(win,|
|000036d0| 63 68 29 09 09 69 6e 73 | 65 72 74 20 72 61 77 20 |ch)..ins|ert raw |
|000036e0| 63 68 61 72 61 63 74 65 | 72 20 69 6e 20 61 20 77 |characte|r in a w|
|000036f0| 69 6e 64 6f 77 0a 58 20 | 20 20 69 6e 74 09 20 6d |indow.X | int. m|
|00003700| 76 69 6e 73 72 61 77 63 | 68 28 79 2c 78 2c 63 68 |vinsrawc|h(y,x,ch|
|00003710| 29 09 09 6d 6f 76 65 20 | 26 20 69 6e 73 65 72 74 |)..move |& insert|
|00003720| 20 72 61 77 20 63 68 61 | 72 20 69 6e 20 73 74 64 | raw cha|r in std|
|00003730| 73 63 72 0a 58 20 20 20 | 69 6e 74 09 20 6d 76 77 |scr.X |int. mvw|
|00003740| 69 6e 73 72 61 77 63 68 | 28 77 69 6e 2c 79 2c 78 |insrawch|(win,y,x|
|00003750| 2c 63 68 29 09 6d 6f 76 | 65 20 26 20 69 6e 73 65 |,ch).mov|e & inse|
|00003760| 72 74 20 72 61 77 20 63 | 68 61 72 20 69 6e 20 61 |rt raw c|har in a|
|00003770| 20 77 69 6e 64 6f 77 0a | 58 20 20 20 69 6e 74 20 | window.|X int |
|00003780| 20 20 74 61 62 73 69 7a | 65 28 74 73 29 09 09 09 | tabsiz|e(ts)...|
|00003790| 73 65 74 2f 67 65 74 20 | 74 61 62 73 69 7a 65 20 |set/get |tabsize |
|000037a0| 6f 66 20 73 74 64 73 63 | 72 0a 58 20 20 20 69 6e |of stdsc|r.X in|
|000037b0| 74 09 20 77 74 61 62 73 | 69 7a 65 28 77 69 6e 2c |t. wtabs|ize(win,|
|000037c0| 74 73 29 09 09 73 65 74 | 2f 67 65 74 20 74 61 62 |ts)..set|/get tab|
|000037d0| 73 69 7a 65 20 6f 66 20 | 61 20 77 69 6e 64 6f 77 |size of |a window|
|000037e0| 0a 58 0a 58 53 45 45 20 | 41 4c 53 4f 0a 58 20 20 |.X.XSEE |ALSO.X |
|000037f0| 20 22 53 63 72 65 65 6e | 20 55 70 64 61 74 69 6e | "Screen| Updatin|
|00003800| 67 20 41 6e 64 20 43 75 | 72 73 6f 72 20 4d 6f 76 |g And Cu|rsor Mov|
|00003810| 65 6d 65 6e 74 20 4f 70 | 74 69 6d 69 7a 61 74 69 |ement Op|timizati|
|00003820| 6f 6e 3a 20 41 20 4c 69 | 62 72 61 72 79 20 50 61 |on: A Li|brary Pa|
|00003830| 63 6b 61 67 65 22 20 2d | 0a 58 20 20 20 4b 65 6e |ckage" -|.X Ken|
|00003840| 6e 65 74 68 20 43 2e 52 | 2e 43 2e 20 41 72 6e 6f |neth C.R|.C. Arno|
|00003850| 6c 64 0a 58 20 20 20 22 | 54 68 65 20 4e 63 75 72 |ld.X "|The Ncur|
|00003860| 73 65 73 20 52 65 66 65 | 72 65 6e 63 65 20 4d 61 |ses Refe|rence Ma|
|00003870| 6e 75 61 6c 22 20 2d 20 | 50 61 76 65 6c 20 43 75 |nual" - |Pavel Cu|
|00003880| 72 74 69 73 2c 20 43 6f | 72 6e 65 6c 6c 20 55 6e |rtis, Co|rnell Un|
|00003890| 69 76 65 72 73 69 74 79 | 0a 58 0a 58 42 55 47 53 |iversity|.X.XBUGS|
|000038a0| 0a 58 20 20 20 54 68 65 | 20 74 65 72 6d 69 6e 61 |.X The| termina|
|000038b0| 6c 20 72 61 77 20 49 2f | 4f 20 6d 6f 64 65 20 69 |l raw I/|O mode i|
|000038c0| 73 20 69 6d 70 6c 65 6d | 65 6e 74 65 64 20 62 79 |s implem|ented by|
|000038d0| 20 72 65 61 64 69 6e 67 | 20 63 68 61 72 61 63 74 | reading| charact|
|000038e0| 65 72 73 20 64 69 72 65 | 63 74 6c 79 0a 58 20 20 |ers dire|ctly.X |
|000038f0| 20 66 72 6f 6d 20 74 68 | 65 20 42 49 4f 53 2e 20 | from th|e BIOS. |
|00003900| 54 68 69 73 20 6d 65 61 | 6e 73 20 74 68 61 74 20 |This mea|ns that |
|00003910| 74 68 65 20 70 72 6f 67 | 72 61 6d 6d 65 72 20 6d |the prog|rammer m|
|00003920| 75 73 74 20 6e 6f 74 20 | 75 73 65 20 74 68 65 20 |ust not |use the |
|00003930| 6e 6f 72 6d 61 6c 0a 58 | 20 20 20 49 2f 4f 20 72 |normal.X| I/O r|
|00003940| 6f 75 74 69 6e 65 73 20 | 74 6f 20 74 68 65 20 73 |outines |to the s|
|00003950| 63 72 65 65 6e 20 6f 72 | 20 66 72 6f 6d 20 74 68 |creen or| from th|
|00003960| 65 20 6b 65 79 62 6f 61 | 72 64 2c 20 73 69 6e 63 |e keyboa|rd, sinc|
|00003970| 65 20 74 68 65 79 20 77 | 69 6c 6c 20 74 72 61 70 |e they w|ill trap|
|00003980| 20 74 68 65 0a 58 20 20 | 20 4d 53 2d 44 4f 53 20 | the.X | MS-DOS |
|00003990| 5e 43 2c 20 5e 53 2c 20 | 5e 51 20 61 6e 64 20 5e |^C, ^S, |^Q and ^|
|000039a0| 50 20 63 68 61 72 61 63 | 74 65 72 73 20 61 6e 64 |P charac|ters and|
|000039b0| 20 74 68 75 73 20 6e 75 | 6c 6c 69 66 79 20 74 68 | thus nu|llify th|
|000039c0| 65 20 72 61 77 20 69 6e | 70 75 74 2e 0a 58 0a 58 |e raw in|put..X.X|
|000039d0| 20 20 20 41 6c 73 6f 2c | 20 69 66 20 74 68 65 20 | Also,| if the |
|000039e0| 74 65 72 6d 69 6e 61 6c | 20 69 73 20 69 6e 20 6e |terminal| is in n|
|000039f0| 6f 72 6d 61 6c 20 6f 72 | 20 63 62 72 65 61 6b 20 |ormal or| cbreak |
|00003a00| 6d 6f 64 65 20 61 6e 64 | 20 74 68 65 20 70 72 6f |mode and| the pro|
|00003a10| 67 72 61 6d 6d 65 72 20 | 68 61 73 0a 58 20 20 20 |grammer |has.X |
|00003a20| 74 72 61 70 70 65 64 20 | 43 54 52 4c 2d 42 52 45 |trapped |CTRL-BRE|
|00003a30| 41 4b 20 62 79 20 75 73 | 69 6e 67 20 73 69 67 6e |AK by us|ing sign|
|00003a40| 61 6c 28 53 49 47 49 4e | 54 2c 6f 77 6e 68 61 6e |al(SIGIN|T,ownhan|
|00003a50| 64 6c 65 72 29 2c 20 4d | 53 2d 44 4f 53 20 77 69 |dler), M|S-DOS wi|
|00003a60| 6c 6c 20 73 74 69 6c 6c | 0a 58 20 20 20 65 63 68 |ll still|.X ech|
|00003a70| 6f 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 73 |o the ch|aracters|
|00003a80| 20 27 5e 43 27 20 6f 6e | 20 74 68 65 20 73 63 72 | '^C' on| the scr|
|00003a90| 65 65 6e 20 77 68 65 6e | 20 74 68 65 20 63 68 61 |een when| the cha|
|00003aa0| 72 61 63 74 65 72 20 69 | 73 20 69 6e 74 65 72 63 |racter i|s interc|
|00003ab0| 65 70 74 65 64 2e 0a 58 | 20 20 20 54 68 65 72 65 |epted..X| There|
|00003ac0| 20 73 65 65 6d 73 20 74 | 6f 20 62 65 20 6e 6f 20 | seems t|o be no |
|00003ad0| 77 61 79 20 74 6f 20 61 | 76 6f 69 64 20 74 68 69 |way to a|void thi|
|00003ae0| 73 20 75 6e 64 65 72 20 | 4d 53 2d 44 4f 53 20 28 |s under |MS-DOS (|
|00003af0| 75 73 65 20 72 61 77 20 | 6d 6f 64 65 20 69 6e 2d |use raw |mode in-|
|00003b00| 0a 58 20 20 20 73 74 65 | 61 64 2c 20 6f 72 20 72 |.X ste|ad, or r|
|00003b10| 65 64 72 61 77 20 74 68 | 65 20 77 68 6f 6c 65 20 |edraw th|e whole |
|00003b20| 73 63 72 65 65 6e 29 2e | 0a 58 0a 58 20 20 20 54 |screen).|.X.X T|
|00003b30| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 6b 65 79 20 |he funct|ion key |
|00003b40| 73 75 70 70 6f 72 74 20 | 69 73 20 68 61 72 64 77 |support |is hardw|
|00003b50| 61 72 65 20 64 65 70 65 | 6e 64 65 6e 74 2e 20 54 |are depe|ndent. T|
|00003b60| 68 65 72 65 20 69 73 20 | 61 20 74 61 62 6c 65 20 |here is |a table |
|00003b70| 69 6e 20 63 68 61 72 2d | 0a 58 20 20 20 67 65 74 |in char-|.X get|
|00003b80| 2e 63 20 74 68 61 74 20 | 6d 61 70 73 20 6b 65 79 |.c that |maps key|
|00003b90| 62 6f 61 72 64 20 73 63 | 61 6e 20 63 6f 64 65 73 |board sc|an codes|
|00003ba0| 20 66 72 6f 6d 20 74 68 | 65 20 6b 65 79 62 6f 61 | from th|e keyboa|
|00003bb0| 72 64 20 74 6f 20 66 75 | 6e 63 74 69 6f 6e 20 6b |rd to fu|nction k|
|00003bc0| 65 79 0a 58 20 20 20 6e | 61 6d 65 73 2e 20 54 68 |ey.X n|ames. Th|
|00003bd0| 65 20 6f 6e 65 20 73 75 | 70 70 6c 69 65 64 20 77 |e one su|pplied w|
|00003be0| 6f 72 6b 73 20 66 6f 72 | 20 49 42 4d 20 50 43 2f |orks for| IBM PC/|
|00003bf0| 58 54 2f 41 54 2c 20 61 | 6e 64 20 66 6f 72 20 6d |XT/AT, a|nd for m|
|00003c00| 6f 73 74 20 63 6c 6f 6e | 65 73 2e 0a 58 0a 58 52 |ost clon|es..X.XR|
|00003c10| 45 56 49 53 49 4f 4e 0a | 58 20 20 20 54 68 65 20 |EVISION.|X The |
|00003c20| 63 75 72 72 65 6e 74 20 | 72 65 76 69 73 69 6f 6e |current |revision|
|00003c30| 20 69 73 20 76 2e 31 2e | 34 20 28 39 30 30 31 31 | is v.1.|4 (90011|
|00003c40| 34 29 2e 20 49 66 20 79 | 6f 75 20 66 69 6e 64 20 |4). If y|ou find |
|00003c50| 6f 72 20 63 6f 72 72 65 | 63 74 20 62 75 67 73 2c |or corre|ct bugs,|
|00003c60| 20 6f 72 20 69 66 0a 58 | 20 20 20 79 6f 75 20 74 | or if.X| you t|
|00003c70| 68 69 6e 6b 20 75 70 20 | 6f 72 20 69 6d 70 6c 65 |hink up |or imple|
|00003c80| 6d 65 6e 74 20 65 6e 68 | 61 6e 63 65 6d 65 6e 74 |ment enh|ancement|
|00003c90| 73 2c 20 70 6c 65 61 73 | 65 20 63 6f 6e 74 61 63 |s, pleas|e contac|
|00003ca0| 74 20 74 68 65 20 61 75 | 74 68 6f 72 2e 20 54 68 |t the au|thor. Th|
|00003cb0| 61 74 20 77 61 79 0a 58 | 20 20 20 68 65 20 63 61 |at way.X| he ca|
|00003cc0| 6e 20 6d 61 69 6e 74 61 | 69 6e 20 61 6e 20 27 6f |n mainta|in an 'o|
|00003cd0| 66 66 69 63 69 61 6c 27 | 20 76 65 72 73 69 6f 6e |fficial'| version|
|00003ce0| 20 6f 66 20 50 43 63 75 | 72 73 65 73 2c 20 77 69 | of PCcu|rses, wi|
|00003cf0| 74 68 6f 75 74 20 74 6f | 6f 20 6d 61 6e 79 20 6c |thout to|o many l|
|00003d00| 6f 63 61 6c 0a 58 20 20 | 20 76 65 72 73 69 6f 6e |ocal.X | version|
|00003d10| 73 20 66 6c 6f 61 74 69 | 6e 67 20 61 72 6f 75 6e |s floati|ng aroun|
|00003d20| 64 2e 0a 58 0a 58 41 55 | 54 48 4f 52 0a 58 20 20 |d..X.XAU|THOR.X |
|00003d30| 20 48 6f 6d 65 3a 09 20 | 20 20 42 6a 6f 72 6e 20 | Home:. | Bjorn |
|00003d40| 4c 61 72 73 73 6f 6e 09 | 09 57 6f 72 6b 3a 09 49 |Larsson.|.Work:.I|
|00003d50| 4e 46 4f 56 4f 58 20 41 | 42 0a 58 09 09 20 20 20 |NFOVOX A|B.X.. |
|00003d60| 59 6e 67 6c 69 6e 67 61 | 67 61 74 61 6e 20 35 2c |Ynglinga|gatan 5,|
|00003d70| 49 56 09 09 09 42 6f 78 | 20 32 35 30 33 0a 58 09 |IV...Box| 2503.X.|
|00003d80| 09 20 20 20 53 2d 31 31 | 33 20 34 37 20 53 74 6f |. S-11|3 47 Sto|
|00003d90| 63 6b 68 6f 6c 6d 09 09 | 09 53 2d 31 37 31 20 30 |ckholm..|.S-171 0|
|00003da0| 32 20 53 6f 6c 6e 61 0a | 58 09 09 20 20 20 53 57 |2 Solna.|X.. SW|
|00003db0| 45 44 45 4e 09 09 09 09 | 53 57 45 44 45 4e 0a 58 |EDEN....|SWEDEN.X|
|00003dc0| 0a 58 09 09 20 20 20 55 | 73 65 4e 65 74 3a 20 62 |.X.. U|seNet: b|
|00003dd0| 6c 40 69 6e 66 6f 76 6f | 78 2e 73 65 0a 45 4e 44 |l@infovo|x.se.END|
|00003de0| 5f 4f 46 5f 63 75 72 73 | 65 73 2e 33 0a 69 66 20 |_OF_curs|es.3.if |
|00003df0| 74 65 73 74 20 31 34 35 | 39 32 20 2d 6e 65 20 60 |test 145|92 -ne `|
|00003e00| 77 63 20 2d 63 20 3c 63 | 75 72 73 65 73 2e 33 60 |wc -c <c|urses.3`|
|00003e10| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00003e20| 5c 22 63 75 72 73 65 73 | 2e 33 5c 22 20 75 6e 70 |\"curses|.3\" unp|
|00003e30| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00003e40| 20 73 69 7a 65 21 0a 66 | 69 0a 23 20 65 6e 64 20 | size!.f|i.# end |
|00003e50| 6f 66 20 6f 76 65 72 77 | 72 69 74 69 6e 67 20 63 |of overw|riting c|
|00003e60| 68 65 63 6b 0a 66 69 0a | 69 66 20 74 65 73 74 20 |heck.fi.|if test |
|00003e70| 2d 66 20 72 65 61 64 6d | 65 2e 6e 6f 77 20 2d 61 |-f readm|e.now -a|
|00003e80| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00003e90| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 57 |; then .| echo W|
|00003ea0| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|00003eb0| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|00003ec0| 20 5c 22 72 65 61 64 6d | 65 2e 6e 6f 77 5c 22 0a | \"readm|e.now\".|
|00003ed0| 65 6c 73 65 0a 65 63 68 | 6f 20 45 78 74 72 61 63 |else.ech|o Extrac|
|00003ee0| 74 69 6e 67 20 2d 20 5c | 22 72 65 61 64 6d 65 2e |ting - \|"readme.|
|00003ef0| 6e 6f 77 5c 22 0a 73 65 | 64 20 22 73 2f 5e 58 2f |now\".se|d "s/^X/|
|00003f00| 2f 22 20 3e 72 65 61 64 | 6d 65 2e 6e 6f 77 20 3c |/" >read|me.now <|
|00003f10| 3c 27 45 4e 44 5f 4f 46 | 5f 72 65 61 64 6d 65 2e |<'END_OF|_readme.|
|00003f20| 6e 6f 77 27 0a 58 20 20 | 20 20 20 20 20 20 20 20 |now'.X | |
|00003f30| 20 20 20 20 20 50 43 43 | 55 52 53 45 53 20 76 2e | PCC|URSES v.|
|00003f40| 31 2e 34 20 52 65 6c 65 | 61 73 65 20 4e 6f 74 65 |1.4 Rele|ase Note|
|00003f50| 73 20 2d 20 39 30 30 31 | 31 34 0a 58 09 3d 3d 3d |s - 9001|14.X.===|
|00003f60| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003f70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003f80| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003f90| 0a 58 0a 58 20 20 54 68 | 69 73 20 69 73 20 74 68 |.X.X Th|is is th|
|00003fa0| 65 20 72 65 6c 65 61 73 | 65 20 6e 6f 74 65 20 66 |e releas|e note f|
|00003fb0| 6f 72 20 74 68 65 20 66 | 69 66 74 68 20 76 65 72 |or the f|ifth ver|
|00003fc0| 73 69 6f 6e 20 6f 66 20 | 50 43 63 75 72 73 65 73 |sion of |PCcurses|
|00003fd0| 2c 20 76 2e 31 2e 34 2e | 0a 58 42 65 6c 6f 77 20 |, v.1.4.|.XBelow |
|00003fe0| 74 68 69 73 20 6e 6f 74 | 65 2c 20 74 68 65 20 72 |this not|e, the r|
|00003ff0| 65 6c 65 61 73 65 20 6e | 6f 74 65 73 20 66 6f 72 |elease n|otes for|
|00004000| 20 76 2e 31 2e 30 20 2d | 20 76 2e 31 2e 33 20 61 | v.1.0 -| v.1.3 a|
|00004010| 72 65 20 69 6e 63 6c 75 | 64 65 64 2e 20 52 65 61 |re inclu|ded. Rea|
|00004020| 64 0a 58 74 68 6f 73 65 | 20 66 69 72 73 74 2e 0a |d.Xthose| first..|
|00004030| 58 0a 58 20 20 49 6e 20 | 50 43 63 75 72 73 65 73 |X.X In |PCcurses|
|00004040| 20 76 2e 31 2e 34 2c 20 | 62 6f 74 68 20 70 6f 72 | v.1.4, |both por|
|00004050| 74 61 62 69 6c 69 74 79 | 20 69 6d 70 72 6f 76 65 |tability| improve|
|00004060| 6d 65 6e 74 73 20 61 6e | 64 20 62 75 67 66 69 78 |ments an|d bugfix|
|00004070| 65 73 20 68 61 76 65 0a | 58 62 65 65 6e 20 6d 61 |es have.|Xbeen ma|
|00004080| 64 65 2e 20 54 68 65 20 | 66 69 6c 65 73 20 68 61 |de. The |files ha|
|00004090| 76 65 20 62 65 65 6e 20 | 63 68 61 6e 67 65 64 20 |ve been |changed |
|000040a0| 74 6f 20 61 6c 6c 6f 77 | 20 6c 69 6e 74 2d 66 72 |to allow| lint-fr|
|000040b0| 65 65 20 63 6f 6d 70 69 | 6c 61 74 69 6f 6e 0a 58 |ee compi|lation.X|
|000040c0| 77 69 74 68 20 4d 69 63 | 72 6f 53 6f 66 74 20 27 |with Mic|roSoft '|
|000040d0| 43 27 20 76 2e 35 2e 31 | 2c 20 61 6e 64 20 77 69 |C' v.5.1|, and wi|
|000040e0| 74 68 20 54 75 72 62 6f | 20 27 43 27 20 76 2e 32 |th Turbo| 'C' v.2|
|000040f0| 2e 30 2e 20 54 68 65 20 | 73 6f 75 72 63 65 20 73 |.0. The |source s|
|00004100| 68 6f 75 6c 64 0a 58 73 | 74 69 6c 6c 20 63 6f 6d |hould.Xs|till com|
|00004110| 70 69 6c 65 20 77 69 74 | 68 6f 75 74 20 70 72 6f |pile wit|hout pro|
|00004120| 62 6c 65 6d 73 20 6f 6e | 20 6f 6c 64 65 72 20 63 |blems on| older c|
|00004130| 6f 6d 70 69 6c 65 72 73 | 2c 20 61 6c 74 68 6f 75 |ompilers|, althou|
|00004140| 67 68 20 74 68 69 73 20 | 68 61 73 0a 58 6e 6f 74 |gh this |has.Xnot|
|00004150| 20 62 65 65 6e 20 76 65 | 72 69 66 69 65 64 2e 0a | been ve|rified..|
|00004160| 58 0a 58 20 20 54 68 65 | 20 6d 61 6b 65 66 69 6c |X.X The| makefil|
|00004170| 65 73 20 68 61 76 65 20 | 62 65 65 6e 20 63 68 61 |es have |been cha|
|00004180| 6e 67 65 64 20 74 6f 20 | 73 75 69 74 20 62 6f 74 |nged to |suit bot|
|00004190| 68 20 74 68 65 20 70 75 | 62 6c 69 63 20 72 65 6c |h the pu|blic rel|
|000041a0| 65 61 73 65 20 61 6e 64 | 0a 58 74 68 65 20 61 75 |ease and|.Xthe au|
|000041b0| 74 68 6f 72 2c 20 77 68 | 6f 20 6d 61 69 6e 74 61 |thor, wh|o mainta|
|000041c0| 69 6e 73 20 61 20 73 70 | 65 63 69 61 6c 20 6b 69 |ins a sp|ecial ki|
|000041d0| 6e 64 20 6f 66 20 6c 69 | 62 72 61 72 69 65 73 20 |nd of li|braries |
|000041e0| 66 6f 72 20 68 69 6d 73 | 65 6c 66 2e 20 49 6e 0a |for hims|elf. In.|
|000041f0| 58 74 68 65 20 63 61 73 | 65 20 6f 66 20 4d 69 63 |Xthe cas|e of Mic|
|00004200| 72 6f 53 6f 66 74 20 27 | 43 27 2c 20 63 68 61 6e |roSoft '|C', chan|
|00004210| 67 65 73 20 77 65 72 65 | 20 64 6f 6e 65 20 69 6e |ges were| done in|
|00004220| 20 74 68 65 20 6d 61 6b | 65 66 69 6c 65 20 74 6f | the mak|efile to|
|00004230| 20 6c 6f 77 65 72 0a 58 | 74 68 65 20 77 61 72 6e | lower.X|the warn|
|00004240| 69 6e 67 20 6c 65 76 65 | 6c 20 74 6f 20 32 20 28 |ing leve|l to 2 (|
|00004250| 77 61 73 20 33 29 2e 20 | 54 68 69 73 20 77 61 73 |was 3). |This was|
|00004260| 20 74 6f 20 61 76 6f 69 | 64 20 41 4e 53 49 20 77 | to avoi|d ANSI w|
|00004270| 61 72 6e 69 6e 67 73 20 | 77 68 69 63 68 0a 58 61 |arnings |which.Xa|
|00004280| 72 65 20 61 62 75 6e 64 | 61 6e 74 20 62 65 63 61 |re abund|ant beca|
|00004290| 75 73 65 20 50 43 63 75 | 72 73 65 73 20 64 6f 65 |use PCcu|rses doe|
|000042a0| 73 20 6e 6f 74 20 61 74 | 74 65 6d 70 74 20 74 6f |s not at|tempt to|
|000042b0| 20 66 6f 6c 6c 6f 77 20 | 73 74 72 69 63 74 20 41 | follow |strict A|
|000042c0| 4e 53 49 0a 58 27 43 27 | 20 73 74 61 6e 64 61 72 |NSI.X'C'| standar|
|000042d0| 64 2e 0a 58 0a 58 20 20 | 42 55 47 20 46 49 58 45 |d..X.X |BUG FIXE|
|000042e0| 53 20 46 52 4f 4d 20 56 | 2e 31 2e 33 20 54 4f 20 |S FROM V|.1.3 TO |
|000042f0| 56 2e 31 2e 34 3a 0a 58 | 0a 58 20 20 21 21 21 49 |V.1.4:.X|.X !!!I|
|00004300| 4d 50 4f 52 54 41 4e 54 | 20 43 48 41 4e 47 45 21 |MPORTANT| CHANGE!|
|00004310| 21 21 0a 58 0a 58 20 20 | 54 68 65 20 64 65 66 69 |!!.X.X |The defi|
|00004320| 6e 69 74 69 6f 6e 73 20 | 66 6f 72 20 4f 4b 20 61 |nitions |for OK a|
|00004330| 6e 64 20 45 52 52 20 69 | 6e 20 63 75 72 73 65 73 |nd ERR i|n curses|
|00004340| 2e 68 20 77 65 72 65 20 | 65 78 63 68 61 6e 67 65 |.h were |exchange|
|00004350| 64 2e 20 54 68 69 73 20 | 77 61 73 0a 58 64 6f 6e |d. This |was.Xdon|
|00004360| 65 20 74 6f 20 62 65 20 | 6d 6f 72 65 20 63 6f 6e |e to be |more con|
|00004370| 73 69 73 74 65 6e 74 20 | 77 69 74 68 20 55 4e 49 |sistent |with UNI|
|00004380| 58 20 76 65 72 73 69 6f | 6e 73 2e 20 41 6c 73 6f |X versio|ns. Also|
|00004390| 2c 20 69 74 20 70 65 72 | 6d 69 74 73 20 66 75 6e |, it per|mits fun|
|000043a0| 63 2d 0a 58 74 69 6f 6e | 73 20 6c 69 6b 65 20 6e |c-.Xtion|s like n|
|000043b0| 65 77 77 69 6e 28 29 20 | 61 6e 64 20 73 75 62 77 |ewwin() |and subw|
|000043c0| 69 6e 28 29 20 74 6f 20 | 72 65 74 75 72 6e 20 30 |in() to |return 0|
|000043d0| 20 28 3d 4e 55 4c 4c 29 | 20 77 68 65 6e 20 74 68 | (=NULL)| when th|
|000043e0| 65 79 20 66 61 69 6c 0a | 58 64 75 65 20 74 6f 20 |ey fail.|Xdue to |
|000043f0| 6d 65 6d 6f 72 79 20 73 | 68 6f 72 74 61 67 65 2e |memory s|hortage.|
|00004400| 20 54 68 69 73 20 69 6e | 63 6f 6d 70 61 74 69 62 | This in|compatib|
|00004410| 69 6c 69 74 79 20 77 69 | 74 68 20 55 4e 49 58 20 |ility wi|th UNIX |
|00004420| 63 75 72 73 65 73 20 77 | 61 73 0a 58 70 6f 69 6e |curses w|as.Xpoin|
|00004430| 74 65 64 20 6f 75 74 20 | 62 79 20 46 72 65 64 20 |ted out |by Fred |
|00004440| 43 2e 20 53 6d 69 74 68 | 2e 20 49 66 20 79 6f 75 |C. Smith|. If you|
|00004450| 20 68 61 76 65 20 74 65 | 73 74 65 64 20 73 75 63 | have te|sted suc|
|00004460| 63 65 73 73 2f 66 61 69 | 6c 75 72 65 20 62 79 0a |cess/fai|lure by.|
|00004470| 58 63 6f 6d 70 61 72 69 | 73 6f 6e 73 20 74 6f 20 |Xcompari|sons to |
|00004480| 61 6e 79 74 68 69 6e 67 | 20 6f 74 68 65 72 20 74 |anything| other t|
|00004490| 68 61 6e 20 45 52 52 20 | 61 6e 64 20 4f 4b 2c 20 |han ERR |and OK, |
|000044a0| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|000044b0| 73 20 77 69 6c 6c 0a 58 | 6e 65 65 64 20 74 6f 20 |s will.X|need to |
|000044c0| 62 65 20 62 65 20 63 68 | 61 6e 67 65 64 20 6f 6e |be be ch|anged on|
|000044d0| 20 74 68 61 74 20 70 6f | 69 6e 74 2e 20 53 6f 72 | that po|int. Sor|
|000044e0| 72 79 2e 2e 2e 20 62 75 | 74 20 70 72 65 73 75 6d |ry... bu|t presum|
|000044f0| 61 62 6c 79 20 6d 6f 73 | 74 20 6f 66 0a 58 79 6f |ably mos|t of.Xyo|
|00004500| 75 20 75 73 65 64 20 74 | 68 65 20 73 79 6d 62 6f |u used t|he symbo|
|00004510| 6c 69 63 20 63 6f 6e 73 | 74 61 6e 74 73 3f 0a 58 |lic cons|tants?.X|
|00004520| 0a 58 20 20 28 45 4e 44 | 20 4f 46 20 49 4d 50 4f |.X (END| OF IMPO|
|00004530| 52 54 41 4e 54 20 43 48 | 41 4e 47 45 29 0a 58 0a |RTANT CH|ANGE).X.|
|00004540| 58 20 20 46 72 65 64 20 | 61 6c 73 6f 20 70 6f 69 |X Fred |also poi|
|00004550| 6e 74 65 64 20 6f 75 74 | 20 61 20 62 75 67 20 69 |nted out| a bug i|
|00004560| 6e 20 74 68 65 20 66 69 | 6c 65 20 75 70 64 61 74 |n the fi|le updat|
|00004570| 65 2e 63 2e 20 54 68 65 | 20 62 75 67 20 63 61 75 |e.c. The| bug cau|
|00004580| 73 65 64 20 74 68 65 0a | 58 66 69 72 73 74 20 63 |sed the.|Xfirst c|
|00004590| 68 61 72 61 63 74 65 72 | 20 70 72 69 6e 74 65 64 |haracter| printed|
|000045a0| 20 61 66 74 65 72 20 27 | 75 6e 61 75 74 68 6f 72 | after '|unauthor|
|000045b0| 69 7a 65 64 27 20 73 63 | 72 65 65 6e 20 63 68 61 |ized' sc|reen cha|
|000045c0| 6e 67 65 73 20 28 6c 69 | 6b 65 20 64 75 2d 0a 58 |nges (li|ke du-.X|
|000045d0| 72 69 6e 67 20 61 20 73 | 68 65 6c 6c 20 65 73 63 |ring a s|hell esc|
|000045e0| 61 70 65 2c 20 66 6f 72 | 20 65 78 61 6d 70 6c 65 |ape, for| example|
|000045f0| 29 20 74 6f 20 62 65 20 | 70 6c 61 63 65 64 20 61 |) to be |placed a|
|00004600| 74 20 74 68 65 20 77 72 | 6f 6e 67 20 73 63 72 65 |t the wr|ong scre|
|00004610| 65 6e 20 70 6f 73 69 2d | 0a 58 74 69 6f 6e 2e 20 |en posi-|.Xtion. |
|00004620| 54 68 69 73 20 68 61 70 | 70 65 6e 65 64 20 65 76 |This hap|pened ev|
|00004630| 65 6e 20 69 66 20 74 68 | 65 20 6e 6f 72 6d 61 6c |en if th|e normal|
|00004640| 20 70 72 65 63 61 75 74 | 69 6f 6e 73 20 28 63 6c | precaut|ions (cl|
|00004650| 65 61 72 20 2f 20 74 6f | 75 63 68 20 2f 20 72 65 |ear / to|uch / re|
|00004660| 2d 0a 58 66 72 65 73 68 | 29 20 77 65 72 65 20 74 |-.Xfresh|) were t|
|00004670| 61 6b 65 6e 2e 20 54 68 | 65 20 70 72 6f 62 6c 65 |aken. Th|e proble|
|00004680| 6d 20 68 61 73 20 6e 6f | 77 20 62 65 65 6e 20 66 |m has no|w been f|
|00004690| 69 78 65 64 2e 0a 58 0a | 58 20 20 50 43 63 75 72 |ixed..X.|X PCcur|
|000046a0| 73 65 73 20 69 73 20 63 | 75 72 72 65 6e 74 6c 79 |ses is c|urrently|
|000046b0| 20 61 6c 73 6f 20 62 65 | 69 6e 67 20 75 73 65 64 | also be|ing used|
|000046c0| 20 6f 6e 20 61 20 36 38 | 30 30 30 20 73 79 73 74 | on a 68|000 syst|
|000046d0| 65 6d 20 77 69 74 68 20 | 68 61 72 64 2d 0a 58 63 |em with |hard-.Xc|
|000046e0| 6f 64 65 64 20 45 53 43 | 61 70 65 20 73 65 71 75 |oded ESC|ape sequ|
|000046f0| 65 6e 63 65 73 20 66 6f | 72 20 41 4e 53 49 20 74 |ences fo|r ANSI t|
|00004700| 65 72 6d 69 6e 61 6c 73 | 2e 20 48 6f 77 65 76 65 |erminals|. Howeve|
|00004710| 72 2c 20 69 6e 74 27 73 | 20 75 73 65 64 20 62 79 |r, int's| used by|
|00004720| 20 74 68 65 0a 58 36 38 | 30 30 30 20 43 20 63 6f | the.X68|000 C co|
|00004730| 6d 70 69 6c 65 72 20 61 | 72 65 20 33 32 20 62 69 |mpiler a|re 32 bi|
|00004740| 74 73 2e 20 54 68 65 72 | 65 66 6f 72 65 20 69 6e |ts. Ther|efore in|
|00004750| 74 27 73 20 68 61 76 65 | 20 62 65 65 6e 20 74 75 |t's have| been tu|
|00004760| 72 6e 65 64 20 69 6e 74 | 6f 0a 58 73 68 6f 72 74 |rned int|o.Xshort|
|00004770| 27 73 20 77 68 65 72 65 | 76 65 72 20 70 6f 73 73 |'s where|ver poss|
|00004780| 69 62 6c 65 20 69 6e 20 | 74 68 65 20 63 6f 64 65 |ible in |the code|
|00004790| 20 28 6f 74 68 65 72 77 | 69 73 65 20 61 6c 6c 20 | (otherw|ise all |
|000047a0| 77 69 6e 64 6f 77 20 73 | 74 72 75 63 74 75 72 65 |window s|tructure|
|000047b0| 73 0a 58 6f 63 63 75 70 | 79 20 74 77 69 63 65 20 |s.Xoccup|y twice |
|000047c0| 61 73 20 6d 75 63 68 20 | 73 70 61 63 65 20 61 73 |as much |space as|
|000047d0| 20 72 65 71 75 69 72 65 | 64 20 6f 6e 20 74 68 65 | require|d on the|
|000047e0| 20 36 38 30 30 30 29 2e | 20 54 68 69 73 20 64 6f | 68000).| This do|
|000047f0| 65 73 20 6e 6f 74 0a 58 | 61 66 66 65 63 74 20 50 |es not.X|affect P|
|00004800| 43 20 76 65 72 73 69 6f | 6e 73 20 73 69 6e 63 65 |C versio|ns since|
|00004810| 20 6e 6f 72 6d 61 6c 6c | 79 20 62 6f 74 68 20 69 | normall|y both i|
|00004820| 6e 74 27 73 20 61 6e 64 | 20 73 68 6f 72 74 27 73 |nt's and| short's|
|00004830| 20 61 72 65 20 31 36 20 | 62 69 74 73 0a 58 66 6f | are 16 |bits.Xfo|
|00004840| 72 20 50 43 20 43 20 63 | 6f 6d 70 69 6c 65 72 73 |r PC C c|ompilers|
|00004850| 2e 0a 58 0a 58 20 20 41 | 74 20 73 6f 6d 65 20 70 |..X.X A|t some p|
|00004860| 6c 61 63 65 73 20 69 6e | 20 74 68 65 20 73 6f 75 |laces in| the sou|
|00004870| 72 63 65 20 63 6f 64 65 | 20 74 68 65 72 65 20 61 |rce code| there a|
|00004880| 72 65 20 72 65 66 65 72 | 65 6e 63 65 73 20 6d 61 |re refer|ences ma|
|00004890| 64 65 20 74 6f 20 74 68 | 65 0a 58 36 38 30 30 30 |de to th|e.X68000|
|000048a0| 20 76 65 72 73 69 6f 6e | 2e 20 54 68 65 72 65 20 | version|. There |
|000048b0| 61 72 65 20 61 6c 73 6f | 20 61 20 6d 61 6b 65 66 |are also| a makef|
|000048c0| 69 6c 65 2c 20 61 20 63 | 75 72 73 65 73 36 38 2e |ile, a c|urses68.|
|000048d0| 63 20 66 69 6c 65 2c 20 | 61 6e 64 20 61 0a 58 63 |c file, |and a.Xc|
|000048e0| 75 72 73 65 73 36 38 2e | 63 6d 64 20 66 69 6c 65 |urses68.|cmd file|
|000048f0| 2e 20 54 68 65 73 65 20 | 61 72 65 20 66 6f 72 20 |. These |are for |
|00004900| 6d 61 6b 69 6e 67 2c 20 | 6c 6f 77 2d 6c 65 76 65 |making, |low-leve|
|00004910| 6c 20 49 2f 4f 2c 20 61 | 6e 64 20 6c 69 6e 6b 69 |l I/O, a|nd linki|
|00004920| 6e 67 0a 58 63 6f 6d 6d | 61 6e 64 73 20 77 68 65 |ng.Xcomm|ands whe|
|00004930| 6e 20 62 75 69 6c 64 69 | 6e 67 20 74 68 65 20 36 |n buildi|ng the 6|
|00004940| 38 30 30 30 20 76 65 72 | 73 69 6f 6e 2e 20 54 68 |8000 ver|sion. Th|
|00004950| 65 73 65 20 66 69 6c 65 | 73 20 61 72 65 20 70 72 |ese file|s are pr|
|00004960| 6f 62 61 62 6c 79 0a 58 | 75 73 65 66 75 6c 20 74 |obably.X|useful t|
|00004970| 6f 20 6e 6f 2d 6f 6e 65 | 20 62 75 74 20 74 68 65 |o no-one| but the|
|00004980| 20 61 75 74 68 6f 72 2c | 20 73 69 6e 63 65 20 69 | author,| since i|
|00004990| 74 20 69 73 20 76 65 72 | 79 20 73 70 65 63 69 66 |t is ver|y specif|
|000049a0| 69 63 20 66 6f 72 20 69 | 74 27 73 0a 58 73 70 65 |ic for i|t's.Xspe|
|000049b0| 63 69 61 6c 20 68 61 72 | 64 77 61 72 65 20 65 6e |cial har|dware en|
|000049c0| 76 69 72 6f 6e 6d 65 6e | 74 2e 20 53 74 69 6c 6c |vironmen|t. Still|
|000049d0| 20 69 6e 20 61 6e 20 65 | 66 66 6f 72 74 20 74 6f | in an e|ffort to|
|000049e0| 20 6b 65 65 70 20 61 6c | 6c 20 63 75 72 73 65 73 | keep al|l curses|
|000049f0| 2d 0a 58 72 65 6c 61 74 | 65 64 20 73 6f 75 72 63 |-.Xrelat|ed sourc|
|00004a00| 65 73 20 69 6e 20 6f 6e | 65 20 70 6c 61 63 65 20 |es in on|e place |
|00004a10| 74 68 65 79 20 61 72 65 | 20 69 6e 63 6c 75 64 65 |they are| include|
|00004a20| 64 2e 20 4e 6f 74 65 20 | 68 6f 77 65 76 65 72 20 |d. Note |however |
|00004a30| 74 68 61 74 0a 58 50 43 | 63 75 72 73 65 73 20 77 |that.XPC|curses w|
|00004a40| 69 6c 6c 20 6e 6f 74 20 | 6f 66 66 69 63 69 61 6c |ill not |official|
|00004a50| 6c 79 20 73 75 70 70 6f | 72 74 20 61 20 6e 6f 6e |ly suppo|rt a non|
|00004a60| 2d 50 43 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 2e |-PC envi|ronment.|
|00004a70| 0a 58 0a 58 20 20 54 68 | 65 20 66 69 6c 65 20 63 |.X.X Th|e file c|
|00004a80| 75 72 73 65 73 69 6f 2e | 63 2c 20 77 68 69 63 68 |ursesio.|c, which|
|00004a90| 20 77 61 73 20 69 6e 63 | 6c 75 64 65 64 20 69 6e | was inc|luded in|
|00004aa0| 20 74 68 65 20 70 61 63 | 6b 61 67 65 20 61 74 20 | the pac|kage at |
|00004ab0| 72 65 76 69 73 69 6f 6e | 0a 58 6c 65 76 65 6c 20 |revision|.Xlevel |
|00004ac0| 31 2e 32 2c 20 61 6e 64 | 20 77 68 69 63 68 20 77 |1.2, and| which w|
|00004ad0| 61 73 20 74 6f 20 62 65 | 20 61 6e 20 61 6c 74 65 |as to be| an alte|
|00004ae0| 72 6e 61 74 69 76 65 20 | 74 6f 20 74 68 65 20 63 |rnative |to the c|
|00004af0| 75 72 73 65 73 69 6f 2e | 61 73 6d 0a 58 66 69 6c |ursesio.|asm.Xfil|
|00004b00| 65 2c 20 68 61 73 20 62 | 65 65 6e 20 76 65 72 69 |e, has b|een veri|
|00004b10| 66 69 65 64 20 74 6f 20 | 62 65 68 61 76 65 20 69 |fied to |behave i|
|00004b20| 6e 63 6f 72 72 65 63 74 | 6c 79 20 69 6e 20 74 68 |ncorrect|ly in th|
|00004b30| 65 20 66 75 6e 63 74 69 | 6f 6e 0a 58 5f 63 75 72 |e functi|on.X_cur|
|00004b40| 73 65 73 6b 65 79 74 73 | 74 28 29 2e 20 54 68 65 |seskeyts|t(). The|
|00004b50| 20 70 72 6f 62 6c 65 6d | 20 77 61 73 20 74 68 61 | problem| was tha|
|00004b60| 74 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 27 |t the va|lue of '|
|00004b70| 63 66 6c 61 67 27 20 64 | 6f 65 73 20 6e 6f 74 0a |cflag' d|oes not.|
|00004b80| 58 63 6f 6e 74 61 69 6e | 20 74 68 65 20 70 72 6f |Xcontain| the pro|
|00004b90| 70 65 72 20 64 61 74 61 | 20 66 6f 72 20 74 68 65 |per data| for the|
|00004ba0| 20 74 65 73 74 20 74 68 | 61 74 20 69 73 20 61 74 | test th|at is at|
|00004bb0| 74 65 6d 70 74 65 64 2e | 20 46 75 72 74 68 65 72 |tempted.| Further|
|00004bc0| 6d 6f 72 65 2c 0a 58 6e | 65 69 74 68 65 72 20 54 |more,.Xn|either T|
|00004bd0| 75 72 62 6f 27 43 27 20 | 6f 72 20 4d 69 63 72 6f |urbo'C' |or Micro|
|00004be0| 53 6f 66 74 27 43 27 20 | 61 6c 6c 6f 77 73 20 61 |Soft'C' |allows a|
|00004bf0| 6e 79 20 77 61 79 20 74 | 6f 20 72 65 74 75 72 6e |ny way t|o return|
|00004c00| 20 74 68 65 20 64 61 74 | 61 0a 58 74 68 61 74 20 | the dat|a.Xthat |
|00004c10| 69 73 20 6e 65 65 64 65 | 64 2c 20 61 6e 64 20 63 |is neede|d, and c|
|00004c20| 6f 6e 73 65 71 75 65 6e | 74 6c 79 20 79 6f 75 20 |onsequen|tly you |
|00004c30| 73 68 6f 75 6c 64 20 6e | 6f 74 20 75 73 65 20 63 |should n|ot use c|
|00004c40| 75 72 73 65 73 69 6f 2e | 63 2e 20 54 68 65 0a 58 |ursesio.|c. The.X|
|00004c50| 62 65 73 74 20 73 6f 6c | 75 74 69 6f 6e 20 69 73 |best sol|ution is|
|00004c60| 20 74 6f 20 73 69 6d 70 | 6c 79 20 75 73 65 20 74 | to simp|ly use t|
|00004c70| 68 65 20 41 53 4d 20 76 | 65 72 73 69 6f 6e 2e 20 |he ASM v|ersion. |
|00004c80| 49 6e 20 76 2e 31 2e 32 | 20 61 6e 64 20 76 2e 31 |In v.1.2| and v.1|
|00004c90| 2e 33 2c 0a 58 74 68 65 | 20 75 73 65 72 20 63 6f |.3,.Xthe| user co|
|00004ca0| 75 6c 64 20 65 64 69 74 | 20 74 68 65 20 6d 61 6b |uld edit| the mak|
|00004cb0| 65 66 69 6c 65 20 74 6f | 20 73 65 6c 65 63 74 20 |efile to| select |
|00004cc0| 77 68 69 63 68 20 76 65 | 72 73 69 6f 6e 20 68 65 |which ve|rsion he|
|00004cd0| 20 77 61 6e 74 65 64 20 | 74 6f 0a 58 75 73 65 2e | wanted |to.Xuse.|
|00004ce0| 20 54 68 65 20 6d 61 6b | 65 66 69 6c 65 73 20 69 | The mak|efiles i|
|00004cf0| 6e 20 76 2e 31 2e 34 20 | 68 61 76 65 20 72 65 6d |n v.1.4 |have rem|
|00004d00| 6f 76 65 64 20 74 68 69 | 73 20 70 6f 73 73 69 62 |oved thi|s possib|
|00004d10| 6c 69 74 79 20 66 6f 72 | 63 69 6e 67 20 74 68 65 |lity for|cing the|
|00004d20| 0a 58 75 73 65 20 6f 66 | 20 74 68 65 20 41 53 4d |.Xuse of| the ASM|
|00004d30| 20 66 69 6c 65 2c 20 61 | 6e 64 20 63 75 72 73 65 | file, a|nd curse|
|00004d40| 73 69 6f 2e 63 20 68 61 | 73 20 62 65 65 6e 20 64 |sio.c ha|s been d|
|00004d50| 72 6f 70 70 65 64 20 66 | 72 6f 6d 20 74 68 65 20 |ropped f|rom the |
|00004d60| 64 69 73 74 72 69 2d 0a | 58 62 75 74 69 6f 6e 2e |distri-.|Xbution.|
|00004d70| 0a 58 0a 58 20 20 41 20 | 62 75 67 20 69 6e 20 74 |.X.X A |bug in t|
|00004d80| 68 65 20 77 67 65 74 73 | 74 72 28 29 20 66 75 6e |he wgets|tr() fun|
|00004d90| 63 74 69 6f 6e 20 63 61 | 75 73 65 64 20 50 43 63 |ction ca|used PCc|
|00004da0| 75 72 73 65 73 20 74 6f | 20 65 63 68 6f 20 63 68 |urses to| echo ch|
|00004db0| 61 72 61 63 74 65 72 73 | 0a 58 77 68 65 6e 20 72 |aracters|.Xwhen r|
|00004dc0| 65 61 64 69 6e 67 20 61 | 20 6b 65 79 62 6f 61 72 |eading a| keyboar|
|00004dd0| 64 20 73 74 72 69 6e 67 | 2c 20 65 76 65 6e 20 69 |d string|, even i|
|00004de0| 66 20 74 68 65 20 65 63 | 68 6f 20 68 61 64 20 62 |f the ec|ho had b|
|00004df0| 65 65 6e 20 74 75 72 6e | 65 64 20 6f 66 66 2e 0a |een turn|ed off..|
|00004e00| 58 54 68 61 6e 6b 73 20 | 74 6f 20 50 65 72 20 46 |XThanks |to Per F|
|00004e10| 6f 72 65 62 79 20 61 74 | 20 4c 75 6e 64 20 55 6e |oreby at| Lund Un|
|00004e20| 69 76 65 72 73 69 74 79 | 2c 20 53 77 65 64 65 6e |iversity|, Sweden|
|00004e30| 2c 20 66 6f 72 20 74 68 | 69 73 2e 20 50 65 72 20 |, for th|is. Per |
|00004e40| 61 6c 73 6f 0a 58 72 65 | 70 6f 72 74 65 64 20 62 |also.Xre|ported b|
|00004e50| 75 67 73 20 63 6f 6e 63 | 65 72 6e 69 6e 67 20 74 |ugs conc|erning t|
|00004e60| 68 65 20 68 61 6e 64 6c | 69 6e 67 20 6f 66 20 63 |he handl|ing of c|
|00004e70| 68 61 72 61 63 74 65 72 | 73 20 77 69 74 68 20 62 |haracter|s with b|
|00004e80| 69 74 20 38 20 73 65 74 | 2e 0a 58 54 68 65 69 72 |it 8 set|..XTheir|
|00004e90| 20 41 53 43 49 49 20 63 | 6f 64 65 20 77 65 72 65 | ASCII c|ode were|
|00004ea0| 20 63 6f 6e 73 69 64 65 | 72 65 64 20 61 73 20 6c | conside|red as l|
|00004eb0| 6f 77 65 72 20 74 68 61 | 6e 20 33 32 2c 20 73 6f |ower tha|n 32, so|
|00004ec0| 20 74 68 65 79 20 77 65 | 72 65 0a 58 65 72 61 73 | they we|re.Xeras|
|00004ed0| 65 64 20 65 74 63 2e 20 | 6c 69 6b 65 20 63 6f 6e |ed etc. |like con|
|00004ee0| 74 72 6f 6c 20 63 68 61 | 72 61 63 74 65 72 73 2c |trol cha|racters,|
|00004ef0| 20 69 2e 65 2e 20 65 72 | 61 73 69 6e 67 20 74 77 | i.e. er|asing tw|
|00004f00| 6f 20 63 68 61 72 61 63 | 74 65 72 20 70 6f 73 69 |o charac|ter posi|
|00004f10| 2d 0a 58 74 69 6f 6e 73 | 2e 20 54 68 65 20 63 6f |-.Xtions|. The co|
|00004f20| 6e 74 72 6f 6c 20 63 68 | 61 72 61 63 74 65 72 20 |ntrol ch|aracter |
|00004f30| 74 65 73 74 20 77 61 73 | 20 63 68 61 6e 67 65 64 |test was| changed|
|00004f40| 20 74 6f 20 63 6f 70 65 | 20 77 69 74 68 20 74 68 | to cope| with th|
|00004f50| 69 73 2e 0a 58 0a 58 20 | 20 54 68 65 20 6f 76 65 |is..X.X | The ove|
|00004f60| 72 6c 61 79 28 29 20 61 | 6e 64 20 6f 76 65 72 77 |rlay() a|nd overw|
|00004f70| 72 69 74 65 28 29 20 66 | 75 6e 63 74 69 6f 6e 73 |rite() f|unctions|
|00004f80| 20 77 65 72 65 20 63 68 | 61 6e 67 65 64 20 73 6f | were ch|anged so|
|00004f90| 20 74 68 61 74 20 74 68 | 65 0a 58 6f 76 65 72 6c | that th|e.Xoverl|
|00004fa0| 61 79 69 6e 67 20 77 69 | 6e 64 6f 77 20 69 73 20 |aying wi|ndow is |
|00004fb0| 70 6f 73 69 74 69 6f 6e | 65 64 20 61 74 20 69 74 |position|ed at it|
|00004fc0| 27 73 20 27 6f 77 6e 27 | 20 63 6f 6f 72 64 69 6e |'s 'own'| coordin|
|00004fd0| 61 74 65 73 20 69 6e 73 | 69 64 65 20 74 68 65 0a |ates ins|ide the.|
|00004fe0| 58 75 6e 64 65 72 6c 79 | 69 6e 67 20 77 69 6e 64 |Xunderly|ing wind|
|00004ff0| 6f 77 20 28 69 74 20 75 | 73 65 64 20 74 6f 20 62 |ow (it u|sed to b|
|00005000| 65 20 61 74 20 74 68 65 | 20 75 6e 64 65 72 6c 79 |e at the| underly|
|00005010| 69 6e 67 20 77 69 6e 64 | 6f 77 27 73 20 5b 30 2c |ing wind|ow's [0,|
|00005020| 30 5d 0a 58 70 6f 73 69 | 74 69 6f 6e 29 2e 20 54 |0].Xposi|tion). T|
|00005030| 68 65 72 65 20 69 73 20 | 73 6f 6d 65 20 63 6f 6e |here is |some con|
|00005040| 74 72 6f 76 65 72 73 79 | 20 61 62 6f 75 74 20 74 |troversy| about t|
|00005050| 68 69 73 20 2d 20 74 68 | 65 20 64 6f 63 75 6d 65 |his - th|e docume|
|00005060| 6e 74 61 74 69 6f 6e 0a | 58 66 6f 72 20 64 69 66 |ntation.|Xfor dif|
|00005070| 66 65 72 65 6e 74 20 63 | 75 72 73 65 73 20 76 65 |ferent c|urses ve|
|00005080| 72 73 69 6f 6e 73 20 73 | 61 79 20 64 69 66 66 65 |rsions s|ay diffe|
|00005090| 72 65 6e 74 20 74 68 69 | 6e 67 73 2e 20 49 20 74 |rent thi|ngs. I t|
|000050a0| 68 69 6e 6b 20 74 68 65 | 0a 58 63 68 6f 69 63 65 |hink the|.Xchoice|
|000050b0| 20 6d 61 64 65 20 69 73 | 20 74 68 65 20 6d 6f 73 | made is| the mos|
|000050c0| 74 20 72 65 61 73 6f 6e | 61 62 6c 65 2e 0a 58 0a |t reason|able..X.|
|000050d0| 58 20 20 54 68 65 20 62 | 6f 72 64 65 72 28 29 20 |X The b|order() |
|000050e0| 61 6e 64 20 77 62 6f 72 | 64 65 72 28 29 20 66 75 |and wbor|der() fu|
|000050f0| 6e 63 74 69 6f 6e 73 20 | 77 65 72 65 20 63 68 61 |nctions |were cha|
|00005100| 6e 67 65 64 20 74 6f 20 | 61 63 74 75 61 6c 6c 79 |nged to |actually|
|00005110| 20 64 72 61 77 0a 58 61 | 20 62 6f 72 64 65 72 2c | draw.Xa| border,|
|00005120| 20 73 69 6e 63 65 20 74 | 68 69 73 20 73 65 65 6d | since t|his seem|
|00005130| 73 20 74 6f 20 62 65 20 | 74 68 65 20 63 6f 72 72 |s to be |the corr|
|00005140| 65 63 74 20 62 65 68 61 | 76 69 6f 75 72 20 6f 66 |ect beha|viour of|
|00005150| 20 74 68 65 73 65 20 66 | 75 6e 63 2d 0a 58 74 69 | these f|unc-.Xti|
|00005160| 6f 6e 73 2e 20 54 68 65 | 79 20 75 73 65 64 20 74 |ons. The|y used t|
|00005170| 6f 20 6a 75 73 74 20 73 | 65 74 20 74 68 65 20 62 |o just s|et the b|
|00005180| 6f 72 64 65 72 20 63 68 | 61 72 61 63 74 65 72 73 |order ch|aracters|
|00005190| 20 74 6f 20 62 65 20 75 | 73 65 64 20 62 79 0a 58 | to be u|sed by.X|
|000051a0| 62 6f 78 28 29 2e 20 54 | 68 65 73 65 20 66 75 6e |box(). T|hese fun|
|000051b0| 63 74 69 6f 6e 73 20 61 | 72 65 20 20 6e 6f 74 20 |ctions a|re not |
|000051c0| 70 72 65 73 65 6e 74 20 | 69 6e 20 73 74 61 6e 64 |present |in stand|
|000051d0| 61 72 64 20 42 53 44 20 | 55 4e 49 58 20 63 75 72 |ard BSD |UNIX cur|
|000051e0| 73 65 73 2e 0a 58 0a 58 | 20 20 54 68 65 20 73 75 |ses..X.X| The su|
|000051f0| 62 77 69 6e 28 29 20 66 | 75 6e 63 74 69 6f 6e 20 |bwin() f|unction |
|00005200| 70 72 65 76 69 6f 75 73 | 6c 79 20 64 69 64 20 6e |previous|ly did n|
|00005210| 6f 74 20 61 6c 6c 6f 77 | 20 74 68 65 20 73 75 62 |ot allow| the sub|
|00005220| 77 69 6e 64 6f 77 20 74 | 6f 20 62 65 0a 58 61 73 |window t|o be.Xas|
|00005230| 20 62 69 67 20 61 73 20 | 74 68 65 20 6f 72 69 67 | big as |the orig|
|00005240| 69 6e 61 6c 20 77 69 6e | 64 6f 77 20 69 6e 20 77 |inal win|dow in w|
|00005250| 68 69 63 68 20 69 74 20 | 77 61 73 20 63 72 65 61 |hich it |was crea|
|00005260| 74 65 64 2e 20 54 68 69 | 73 20 68 61 73 20 6e 6f |ted. Thi|s has no|
|00005270| 77 0a 58 62 65 65 6e 20 | 66 69 78 65 64 2e 20 54 |w.Xbeen |fixed. T|
|00005280| 68 65 72 65 20 77 61 73 | 20 61 6c 73 6f 20 74 68 |here was| also th|
|00005290| 65 20 70 72 6f 62 6c 65 | 6d 20 74 68 61 74 20 74 |e proble|m that t|
|000052a0| 68 65 20 64 65 66 61 75 | 6c 74 20 73 69 7a 65 20 |he defau|lt size |
|000052b0| 28 73 65 74 20 62 79 0a | 58 73 70 65 63 69 66 79 |(set by.|Xspecify|
|000052c0| 69 6e 67 20 6e 75 6d 6c | 69 6e 65 73 20 6f 72 20 |ing numl|ines or |
|000052d0| 6e 75 6d 63 6f 6c 73 20 | 28 6f 72 20 62 6f 74 68 |numcols |(or both|
|000052e0| 29 20 61 73 20 30 20 6d | 61 64 65 20 74 68 65 20 |) as 0 m|ade the |
|000052f0| 72 65 73 75 6c 74 69 6e | 67 0a 58 61 63 74 75 61 |resultin|g.Xactua|
|00005300| 6c 20 73 69 7a 65 20 31 | 20 6c 69 6e 65 2f 63 6f |l size 1| line/co|
|00005310| 6c 75 6d 6e 20 74 6f 6f | 20 73 6d 61 6c 6c 2e 0a |lumn too| small..|
|00005320| 58 0a 58 20 20 54 68 65 | 72 65 20 77 65 72 65 20 |X.X The|re were |
|00005330| 61 20 66 65 77 20 73 70 | 65 6c 6c 69 6e 67 20 65 |a few sp|elling e|
|00005340| 72 72 6f 72 73 20 69 6e | 20 66 75 6e 63 74 69 6f |rrors in| functio|
|00005350| 6e 20 6e 61 6d 65 73 2c | 20 62 6f 74 68 20 69 6e |n names,| both in|
|00005360| 20 74 68 65 0a 58 66 75 | 6e 63 74 69 6f 6e 20 64 | the.Xfu|nction d|
|00005370| 65 63 6c 61 72 61 74 69 | 6f 6e 73 20 61 6e 64 20 |eclarati|ons and |
|00005380| 69 6e 20 63 75 72 73 65 | 73 2e 68 2e 20 54 68 69 |in curse|s.h. Thi|
|00005390| 73 20 77 61 73 20 72 65 | 70 6f 72 74 65 64 20 62 |s was re|ported b|
|000053a0| 79 20 43 61 72 6c 6f 73 | 0a 58 41 6d 61 72 61 6c |y Carlos|.XAmaral|
|000053b0| 20 61 74 20 49 4e 45 53 | 43 20 69 6e 20 50 6f 72 | at INES|C in Por|
|000053c0| 74 75 67 61 6c 2e 20 54 | 68 61 6e 6b 73 21 20 54 |tugal. T|hanks! T|
|000053d0| 68 65 72 65 20 77 61 73 | 20 61 6c 73 6f 20 61 6e |here was| also an|
|000053e0| 20 75 6e 6e 65 63 65 73 | 73 61 72 79 0a 58 28 62 | unneces|sary.X(b|
|000053f0| 75 74 20 68 61 72 6d 6c | 65 73 73 29 20 70 61 72 |ut harml|ess) par|
|00005400| 61 6d 65 74 65 72 20 69 | 6e 20 61 20 66 75 6e 63 |ameter i|n a func|
|00005410| 74 69 6f 6e 20 63 61 6c | 6c 20 61 74 20 6f 6e 65 |tion cal|l at one|
|00005420| 20 70 6c 61 63 65 2e 0a | 58 0a 58 0a 58 0a 58 20 | place..|X.X.X.X |
|00005430| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 50 43 | | PC|
|00005440| 43 55 52 53 45 53 20 76 | 2e 31 2e 33 20 52 65 6c |CURSES v|.1.3 Rel|
|00005450| 65 61 73 65 20 4e 6f 74 | 65 73 20 2d 20 38 38 31 |ease Not|es - 881|
|00005460| 30 30 35 0a 58 09 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |005.X.==|========|
|00005470| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005480| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005490| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0a 58 0a 58 20 20 54 |========|=.X.X T|
|000054a0| 68 69 73 20 69 73 20 74 | 68 65 20 72 65 6c 65 61 |his is t|he relea|
|000054b0| 73 65 20 6e 6f 74 65 20 | 66 6f 72 20 74 68 65 20 |se note |for the |
|000054c0| 66 6f 75 72 74 68 20 76 | 65 72 73 69 6f 6e 20 6f |fourth v|ersion o|
|000054d0| 66 20 50 43 63 75 72 73 | 65 73 2c 20 76 2e 31 2e |f PCcurs|es, v.1.|
|000054e0| 33 2e 0a 58 42 65 6c 6f | 77 20 74 68 69 73 20 6e |3..XBelo|w this n|
|000054f0| 6f 74 65 2c 20 74 68 65 | 20 72 65 6c 65 61 73 65 |ote, the| release|
|00005500| 20 6e 6f 74 65 73 20 66 | 6f 72 20 76 2e 31 2e 30 | notes f|or v.1.0|
|00005510| 2c 20 76 2e 31 2e 31 20 | 61 6e 64 20 76 2e 31 2e |, v.1.1 |and v.1.|
|00005520| 32 20 61 72 65 20 69 6e | 2d 0a 58 63 6c 75 64 65 |2 are in|-.Xclude|
|00005530| 64 2e 20 52 65 61 64 20 | 74 68 6f 73 65 20 66 69 |d. Read |those fi|
|00005540| 72 73 74 2e 0a 58 0a 58 | 20 20 54 68 65 20 66 69 |rst..X.X| The fi|
|00005550| 6c 65 20 27 62 6f 72 64 | 65 72 2e 63 27 20 69 73 |le 'bord|er.c' is|
|00005560| 20 6e 6f 77 20 69 6e 63 | 6c 75 64 65 64 2e 20 49 | now inc|luded. I|
|00005570| 74 20 61 6c 6c 6f 77 73 | 20 79 6f 75 20 74 6f 20 |t allows| you to |
|00005580| 65 78 70 6c 69 63 69 74 | 65 6c 79 20 73 70 65 63 |explicit|ely spec|
|00005590| 69 2d 0a 58 66 79 20 77 | 68 61 74 20 63 68 61 72 |i-.Xfy w|hat char|
|000055a0| 61 63 74 65 72 73 20 73 | 68 6f 75 6c 64 20 62 65 |acters s|hould be|
|000055b0| 20 75 73 65 64 20 61 73 | 20 62 6f 78 20 62 6f 72 | used as| box bor|
|000055c0| 64 65 72 73 20 77 68 65 | 6e 20 74 68 65 20 62 6f |ders whe|n the bo|
|000055d0| 78 28 29 20 66 75 6e 63 | 74 69 6f 6e 73 0a 58 61 |x() func|tions.Xa|
|000055e0| 72 65 20 63 61 6c 6c 65 | 64 2e 20 49 66 20 74 68 |re calle|d. If th|
|000055f0| 65 20 6e 65 77 20 62 6f | 72 64 65 72 20 63 68 61 |e new bo|rder cha|
|00005600| 72 61 63 74 65 72 73 20 | 61 72 65 20 6e 6f 6e 2d |racters |are non-|
|00005610| 30 2c 20 74 68 65 79 20 | 6f 76 65 72 72 69 64 65 |0, they |override|
|00005620| 20 74 68 65 20 62 6f 72 | 2d 0a 58 64 65 72 20 63 | the bor|-.Xder c|
|00005630| 68 61 72 61 63 74 65 72 | 73 20 73 70 65 63 69 66 |haracter|s specif|
|00005640| 69 65 64 20 69 6e 20 74 | 68 65 20 62 6f 78 28 29 |ied in t|he box()|
|00005650| 20 63 61 6c 6c 2e 20 49 | 6e 20 6d 79 20 75 6e 64 | call. I|n my und|
|00005660| 65 72 73 74 61 6e 64 69 | 6e 67 2c 20 74 68 69 73 |erstandi|ng, this|
|00005670| 20 66 75 6e 63 2d 0a 58 | 74 69 6f 6e 61 6c 69 74 | func-.X|tionalit|
|00005680| 79 20 69 73 20 72 65 71 | 75 69 72 65 64 20 66 6f |y is req|uired fo|
|00005690| 72 20 41 54 26 54 20 55 | 4e 49 58 20 73 56 2e 33 |r AT&T U|NIX sV.3|
|000056a0| 20 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 2e 20 | compati|bility. |
|000056b0| 54 68 61 6e 6b 73 20 66 | 6f 72 20 74 68 69 73 0a |Thanks f|or this.|
|000056c0| 58 67 6f 65 73 20 74 6f | 20 54 6f 6e 79 20 4c 2e |Xgoes to| Tony L.|
|000056d0| 20 48 61 6e 73 65 6e 20 | 28 68 61 6e 73 65 6e 40 | Hansen |(hansen@|
|000056e0| 70 65 67 61 73 75 73 2e | 55 55 43 50 29 20 66 6f |pegasus.|UUCP) fo|
|000056f0| 72 20 70 6f 73 74 69 6e | 67 20 61 6e 20 61 72 74 |r postin|g an art|
|00005700| 69 63 6c 65 20 61 62 6f | 75 74 0a 58 69 74 20 6f |icle abo|ut.Xit o|
|00005710| 6e 20 55 73 65 4e 65 74 | 20 28 6e 65 77 73 67 72 |n UseNet| (newsgr|
|00005720| 6f 75 70 20 63 6f 6d 70 | 2e 75 6e 69 78 2e 71 75 |oup comp|.unix.qu|
|00005730| 65 73 74 69 6f 6e 73 3b | 20 68 69 73 20 70 6f 73 |estions;| his pos|
|00005740| 74 69 6e 67 20 77 61 73 | 20 6e 6f 74 20 72 65 6c |ting was| not rel|
|00005750| 61 74 65 64 0a 58 61 74 | 20 61 6c 6c 20 74 6f 20 |ated.Xat| all to |
|00005760| 50 43 63 75 72 73 65 73 | 29 2e 0a 58 0a 58 20 20 |PCcurses|)..X.X |
|00005770| 54 68 65 20 6f 6e 6c 79 | 20 6f 74 68 65 72 20 64 |The only| other d|
|00005780| 69 66 66 65 72 65 6e 63 | 65 20 62 65 74 77 65 65 |ifferenc|e betwee|
|00005790| 6e 20 76 2e 31 2e 32 20 | 61 6e 64 20 76 2e 31 2e |n v.1.2 |and v.1.|
|000057a0| 33 20 69 73 20 74 68 61 | 74 20 74 68 65 20 6c 61 |3 is tha|t the la|
|000057b0| 74 74 65 72 20 68 61 73 | 0a 58 62 65 65 6e 20 63 |tter has|.Xbeen c|
|000057c0| 68 61 6e 67 65 64 20 74 | 6f 20 61 76 6f 69 64 20 |hanged t|o avoid |
|000057d0| 77 61 72 6e 69 6e 67 20 | 64 69 61 67 6e 6f 73 74 |warning |diagnost|
|000057e0| 69 63 73 20 69 66 20 74 | 68 65 20 73 6f 75 72 63 |ics if t|he sourc|
|000057f0| 65 20 66 69 6c 65 73 20 | 61 72 65 20 63 6f 6d 70 |e files |are comp|
|00005800| 69 6c 65 64 0a 58 77 69 | 74 68 20 77 61 72 6e 69 |iled.Xwi|th warni|
|00005810| 6e 67 20 73 77 69 74 63 | 68 65 73 20 6f 6e 20 28 |ng switc|hes on (|
|00005820| 66 6f 72 20 4d 69 63 72 | 6f 53 6f 66 74 20 74 68 |for Micr|oSoft th|
|00005830| 69 73 20 6d 65 61 6e 73 | 20 27 2d 57 33 27 2c 20 |is means| '-W3', |
|00005840| 66 6f 72 20 54 75 72 62 | 6f 27 43 27 20 69 74 0a |for Turb|o'C' it.|
|00005850| 58 6d 65 61 6e 73 20 27 | 2d 77 20 2d 77 2d 70 72 |Xmeans '|-w -w-pr|
|00005860| 6f 27 29 2e 20 4f 66 20 | 74 68 65 73 65 2c 20 74 |o'). Of |these, t|
|00005870| 68 65 20 54 75 72 62 6f | 27 43 27 20 77 61 72 6e |he Turbo|'C' warn|
|00005880| 69 6e 67 20 63 68 65 63 | 6b 20 69 73 20 63 6c 65 |ing chec|k is cle|
|00005890| 61 72 6c 79 20 74 6f 20 | 62 65 0a 58 75 73 65 64 |arly to |be.Xused|
|000058a0| 20 72 61 74 68 65 72 20 | 74 68 61 6e 20 4d 69 63 | rather |than Mic|
|000058b0| 72 6f 53 6f 66 74 2c 20 | 65 76 65 6e 20 69 66 20 |roSoft, |even if |
|000058c0| 6e 65 69 74 68 65 72 20 | 6f 66 20 74 68 65 6d 20 |neither |of them |
|000058d0| 63 6f 6d 65 73 20 65 76 | 65 6e 20 63 6c 6f 73 65 |comes ev|en close|
|000058e0| 20 74 6f 20 61 0a 58 72 | 65 61 6c 20 55 4e 49 58 | to a.Xr|eal UNIX|
|000058f0| 20 27 6c 69 6e 74 27 2e | 20 53 6f 6d 65 20 6f 66 | 'lint'.| Some of|
|00005900| 20 74 68 65 20 77 61 72 | 6e 69 6e 67 73 20 69 6e | the war|nings in|
|00005910| 20 66 61 63 74 20 69 6e | 64 69 63 61 74 65 64 20 | fact in|dicated |
|00005920| 72 65 61 6c 20 62 75 67 | 73 2c 20 6d 6f 73 74 6c |real bug|s, mostl|
|00005930| 79 0a 58 66 75 6e 63 74 | 69 6f 6e 73 20 74 68 61 |y.Xfunct|ions tha|
|00005940| 74 20 64 69 64 20 6e 6f | 74 20 72 65 74 75 72 6e |t did no|t return|
|00005950| 20 63 6f 72 72 65 63 74 | 20 72 65 74 75 72 6e 20 | correct| return |
|00005960| 76 61 6c 75 65 73 20 6f | 72 20 74 79 70 65 73 2e |values o|r types.|
|00005970| 0a 58 0a 58 20 20 54 68 | 65 20 6d 61 6b 65 66 69 |.X.X Th|e makefi|
|00005980| 6c 65 73 20 66 6f 72 20 | 62 6f 74 68 20 4d 53 43 |les for |both MSC|
|00005990| 20 61 6e 64 20 54 52 43 | 20 68 61 76 65 20 62 65 | and TRC| have be|
|000059a0| 65 6e 20 6d 6f 64 69 66 | 69 65 64 20 74 6f 20 70 |en modif|ied to p|
|000059b0| 72 6f 64 75 63 65 20 77 | 61 72 6e 69 6e 67 0a 58 |roduce w|arning.X|
|000059c0| 6d 65 73 73 61 67 65 73 | 20 61 73 20 70 61 72 74 |messages| as part|
|000059d0| 20 6f 66 20 6e 6f 72 6d | 61 6c 20 63 6f 6d 70 69 | of norm|al compi|
|000059e0| 6c 61 74 69 6f 6e 2e 0a | 58 0a 58 0a 58 0a 58 0a |lation..|X.X.X.X.|
|000059f0| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X | |
|00005a00| 50 43 43 55 52 53 45 53 | 20 76 2e 31 2e 32 20 52 |PCCURSES| v.1.2 R|
|00005a10| 65 6c 65 61 73 65 20 4e | 6f 74 65 73 20 2d 20 38 |elease N|otes - 8|
|00005a20| 38 31 30 30 32 0a 58 09 | 3d 3d 3d 3d 3d 3d 3d 3d |81002.X.|========|
|00005a30| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005a40| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005a50| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 0a 58 0a 58 20 |========|===.X.X |
|00005a60| 20 54 68 69 73 20 69 73 | 20 74 68 65 20 72 65 6c | This is| the rel|
|00005a70| 65 61 73 65 20 6e 6f 74 | 65 20 66 6f 72 20 74 68 |ease not|e for th|
|00005a80| 65 20 74 68 69 72 64 20 | 76 65 72 73 69 6f 6e 20 |e third |version |
|00005a90| 6f 66 20 50 43 63 75 72 | 73 65 73 2c 20 76 2e 31 |of PCcur|ses, v.1|
|00005aa0| 2e 32 2e 0a 58 42 65 6c | 6f 77 20 74 68 69 73 20 |.2..XBel|ow this |
|00005ab0| 6e 6f 74 65 2c 20 74 68 | 65 20 72 65 6c 65 61 73 |note, th|e releas|
|00005ac0| 65 20 6e 6f 74 65 73 20 | 66 6f 72 20 76 2e 31 2e |e notes |for v.1.|
|00005ad0| 30 20 61 6e 64 20 76 2e | 31 2e 31 20 61 72 65 20 |0 and v.|1.1 are |
|00005ae0| 69 6e 63 6c 75 64 65 64 | 2e 20 52 65 61 64 0a 58 |included|. Read.X|
|00005af0| 74 68 6f 73 65 20 66 69 | 72 73 74 2e 0a 58 0a 58 |those fi|rst..X.X|
|00005b00| 20 20 54 68 65 20 63 68 | 61 6e 67 65 73 20 66 72 | The ch|anges fr|
|00005b10| 6f 6d 20 76 2e 31 2e 31 | 20 74 6f 20 76 2e 31 2e |om v.1.1| to v.1.|
|00005b20| 32 20 61 72 65 20 6d 69 | 6e 6f 72 2e 20 54 68 65 |2 are mi|nor. The|
|00005b30| 20 62 69 67 67 65 73 74 | 20 63 68 61 6e 67 65 20 | biggest| change |
|00005b40| 69 73 20 74 68 61 74 20 | 74 68 65 72 65 0a 58 77 |is that |there.Xw|
|00005b50| 61 73 20 61 20 62 75 67 | 20 72 65 6c 61 74 65 64 |as a bug| related|
|00005b60| 20 74 6f 20 6c 69 6d 69 | 74 69 6e 67 20 74 68 65 | to limi|ting the|
|00005b70| 20 63 75 72 73 6f 72 20 | 6d 6f 76 65 6d 65 6e 74 | cursor |movement|
|00005b80| 20 69 66 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 | if the |applicat|
|00005b90| 69 6f 6e 20 74 72 69 65 | 64 20 74 6f 0a 58 6d 6f |ion trie|d to.Xmo|
|00005ba0| 76 65 20 69 74 20 6f 75 | 74 73 69 64 65 20 74 68 |ve it ou|tside th|
|00005bb0| 65 20 73 63 72 65 65 6e | 20 28 73 6f 6d 65 74 68 |e screen| (someth|
|00005bc0| 69 6e 67 20 74 68 61 74 | 20 73 68 6f 75 6c 64 20 |ing that| should |
|00005bd0| 6e 6f 74 20 62 65 20 64 | 6f 6e 65 20 61 6e 79 77 |not be d|one anyw|
|00005be0| 61 79 29 2e 20 53 75 63 | 68 0a 58 65 72 72 6f 6e |ay). Suc|h.Xerron|
|00005bf0| 6f 75 73 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |ous appl|ication |
|00005c00| 62 65 68 61 76 69 6f 75 | 72 20 69 73 20 6e 6f 77 |behaviou|r is now|
|00005c10| 20 68 61 6e 64 6c 65 64 | 20 61 70 70 72 6f 70 72 | handled| appropr|
|00005c20| 69 61 74 65 6c 79 2e 0a | 58 0a 58 20 20 41 6c 6c |iately..|X.X All|
|00005c30| 20 6d 6f 64 75 6c 65 73 | 20 68 61 76 65 20 62 65 | modules| have be|
|00005c40| 65 6e 20 63 68 61 6e 67 | 65 64 20 74 6f 20 68 61 |en chang|ed to ha|
|00005c50| 76 65 20 61 20 72 65 76 | 69 73 6f 6e 20 73 74 72 |ve a rev|ison str|
|00005c60| 69 6e 67 20 69 6e 20 74 | 68 65 6d 2c 20 77 68 69 |ing in t|hem, whi|
|00005c70| 63 68 20 6d 61 6b 65 73 | 0a 58 69 74 20 65 61 73 |ch makes|.Xit eas|
|00005c80| 69 65 72 20 74 6f 20 64 | 65 74 65 72 6d 69 6e 65 |ier to d|etermine|
|00005c90| 20 77 68 61 74 20 76 65 | 72 73 69 6f 6e 20 69 73 | what ve|rsion is|
|00005ca0| 20 6c 69 6e 6b 65 64 20 | 69 6e 74 6f 20 61 20 70 | linked |into a p|
|00005cb0| 72 6f 67 72 61 6d 20 28 | 6f 72 20 77 68 61 74 20 |rogram (|or what |
|00005cc0| 6c 69 62 72 61 72 79 0a | 58 76 65 72 73 69 6f 6e |library.|Xversion|
|00005cd0| 20 79 6f 75 20 68 61 76 | 65 29 2e 0a 58 0a 58 20 | you hav|e)..X.X |
|00005ce0| 20 54 68 65 72 65 20 69 | 73 20 6e 6f 77 20 61 20 | There i|s now a |
|00005cf0| 27 63 75 72 73 65 73 69 | 6f 2e 63 27 20 66 69 6c |'cursesi|o.c' fil|
|00005d00| 65 2e 20 54 68 61 74 20 | 66 69 6c 65 20 64 6f 65 |e. That |file doe|
|00005d10| 73 20 74 68 65 20 73 61 | 6d 65 20 61 73 20 27 63 |s the sa|me as 'c|
|00005d20| 75 72 73 65 73 69 6f 2e | 61 73 6d 27 0a 58 28 69 |ursesio.|asm'.X(i|
|00005d30| 2e 65 2e 20 69 74 20 70 | 72 6f 76 69 64 65 73 20 |.e. it p|rovides |
|00005d40| 74 68 65 20 69 6e 74 65 | 72 66 61 63 65 20 74 6f |the inte|rface to|
|00005d50| 20 74 68 65 20 6c 6f 77 | 65 72 2d 6c 65 76 65 6c | the low|er-level|
|00005d60| 20 73 79 73 74 65 6d 20 | 49 2f 4f 20 72 6f 75 74 | system |I/O rout|
|00005d70| 69 6e 65 73 29 2e 20 49 | 74 0a 58 69 73 20 77 72 |ines). I|t.Xis wr|
|00005d80| 69 74 74 65 6e 20 69 6e | 20 27 43 27 20 61 6e 64 |itten in| 'C' and|
|00005d90| 20 74 68 75 73 20 69 74 | 20 69 73 20 28 70 6f 73 | thus it| is (pos|
|00005da0| 73 69 62 6c 79 29 20 6d | 6f 72 65 20 70 6f 72 74 |sibly) m|ore port|
|00005db0| 61 62 6c 65 20 74 68 61 | 6e 20 74 68 65 20 61 73 |able tha|n the as|
|00005dc0| 73 65 6d 62 6c 65 72 0a | 58 76 65 72 73 69 6f 6e |sembler.|Xversion|
|00005dd0| 20 28 62 75 74 20 73 74 | 69 6c 6c 20 6e 6f 74 20 | (but st|ill not |
|00005de0| 73 6f 20 70 6f 72 74 61 | 62 6c 65 20 73 69 6e 63 |so porta|ble sinc|
|00005df0| 65 20 69 74 20 75 73 65 | 73 20 38 30 38 36 20 49 |e it use|s 8086 I|
|00005e00| 4e 54 20 58 58 20 63 61 | 6c 6c 73 20 64 69 72 65 |NT XX ca|lls dire|
|00005e10| 63 74 6c 79 29 2e 0a 58 | 57 68 65 6e 20 6f 6e 65 |ctly)..X|When one|
|00005e20| 20 63 72 65 61 74 65 73 | 20 6e 65 77 20 63 75 72 | creates| new cur|
|00005e30| 73 65 73 20 6c 69 62 72 | 61 72 69 65 73 2c 20 6f |ses libr|aries, o|
|00005e40| 6e 65 20 63 68 6f 6f 73 | 65 73 20 77 68 65 74 68 |ne choos|es wheth|
|00005e50| 65 72 20 74 6f 20 75 73 | 65 20 74 68 65 20 61 73 |er to us|e the as|
|00005e60| 73 65 6d 2d 0a 58 62 6c | 65 72 20 6f 72 20 74 68 |sem-.Xbl|er or th|
|00005e70| 65 20 27 43 27 20 76 65 | 72 73 69 6f 6e 20 6f 66 |e 'C' ve|rsion of|
|00005e80| 20 63 75 72 73 65 73 69 | 6f 2e 20 54 68 65 20 63 | cursesi|o. The c|
|00005e90| 68 6f 69 63 65 20 69 73 | 20 6d 61 64 65 20 62 79 |hoice is| made by|
|00005ea0| 20 63 6f 6d 6d 65 6e 74 | 69 6e 67 20 6f 75 74 20 | comment|ing out |
|00005eb0| 74 68 65 0a 58 61 70 70 | 72 6f 70 72 69 61 74 65 |the.Xapp|ropriate|
|00005ec0| 20 64 65 70 65 6e 64 65 | 6e 63 69 65 73 20 66 6f | depende|ncies fo|
|00005ed0| 72 20 63 75 72 73 65 73 | 69 6f 2e 6f 62 6a 2c 20 |r curses|io.obj, |
|00005ee0| 6e 65 61 72 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |near the| end of |
|00005ef0| 74 68 65 20 6d 61 6b 65 | 66 69 6c 65 73 2e 0a 58 |the make|files..X|
|00005f00| 0a 58 20 20 54 68 65 72 | 65 20 69 73 20 6e 6f 77 |.X Ther|e is now|
|00005f10| 20 61 20 27 73 65 74 6d | 6f 64 65 2e 63 27 20 66 | a 'setm|ode.c' f|
|00005f20| 69 6c 65 2e 20 54 68 61 | 74 20 66 69 6c 65 20 63 |ile. Tha|t file c|
|00005f30| 6f 6e 74 61 69 6e 73 20 | 66 75 6e 63 74 69 6f 6e |ontains |function|
|00005f40| 73 20 74 68 61 74 20 73 | 61 76 65 20 61 6e 64 0a |s that s|ave and.|
|00005f50| 58 72 65 73 74 6f 72 65 | 20 74 65 72 6d 69 6e 61 |Xrestore| termina|
|00005f60| 6c 20 6d 6f 64 65 73 2e | 20 54 68 65 79 20 64 6f |l modes.| They do|
|00005f70| 20 69 74 20 69 6e 74 6f | 20 6f 74 68 65 72 20 76 | it into| other v|
|00005f80| 61 72 69 61 62 6c 65 73 | 20 74 68 61 6e 20 64 6f |ariables| than do|
|00005f90| 20 73 61 76 65 74 74 79 | 28 29 20 61 6e 64 0a 58 | savetty|() and.X|
|00005fa0| 72 65 73 65 74 74 79 28 | 29 2c 20 73 6f 20 6f 6e |resetty(|), so on|
|00005fb0| 65 20 73 68 6f 75 6c 64 | 20 70 72 6f 62 61 62 6c |e should| probabl|
|00005fc0| 79 20 75 73 65 20 65 69 | 74 68 65 72 20 73 61 76 |y use ei|ther sav|
|00005fd0| 65 74 74 79 28 29 2f 72 | 65 73 65 74 74 79 28 29 |etty()/r|esetty()|
|00005fe0| 20 6f 72 20 74 68 65 20 | 6e 65 77 0a 58 66 75 6e | or the |new.Xfun|
|00005ff0| 63 74 69 6f 6e 73 20 6f | 6e 6c 79 20 2d 20 61 6e |ctions o|nly - an|
|00006000| 64 20 6e 6f 74 20 6d 69 | 78 20 74 68 65 20 62 6f |d not mi|x the bo|
|00006010| 74 68 20 77 61 79 73 20 | 75 6e 6c 65 73 73 20 6f |th ways |unless o|
|00006020| 6e 65 20 72 65 61 6c 6c | 79 20 6b 6e 6f 77 73 20 |ne reall|y knows |
|00006030| 77 68 61 74 20 6f 6e 65 | 0a 58 64 6f 65 73 2e 0a |what one|.Xdoes..|
|00006040| 58 0a 58 20 20 44 69 66 | 66 20 6c 69 73 74 73 20 |X.X Dif|f lists |
|00006050| 76 73 20 76 2e 31 2e 30 | 20 61 72 65 20 6e 6f 20 |vs v.1.0| are no |
|00006060| 6c 6f 6e 67 65 72 20 69 | 6e 63 6c 75 64 65 64 20 |longer i|ncluded |
|00006070| 69 6e 20 74 68 65 20 64 | 69 73 74 72 69 62 75 74 |in the d|istribut|
|00006080| 69 6f 6e 2e 20 54 68 65 | 20 6d 61 6b 65 0a 58 75 |ion. The| make.Xu|
|00006090| 74 69 6c 69 74 79 20 73 | 74 69 6c 6c 20 69 73 2e |tility s|till is.|
|000060a0| 20 50 43 63 75 72 73 65 | 73 20 76 2e 31 2e 32 20 | PCcurse|s v.1.2 |
|000060b0| 73 74 69 6c 6c 20 63 6f | 6d 70 69 6c 65 73 20 77 |still co|mpiles w|
|000060c0| 69 74 68 20 4d 69 63 72 | 6f 53 6f 66 74 20 27 43 |ith Micr|oSoft 'C|
|000060d0| 27 20 76 2e 34 2e 30 2c | 0a 58 61 6e 64 20 77 69 |' v.4.0,|.Xand wi|
|000060e0| 74 68 20 42 6f 72 6c 61 | 6e 64 20 54 75 72 62 6f |th Borla|nd Turbo|
|000060f0| 20 27 43 27 20 76 2e 31 | 2e 30 2e 20 54 68 65 72 | 'C' v.1|.0. Ther|
|00006100| 65 20 69 73 20 61 73 20 | 66 61 72 20 61 73 20 49 |e is as |far as I|
|00006110| 20 6b 6e 6f 77 20 6e 6f | 20 72 65 61 73 6f 6e 20 | know no| reason |
|00006120| 74 6f 20 62 65 2d 0a 58 | 6c 69 65 76 65 20 74 68 |to be-.X|lieve th|
|00006130| 61 74 20 69 74 20 64 6f | 65 73 20 6e 6f 74 20 63 |at it do|es not c|
|00006140| 6f 6d 70 69 6c 65 20 75 | 6e 64 65 72 20 4d 69 63 |ompile u|nder Mic|
|00006150| 72 6f 53 6f 66 74 20 27 | 43 27 20 76 2e 33 2e 30 |roSoft '|C' v.3.0|
|00006160| 20 61 6e 64 20 35 2e 78 | 2c 20 6f 72 20 54 75 72 | and 5.x|, or Tur|
|00006170| 62 6f 2d 0a 58 27 43 27 | 20 76 2e 31 2e 35 2c 20 |bo-.X'C'| v.1.5, |
|00006180| 62 75 74 20 74 68 69 73 | 20 68 61 73 20 6e 6f 74 |but this| has not|
|00006190| 20 62 65 65 6e 20 74 65 | 73 74 65 64 2e 0a 58 0a | been te|sted..X.|
|000061a0| 58 20 20 54 68 65 72 65 | 20 61 72 65 20 74 77 6f |X There| are two|
|000061b0| 20 6d 61 6b 65 66 69 6c | 65 27 73 20 69 6e 63 6c | makefil|e's incl|
|000061c0| 75 64 65 64 2c 20 6f 6e | 65 20 66 6f 72 20 4d 69 |uded, on|e for Mi|
|000061d0| 63 72 6f 53 6f 66 74 20 | 27 43 27 2c 20 6f 6e 65 |croSoft |'C', one|
|000061e0| 20 66 6f 72 20 54 75 72 | 62 6f 2d 27 43 27 2e 0a | for Tur|bo-'C'..|
|000061f0| 58 54 68 65 79 20 61 72 | 65 20 62 6f 74 68 20 63 |XThey ar|e both c|
|00006200| 6f 70 69 65 73 20 6f 66 | 20 6d 79 20 70 65 72 73 |opies of| my pers|
|00006210| 6f 6e 61 6c 20 6d 61 6b | 65 66 69 6c 65 27 73 2c |onal mak|efile's,|
|00006220| 20 61 6e 64 20 61 73 20 | 73 75 63 68 20 74 68 65 | and as |such the|
|00006230| 79 20 72 65 66 6c 65 63 | 74 20 74 68 65 0a 58 64 |y reflec|t the.Xd|
|00006240| 69 72 65 63 74 6f 72 79 | 20 73 74 72 75 63 74 75 |irectory| structu|
|00006250| 72 65 20 6f 6e 20 6d 79 | 20 6f 77 6e 20 63 6f 6d |re on my| own com|
|00006260| 70 75 74 65 72 2e 20 54 | 68 69 73 20 77 69 6c 6c |puter. T|his will|
|00006270| 20 68 61 76 65 20 74 6f | 20 62 65 20 63 68 61 6e | have to| be chan|
|00006280| 67 65 64 20 62 65 66 6f | 72 65 0a 58 79 6f 75 20 |ged befo|re.Xyou |
|00006290| 72 75 6e 20 6d 61 6b 65 | 2e 20 43 68 65 63 6b 20 |run make|. Check |
|000062a0| 24 28 49 4e 43 44 49 52 | 29 20 61 6e 64 20 24 28 |$(INCDIR|) and $(|
|000062b0| 4c 49 42 44 49 52 29 20 | 69 6e 20 70 61 72 74 69 |LIBDIR) |in parti|
|000062c0| 63 75 6c 61 72 2c 20 61 | 6e 64 20 6d 61 6b 65 20 |cular, a|nd make |
|000062d0| 74 68 65 20 63 68 6f 69 | 63 65 0a 58 6f 66 20 41 |the choi|ce.Xof A|
|000062e0| 53 4d 20 6f 72 20 27 43 | 27 20 63 75 72 73 65 73 |SM or 'C|' curses|
|000062f0| 69 6f 20 76 65 72 73 69 | 6f 6e 20 61 73 20 6d 65 |io versi|on as me|
|00006300| 6e 74 69 6f 6e 65 64 20 | 61 62 6f 76 65 20 28 74 |ntioned |above (t|
|00006310| 68 65 20 64 69 73 74 72 | 69 62 75 74 69 6f 6e 20 |he distr|ibution |
|00006320| 76 65 72 73 69 6f 6e 0a | 58 75 73 65 73 20 74 68 |version.|Xuses th|
|00006330| 65 20 27 43 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |e 'C ver|sion of |
|00006340| 63 75 72 73 65 73 69 6f | 29 2e 0a 58 0a 58 20 20 |cursesio|)..X.X |
|00006350| 54 68 65 20 6d 61 6e 75 | 61 6c 20 66 69 6c 65 20 |The manu|al file |
|00006360| 28 63 75 72 73 65 73 2e | 6d 61 6e 29 20 68 61 73 |(curses.|man) has|
|00006370| 20 62 65 65 6e 20 63 68 | 61 6e 67 65 64 20 61 74 | been ch|anged at|
|00006380| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 70 6c 61 | appropr|iate pla|
|00006390| 63 65 73 2e 0a 58 0a 58 | 20 20 49 20 77 6f 75 6c |ces..X.X| I woul|
|000063a0| 64 20 6c 69 6b 65 20 74 | 6f 20 74 68 61 6e 6b 20 |d like t|o thank |
|000063b0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 70 65 |the foll|owing pe|
|000063c0| 72 73 6f 6e 73 20 66 6f | 72 20 74 68 65 69 72 20 |rsons fo|r their |
|000063d0| 68 65 6c 70 3a 0a 58 0a | 58 20 20 09 42 72 61 6e |help:.X.|X .Bran|
|000063e0| 64 6f 6e 20 53 2e 20 41 | 6c 6c 62 65 72 79 20 28 |don S. A|llbery (|
|000063f0| 61 6c 62 65 72 72 79 40 | 6e 63 6f 61 73 74 2e 55 |alberry@|ncoast.U|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.