home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume33 / pdcurses / part03 < prev    next >
SHell self-extracting ARchive  |  1992-11-20  |  55.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

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 46 72 |.sources|.misc.Fr|
|00000020| 6f 6d 3a 20 4d 2e 48 65 | 73 73 6c 69 6e 67 40 67 |om: M.He|ssling@g|
|00000030| 75 2e 65 64 75 2e 61 75 | 20 28 4d 61 72 6b 20 48 |u.edu.au| (Mark H|
|00000040| 65 73 73 6c 69 6e 67 29 | 0a 53 75 62 6a 65 63 74 |essling)|.Subject|
|00000050| 3a 20 20 76 33 33 69 30 | 38 33 3a 20 20 70 64 63 |: v33i0|83: pdc|
|00000060| 75 72 73 65 73 20 2d 20 | 50 75 62 6c 69 63 20 44 |urses - |Public D|
|00000070| 6f 6d 61 69 6e 20 63 75 | 72 73 65 73 20 6c 69 62 |omain cu|rses lib|
|00000080| 72 61 72 79 20 66 6f 72 | 20 44 4f 53 20 61 6e 64 |rary for| DOS and|
|00000090| 20 4f 53 2f 32 20 76 32 | 2e 30 2c 20 50 61 72 74 | OS/2 v2|.0, Part|
|000000a0| 30 33 2f 31 31 0a 4d 65 | 73 73 61 67 65 2d 49 44 |03/11.Me|ssage-ID|
|000000b0| 3a 20 3c 31 39 39 32 4e | 6f 76 31 39 2e 30 34 30 |: <1992N|ov19.040|
|000000c0| 30 35 34 2e 36 36 37 34 | 40 73 70 61 72 6b 79 2e |054.6674|@sparky.|
|000000d0| 69 6d 64 2e 73 74 65 72 | 6c 69 6e 67 2e 63 6f 6d |imd.ster|ling.com|
|000000e0| 3e 0a 58 2d 4d 64 34 2d | 53 69 67 6e 61 74 75 72 |>.X-Md4-|Signatur|
|000000f0| 65 3a 20 38 37 37 37 32 | 31 35 35 66 34 66 38 33 |e: 87772|155f4f83|
|00000100| 65 30 66 65 66 31 35 31 | 63 30 36 39 37 61 38 32 |e0fef151|c0697a82|
|00000110| 39 62 61 0a 44 61 74 65 | 3a 20 54 68 75 2c 20 31 |9ba.Date|: Thu, 1|
|00000120| 39 20 4e 6f 76 20 31 39 | 39 32 20 30 34 3a 30 30 |9 Nov 19|92 04:00|
|00000130| 3a 35 34 20 47 4d 54 0a | 41 70 70 72 6f 76 65 64 |:54 GMT.|Approved|
|00000140| 3a 20 6b 65 6e 74 40 73 | 70 61 72 6b 79 2e 69 6d |: kent@s|parky.im|
|00000150| 64 2e 73 74 65 72 6c 69 | 6e 67 2e 63 6f 6d 0a 0a |d.sterli|ng.com..|
|00000160| 53 75 62 6d 69 74 74 65 | 64 2d 62 79 3a 20 4d 2e |Submitte|d-by: M.|
|00000170| 48 65 73 73 6c 69 6e 67 | 40 67 75 2e 65 64 75 2e |Hessling|@gu.edu.|
|00000180| 61 75 20 28 4d 61 72 6b | 20 48 65 73 73 6c 69 6e |au (Mark| Hesslin|
|00000190| 67 29 0a 50 6f 73 74 69 | 6e 67 2d 6e 75 6d 62 65 |g).Posti|ng-numbe|
|000001a0| 72 3a 20 56 6f 6c 75 6d | 65 20 33 33 2c 20 49 73 |r: Volum|e 33, Is|
|000001b0| 73 75 65 20 38 33 0a 41 | 72 63 68 69 76 65 2d 6e |sue 83.A|rchive-n|
|000001c0| 61 6d 65 3a 20 70 64 63 | 75 72 73 65 73 2f 70 61 |ame: pdc|urses/pa|
|000001d0| 72 74 30 33 0a 45 6e 76 | 69 72 6f 6e 6d 65 6e 74 |rt03.Env|ironment|
|000001e0| 3a 20 44 4f 53 2c 4f 53 | 2f 32 2c 41 4e 53 49 2d |: DOS,OS|/2,ANSI-|
|000001f0| 43 0a 0a 23 21 20 2f 62 | 69 6e 2f 73 68 0a 23 20 |C..#! /b|in/sh.# |
|00000200| 54 68 69 73 20 69 73 20 | 61 20 73 68 65 6c 6c 20 |This is |a shell |
|00000210| 61 72 63 68 69 76 65 2e | 20 20 52 65 6d 6f 76 65 |archive.| Remove|
|00000220| 20 61 6e 79 74 68 69 6e | 67 20 62 65 66 6f 72 65 | anythin|g before|
|00000230| 20 74 68 69 73 20 6c 69 | 6e 65 2c 20 74 68 65 6e | this li|ne, then|
|00000240| 20 66 65 65 64 20 69 74 | 0a 23 20 69 6e 74 6f 20 | feed it|.# into |
|00000250| 61 20 73 68 65 6c 6c 20 | 76 69 61 20 22 73 68 20 |a shell |via "sh |
|00000260| 66 69 6c 65 22 20 6f 72 | 20 73 69 6d 69 6c 61 72 |file" or| similar|
|00000270| 2e 20 20 54 6f 20 6f 76 | 65 72 77 72 69 74 65 20 |. To ov|erwrite |
|00000280| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 73 2c 0a |existing| files,.|
|00000290| 23 20 74 79 70 65 20 22 | 73 68 20 66 69 6c 65 20 |# type "|sh file |
|000002a0| 2d 63 22 2e 0a 23 20 43 | 6f 6e 74 65 6e 74 73 3a |-c"..# C|ontents:|
|000002b0| 20 20 63 75 72 73 70 72 | 69 76 2e 68 20 64 65 6d | curspr|iv.h dem|
|000002c0| 6f 73 2f 74 65 73 74 63 | 75 72 73 2e 63 20 6d 61 |os/testc|urs.c ma|
|000002d0| 6b 65 66 69 6c 65 20 70 | 72 69 76 61 74 65 2f 5f |kefile p|rivate/_|
|000002e0| 73 65 74 72 6f 77 73 2e | 63 0a 23 20 20 20 70 72 |setrows.|c.# pr|
|000002f0| 69 76 61 74 65 2f 5f 76 | 61 6c 69 64 63 68 2e 63 |ivate/_v|alidch.c|
|00000300| 0a 23 20 57 72 61 70 70 | 65 64 20 62 79 20 6b 65 |.# Wrapp|ed by ke|
|00000310| 6e 74 40 73 70 61 72 6b | 79 20 6f 6e 20 57 65 64 |nt@spark|y on Wed|
|00000320| 20 4e 6f 76 20 31 38 20 | 32 31 3a 34 34 3a 30 36 | Nov 18 |21:44:06|
|00000330| 20 31 39 39 32 0a 50 41 | 54 48 3d 2f 62 69 6e 3a | 1992.PA|TH=/bin:|
|00000340| 2f 75 73 72 2f 62 69 6e | 3a 2f 75 73 72 2f 75 63 |/usr/bin|:/usr/uc|
|00000350| 62 3a 2f 75 73 72 2f 6c | 6f 63 61 6c 2f 62 69 6e |b:/usr/l|ocal/bin|
|00000360| 3a 2f 75 73 72 2f 6c 62 | 69 6e 20 3b 20 65 78 70 |:/usr/lb|in ; exp|
|00000370| 6f 72 74 20 50 41 54 48 | 0a 65 63 68 6f 20 49 66 |ort PATH|.echo If|
|00000380| 20 74 68 69 73 20 61 72 | 63 68 69 76 65 20 69 73 | this ar|chive is|
|00000390| 20 63 6f 6d 70 6c 65 74 | 65 2c 20 79 6f 75 20 77 | complet|e, you w|
|000003a0| 69 6c 6c 20 73 65 65 20 | 74 68 65 20 66 6f 6c 6c |ill see |the foll|
|000003b0| 6f 77 69 6e 67 20 6d 65 | 73 73 61 67 65 3a 0a 65 |owing me|ssage:.e|
|000003c0| 63 68 6f 20 27 20 20 20 | 20 20 20 20 20 20 20 22 |cho ' | "|
|000003d0| 73 68 61 72 3a 20 45 6e | 64 20 6f 66 20 61 72 63 |shar: En|d of arc|
|000003e0| 68 69 76 65 20 33 20 28 | 6f 66 20 31 31 29 2e 22 |hive 3 (|of 11)."|
|000003f0| 27 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 63 75 |'.if tes|t -f 'cu|
|00000400| 72 73 70 72 69 76 2e 68 | 27 20 2d 61 20 22 24 7b |rspriv.h|' -a "${|
|00000410| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00000420| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00000430| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00000440| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00000450| 5c 22 27 63 75 72 73 70 | 72 69 76 2e 68 27 5c 22 |\"'cursp|riv.h'\"|
|00000460| 0a 65 6c 73 65 0a 20 20 | 65 63 68 6f 20 73 68 61 |.else. |echo sha|
|00000470| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00000480| 27 63 75 72 73 70 72 69 | 76 2e 68 27 5c 22 20 5c |'curspri|v.h'\" \|
|00000490| 28 39 31 33 31 20 63 68 | 61 72 61 63 74 65 72 73 |(9131 ch|aracters|
|000004a0| 5c 29 0a 20 20 73 65 64 | 20 22 73 2f 5e 58 2f 2f |\). sed| "s/^X//|
|000004b0| 22 20 3e 27 63 75 72 73 | 70 72 69 76 2e 68 27 20 |" >'curs|priv.h' |
|000004c0| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|000004d0| 58 2f 2a 0a 58 2a 20 24 | 48 65 61 64 65 72 3a 20 |X/*.X* $|Header: |
|000004e0| 63 3a 2f 63 75 72 73 65 | 73 2f 52 43 53 2f 63 75 |c:/curse|s/RCS/cu|
|000004f0| 72 73 70 72 69 76 2e 68 | 25 76 20 32 2e 30 20 31 |rspriv.h|%v 2.0 1|
|00000500| 39 39 32 2f 31 31 2f 31 | 36 20 32 32 3a 34 30 3a |992/11/1|6 22:40:|
|00000510| 33 39 20 4d 48 20 52 65 | 6c 20 24 0a 58 2a 0a 58 |39 MH Re|l $.X*.X|
|00000520| 2a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |* | |
|00000530| 20 20 20 20 20 20 20 20 | 20 20 20 43 55 52 53 50 | | CURSP|
|00000540| 52 49 56 2e 48 0a 58 2a | 0a 58 2a 20 48 65 61 64 |RIV.H.X*|.X* Head|
|00000550| 65 72 20 66 69 6c 65 20 | 66 6f 72 20 64 65 66 69 |er file |for defi|
|00000560| 6e 69 74 69 6f 6e 73 20 | 61 6e 64 20 64 65 63 6c |nitions |and decl|
|00000570| 61 72 61 74 69 6f 6e 73 | 20 66 6f 72 20 74 68 65 |arations| for the|
|00000580| 0a 58 2a 20 50 44 43 75 | 72 73 65 73 20 70 61 63 |.X* PDCu|rses pac|
|00000590| 6b 61 67 65 2e 20 54 68 | 65 73 65 20 64 65 66 69 |kage. Th|ese defi|
|000005a0| 6e 69 74 69 6f 6e 73 20 | 73 68 6f 75 6c 64 20 6e |nitions |should n|
|000005b0| 6f 74 20 62 65 20 67 65 | 6e 65 72 61 6c 6c 79 0a |ot be ge|nerally.|
|000005c0| 58 2a 20 61 63 63 65 73 | 73 69 62 6c 65 20 74 6f |X* acces|sible to|
|000005d0| 20 70 72 6f 67 72 61 6d | 6d 65 72 73 2c 20 62 75 | program|mers, bu|
|000005e0| 74 20 61 72 65 20 70 72 | 6f 76 69 64 65 64 20 69 |t are pr|ovided i|
|000005f0| 66 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |f the ap|plicatio|
|00000600| 6e 73 0a 58 2a 20 70 72 | 6f 67 72 61 6d 6d 65 72 |ns.X* pr|ogrammer|
|00000610| 20 64 65 63 69 64 65 73 | 20 74 6f 20 6d 61 6b 65 | decides| to make|
|00000620| 20 74 68 65 20 64 65 63 | 69 73 69 6f 6e 20 69 6e | the dec|ision in|
|00000630| 20 66 61 76 6f 72 20 6f | 66 20 73 70 65 65 64 20 | favor o|f speed |
|00000640| 6f 6e 20 61 0a 58 2a 20 | 50 43 20 6f 76 65 72 20 |on a.X* |PC over |
|00000650| 70 6f 72 74 61 62 69 6c | 69 74 79 2e 0a 58 2a 0a |portabil|ity..X*.|
|00000660| 58 2a 20 52 65 76 69 73 | 69 6f 6e 20 48 69 73 74 |X* Revis|ion Hist|
|00000670| 6f 72 79 3a 0a 58 2a 20 | 46 72 6f 74 7a 20 31 2e |ory:.X* |Frotz 1.|
|00000680| 35 42 65 74 61 20 39 30 | 30 37 31 34 20 20 41 64 |5Beta 90|0714 Ad|
|00000690| 64 65 64 20 6d 61 6e 79 | 20 6c 65 76 65 6c 73 20 |ded many| levels |
|000006a0| 6f 66 20 63 6f 6d 70 69 | 6c 65 72 20 73 75 70 70 |of compi|ler supp|
|000006b0| 6f 72 74 2e 0a 58 2a 20 | 20 20 20 20 20 20 20 20 |ort..X* | |
|000006c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 41 64 | | Ad|
|000006d0| 64 65 64 20 6d 69 78 65 | 64 20 70 72 6f 74 6f 74 |ded mixe|d protot|
|000006e0| 79 70 65 73 20 66 6f 72 | 20 61 6c 6c 20 22 69 6e |ypes for| all "in|
|000006f0| 74 65 72 6e 61 6c 22 20 | 72 6f 75 74 69 6e 65 73 |ternal" |routines|
|00000700| 2e 0a 58 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 |..X* | |
|00000710| 20 20 20 20 20 20 20 20 | 20 20 20 52 65 6d 6f 76 | | Remov|
|00000720| 65 64 20 61 6c 6c 20 61 | 73 73 65 6d 62 6c 79 20 |ed all a|ssembly |
|00000730| 6c 61 6e 67 75 61 67 65 | 2e 20 20 41 64 64 65 64 |language|. Added|
|00000740| 20 45 47 41 2f 56 47 41 | 0a 58 2a 20 20 20 20 20 | EGA/VGA|.X* |
|00000750| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000760| 20 20 73 75 70 70 6f 72 | 74 2e 20 20 43 6f 6e 76 | suppor|t. Conv|
|00000770| 65 72 74 65 64 20 61 6c | 6c 20 23 69 66 64 65 66 |erted al|l #ifdef|
|00000780| 20 74 6f 20 23 69 66 20 | 69 6e 20 61 6c 6c 0a 58 | to #if |in all.X|
|00000790| 2a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |* | |
|000007a0| 20 20 20 20 20 20 20 20 | 6d 6f 64 75 6c 65 73 20 | |modules |
|000007b0| 65 78 63 65 70 74 20 43 | 55 52 53 45 53 2e 48 20 |except C|URSES.H |
|000007c0| 61 6e 64 20 43 55 52 53 | 50 52 49 56 2e 48 2e 0a |and CURS|PRIV.H..|
|000007d0| 58 2a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X* | |
|000007e0| 20 20 20 20 20 20 20 20 | 20 41 6c 77 61 79 73 20 | | Always |
|000007f0| 69 6e 63 6c 75 64 65 20 | 41 53 53 45 52 54 2e 48 |include |ASSERT.H|
|00000800| 2e 20 20 41 64 64 65 64 | 20 73 75 70 70 6f 72 74 |. Added| support|
|00000810| 20 66 6f 72 20 61 6e 0a | 58 2a 20 20 20 20 20 20 | for an.|X* |
|00000820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000830| 20 65 78 74 65 72 6e 61 | 6c 20 6d 61 6c 6c 6f 63 | externa|l malloc|
|00000840| 28 29 2c 20 63 61 6c 6c | 6f 63 28 29 20 61 6e 64 |(), call|oc() and|
|00000850| 20 66 72 65 65 28 29 2e | 0a 58 2a 20 20 20 20 20 | free().|.X* |
|00000860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000870| 20 20 41 64 64 65 64 20 | 73 75 70 70 6f 72 74 20 | Added |support |
|00000880| 66 6f 72 20 46 41 53 54 | 5f 56 49 44 45 4f 20 28 |for FAST|_VIDEO (|
|00000890| 64 69 72 65 63 74 2d 6d | 65 6d 6f 72 79 20 77 72 |direct-m|emory wr|
|000008a0| 69 74 65 73 29 2e 0a 58 | 2a 20 20 20 20 20 20 20 |ites)..X|* |
|000008b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008c0| 41 64 64 65 64 20 76 61 | 72 69 6f 75 73 20 6d 65 |Added va|rious me|
|000008d0| 6d 6f 72 79 20 6d 6f 64 | 65 6c 20 73 75 70 70 6f |mory mod|el suppo|
|000008e0| 72 74 20 28 66 6f 72 20 | 46 41 53 54 5f 56 49 44 |rt (for |FAST_VID|
|000008f0| 45 4f 29 2e 0a 58 2a 20 | 20 20 20 20 20 20 20 20 |EO)..X* | |
|00000900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 41 64 | | Ad|
|00000910| 64 65 64 20 6d 75 63 68 | 20 6f 66 20 74 68 65 20 |ded much| of the |
|00000920| 44 65 63 65 6d 62 65 72 | 20 31 39 38 38 20 58 2f |December| 1988 X/|
|00000930| 4f 70 65 6e 20 43 75 72 | 73 65 73 0a 58 2a 20 20 |Open Cur|ses.X* |
|00000940| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000950| 20 20 20 20 20 73 70 65 | 63 69 66 69 63 61 74 69 | spe|cificati|
|00000960| 6f 6e 2e 0a 58 2a 20 62 | 6c 20 20 20 20 31 2e 33 |on..X* b|l 1.3|
|00000970| 20 20 20 20 20 38 38 31 | 30 30 35 20 20 41 6c 6c | 881|005 All|
|00000980| 20 6d 6f 64 75 6c 65 73 | 20 6c 69 6e 74 2d 63 68 | modules| lint-ch|
|00000990| 65 63 6b 65 64 20 77 69 | 74 68 20 4d 53 43 20 27 |ecked wi|th MSC '|
|000009a0| 2d 57 33 27 20 61 6e 64 | 20 74 75 72 62 6f 27 43 |-W3' and| turbo'C|
|000009b0| 27 0a 58 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 |'.X* | |
|000009c0| 20 20 20 20 20 20 20 20 | 20 20 20 27 2d 77 20 2d | | '-w -|
|000009d0| 77 2d 70 72 6f 27 20 73 | 77 69 74 63 68 65 73 2e |w-pro' s|witches.|
|000009e0| 0a 58 2a 20 62 6c 20 20 | 20 20 31 2e 32 20 20 20 |.X* bl | 1.2 |
|000009f0| 20 20 38 38 31 30 30 32 | 20 20 53 75 70 70 6f 72 | 881002| Suppor|
|00000a00| 74 20 28 62 79 20 23 69 | 66 64 65 66 20 55 43 4d |t (by #i|fdef UCM|
|00000a10| 41 53 4d 29 20 66 6f 72 | 20 75 70 70 65 72 63 61 |ASM) for| upperca|
|00000a20| 73 65 2d 6f 6e 6c 79 0a | 58 2a 20 20 20 20 20 20 |se-only.|X* |
|00000a30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a40| 20 61 73 73 65 6d 62 6c | 79 20 72 6f 75 74 69 6e | assembl|y routin|
|00000a50| 65 20 6e 61 6d 65 73 2e | 20 49 66 20 55 43 4d 41 |e names.| If UCMA|
|00000a60| 53 4d 20 69 66 20 64 65 | 66 69 6e 65 64 2c 0a 58 |SM if de|fined,.X|
|00000a70| 2a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |* | |
|00000a80| 20 20 20 20 20 20 20 20 | 61 6c 6c 20 61 73 73 65 | |all asse|
|00000a90| 6d 62 6c 65 72 20 6e 61 | 6d 65 73 20 61 72 65 20 |mbler na|mes are |
|00000aa0| 23 64 65 66 69 6e 65 64 | 20 61 73 20 75 70 70 65 |#defined| as uppe|
|00000ab0| 72 20 63 61 73 65 2e 0a | 58 2a 20 20 20 20 20 20 |r case..|X* |
|00000ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ad0| 20 4e 6f 74 20 6e 65 65 | 64 65 64 20 69 66 20 79 | Not nee|ded if y|
|00000ae0| 6f 75 20 64 6f 20 22 4d | 41 53 4d 20 2f 4d 58 2e |ou do "M|ASM /MX.|
|00000af0| 20 41 6c 73 6f 20 6d 69 | 73 73 69 6e 67 0a 58 2a | Also mi|ssing.X*|
|00000b00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b10| 20 20 20 20 20 20 20 64 | 65 63 6c 61 72 61 74 69 | d|eclarati|
|00000b20| 6f 6e 20 6f 66 20 63 75 | 72 73 65 73 73 63 72 6f |on of cu|rsesscro|
|00000b30| 6c 6c 28 29 2e 20 46 69 | 78 65 73 20 74 68 61 6e |ll(). Fi|xes than|
|00000b40| 6b 73 20 74 6f 0a 58 2a | 20 20 20 20 20 20 20 20 |ks to.X*| |
|00000b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 4e | | N|
|00000b60| 2e 44 2e 20 50 65 6e 74 | 63 68 65 66 66 0a 58 2a |.D. Pent|cheff.X*|
|00000b70| 20 62 6c 20 20 20 20 31 | 2e 31 20 20 20 20 20 38 | bl 1|.1 8|
|00000b80| 38 30 33 30 36 20 20 41 | 64 64 20 5f 63 68 61 64 |80306 A|dd _chad|
|00000b90| 64 28 29 20 66 6f 72 20 | 72 61 77 20 6f 75 74 70 |d() for |raw outp|
|00000ba0| 75 74 20 72 6f 75 74 69 | 6e 65 73 2e 0a 58 2a 20 |ut routi|nes..X* |
|00000bb0| 62 6c 20 20 20 20 31 2e | 30 20 20 20 20 20 38 37 |bl 1.|0 87|
|00000bc0| 30 35 31 35 20 20 52 65 | 6c 65 61 73 65 2e 0a 58 |0515 Re|lease..X|
|00000bd0| 2a 0a 58 2a 2f 0a 58 0a | 58 23 69 66 6e 64 65 66 |*.X*/.X.|X#ifndef|
|00000be0| 20 5f 5f 43 55 52 53 45 | 53 5f 49 4e 54 45 52 4e | __CURSE|S_INTERN|
|00000bf0| 41 4c 53 5f 5f 0a 58 23 | 64 65 66 69 6e 65 20 5f |ALS__.X#|define _|
|00000c00| 5f 43 55 52 53 45 53 5f | 49 4e 54 45 52 4e 41 4c |_CURSES_|INTERNAL|
|00000c10| 53 5f 5f 0a 58 0a 58 2f | 2a 20 41 6c 77 61 79 73 |S__.X.X/|* Always|
|00000c20| 20 69 6e 63 6c 75 64 65 | 2e 2e 2e 20 2a 2f 0a 58 | include|... */.X|
|00000c30| 23 69 6e 63 6c 75 64 65 | 20 3c 61 73 73 65 72 74 |#include| <assert|
|00000c40| 2e 68 3e 0a 58 0a 58 2f | 2a 2d 2d 2d 2d 2d 2d 2d |.h>.X.X/|*-------|
|00000c50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000c60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000c70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000c80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00000c90| 58 2a 20 20 20 20 20 20 | 20 4f 50 45 52 41 54 49 |X* | OPERATI|
|00000ca0| 4e 47 20 53 59 53 54 45 | 4d 20 53 55 50 50 4f 52 |NG SYSTE|M SUPPOR|
|00000cb0| 54 3a 0a 58 2a 0a 58 2a | 20 20 20 20 20 20 20 20 |T:.X*.X*| |
|00000cc0| 20 20 20 20 20 20 20 44 | 4f 53 20 20 20 20 20 20 | D|OS |
|00000cd0| 20 20 20 20 20 20 20 54 | 68 65 20 6f 6e 65 20 77 | T|he one w|
|00000ce0| 65 20 61 6c 6c 20 6b 6e | 6f 77 20 61 6e 64 20 6c |e all kn|ow and l|
|00000cf0| 6f 76 65 3a 2d 7d 0a 58 | 2a 20 20 20 20 20 20 20 |ove:-}.X|* |
|00000d00| 20 20 20 20 20 20 20 20 | 4f 53 2f 32 20 20 20 20 | |OS/2 |
|00000d10| 20 20 20 20 20 20 20 20 | 54 68 65 20 6e 65 77 20 | |The new |
|00000d20| 6b 69 64 20 6f 6e 20 74 | 68 65 20 62 6c 6f 63 6b |kid on t|he block|
|00000d30| 2e 0a 58 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 |..X* | |
|00000d40| 20 20 20 46 4c 45 58 4f | 53 20 20 20 20 20 20 20 | FLEXO|S |
|00000d50| 20 20 20 41 20 52 65 61 | 6c 2d 74 69 6d 65 2c 20 | A Rea|l-time, |
|00000d60| 70 72 6f 74 65 63 74 65 | 64 2d 6d 6f 64 65 20 4f |protecte|d-mode O|
|00000d70| 53 20 66 72 6f 6d 0a 58 | 2a 20 20 20 20 20 20 20 |S from.X|* |
|00000d80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d90| 20 20 20 20 20 20 20 20 | 44 69 67 69 74 61 6c 20 | |Digital |
|00000da0| 52 65 73 65 61 72 63 68 | 2c 20 49 6e 63 2e 0a 58 |Research|, Inc..X|
|00000db0| 2a 09 09 09 09 28 41 4b | 41 2c 20 74 68 65 20 34 |*....(AK|A, the 4|
|00000dc0| 36 38 30 20 66 72 6f 6d | 20 49 42 4d 2e 2e 2e 29 |680 from| IBM...)|
|00000dd0| 0a 58 2a 2f 0a 58 0a 58 | 2f 2a 2d 2d 2d 2d 2d 2d |.X*/.X.X|/*------|
|00000de0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000df0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000e00| 2d 2d 2a 2f 0a 58 23 69 | 66 64 65 66 20 20 44 4f |--*/.X#i|fdef DO|
|00000e10| 53 0a 58 23 20 20 64 65 | 66 69 6e 65 20 46 41 53 |S.X# de|fine FAS|
|00000e20| 54 5f 56 49 44 45 4f 20 | 31 20 20 20 20 20 20 20 |T_VIDEO |1 |
|00000e30| 20 20 20 2f 2a 20 57 65 | 20 63 61 6e 20 77 72 69 | /* We| can wri|
|00000e40| 74 65 20 64 69 72 65 63 | 74 6c 79 20 74 6f 20 74 |te direc|tly to t|
|00000e50| 68 65 20 73 63 72 65 65 | 6e 2e 20 2a 2f 0a 58 20 |he scree|n. */.X |
|00000e60| 20 20 74 79 70 65 64 65 | 66 20 75 6e 69 6f 6e 20 | typede|f union |
|00000e70| 52 45 47 53 20 52 65 67 | 73 3b 0a 58 20 20 20 65 |REGS Reg|s;.X e|
|00000e80| 78 74 65 72 6e 20 52 65 | 67 73 20 72 65 67 73 3b |xtern Re|gs regs;|
|00000e90| 0a 58 23 65 6e 64 69 66 | 0a 58 0a 58 2f 2a 2d 2d |.X#endif|.X.X/*--|
|00000ea0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000eb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ec0| 2d 2d 2d 2d 2d 2d 2a 2f | 0a 58 23 69 66 64 65 66 |------*/|.X#ifdef|
|00000ed0| 20 20 46 4c 45 58 4f 53 | 0a 58 23 20 20 64 65 66 | FLEXOS|.X# def|
|00000ee0| 69 6e 65 20 46 41 53 54 | 5f 56 49 44 45 4f 20 31 |ine FAST|_VIDEO 1|
|00000ef0| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 20 57 65 20 | | /* We |
|00000f00| 63 61 6e 20 75 73 65 20 | 73 63 6f 70 79 28 29 20 |can use |scopy() |
|00000f10| 20 20 2a 2f 0a 58 23 20 | 20 64 65 66 69 6e 65 20 | */.X# | define |
|00000f20| 47 4d 4f 44 45 20 20 30 | 20 2f 2a 20 4b 4c 55 44 |GMODE 0| /* KLUD|
|00000f30| 47 45 20 41 4c 45 52 54 | 21 0a 58 20 20 20 20 20 |GE ALERT|!.X |
|00000f40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 20 | | * |
|00000f50| 47 4d 4f 44 45 20 3d 3d | 20 30 20 64 65 66 69 6e |GMODE ==| 0 defin|
|00000f60| 65 73 20 63 68 61 72 61 | 63 74 65 72 20 6d 6f 64 |es chara|cter mod|
|00000f70| 65 20 73 74 72 75 63 74 | 75 72 65 73 20 69 6e 20 |e struct|ures in |
|00000f80| 46 4c 45 58 54 41 42 2e | 48 2e 0a 58 20 20 20 20 |FLEXTAB.|H..X |
|00000f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a | | *|
|00000fa0| 20 47 4d 4f 44 45 20 3d | 3d 20 31 20 64 65 66 69 | GMODE =|= 1 defi|
|00000fb0| 6e 65 73 20 67 72 61 70 | 68 69 63 73 20 20 6d 6f |nes grap|hics mo|
|00000fc0| 64 65 20 73 74 72 75 63 | 74 75 72 65 73 20 69 6e |de struc|tures in|
|00000fd0| 20 46 4c 45 58 54 41 42 | 2e 48 2e 0a 58 20 20 20 | FLEXTAB|.H..X |
|00000fe0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ff0| 2a 2f 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 66 6c |*/.X#inc|lude <fl|
|00001000| 65 78 74 61 62 2e 68 3e | 0a 58 65 78 74 65 72 6e |extab.h>|.Xextern|
|00001010| 20 56 49 52 43 4f 4e 20 | 76 69 72 3b 0a 58 23 65 | VIRCON |vir;.X#e|
|00001020| 6e 64 69 66 0a 58 0a 58 | 0a 58 0a 58 0a 58 2f 2a |ndif.X.X|.X.X.X/*|
|00001030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001040| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001050| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001060| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001070| 2d 2d 2d 2d 2d 2d 0a 58 | 2a 20 20 20 20 20 20 20 |------.X|* |
|00001080| 4d 45 4d 4f 52 59 20 4d | 4f 44 45 4c 20 53 55 50 |MEMORY M|ODEL SUP|
|00001090| 50 4f 52 54 3a 0a 58 2a | 0a 58 2a 20 20 20 20 20 |PORT:.X*|.X* |
|000010a0| 20 20 4d 4f 44 45 4c 53 | 0a 58 2a 20 20 20 20 20 | MODELS|.X* |
|000010b0| 20 20 20 20 20 20 20 20 | 20 20 54 49 4e 59 20 20 | | TINY |
|000010c0| 20 20 20 20 20 20 20 20 | 20 20 63 73 2c 64 73 2c | | cs,ds,|
|000010d0| 73 73 20 61 6c 6c 20 69 | 6e 20 31 20 73 65 67 6d |ss all i|n 1 segm|
|000010e0| 65 6e 74 20 28 6e 6f 74 | 20 65 6e 6f 75 67 68 20 |ent (not| enough |
|000010f0| 6d 65 6d 6f 72 79 21 29 | 0a 58 2a 20 20 20 20 20 |memory!)|.X* |
|00001100| 20 20 20 20 20 20 20 20 | 20 20 53 4d 41 4c 4c 20 | | SMALL |
|00001110| 20 20 20 20 20 20 20 20 | 20 20 63 73 3a 31 20 73 | | cs:1 s|
|00001120| 65 67 6d 65 6e 74 2c 20 | 20 20 20 20 20 20 20 20 |egment, | |
|00001130| 20 20 64 73 3a 31 20 73 | 65 67 6d 65 6e 74 0a 58 | ds:1 s|egment.X|
|00001140| 2a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |* | |
|00001150| 4d 45 44 49 55 4d 20 20 | 20 20 20 20 20 20 20 20 |MEDIUM | |
|00001160| 63 73 3a 6d 61 6e 79 20 | 73 65 67 6d 65 6e 74 73 |cs:many |segments|
|00001170| 20 20 20 20 20 20 20 20 | 64 73 3a 31 20 73 65 67 | |ds:1 seg|
|00001180| 6d 65 6e 74 0a 58 2a 20 | 20 20 20 20 20 20 20 20 |ment.X* | |
|00001190| 20 20 20 20 20 20 43 4f | 4d 50 41 43 54 20 20 20 | CO|MPACT |
|000011a0| 20 20 20 20 20 20 63 73 | 3a 31 20 73 65 67 6d 65 | cs|:1 segme|
|000011b0| 6e 74 2c 20 20 20 20 20 | 20 20 20 20 20 20 64 73 |nt, | ds|
|000011c0| 3a 6d 61 6e 79 20 73 65 | 67 6d 65 6e 74 73 0a 58 |:many se|gments.X|
|000011d0| 2a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |* | |
|000011e0| 4c 41 52 47 45 20 20 20 | 20 20 20 20 20 20 20 20 |LARGE | |
|000011f0| 63 73 3a 6d 61 6e 79 20 | 73 65 67 6d 65 6e 74 73 |cs:many |segments|
|00001200| 20 20 20 20 20 20 20 20 | 64 73 3a 6d 61 6e 79 20 | |ds:many |
|00001210| 73 65 67 6d 65 6e 74 73 | 0a 58 2a 20 20 20 20 20 |segments|.X* |
|00001220| 20 20 20 20 20 20 20 20 | 20 20 48 55 47 45 20 20 | | HUGE |
|00001230| 20 20 20 20 20 20 20 20 | 20 20 63 73 3a 6d 61 6e | | cs:man|
|00001240| 79 20 73 65 67 6d 65 6e | 74 73 20 20 20 20 20 20 |y segmen|ts |
|00001250| 20 20 64 73 3a 73 65 67 | 6d 65 6e 74 73 20 3e 20 | ds:seg|ments > |
|00001260| 36 34 4b 0a 58 2a 2f 0a | 58 23 69 66 64 65 66 20 |64K.X*/.|X#ifdef |
|00001270| 20 5f 5f 54 49 4e 59 5f | 5f 0a 58 23 20 20 64 65 | __TINY_|_.X# de|
|00001280| 66 69 6e 65 20 53 4d 41 | 4c 4c 20 31 0a 58 23 65 |fine SMA|LL 1.X#e|
|00001290| 6e 64 69 66 0a 58 23 69 | 66 64 65 66 20 20 5f 5f |ndif.X#i|fdef __|
|000012a0| 53 4d 41 4c 4c 5f 5f 0a | 58 23 20 20 64 65 66 69 |SMALL__.|X# defi|
|000012b0| 6e 65 20 53 4d 41 4c 4c | 20 31 0a 58 23 65 6e 64 |ne SMALL| 1.X#end|
|000012c0| 69 66 0a 58 23 69 66 64 | 65 66 20 20 5f 5f 4d 45 |if.X#ifd|ef __ME|
|000012d0| 44 49 55 4d 5f 5f 0a 58 | 23 20 20 64 65 66 69 6e |DIUM__.X|# defin|
|000012e0| 65 20 4d 45 44 49 55 4d | 20 31 0a 58 23 65 6e 64 |e MEDIUM| 1.X#end|
|000012f0| 69 66 0a 58 23 69 66 64 | 65 66 20 20 5f 5f 43 4f |if.X#ifd|ef __CO|
|00001300| 4d 50 41 43 54 5f 5f 0a | 58 23 20 20 64 65 66 69 |MPACT__.|X# defi|
|00001310| 6e 65 20 43 4f 4d 50 41 | 43 54 20 31 0a 58 23 65 |ne COMPA|CT 1.X#e|
|00001320| 6e 64 69 66 0a 58 23 69 | 66 64 65 66 20 20 5f 5f |ndif.X#i|fdef __|
|00001330| 4c 41 52 47 45 5f 5f 0a | 58 23 20 20 64 65 66 69 |LARGE__.|X# defi|
|00001340| 6e 65 20 4c 41 52 47 45 | 20 31 0a 58 23 65 6e 64 |ne LARGE| 1.X#end|
|00001350| 69 66 0a 58 23 69 66 64 | 65 66 20 20 5f 5f 48 55 |if.X#ifd|ef __HU|
|00001360| 47 45 5f 5f 0a 58 23 20 | 20 64 65 66 69 6e 65 20 |GE__.X# | define |
|00001370| 48 55 47 45 20 31 0a 58 | 23 65 6e 64 69 66 0a 58 |HUGE 1.X|#endif.X|
|00001380| 0a 58 0a 58 0a 58 0a 58 | 2f 2a 2d 2d 2d 2d 2d 2d |.X.X.X.X|/*------|
|00001390| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000013a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000013b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000013c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000013d0| 0a 58 2a 20 20 20 20 20 | 20 20 4d 41 4c 4c 4f 43 |.X* | MALLOC|
|000013e0| 20 44 45 42 55 47 47 49 | 4e 47 20 53 55 50 50 4f | DEBUGGI|NG SUPPO|
|000013f0| 52 54 3a 0a 58 2a 0a 58 | 2a 20 20 20 20 20 20 20 |RT:.X*.X|* |
|00001400| 53 65 74 20 45 4d 41 4c | 4c 4f 43 20 61 6e 64 20 |Set EMAL|LOC and |
|00001410| 45 4d 41 4c 4c 4f 43 5f | 4d 41 47 49 43 20 69 6e |EMALLOC_|MAGIC in|
|00001420| 20 6f 72 64 65 72 20 74 | 6f 20 75 73 65 20 79 6f | order t|o use yo|
|00001430| 75 72 20 70 72 69 76 61 | 74 65 0a 58 2a 20 20 20 |ur priva|te.X* |
|00001440| 20 20 20 20 76 65 72 73 | 69 6f 6e 73 20 6f 66 20 | vers|ions of |
|00001450| 6d 61 6c 6c 6f 63 28 29 | 2c 20 63 61 6c 6c 6f 63 |malloc()|, calloc|
|00001460| 28 29 2c 20 61 6e 64 20 | 66 72 65 65 28 29 2e 20 |(), and |free(). |
|00001470| 20 54 68 69 73 20 63 61 | 6e 20 68 65 6c 70 2c 0a | This ca|n help,.|
|00001480| 58 2a 20 20 20 20 20 20 | 20 62 75 74 20 6e 6f 74 |X* | but not|
|00001490| 20 73 6f 6c 76 65 2c 20 | 79 6f 75 72 20 6d 61 6c | solve, |your mal|
|000014a0| 6c 6f 63 20 70 72 6f 62 | 6c 65 6d 73 20 77 68 65 |loc prob|lems whe|
|000014b0| 6e 20 64 65 62 75 67 67 | 69 6e 67 2e 2e 2e 0a 58 |n debugg|ing....X|
|000014c0| 2a 0a 58 2a 2f 0a 58 23 | 69 66 6e 64 65 66 09 49 |*.X*/.X#|ifndef.I|
|000014d0| 4e 54 45 52 4e 41 4c 0a | 58 23 20 20 64 65 66 69 |NTERNAL.|X# defi|
|000014e0| 6e 65 20 45 4d 41 4c 4c | 4f 43 20 30 20 20 20 20 |ne EMALL|OC 0 |
|000014f0| 20 20 20 20 20 20 20 20 | 20 2f 2a 20 44 69 73 61 | | /* Disa|
|00001500| 62 6c 65 20 45 78 74 65 | 72 6e 61 6c 20 4d 61 6c |ble Exte|rnal Mal|
|00001510| 6c 6f 63 09 20 20 20 20 | 20 20 20 20 2a 2f 0a 58 |loc. | */.X|
|00001520| 23 65 6c 73 65 0a 58 23 | 20 20 64 65 66 69 6e 65 |#else.X#| define|
|00001530| 20 45 4d 41 4c 4c 4f 43 | 20 30 20 20 20 20 20 20 | EMALLOC| 0 |
|00001540| 20 20 20 20 20 20 20 2f | 2a 20 45 6e 61 62 6c 65 | /|* Enable|
|00001550| 2f 44 69 73 61 62 6c 65 | 20 45 78 74 65 72 6e 61 |/Disable| Externa|
|00001560| 6c 20 4d 61 6c 6c 6f 63 | 20 20 20 20 20 20 20 2a |l Malloc| *|
|00001570| 2f 0a 58 23 20 20 64 65 | 66 69 6e 65 20 45 4d 41 |/.X# de|fine EMA|
|00001580| 4c 4c 4f 43 5f 4d 41 47 | 49 43 20 20 30 78 30 43 |LLOC_MAG|IC 0x0C|
|00001590| 30 43 20 2f 2a 20 4f 75 | 72 20 6d 61 67 69 63 20 |0C /* Ou|r magic |
|000015a0| 69 6e 64 69 63 61 74 6f | 72 20 74 68 61 74 20 77 |indicato|r that w|
|000015b0| 65 20 73 68 6f 75 6c 64 | 20 20 20 2a 2f 0a 58 20 |e should| */.X |
|000015c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000015d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2f | | /|
|000015e0| 2a 20 75 73 65 20 6f 75 | 72 20 65 78 74 65 72 6e |* use ou|r extern|
|000015f0| 61 6c 20 6d 61 6c 6c 6f | 63 20 72 61 74 68 65 72 |al mallo|c rather|
|00001600| 20 74 68 61 6e 20 20 2a | 2f 0a 58 20 20 20 20 20 | than *|/.X |
|00001610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001620| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2a 20 74 68 | | /* th|
|00001630| 65 20 72 75 6e 74 69 6d | 65 27 73 20 6d 61 6c 6c |e runtim|e's mall|
|00001640| 6f 63 2e 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |oc. | |
|00001650| 20 20 20 2a 2f 0a 58 23 | 65 6e 64 69 66 0a 58 0a | */.X#|endif.X.|
|00001660| 58 0a 58 2f 2a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |X.X/*---|--------|
|00001670| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001680| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001690| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000016a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2a 2f 0a 58 2f |--------|---*/.X/|
|000016b0| 2a 20 77 69 6e 64 6f 77 | 20 70 72 6f 70 65 72 74 |* window| propert|
|000016c0| 69 65 73 20 2a 2f 0a 58 | 23 64 65 66 69 6e 65 20 |ies */.X|#define |
|000016d0| 5f 53 55 42 57 49 4e 20 | 20 20 20 20 20 20 20 20 |_SUBWIN | |
|000016e0| 30 78 30 31 20 20 20 20 | 2f 2a 20 77 69 6e 64 6f |0x01 |/* windo|
|000016f0| 77 20 69 73 20 61 20 73 | 75 62 77 69 6e 64 6f 77 |w is a s|ubwindow|
|00001700| 20 20 20 20 20 20 20 20 | 20 20 20 20 2a 2f 0a 58 | | */.X|
|00001710| 23 64 65 66 69 6e 65 20 | 5f 45 4e 44 4c 49 4e 45 |#define |_ENDLINE|
|00001720| 20 20 20 20 20 20 20 20 | 30 78 30 32 20 20 20 20 | |0x02 |
|00001730| 2f 2a 20 6c 61 73 74 20 | 77 69 6e 6c 69 6e 65 20 |/* last |winline |
|00001740| 69 73 20 6c 61 73 74 20 | 73 63 72 65 65 6e 20 6c |is last |screen l|
|00001750| 69 6e 65 20 2a 2f 0a 58 | 23 64 65 66 69 6e 65 20 |ine */.X|#define |
|00001760| 5f 46 55 4c 4c 57 49 4e | 20 20 20 20 20 20 20 20 |_FULLWIN| |
|00001770| 30 78 30 34 20 20 20 20 | 2f 2a 20 77 69 6e 64 6f |0x04 |/* windo|
|00001780| 77 20 66 69 6c 6c 73 20 | 73 63 72 65 65 6e 20 20 |w fills |screen |
|00001790| 20 20 20 20 20 20 20 20 | 20 20 20 20 2a 2f 0a 58 | | */.X|
|000017a0| 23 64 65 66 69 6e 65 20 | 5f 53 43 52 4f 4c 4c 57 |#define |_SCROLLW|
|000017b0| 49 4e 20 20 20 20 20 20 | 30 78 30 38 20 20 20 20 |IN |0x08 |
|000017c0| 2f 2a 20 77 69 6e 64 6f | 77 20 6c 77 72 20 72 67 |/* windo|w lwr rg|
|000017d0| 74 20 69 73 20 73 63 72 | 65 65 6e 20 6c 77 72 20 |t is scr|een lwr |
|000017e0| 72 67 74 20 2a 2f 0a 58 | 23 64 65 66 69 6e 65 20 |rgt */.X|#define |
|000017f0| 5f 50 41 44 20 20 20 20 | 20 20 20 20 20 20 20 20 |_PAD | |
|00001800| 30 78 31 30 20 20 20 20 | 2f 2a 20 58 2f 4f 70 65 |0x10 |/* X/Ope|
|00001810| 6e 20 50 61 64 2e 20 20 | 20 20 20 20 20 20 20 20 |n Pad. | |
|00001820| 20 20 20 20 20 20 20 20 | 20 20 20 20 2a 2f 0a 58 | | */.X|
|00001830| 0a 58 0a 58 0a 58 0a 58 | 2f 2a 2d 2d 2d 2d 2d 2d |.X.X.X.X|/*------|
|00001840| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001850| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001860| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001870| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001880| 2a 2f 0a 58 2f 2a 20 4d | 69 73 63 65 6c 6c 61 6e |*/.X/* M|iscellan|
|00001890| 65 6f 75 73 20 2a 2f 0a | 58 23 64 65 66 69 6e 65 |eous */.|X#define|
|000018a0| 20 5f 49 4e 42 55 46 53 | 49 5a 20 20 20 20 20 20 | _INBUFS|IZ |
|000018b0| 20 35 31 32 20 20 20 20 | 20 2f 2a 20 73 69 7a 65 | 512 | /* size|
|000018c0| 20 6f 66 20 74 65 72 6d | 69 6e 61 6c 20 69 6e 70 | of term|inal inp|
|000018d0| 75 74 20 62 75 66 66 65 | 72 20 2a 2f 0a 58 23 64 |ut buffe|r */.X#d|
|000018e0| 65 66 69 6e 65 20 5f 4e | 4f 5f 43 48 41 4e 47 45 |efine _N|O_CHANGE|
|000018f0| 20 20 20 20 20 20 2d 31 | 20 20 20 20 20 20 2f 2a | -1| /*|
|00001900| 20 66 6c 61 67 73 20 6c | 69 6e 65 20 65 64 67 65 | flags l|ine edge|
|00001910| 20 75 6e 63 68 61 6e 67 | 65 64 20 20 20 20 20 2a | unchang|ed *|
|00001920| 2f 0a 58 0a 58 0a 58 0a | 58 0a 58 2f 2a 20 40 40 |/.X.X.X.|X.X/* @@|
|00001930| 40 20 54 48 45 53 45 20 | 53 48 4f 55 4c 44 20 42 |@ THESE |SHOULD B|
|00001940| 45 20 49 4e 44 49 56 49 | 44 55 41 4c 20 46 55 4e |E INDIVI|DUAL FUN|
|00001950| 43 54 49 4f 4e 53 2c 20 | 4e 4f 54 20 4d 41 43 52 |CTIONS, |NOT MACR|
|00001960| 4f 53 21 20 2a 2f 0a 58 | 23 64 65 66 69 6e 65 20 |OS! */.X|#define |
|00001970| 5f 45 43 48 41 52 20 20 | 20 20 20 20 20 20 20 20 |_ECHAR | |
|00001980| 30 78 30 38 20 20 20 20 | 2f 2a 20 45 72 61 73 65 |0x08 |/* Erase|
|00001990| 20 63 68 61 72 09 20 20 | 20 20 28 5e 48 29 20 20 | char. | (^H) |
|000019a0| 20 20 20 20 20 20 20 2a | 2f 0a 58 23 64 65 66 69 | *|/.X#defi|
|000019b0| 6e 65 20 5f 44 57 43 48 | 41 52 20 20 20 20 20 20 |ne _DWCH|AR |
|000019c0| 20 20 20 30 78 31 37 20 | 20 20 20 2f 2a 20 44 65 | 0x17 | /* De|
|000019d0| 6c 65 74 65 20 57 6f 72 | 64 20 63 68 61 72 20 28 |lete Wor|d char (|
|000019e0| 5e 57 29 20 20 20 20 20 | 20 20 20 20 2a 2f 0a 58 |^W) | */.X|
|000019f0| 23 64 65 66 69 6e 65 20 | 5f 44 4c 43 48 41 52 20 |#define |_DLCHAR |
|00001a00| 20 20 20 20 20 20 20 20 | 30 78 31 35 20 20 20 20 | |0x15 |
|00001a10| 2f 2a 20 44 65 6c 65 74 | 65 20 4c 69 6e 65 20 63 |/* Delet|e Line c|
|00001a20| 68 61 72 20 28 5e 55 29 | 20 20 20 20 20 20 20 20 |har (^U)| |
|00001a30| 20 2a 2f 0a 58 23 64 65 | 66 69 6e 65 20 5f 47 4f | */.X#de|fine _GO|
|00001a40| 43 48 41 52 20 20 20 20 | 20 20 20 20 20 30 78 31 |CHAR | 0x1|
|00001a50| 31 20 20 20 20 2f 2a 20 | 5e 51 20 63 68 61 72 61 |1 /* |^Q chara|
|00001a60| 63 74 65 72 20 20 20 20 | 20 20 20 20 20 20 20 20 |cter | |
|00001a70| 20 20 20 20 20 20 2a 2f | 0a 58 23 64 65 66 69 6e | */|.X#defin|
|00001a80| 65 20 5f 50 52 49 4e 54 | 43 48 41 52 20 20 20 20 |e _PRINT|CHAR |
|00001a90| 20 20 30 78 31 30 20 20 | 20 20 2f 2a 20 5e 50 20 | 0x10 | /* ^P |
|00001aa0| 63 68 61 72 61 63 74 65 | 72 20 20 20 20 20 20 20 |characte|r |
|00001ab0| 20 20 20 20 20 20 20 20 | 20 20 20 2a 2f 0a 58 23 | | */.X#|
|00001ac0| 64 65 66 69 6e 65 20 5f | 53 54 4f 50 43 48 41 52 |define _|STOPCHAR|
|00001ad0| 20 20 20 20 20 20 20 30 | 78 31 33 20 20 20 20 2f | 0|x13 /|
|00001ae0| 2a 20 5e 53 20 63 68 61 | 72 61 63 74 65 72 20 20 |* ^S cha|racter |
|00001af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b00| 2a 2f 0a 58 23 64 65 66 | 69 6e 65 20 20 4e 55 4e |*/.X#def|ine NUN|
|00001b10| 47 45 54 43 48 20 20 20 | 20 20 20 20 32 30 20 20 |GETCH | 20 |
|00001b20| 20 20 20 20 2f 2a 20 6d | 61 78 20 23 20 63 68 61 | /* m|ax # cha|
|00001b30| 72 73 20 74 6f 20 75 6e | 67 65 74 63 68 28 29 20 |rs to un|getch() |
|00001b40| 20 20 20 20 20 2a 2f 0a | 58 0a 58 0a 58 0a 58 0a | */.|X.X.X.X.|
|00001b50| 58 2f 2a 20 53 65 74 6d | 6f 64 65 20 73 74 75 66 |X/* Setm|ode stuf|
|00001b60| 66 20 2a 2f 0a 58 73 74 | 72 75 63 74 20 63 74 74 |f */.Xst|ruct ctt|
|00001b70| 79 73 65 74 0a 58 7b 0a | 58 09 62 6f 6f 6c 09 62 |yset.X{.|X.bool.b|
|00001b80| 65 65 6e 5f 73 65 74 3b | 0a 58 09 53 43 52 45 45 |een_set;|.X.SCREE|
|00001b90| 4e 09 73 61 76 65 64 3b | 0a 58 7d 3b 0a 58 0a 58 |N.saved;|.X};.X.X|
|00001ba0| 65 78 74 65 72 6e 20 73 | 74 72 75 63 74 20 63 74 |extern s|truct ct|
|00001bb0| 74 79 73 65 74 20 63 5f | 73 68 5f 74 74 79 3b 20 |tyset c_|sh_tty; |
|00001bc0| 20 20 20 20 20 20 20 20 | 2f 2a 20 74 74 79 20 6d | |/* tty m|
|00001bd0| 6f 64 65 73 20 66 6f 72 | 20 73 68 65 6c 6c 5f 6d |odes for| shell_m|
|00001be0| 6f 64 65 20 2a 2f 0a 58 | 65 78 74 65 72 6e 20 73 |ode */.X|extern s|
|00001bf0| 74 72 75 63 74 20 63 74 | 74 79 73 65 74 20 63 5f |truct ct|tyset c_|
|00001c00| 70 72 5f 74 74 79 3b 20 | 20 20 20 20 20 20 20 20 |pr_tty; | |
|00001c10| 2f 2a 20 74 74 79 20 6d | 6f 64 65 73 20 66 6f 72 |/* tty m|odes for|
|00001c20| 20 70 72 6f 67 5f 6d 6f | 64 65 20 20 2a 2f 0a 58 | prog_mo|de */.X|
|00001c30| 65 78 74 65 72 6e 20 73 | 74 72 75 63 74 20 63 74 |extern s|truct ct|
|00001c40| 74 79 73 65 74 20 63 5f | 73 61 76 65 5f 74 74 79 |tyset c_|save_tty|
|00001c50| 3b 0a 58 65 78 74 65 72 | 6e 20 73 74 72 75 63 74 |;.Xexter|n struct|
|00001c60| 20 63 74 74 79 73 65 74 | 20 63 5f 73 61 76 65 5f | cttyset| c_save_|
|00001c70| 74 72 6d 3b 0a 58 0a 58 | 2f 2a 20 50 72 69 6e 74 |trm;.X.X|/* Print|
|00001c80| 73 63 61 6e 20 73 74 75 | 66 66 20 2a 2f 0a 58 65 |scan stu|ff */.Xe|
|00001c90| 78 74 65 72 6e 20 63 68 | 61 72 20 63 5f 70 72 69 |xtern ch|ar c_pri|
|00001ca0| 6e 74 73 63 61 6e 62 75 | 66 5b 5d 3b 20 20 20 20 |ntscanbu|f[]; |
|00001cb0| 20 20 20 20 20 20 20 2f | 2a 20 62 75 66 66 65 72 | /|* buffer|
|00001cc0| 20 75 73 65 64 20 64 75 | 72 69 6e 67 20 49 2f 4f | used du|ring I/O|
|00001cd0| 20 2a 2f 0a 58 0a 58 2f | 2a 20 53 74 72 67 65 74 | */.X.X/|* Strget|
|00001ce0| 20 73 74 75 66 66 20 2a | 2f 0a 58 65 78 74 65 72 | stuff *|/.Xexter|
|00001cf0| 6e 20 63 68 61 72 2a 20 | 20 20 20 63 5f 73 74 72 |n char* | c_str|
|00001d00| 62 65 67 3b 0a 58 0a 58 | 2f 2a 20 64 6f 75 70 64 |beg;.X.X|/* doupd|
|00001d10| 61 74 65 20 73 74 75 66 | 66 20 2a 2f 0a 58 65 78 |ate stuf|f */.Xex|
|00001d20| 74 65 72 6e 20 57 49 4e | 44 4f 57 2a 20 20 74 77 |tern WIN|DOW* tw|
|00001d30| 69 6e 3b 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |in; | |
|00001d40| 20 20 20 20 20 20 2f 2a | 20 75 73 65 64 20 62 79 | /*| used by|
|00001d50| 20 6d 61 6e 79 20 72 6f | 75 74 69 6e 65 73 20 2a | many ro|utines *|
|00001d60| 2f 0a 58 0a 58 2f 2a 20 | 4d 6f 6e 69 74 6f 72 20 |/.X.X/* |Monitor |
|00001d70| 28 74 65 72 6d 69 6e 61 | 6c 29 20 74 79 70 65 20 |(termina|l) type |
|00001d80| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 2a 2f 0a 58 |informat|ion */.X|
|00001d90| 23 64 65 66 69 6e 65 20 | 5f 4e 4f 4e 45 20 20 20 |#define |_NONE |
|00001da0| 20 20 20 20 20 20 20 20 | 30 78 30 30 0a 58 23 64 | |0x00.X#d|
|00001db0| 65 66 69 6e 65 20 5f 4d | 44 41 20 20 20 20 20 20 |efine _M|DA |
|00001dc0| 20 20 20 20 20 20 30 78 | 30 31 0a 58 23 64 65 66 | 0x|01.X#def|
|00001dd0| 69 6e 65 20 5f 43 47 41 | 20 20 20 20 20 20 20 20 |ine _CGA| |
|00001de0| 20 20 20 20 30 78 30 32 | 0a 58 23 64 65 66 69 6e | 0x02|.X#defin|
|00001df0| 65 20 5f 45 47 41 43 4f | 4c 4f 52 20 20 20 20 20 |e _EGACO|LOR |
|00001e00| 20 20 30 78 30 34 0a 58 | 23 64 65 66 69 6e 65 20 | 0x04.X|#define |
|00001e10| 5f 45 47 41 4d 4f 4e 4f | 20 20 20 20 20 20 20 20 |_EGAMONO| |
|00001e20| 30 78 30 35 0a 58 23 64 | 65 66 69 6e 65 20 5f 56 |0x05.X#d|efine _V|
|00001e30| 47 41 43 4f 4c 4f 52 20 | 20 20 20 20 20 20 30 78 |GACOLOR | 0x|
|00001e40| 30 37 0a 58 23 64 65 66 | 69 6e 65 20 5f 56 47 41 |07.X#def|ine _VGA|
|00001e50| 4d 4f 4e 4f 20 20 20 20 | 20 20 20 20 30 78 30 38 |MONO | 0x08|
|00001e60| 0a 58 23 64 65 66 69 6e | 65 20 5f 4d 43 47 41 43 |.X#defin|e _MCGAC|
|00001e70| 4f 4c 4f 52 20 20 20 20 | 20 20 30 78 30 61 0a 58 |OLOR | 0x0a.X|
|00001e80| 23 64 65 66 69 6e 65 20 | 5f 4d 43 47 41 4d 4f 4e |#define |_MCGAMON|
|00001e90| 4f 20 20 20 20 20 20 20 | 30 78 30 62 0a 58 23 64 |O |0x0b.X#d|
|00001ea0| 65 66 69 6e 65 20 5f 46 | 4c 45 58 4f 53 20 20 20 |efine _F|LEXOS |
|00001eb0| 20 20 20 20 20 20 30 78 | 32 30 20 20 20 20 20 20 | 0x|20 |
|00001ec0| 20 20 20 20 20 20 2f 2a | 20 41 20 46 6c 65 78 6f | /*| A Flexo|
|00001ed0| 73 20 63 6f 6e 73 6f 6c | 65 20 2a 2f 0a 58 23 64 |s consol|e */.X#d|
|00001ee0| 65 66 69 6e 65 20 5f 4d | 44 53 5f 47 45 4e 49 55 |efine _M|DS_GENIU|
|00001ef0| 53 20 20 20 20 20 30 78 | 33 30 0a 58 0a 58 2f 2a |S 0x|30.X.X/*|
|00001f00| 20 54 65 78 74 2d 6d 6f | 64 65 20 66 6f 6e 74 20 | Text-mo|de font |
|00001f10| 73 69 7a 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |size inf|ormation|
|00001f20| 20 2a 2f 0a 58 23 64 65 | 66 69 6e 65 20 5f 46 4f | */.X#de|fine _FO|
|00001f30| 4e 54 38 20 20 38 0a 58 | 23 64 65 66 69 6e 65 20 |NT8 8.X|#define |
|00001f40| 5f 46 4f 4e 54 31 34 20 | 31 34 0a 58 23 64 65 66 |_FONT14 |14.X#def|
|00001f50| 69 6e 65 20 5f 46 4f 4e | 54 31 35 20 31 35 20 20 |ine _FON|T15 15 |
|00001f60| 20 20 20 20 20 20 20 20 | 20 20 20 20 2f 2a 20 47 | | /* G|
|00001f70| 45 4e 49 55 53 20 2a 2f | 0a 58 23 64 65 66 69 6e |ENIUS */|.X#defin|
|00001f80| 65 20 5f 46 4f 4e 54 31 | 36 20 31 36 0a 58 0a 58 |e _FONT1|6 16.X.X|
|00001f90| 0a 58 2f 2a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.X/*----|--------|
|00001fa0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001fb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001fc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001fd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 58 2a 20 20 20 |--------|--.X* |
|00001fe0| 20 20 20 20 41 4e 53 49 | 20 43 20 70 72 6f 74 6f | ANSI| C proto|
|00001ff0| 74 79 70 65 73 2e 20 20 | 42 65 20 73 75 72 65 20 |types. |Be sure |
|00002000| 74 68 61 74 20 79 6f 75 | 72 20 63 6f 6d 70 69 6c |that you|r compil|
|00002010| 65 72 20 63 6f 6e 64 69 | 74 69 6f 6e 61 6c 0a 58 |er condi|tional.X|
|00002020| 2a 20 20 20 20 20 20 20 | 63 6f 6d 70 69 6c 61 74 |* |compilat|
|00002030| 69 6f 6e 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 20 |ion defi|nitions |
|00002040| 61 62 6f 76 65 20 64 65 | 66 69 6e 65 20 41 4e 53 |above de|fine ANS|
|00002050| 49 20 74 6f 20 62 65 20 | 6e 6f 6e 2d 7a 65 72 6f |I to be |non-zero|
|00002060| 0a 58 2a 20 20 20 20 20 | 20 20 69 66 20 79 6f 75 |.X* | if you|
|00002070| 20 63 6f 6d 70 69 6c 65 | 72 20 73 75 70 70 6f 72 | compile|r suppor|
|00002080| 74 73 20 70 72 6f 74 6f | 74 79 70 65 73 2e 0a 58 |ts proto|types..X|
|00002090| 2a 2f 0a 58 23 69 66 64 | 65 66 20 20 20 20 20 41 |*/.X#ifd|ef A|
|000020a0| 4e 53 49 0a 58 23 20 20 | 69 66 64 65 66 20 20 43 |NSI.X# |ifdef C|
|000020b0| 50 4c 55 53 50 4c 55 53 | 0a 58 20 20 20 20 20 65 |PLUSPLUS|.X e|
|000020c0| 78 74 65 72 6e 20 22 43 | 22 20 7b 0a 58 23 20 20 |xtern "C|" {.X# |
|000020d0| 65 6e 64 69 66 0a 58 62 | 6f 6f 6c 09 50 44 43 5f |endif.Xb|ool.PDC_|
|000020e0| 63 68 65 63 6b 5f 62 69 | 6f 73 5f 6b 65 79 28 20 |check_bi|os_key( |
|000020f0| 76 6f 69 64 20 29 3b 0a | 58 62 6f 6f 6c 09 50 44 |void );.|Xbool.PD|
|00002100| 43 5f 67 65 74 5f 63 74 | 72 6c 5f 62 72 65 61 6b |C_get_ct|rl_break|
|00002110| 28 20 76 6f 69 64 20 29 | 3b 0a 58 62 6f 6f 6c 09 |( void )|;.Xbool.|
|00002120| 50 44 43 5f 74 72 61 6e | 73 66 6f 72 6d 6c 69 6e |PDC_tran|sformlin|
|00002130| 65 28 20 69 6e 74 20 29 | 3b 0a 58 63 68 74 79 70 |e( int )|;.Xchtyp|
|00002140| 65 09 50 44 43 5f 76 61 | 6c 69 64 63 68 61 72 28 |e.PDC_va|lidchar(|
|00002150| 20 63 68 74 79 70 65 20 | 29 3b 0a 58 69 6e 74 09 | chtype |);.Xint.|
|00002160| 50 44 43 5f 62 61 63 6b | 63 68 61 72 28 20 57 49 |PDC_back|char( WI|
|00002170| 4e 44 4f 57 2a 2c 20 63 | 68 61 72 2a 2c 20 69 6e |NDOW*, c|har*, in|
|00002180| 74 2a 20 29 3b 0a 58 69 | 6e 74 09 50 44 43 5f 73 |t* );.Xi|nt.PDC_s|
|00002190| 63 72 5f 6f 70 65 6e 28 | 20 53 43 52 45 45 4e 2a |cr_open(| SCREEN*|
|000021a0| 2c 20 62 6f 6f 6c 20 29 | 3b 0a 58 69 6e 74 09 50 |, bool )|;.Xint.P|
|000021b0| 44 43 5f 73 63 72 5f 63 | 6c 6f 73 65 28 20 76 6f |DC_scr_c|lose( vo|
|000021c0| 69 64 20 29 3b 0a 58 69 | 6e 74 09 50 44 43 5f 67 |id );.Xi|nt.PDC_g|
|000021d0| 65 74 5f 63 75 72 73 6f | 72 5f 70 6f 73 28 20 69 |et_curso|r_pos( i|
|000021e0| 6e 74 2a 2c 20 69 6e 74 | 2a 20 29 3b 0a 58 69 6e |nt*, int|* );.Xin|
|000021f0| 74 09 50 44 43 5f 67 65 | 74 5f 63 6f 6c 75 6d 6e |t.PDC_ge|t_column|
|00002200| 73 28 20 76 6f 69 64 20 | 29 3b 0a 58 69 6e 74 09 |s( void |);.Xint.|
|00002210| 50 44 43 5f 73 63 72 6f | 6c 6c 28 20 69 6e 74 2c |PDC_scro|ll( int,|
|00002220| 20 69 6e 74 2c 20 69 6e | 74 2c 20 69 6e 74 2c 20 | int, in|t, int, |
|00002230| 69 6e 74 2c 20 63 68 74 | 79 70 65 20 29 3b 0a 58 |int, cht|ype );.X|
|00002240| 69 6e 74 09 50 44 43 5f | 73 65 74 5f 63 74 72 6c |int.PDC_|set_ctrl|
|00002250| 5f 62 72 65 61 6b 28 20 | 62 6f 6f 6c 20 29 3b 0a |_break( |bool );.|
|00002260| 58 69 6e 74 09 50 44 43 | 5f 63 6c 72 5f 75 70 64 |Xint.PDC|_clr_upd|
|00002270| 61 74 65 28 20 57 49 4e | 44 4f 57 2a 20 29 3b 0a |ate( WIN|DOW* );.|
|00002280| 58 69 6e 74 09 50 44 43 | 5f 63 68 61 64 64 28 20 |Xint.PDC|_chadd( |
|00002290| 57 49 4e 44 4f 57 2a 2c | 20 63 68 74 79 70 65 2c |WINDOW*,| chtype,|
|000022a0| 20 62 6f 6f 6c 2c 20 62 | 6f 6f 6c 20 29 3b 0a 58 | bool, b|ool );.X|
|000022b0| 69 6e 74 09 50 44 43 5f | 63 68 69 6e 73 28 20 57 |int.PDC_|chins( W|
|000022c0| 49 4e 44 4f 57 2a 2c 20 | 63 68 74 79 70 65 2c 20 |INDOW*, |chtype, |
|000022d0| 62 6f 6f 6c 20 29 3b 0a | 58 23 69 66 64 65 66 20 |bool );.|X#ifdef |
|000022e0| 20 20 20 20 4f 53 32 0a | 58 56 49 4f 43 4f 4e 46 | OS2.|XVIOCONF|
|000022f0| 49 47 49 4e 46 4f 09 50 | 44 43 5f 71 75 65 72 79 |IGINFO.P|DC_query|
|00002300| 5f 61 64 61 70 74 65 72 | 5f 74 79 70 65 28 20 76 |_adapter|_type( v|
|00002310| 6f 69 64 20 29 3b 0a 58 | 56 49 4f 4d 4f 44 45 49 |oid );.X|VIOMODEI|
|00002320| 4e 46 4f 09 50 44 43 5f | 67 65 74 5f 73 63 72 6e |NFO.PDC_|get_scrn|
|00002330| 5f 6d 6f 64 65 28 20 76 | 6f 69 64 20 29 3b 0a 58 |_mode( v|oid );.X|
|00002340| 69 6e 74 09 50 44 43 5f | 73 65 74 5f 73 63 72 6e |int.PDC_|set_scrn|
|00002350| 5f 6d 6f 64 65 28 20 56 | 49 4f 4d 4f 44 45 49 4e |_mode( V|IOMODEIN|
|00002360| 46 4f 20 29 3b 0a 58 62 | 6f 6f 6c 09 50 44 43 5f |FO );.Xb|ool.PDC_|
|00002370| 73 63 72 6e 5f 6d 6f 64 | 65 73 5f 65 71 75 61 6c |scrn_mod|es_equal|
|00002380| 20 28 56 49 4f 4d 4f 44 | 45 49 4e 46 4f 2c 20 56 | (VIOMOD|EINFO, V|
|00002390| 49 4f 4d 4f 44 45 49 4e | 46 4f 29 3b 0a 58 23 65 |IOMODEIN|FO);.X#e|
|000023a0| 6c 73 65 0a 58 69 6e 74 | 09 50 44 43 5f 71 75 65 |lse.Xint|.PDC_que|
|000023b0| 72 79 5f 61 64 61 70 74 | 65 72 5f 74 79 70 65 28 |ry_adapt|er_type(|
|000023c0| 20 76 6f 69 64 20 29 3b | 0a 58 69 6e 74 09 50 44 | void );|.Xint.PD|
|000023d0| 43 5f 67 65 74 5f 73 63 | 72 6e 5f 6d 6f 64 65 28 |C_get_sc|rn_mode(|
|000023e0| 20 76 6f 69 64 20 29 3b | 0a 58 69 6e 74 09 50 44 | void );|.Xint.PD|
|000023f0| 43 5f 73 65 74 5f 73 63 | 72 6e 5f 6d 6f 64 65 28 |C_set_sc|rn_mode(|
|00002400| 20 69 6e 74 20 29 3b 0a | 58 62 6f 6f 6c 09 50 44 | int );.|Xbool.PD|
|00002410| 43 5f 73 63 72 6e 5f 6d | 6f 64 65 73 5f 65 71 75 |C_scrn_m|odes_equ|
|00002420| 61 6c 20 28 69 6e 74 2c | 20 69 6e 74 29 3b 0a 58 |al (int,| int);.X|
|00002430| 23 65 6e 64 69 66 0a 58 | 69 6e 74 09 50 44 43 5f |#endif.X|int.PDC_|
|00002440| 67 65 74 5f 66 6f 6e 74 | 28 20 76 6f 69 64 20 29 |get_font|( void )|
|00002450| 3b 0a 58 69 6e 74 09 50 | 44 43 5f 73 65 74 5f 66 |;.Xint.P|DC_set_f|
|00002460| 6f 6e 74 28 20 69 6e 74 | 20 29 3b 0a 58 69 6e 74 |ont( int| );.Xint|
|00002470| 09 50 44 43 5f 73 65 74 | 5f 38 30 78 32 35 28 20 |.PDC_set|_80x25( |
|00002480| 76 6f 69 64 20 29 3b 0a | 58 69 6e 74 09 50 44 43 |void );.|Xint.PDC|
|00002490| 5f 66 69 78 5f 63 75 72 | 73 6f 72 28 20 69 6e 74 |_fix_cur|sor( int|
|000024a0| 20 29 3b 0a 58 69 6e 74 | 09 50 44 43 5f 67 65 74 | );.Xint|.PDC_get|
|000024b0| 5f 72 6f 77 73 28 20 76 | 6f 69 64 20 29 3b 0a 58 |_rows( v|oid );.X|
|000024c0| 69 6e 74 09 50 44 43 5f | 73 65 74 5f 72 6f 77 73 |int.PDC_|set_rows|
|000024d0| 28 20 69 6e 74 20 29 3b | 0a 58 69 6e 74 09 50 44 |( int );|.Xint.PD|
|000024e0| 43 5f 70 75 74 63 68 61 | 72 28 20 63 68 74 79 70 |C_putcha|r( chtyp|
|000024f0| 65 20 29 3b 0a 58 69 6e | 74 09 50 44 43 5f 63 6c |e );.Xin|t.PDC_cl|
|00002500| 72 5f 73 63 72 6e 28 20 | 57 49 4e 44 4f 57 2a 20 |r_scrn( |WINDOW* |
|00002510| 29 3b 0a 58 69 6e 74 09 | 50 44 43 5f 67 61 74 74 |);.Xint.|PDC_gatt|
|00002520| 72 28 20 76 6f 69 64 20 | 29 3b 0a 58 69 6e 74 09 |r( void |);.Xint.|
|00002530| 50 44 43 5f 67 6f 74 6f | 78 79 28 20 69 6e 74 2c |PDC_goto|xy( int,|
|00002540| 20 69 6e 74 20 29 3b 0a | 58 69 6e 74 09 50 44 43 | int );.|Xint.PDC|
|00002550| 5f 70 72 69 6e 74 28 20 | 69 6e 74 2c 20 69 6e 74 |_print( |int, int|
|00002560| 2c 20 69 6e 74 20 29 3b | 0a 58 69 6e 74 09 50 44 |, int );|.Xint.PD|
|00002570| 43 5f 63 68 67 5f 61 74 | 74 72 28 20 57 49 4e 44 |C_chg_at|tr( WIND|
|00002580| 4f 57 2a 2c 20 63 68 74 | 79 70 65 2c 20 69 6e 74 |OW*, cht|ype, int|
|00002590| 2c 20 69 6e 74 2c 20 69 | 6e 74 2c 20 69 6e 74 20 |, int, i|nt, int |
|000025a0| 29 3b 0a 58 69 6e 74 09 | 50 44 43 5f 73 70 6c 69 |);.Xint.|PDC_spli|
|000025b0| 74 5f 70 6c 61 6e 65 28 | 20 57 49 4e 44 4f 57 2a |t_plane(| WINDOW*|
|000025c0| 2c 20 63 68 61 72 2a 2c | 20 63 68 61 72 2a 2c 20 |, char*,| char*, |
|000025d0| 69 6e 74 2c 20 69 6e 74 | 2c 20 69 6e 74 2c 20 69 |int, int|, int, i|
|000025e0| 6e 74 20 29 3b 0a 58 69 | 6e 74 09 50 44 43 5f 73 |nt );.Xi|nt.PDC_s|
|000025f0| 61 6e 69 74 79 5f 63 68 | 65 63 6b 28 20 69 6e 74 |anity_ch|eck( int|
|00002600| 20 29 3b 0a 58 69 6e 74 | 09 50 44 43 5f 67 65 74 | );.Xint|.PDC_get|
|00002610| 5f 63 75 72 73 6f 72 5f | 6d 6f 64 65 28 20 76 6f |_cursor_|mode( vo|
|00002620| 69 64 20 29 3b 0a 58 69 | 6e 74 09 50 44 43 5f 73 |id );.Xi|nt.PDC_s|
|00002630| 65 74 5f 63 75 72 73 6f | 72 5f 6d 6f 64 65 28 20 |et_curso|r_mode( |
|00002640| 69 6e 74 2c 20 69 6e 74 | 20 29 3b 0a 58 69 6e 74 |int, int| );.Xint|
|00002650| 09 50 44 43 5f 67 65 74 | 5f 62 69 6f 73 5f 6b 65 |.PDC_get|_bios_ke|
|00002660| 79 28 20 76 6f 69 64 20 | 29 3b 0a 58 69 6e 74 09 |y( void |);.Xint.|
|00002670| 50 44 43 5f 70 75 74 63 | 28 20 63 68 74 79 70 65 |PDC_putc|( chtype|
|00002680| 2c 20 63 68 74 79 70 65 | 20 29 3b 0a 58 69 6e 74 |, chtype| );.Xint|
|00002690| 09 50 44 43 5f 70 75 74 | 63 74 74 79 28 20 63 68 |.PDC_put|ctty( ch|
|000026a0| 74 79 70 65 2c 20 63 68 | 74 79 70 65 20 29 3b 0a |type, ch|type );.|
|000026b0| 58 73 69 67 6e 65 64 09 | 50 44 43 5f 72 61 77 67 |Xsigned.|PDC_rawg|
|000026c0| 65 74 63 68 28 20 76 6f | 69 64 20 29 3b 0a 58 73 |etch( vo|id );.Xs|
|000026d0| 69 67 6e 65 64 09 50 44 | 43 5f 73 79 73 67 65 74 |igned.PD|C_sysget|
|000026e0| 63 68 28 20 76 6f 69 64 | 20 29 3b 0a 58 76 6f 69 |ch( void| );.Xvoi|
|000026f0| 64 09 50 44 43 5f 75 73 | 6c 65 65 70 28 20 6c 6f |d.PDC_us|leep( lo|
|00002700| 6e 67 20 29 3b 0a 58 57 | 49 4e 44 4f 57 2a 09 50 |ng );.XW|INDOW*.P|
|00002710| 44 43 5f 6d 61 6b 65 6e | 65 77 28 20 69 6e 74 2c |DC_maken|ew( int,|
|00002720| 20 69 6e 74 2c 20 69 6e | 74 2c 20 69 6e 74 20 29 | int, in|t, int )|
|00002730| 3b 0a 58 0a 58 23 69 66 | 64 65 66 09 46 4c 45 58 |;.X.X#if|def.FLEX|
|00002740| 4f 53 0a 58 69 6e 74 09 | 50 44 43 5f 66 6c 65 78 |OS.Xint.|PDC_flex|
|00002750| 6f 73 5f 38 62 69 74 6d | 6f 64 65 28 20 76 6f 69 |os_8bitm|ode( voi|
|00002760| 64 20 29 3b 0a 58 69 6e | 74 09 50 44 43 5f 66 6c |d );.Xin|t.PDC_fl|
|00002770| 65 78 6f 73 5f 31 36 62 | 69 74 6d 6f 64 65 28 20 |exos_16b|itmode( |
|00002780| 76 6f 69 64 20 29 3b 0a | 58 63 68 61 72 2a 09 50 |void );.|Xchar*.P|
|00002790| 44 43 5f 66 6c 65 78 6f | 73 5f 67 6e 61 6d 65 28 |DC_flexo|s_gname(|
|000027a0| 20 76 6f 69 64 20 29 3b | 0a 58 23 65 6e 64 69 66 | void );|.X#endif|
|000027b0| 0a 58 0a 58 23 69 66 64 | 65 66 09 52 45 47 49 53 |.X.X#ifd|ef.REGIS|
|000027c0| 54 45 52 57 49 4e 44 4f | 57 53 0a 58 62 6f 6f 6c |TERWINDO|WS.Xbool|
|000027d0| 09 50 44 43 5f 69 6e 73 | 77 69 6e 28 20 57 49 4e |.PDC_ins|win( WIN|
|000027e0| 44 4f 57 2a 2c 20 57 49 | 4e 44 4f 57 2a 20 29 3b |DOW*, WI|NDOW* );|
|000027f0| 0a 58 69 6e 74 09 50 44 | 43 5f 61 64 64 74 61 69 |.Xint.PD|C_addtai|
|00002800| 6c 28 20 57 49 4e 44 4f | 57 2a 20 29 3b 0a 58 69 |l( WINDO|W* );.Xi|
|00002810| 6e 74 09 50 44 43 5f 61 | 64 64 77 69 6e 28 20 57 |nt.PDC_a|ddwin( W|
|00002820| 49 4e 44 4f 57 2a 2c 20 | 57 49 4e 44 4f 57 2a 20 |INDOW*, |WINDOW* |
|00002830| 29 3b 0a 58 69 6e 74 09 | 50 44 43 5f 72 6d 77 69 |);.Xint.|PDC_rmwi|
|00002840| 6e 28 20 57 49 4e 44 4f | 57 2a 20 29 3b 0a 58 57 |n( WINDO|W* );.XW|
|00002850| 49 4e 44 53 2a 09 50 44 | 43 5f 66 69 6e 64 77 69 |INDS*.PD|C_findwi|
|00002860| 6e 28 20 57 49 4e 44 4f | 57 2a 20 29 3b 0a 58 23 |n( WINDO|W* );.X#|
|00002870| 65 6e 64 69 66 0a 58 23 | 20 20 69 66 64 65 66 20 |endif.X#| ifdef |
|00002880| 20 43 50 4c 55 53 50 4c | 55 53 0a 58 20 20 20 20 | CPLUSPL|US.X |
|00002890| 20 7d 0a 58 23 20 20 65 | 6e 64 69 66 0a 58 23 65 | }.X# e|ndif.X#e|
|000028a0| 6e 64 69 66 0a 58 0a 58 | 23 64 65 66 69 6e 65 20 |ndif.X.X|#define |
|000028b0| 4d 41 58 5f 41 54 52 54 | 41 42 20 20 20 20 32 37 |MAX_ATRT|AB 27|
|000028c0| 32 0a 58 0a 58 2f 2a 20 | 69 6e 74 65 72 6e 61 6c |2.X.X/* |internal|
|000028d0| 20 6d 61 63 72 6f 73 20 | 66 6f 72 20 61 74 74 72 | macros |for attr|
|000028e0| 69 62 75 74 65 73 20 2a | 2f 0a 58 23 64 65 66 69 |ibutes *|/.X#defi|
|000028f0| 6e 65 20 63 68 74 79 70 | 65 5f 61 74 74 72 28 63 |ne chtyp|e_attr(c|
|00002900| 68 29 20 20 28 28 61 74 | 72 74 61 62 5b 28 28 63 |h) ((at|rtab[((c|
|00002910| 68 20 3e 3e 20 38 29 20 | 26 20 30 78 46 46 29 5d |h >> 8) |& 0xFF)]|
|00002920| 20 3c 3c 20 38 29 20 26 | 20 41 5f 41 54 54 52 49 | << 8) &| A_ATTRI|
|00002930| 42 55 54 45 53 29 0a 58 | 23 64 65 66 69 6e 65 20 |BUTES).X|#define |
|00002940| 70 68 79 73 5f 61 74 74 | 72 28 63 68 29 20 20 20 |phys_att|r(ch) |
|00002950| 20 28 61 74 72 74 61 62 | 5b 28 28 63 68 20 3e 3e | (atrtab|[((ch >>|
|00002960| 20 38 29 20 26 20 30 78 | 46 46 29 5d 29 0a 58 0a | 8) & 0x|FF)]).X.|
|00002970| 58 23 65 6e 64 69 66 20 | 2f 2a 20 5f 5f 43 55 52 |X#endif |/* __CUR|
|00002980| 53 45 53 5f 49 4e 54 45 | 52 4e 41 4c 53 5f 5f 2a |SES_INTE|RNALS__*|
|00002990| 2f 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 20 20 |/.END_OF|_FILE. |
|000029a0| 69 66 20 74 65 73 74 20 | 39 31 33 31 20 2d 6e 65 |if test |9131 -ne|
|000029b0| 20 60 77 63 20 2d 63 20 | 3c 27 63 75 72 73 70 72 | `wc -c |<'curspr|
|000029c0| 69 76 2e 68 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |iv.h'`; |then. |
|000029d0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 63 | echo sh|ar: \"'c|
|000029e0| 75 72 73 70 72 69 76 2e | 68 27 5c 22 20 75 6e 70 |urspriv.|h'\" unp|
|000029f0| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00002a00| 20 73 69 7a 65 21 0a 20 | 20 66 69 0a 20 20 23 20 | size!. | fi. # |
|00002a10| 65 6e 64 20 6f 66 20 27 | 63 75 72 73 70 72 69 76 |end of '|curspriv|
|00002a20| 2e 68 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |.h'.fi.i|f test -|
|00002a30| 66 20 27 64 65 6d 6f 73 | 2f 74 65 73 74 63 75 72 |f 'demos|/testcur|
|00002a40| 73 2e 63 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |s.c' -a |"${1}" !|
|00002a50| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|00002a60| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00002a70| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|00002a80| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 64 65 |sting fi|le \"'de|
|00002a90| 6d 6f 73 2f 74 65 73 74 | 63 75 72 73 2e 63 27 5c |mos/test|curs.c'\|
|00002aa0| 22 0a 65 6c 73 65 0a 20 | 20 65 63 68 6f 20 73 68 |".else. | echo sh|
|00002ab0| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00002ac0| 22 27 64 65 6d 6f 73 2f | 74 65 73 74 63 75 72 73 |"'demos/|testcurs|
|00002ad0| 2e 63 27 5c 22 20 5c 28 | 39 31 36 39 20 63 68 61 |.c'\" \(|9169 cha|
|00002ae0| 72 61 63 74 65 72 73 5c | 29 0a 20 20 73 65 64 20 |racters\|). sed |
|00002af0| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 64 65 6d 6f 73 |"s/^X//"| >'demos|
|00002b00| 2f 74 65 73 74 63 75 72 | 73 2e 63 27 20 3c 3c 27 |/testcur|s.c' <<'|
|00002b10| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 2f 2a |END_OF_F|ILE'.X/*|
|00002b20| 0a 58 20 2a 0a 58 20 2a | 20 54 68 69 73 20 69 73 |.X *.X *| This is|
|00002b30| 20 61 20 74 65 73 74 20 | 70 72 6f 67 72 61 6d 20 | a test |program |
|00002b40| 66 6f 72 20 74 68 65 20 | 50 44 43 75 72 73 65 73 |for the |PDCurses|
|00002b50| 20 73 63 72 65 65 6e 20 | 70 61 63 6b 61 67 65 20 | screen |package |
|00002b60| 66 6f 72 20 49 42 4d 20 | 50 43 20 74 79 70 65 0a |for IBM |PC type.|
|00002b70| 58 20 2a 20 6d 61 63 68 | 69 6e 65 73 2e 0a 58 20 |X * mach|ines..X |
|00002b80| 2a 20 54 68 69 73 20 70 | 72 6f 67 72 61 6d 20 77 |* This p|rogram w|
|00002b90| 61 73 20 77 72 69 74 74 | 65 6e 20 62 79 20 4a 6f |as writt|en by Jo|
|00002ba0| 68 6e 20 42 75 72 6e 65 | 6c 6c 20 28 6a 6f 68 6e |hn Burne|ll (john|
|00002bb0| 62 40 6b 65 61 2e 61 6d | 2e 64 73 69 72 2e 67 6f |b@kea.am|.dsir.go|
|00002bc0| 76 74 2e 6e 7a 29 0a 58 | 20 2a 20 54 6f 20 63 6f |vt.nz).X| * To co|
|00002bd0| 6d 70 69 6c 65 20 74 68 | 69 73 20 70 72 6f 67 72 |mpile th|is progr|
|00002be0| 61 6d 20 77 69 74 68 20 | 79 6f 75 72 20 63 6f 6d |am with |your com|
|00002bf0| 70 69 6c 65 72 20 64 65 | 66 69 6e 65 20 6f 72 20 |piler de|fine or |
|00002c00| 6c 65 61 76 65 20 75 6e | 64 65 66 69 6e 65 64 0a |leave un|defined.|
|00002c10| 58 20 2a 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |X * the |followin|
|00002c20| 67 20 70 72 65 70 72 6f | 63 65 73 73 6f 72 20 6d |g prepro|cessor m|
|00002c30| 61 63 72 6f 73 3a 0a 58 | 20 2a 20 50 52 4f 54 4f |acros:.X| * PROTO|
|00002c40| 20 2d 20 64 65 66 69 6e | 65 20 69 66 20 79 6f 75 | - defin|e if you|
|00002c50| 72 20 63 6f 6d 70 69 6c | 65 72 20 61 63 63 65 70 |r compil|er accep|
|00002c60| 74 73 20 73 74 61 6e 64 | 61 72 64 20 41 4e 53 49 |ts stand|ard ANSI|
|00002c70| 2d 43 20 66 75 6e 63 74 | 69 6f 6e 20 70 72 6f 74 |-C funct|ion prot|
|00002c80| 6f 74 79 70 65 73 0a 58 | 20 2a 20 43 4f 4c 4f 52 |otypes.X| * COLOR|
|00002c90| 5f 43 55 52 53 45 53 20 | 2d 20 64 65 66 69 6e 65 |_CURSES |- define|
|00002ca0| 20 69 66 20 79 6f 75 72 | 20 63 75 72 73 65 73 20 | if your| curses |
|00002cb0| 6c 69 62 72 61 72 79 20 | 68 61 73 20 63 6f 6c 6f |library |has colo|
|00002cc0| 72 20 73 75 70 70 6f 72 | 74 0a 58 20 2a 0a 58 20 |r suppor|t.X *.X |
|00002cd0| 2a 2f 0a 58 23 64 65 66 | 69 6e 65 20 50 52 4f 54 |*/.X#def|ine PROT|
|00002ce0| 4f 0a 58 23 64 65 66 69 | 6e 65 20 43 4f 4c 4f 52 |O.X#defi|ne COLOR|
|00002cf0| 5f 43 55 52 53 45 53 0a | 58 0a 58 23 69 6e 63 6c |_CURSES.|X.X#incl|
|00002d00| 75 64 65 20 3c 73 74 64 | 69 6f 2e 68 3e 0a 58 23 |ude <std|io.h>.X#|
|00002d10| 69 6e 63 6c 75 64 65 20 | 3c 63 75 72 73 65 73 2e |include |<curses.|
|00002d20| 68 3e 0a 58 0a 58 23 69 | 66 64 65 66 20 50 52 4f |h>.X.X#i|fdef PRO|
|00002d30| 54 4f 0a 58 76 6f 69 64 | 20 69 6e 70 75 74 54 65 |TO.Xvoid| inputTe|
|00002d40| 73 74 20 28 57 49 4e 44 | 4f 57 20 2a 77 69 6e 29 |st (WIND|OW *win)|
|00002d50| 3b 0a 58 76 6f 69 64 20 | 73 63 72 6f 6c 6c 54 65 |;.Xvoid |scrollTe|
|00002d60| 73 74 20 28 57 49 4e 44 | 4f 57 20 2a 77 69 6e 2c |st (WIND|OW *win,|
|00002d70| 20 69 6e 74 20 68 65 69 | 67 68 74 2c 20 69 6e 74 | int hei|ght, int|
|00002d80| 20 77 69 64 74 68 29 3b | 0a 58 69 6e 74 20 69 6e | width);|.Xint in|
|00002d90| 74 72 6f 54 65 73 74 20 | 28 57 49 4e 44 4f 57 20 |troTest |(WINDOW |
|00002da0| 2a 77 69 6e 29 3b 0a 58 | 69 6e 74 20 69 6e 69 74 |*win);.X|int init|
|00002db0| 54 65 73 74 20 28 57 49 | 4e 44 4f 57 20 2a 2a 77 |Test (WI|NDOW **w|
|00002dc0| 69 6e 2c 20 69 6e 74 20 | 2a 68 65 69 67 68 74 2c |in, int |*height,|
|00002dd0| 20 69 6e 74 20 2a 77 69 | 64 74 68 29 3b 0a 58 76 | int *wi|dth);.Xv|
|00002de0| 6f 69 64 20 6f 75 74 70 | 75 74 54 65 73 74 20 28 |oid outp|utTest (|
|00002df0| 57 49 4e 44 4f 57 20 2a | 77 69 6e 29 3b 0a 58 76 |WINDOW *|win);.Xv|
|00002e00| 6f 69 64 20 70 61 64 54 | 65 73 74 20 28 76 6f 69 |oid padT|est (voi|
|00002e10| 64 29 3b 0a 58 76 6f 69 | 64 20 72 65 73 69 7a 65 |d);.Xvoi|d resize|
|00002e20| 54 65 73 74 20 28 76 6f | 69 64 29 3b 0a 58 23 65 |Test (vo|id);.X#e|
|00002e30| 6c 73 65 0a 58 76 6f 69 | 64 20 69 6e 70 75 74 54 |lse.Xvoi|d inputT|
|00002e40| 65 73 74 20 28 29 3b 0a | 58 76 6f 69 64 20 73 63 |est ();.|Xvoid sc|
|00002e50| 72 6f 6c 6c 54 65 73 74 | 20 28 29 3b 0a 58 69 6e |rollTest| ();.Xin|
|00002e60| 74 20 69 6e 74 72 6f 54 | 65 73 74 20 28 29 3b 0a |t introT|est ();.|
|00002e70| 58 69 6e 74 20 69 6e 69 | 74 54 65 73 74 20 28 29 |Xint ini|tTest ()|
|00002e80| 3b 0a 58 76 6f 69 64 20 | 6f 75 74 70 75 74 54 65 |;.Xvoid |outputTe|
|00002e90| 73 74 20 28 29 3b 0a 58 | 76 6f 69 64 20 70 61 64 |st ();.X|void pad|
|00002ea0| 54 65 73 74 20 28 29 3b | 0a 58 76 6f 69 64 20 72 |Test ();|.Xvoid r|
|00002eb0| 65 73 69 7a 65 54 65 73 | 74 20 28 29 3b 0a 58 23 |esizeTes|t ();.X#|
|00002ec0| 65 6e 64 69 66 0a 58 0a | 58 6d 61 69 6e 28 29 0a |endif.X.|Xmain().|
|00002ed0| 58 7b 0a 58 57 49 4e 44 | 4f 57 20 20 2a 77 69 6e |X{.XWIND|OW *win|
|00002ee0| 3b 0a 58 69 6e 74 20 20 | 20 20 20 77 69 64 74 68 |;.Xint | width|
|00002ef0| 2c 20 68 65 69 67 68 74 | 3b 0a 58 0a 58 20 20 20 |, height|;.X.X |
|00002f00| 20 69 66 20 28 21 69 6e | 69 74 54 65 73 74 20 28 | if (!in|itTest (|
|00002f10| 26 77 69 6e 2c 20 26 68 | 65 69 67 68 74 2c 20 26 |&win, &h|eight, &|
|00002f20| 77 69 64 74 68 29 29 20 | 7b 72 65 74 75 72 6e 20 |width)) |{return |
|00002f30| 31 3b 7d 0a 58 0a 58 20 | 20 20 20 70 61 64 54 65 |1;}.X.X | padTe|
|00002f40| 73 74 20 28 29 3b 0a 58 | 0a 58 20 20 20 20 69 6e |st ();.X|.X in|
|00002f50| 74 72 6f 54 65 73 74 20 | 28 77 69 6e 29 3b 0a 58 |troTest |(win);.X|
|00002f60| 0a 58 20 20 20 20 72 65 | 73 69 7a 65 54 65 73 74 |.X re|sizeTest|
|00002f70| 20 28 29 3b 0a 58 0a 58 | 20 20 20 20 73 63 72 6f | ();.X.X| scro|
|00002f80| 6c 6c 54 65 73 74 20 28 | 77 69 6e 2c 20 68 65 69 |llTest (|win, hei|
|00002f90| 67 68 74 2c 20 77 69 64 | 74 68 29 3b 0a 58 0a 58 |ght, wid|th);.X.X|
|00002fa0| 20 20 20 20 69 6e 70 75 | 74 54 65 73 74 20 28 77 | inpu|tTest (w|
|00002fb0| 69 6e 29 3b 0a 58 0a 58 | 20 20 20 20 6f 75 74 70 |in);.X.X| outp|
|00002fc0| 75 74 54 65 73 74 20 28 | 77 69 6e 29 3b 0a 58 0a |utTest (|win);.X.|
|00002fd0| 58 20 20 20 20 64 65 6c | 77 69 6e 20 28 77 69 6e |X del|win (win|
|00002fe0| 29 3b 0a 58 0a 58 20 20 | 20 20 65 6e 64 77 69 6e |);.X.X | endwin|
|00002ff0| 28 29 3b 0a 58 20 20 20 | 20 72 65 74 75 72 6e 20 |();.X | return |
|00003000| 30 3b 0a 58 7d 0a 58 23 | 69 66 64 65 66 20 50 52 |0;.X}.X#|ifdef PR|
|00003010| 4f 54 4f 0a 58 76 6f 69 | 64 20 43 6f 6e 74 69 6e |OTO.Xvoi|d Contin|
|00003020| 75 65 20 28 57 49 4e 44 | 4f 57 20 2a 77 69 6e 29 |ue (WIND|OW *win)|
|00003030| 0a 58 23 65 6c 73 65 0a | 58 76 6f 69 64 20 43 6f |.X#else.|Xvoid Co|
|00003040| 6e 74 69 6e 75 65 20 28 | 77 69 6e 29 0a 58 57 49 |ntinue (|win).XWI|
|00003050| 4e 44 4f 57 20 2a 77 69 | 6e 3b 0a 58 23 65 6e 64 |NDOW *wi|n;.X#end|
|00003060| 69 66 0a 58 7b 0a 58 20 | 20 20 20 77 6d 6f 76 65 |if.X{.X | wmove|
|00003070| 28 77 69 6e 2c 20 31 30 | 2c 20 31 29 3b 0a 58 20 |(win, 10|, 1);.X |
|00003080| 20 20 20 77 63 6c 72 74 | 6f 65 6f 6c 28 77 69 6e | wclrt|oeol(win|
|00003090| 29 3b 0a 58 20 20 20 20 | 6d 76 77 61 64 64 73 74 |);.X |mvwaddst|
|000030a0| 72 28 77 69 6e 2c 20 31 | 30 2c 20 31 2c 20 22 20 |r(win, 1|0, 1, " |
|000030b0| 50 72 65 73 73 20 61 6e | 79 20 6b 65 79 20 74 6f |Press an|y key to|
|000030c0| 20 63 6f 6e 74 69 6e 75 | 65 22 29 3b 0a 58 20 20 | continu|e");.X |
|000030d0| 20 20 77 72 65 66 72 65 | 73 68 28 77 69 6e 29 3b | wrefre|sh(win);|
|000030e0| 0a 58 20 20 20 20 72 61 | 77 28 29 3b 0a 58 20 20 |.X ra|w();.X |
|000030f0| 20 20 77 67 65 74 63 68 | 28 77 69 6e 29 3b 0a 58 | wgetch|(win);.X|
|00003100| 7d 0a 58 23 69 66 64 65 | 66 20 50 52 4f 54 4f 0a |}.X#ifde|f PROTO.|
|00003110| 58 69 6e 74 20 69 6e 69 | 74 54 65 73 74 20 28 57 |Xint ini|tTest (W|
|00003120| 49 4e 44 4f 57 20 2a 2a | 77 69 6e 2c 20 69 6e 74 |INDOW **|win, int|
|00003130| 20 2a 68 65 69 67 68 74 | 2c 20 69 6e 74 20 2a 77 | *height|, int *w|
|00003140| 69 64 74 68 29 0a 58 23 | 65 6c 73 65 0a 58 69 6e |idth).X#|else.Xin|
|00003150| 74 20 69 6e 69 74 54 65 | 73 74 20 28 77 69 6e 2c |t initTe|st (win,|
|00003160| 20 68 65 69 67 68 74 2c | 20 77 69 64 74 68 29 0a | height,| width).|
|00003170| 58 57 49 4e 44 4f 57 20 | 2a 2a 77 69 6e 3b 0a 58 |XWINDOW |**win;.X|
|00003180| 69 6e 74 20 2a 68 65 69 | 67 68 74 3b 0a 58 69 6e |int *hei|ght;.Xin|
|00003190| 74 20 2a 77 69 64 74 68 | 3b 0a 58 23 65 6e 64 69 |t *width|;.X#endi|
|000031a0| 66 0a 58 7b 0a 58 20 20 | 20 20 69 6e 69 74 73 63 |f.X{.X | initsc|
|000031b0| 72 28 29 3b 0a 58 23 69 | 66 64 65 66 20 43 4f 4c |r();.X#i|fdef COL|
|000031c0| 4f 52 5f 43 55 52 53 45 | 53 0a 58 20 20 20 20 69 |OR_CURSE|S.X i|
|000031d0| 66 20 28 68 61 73 5f 63 | 6f 6c 6f 72 73 28 29 29 |f (has_c|olors())|
|000031e0| 0a 58 20 20 20 20 20 20 | 20 73 74 61 72 74 5f 63 |.X | start_c|
|000031f0| 6f 6c 6f 72 28 29 3b 0a | 58 23 65 6e 64 69 66 0a |olor();.|X#endif.|
|00003200| 58 20 20 20 20 2a 77 69 | 64 74 68 20 20 3d 20 36 |X *wi|dth = 6|
|00003210| 30 3b 0a 58 20 20 20 20 | 2a 68 65 69 67 68 74 20 |0;.X |*height |
|00003220| 3d 20 31 33 3b 20 20 20 | 20 20 20 20 20 20 20 20 |= 13; | |
|00003230| 20 20 20 20 20 2f 2a 20 | 43 72 65 61 74 65 20 61 | /* |Create a|
|00003240| 20 64 72 61 77 69 6e 67 | 20 77 69 6e 64 6f 77 20 | drawing| window |
|00003250| 2a 2f 0a 58 20 20 20 20 | 2a 77 69 6e 20 3d 20 6e |*/.X |*win = n|
|00003260| 65 77 77 69 6e 28 2a 68 | 65 69 67 68 74 2c 20 2a |ewwin(*h|eight, *|
|00003270| 77 69 64 74 68 2c 20 28 | 4c 49 4e 45 53 2d 2a 68 |width, (|LINES-*h|
|00003280| 65 69 67 68 74 29 2f 32 | 2c 20 28 43 4f 4c 53 2d |eight)/2|, (COLS-|
|00003290| 2a 77 69 64 74 68 29 2f | 32 29 3b 0a 58 20 20 20 |*width)/|2);.X |
|000032a0| 20 69 66 28 2a 77 69 6e | 20 3d 3d 20 4e 55 4c 4c | if(*win| == NULL|
|000032b0| 29 0a 58 20 20 20 20 7b | 20 20 20 65 6e 64 77 69 |).X {| endwi|
|000032c0| 6e 28 29 3b 0a 58 20 20 | 20 20 20 20 20 20 72 65 |n();.X | re|
|000032d0| 74 75 72 6e 20 31 3b 0a | 58 20 20 20 20 7d 0a 58 |turn 1;.|X }.X|
|000032e0| 7d 0a 58 23 69 66 64 65 | 66 20 50 52 4f 54 4f 0a |}.X#ifde|f PROTO.|
|000032f0| 58 69 6e 74 20 69 6e 74 | 72 6f 54 65 73 74 20 28 |Xint int|roTest (|
|00003300| 57 49 4e 44 4f 57 20 2a | 77 69 6e 29 0a 58 23 65 |WINDOW *|win).X#e|
|00003310| 6c 73 65 0a 58 69 6e 74 | 20 69 6e 74 72 6f 54 65 |lse.Xint| introTe|
|00003320| 73 74 20 28 77 69 6e 29 | 0a 58 57 49 4e 44 4f 57 |st (win)|.XWINDOW|
|00003330| 20 2a 77 69 6e 3b 0a 58 | 23 65 6e 64 69 66 0a 58 | *win;.X|#endif.X|
|00003340| 7b 0a 58 20 20 20 20 62 | 65 65 70 20 28 29 3b 0a |{.X b|eep ();.|
|00003350| 58 23 69 66 64 65 66 20 | 43 4f 4c 4f 52 5f 43 55 |X#ifdef |COLOR_CU|
|00003360| 52 53 45 53 0a 58 20 20 | 20 20 69 66 20 28 68 61 |RSES.X | if (ha|
|00003370| 73 5f 63 6f 6c 6f 72 73 | 28 29 29 0a 58 20 20 20 |s_colors|()).X |
|00003380| 20 20 20 20 69 6e 69 74 | 5f 70 61 69 72 28 31 2c | init|_pair(1,|
|00003390| 43 4f 4c 4f 52 5f 57 48 | 49 54 45 2c 43 4f 4c 4f |COLOR_WH|ITE,COLO|
|000033a0| 52 5f 42 4c 55 45 29 3b | 0a 58 20 20 20 20 77 61 |R_BLUE);|.X wa|
|000033b0| 74 74 72 73 65 74 28 77 | 69 6e 2c 20 43 4f 4c 4f |ttrset(w|in, COLO|
|000033c0| 52 5f 50 41 49 52 28 31 | 29 29 3b 0a 58 23 65 6c |R_PAIR(1|));.X#el|
|000033d0| 73 65 0a 58 20 20 20 20 | 77 61 74 74 72 73 65 74 |se.X |wattrset|
|000033e0| 28 77 69 6e 2c 20 41 5f | 52 45 56 45 52 53 45 29 |(win, A_|REVERSE)|
|000033f0| 3b 0a 58 23 65 6e 64 69 | 66 0a 58 20 20 20 20 77 |;.X#endi|f.X w|
|00003400| 65 72 61 73 65 28 77 69 | 6e 29 3b 0a 58 0a 58 20 |erase(wi|n);.X.X |
|00003410| 20 20 20 62 6f 78 28 77 | 69 6e 2c 20 30 78 62 61 | box(w|in, 0xba|
|00003420| 2c 20 30 78 63 64 29 3b | 0a 58 20 20 20 20 77 72 |, 0xcd);|.X wr|
|00003430| 65 66 72 65 73 68 28 77 | 69 6e 29 3b 0a 58 20 20 |efresh(w|in);.X |
|00003440| 20 20 63 62 72 65 61 6b | 20 28 29 3b 0a 58 20 20 | cbreak| ();.X |
|00003450| 20 20 6d 76 77 61 64 64 | 73 74 72 28 77 69 6e 2c | mvwadd|str(win,|
|00003460| 20 31 2c 20 31 2c 20 22 | 59 6f 75 20 73 68 6f 75 | 1, 1, "|You shou|
|00003470| 6c 64 20 68 61 76 65 20 | 72 65 63 74 61 6e 67 6c |ld have |rectangl|
|00003480| 65 20 69 6e 20 74 68 65 | 20 6d 69 64 64 6c 65 20 |e in the| middle |
|00003490| 6f 66 20 74 68 65 20 73 | 63 72 65 65 6e 22 29 3b |of the s|creen");|
|000034a0| 0a 58 20 20 20 20 6d 76 | 77 61 64 64 73 74 72 28 |.X mv|waddstr(|
|000034b0| 77 69 6e 2c 20 32 2c 20 | 31 2c 20 22 59 6f 75 20 |win, 2, |1, "You |
|000034c0| 73 68 6f 75 6c 64 20 68 | 61 76 65 20 68 65 61 72 |should h|ave hear|
|000034d0| 64 20 61 20 62 65 65 70 | 22 29 3b 0a 58 20 20 20 |d a beep|");.X |
|000034e0| 20 43 6f 6e 74 69 6e 75 | 65 28 77 69 6e 29 3b 0a | Continu|e(win);.|
|000034f0| 58 20 20 20 20 72 65 74 | 75 72 6e 20 31 3b 0a 58 |X ret|urn 1;.X|
|00003500| 7d 0a 58 23 69 66 64 65 | 66 20 50 52 4f 54 4f 0a |}.X#ifde|f PROTO.|
|00003510| 58 76 6f 69 64 20 73 63 | 72 6f 6c 6c 54 65 73 74 |Xvoid sc|rollTest|
|00003520| 20 28 57 49 4e 44 4f 57 | 20 2a 77 69 6e 2c 20 69 | (WINDOW| *win, i|
|00003530| 6e 74 20 68 65 69 67 68 | 74 2c 20 69 6e 74 20 77 |nt heigh|t, int w|
|00003540| 69 64 74 68 29 0a 58 23 | 65 6c 73 65 0a 58 76 6f |idth).X#|else.Xvo|
|00003550| 69 64 20 73 63 72 6f 6c | 6c 54 65 73 74 20 28 77 |id scrol|lTest (w|
|00003560| 69 6e 2c 20 68 65 69 67 | 68 74 2c 20 77 69 64 74 |in, heig|ht, widt|
|00003570| 68 29 0a 58 57 49 4e 44 | 4f 57 20 2a 77 69 6e 3b |h).XWIND|OW *win;|
|00003580| 0a 58 69 6e 74 20 68 65 | 69 67 68 74 2c 77 69 64 |.Xint he|ight,wid|
|00003590| 74 68 3b 0a 58 23 65 6e | 64 69 66 0a 58 7b 0a 58 |th;.X#en|dif.X{.X|
|000035a0| 20 20 20 20 69 6e 74 20 | 69 3b 0a 58 20 20 20 20 | int |i;.X |
|000035b0| 69 6e 74 20 4f 6c 64 58 | 2c 20 4f 6c 64 59 3b 0a |int OldX|, OldY;.|
|000035c0| 58 20 20 20 20 63 68 61 | 72 20 2a 4d 65 73 73 61 |X cha|r *Messa|
|000035d0| 67 65 20 3d 20 22 54 68 | 65 20 77 69 6e 64 6f 77 |ge = "Th|e window|
|000035e0| 20 77 69 6c 6c 20 6e 6f | 77 20 73 63 72 6f 6c 6c | will no|w scroll|
|000035f0| 20 73 6c 6f 77 6c 79 22 | 3b 0a 58 0a 58 20 20 20 | slowly"|;.X.X |
|00003600| 20 6d 76 77 70 72 69 6e | 74 77 20 28 77 69 6e 2c | mvwprin|tw (win,|
|00003610| 20 68 65 69 67 68 74 20 | 2d 20 32 2c 20 31 2c 20 | height |- 2, 1, |
|00003620| 4d 65 73 73 61 67 65 29 | 3b 0a 58 20 20 20 20 77 |Message)|;.X w|
|00003630| 72 65 66 72 65 73 68 20 | 28 77 69 6e 29 3b 0a 58 |refresh |(win);.X|
|00003640| 20 20 20 20 73 63 72 6f | 6c 6c 6f 6b 28 77 69 6e | scro|llok(win|
|00003650| 2c 20 54 52 55 45 29 3b | 0a 58 20 20 20 20 66 6f |, TRUE);|.X fo|
|00003660| 72 20 28 69 20 3d 20 31 | 3b 20 69 20 3c 3d 20 68 |r (i = 1|; i <= h|
|00003670| 65 69 67 68 74 3b 20 69 | 2b 2b 29 20 7b 0a 58 20 |eight; i|++) {.X |
|00003680| 20 20 20 20 20 64 65 6c | 61 79 5f 6f 75 74 70 75 | del|ay_outpu|
|00003690| 74 20 28 32 35 30 29 3b | 0a 58 20 20 20 20 20 20 |t (250);|.X |
|000036a0| 73 63 72 6f 6c 6c 28 77 | 69 6e 29 3b 0a 58 20 20 |scroll(w|in);.X |
|000036b0| 20 20 20 20 77 72 65 66 | 72 65 73 68 20 28 77 69 | wref|resh (wi|
|000036c0| 6e 29 3b 0a 58 20 20 20 | 20 7d 3b 0a 58 0a 58 20 |n);.X | };.X.X |
|000036d0| 20 20 20 67 65 74 6d 61 | 78 79 78 20 28 77 69 6e | getma|xyx (win|
|000036e0| 2c 20 4f 6c 64 59 2c 20 | 4f 6c 64 58 29 3b 0a 58 |, OldY, |OldX);.X|
|000036f0| 20 20 20 20 6d 76 77 70 | 72 69 6e 74 77 20 28 77 | mvwp|rintw (w|
|00003700| 69 6e 2c 20 36 2c 20 31 | 2c 20 22 54 68 65 20 74 |in, 6, 1|, "The t|
|00003710| 6f 70 20 6f 66 20 74 68 | 65 20 77 69 6e 64 6f 77 |op of th|e window|
|00003720| 20 77 69 6c 6c 20 73 63 | 72 6f 6c 6c 22 29 3b 0a | will sc|roll");.|
|00003730| 58 20 20 20 20 77 6d 6f | 76 65 20 28 77 69 6e 2c |X wmo|ve (win,|
|00003740| 20 31 2c 20 31 29 3b 0a | 58 20 20 20 20 77 73 65 | 1, 1);.|X wse|
|00003750| 74 73 63 72 72 65 67 20 | 28 77 69 6e 2c 20 30 2c |tscrreg |(win, 0,|
|00003760| 20 34 29 3b 0a 58 20 20 | 20 20 62 6f 78 28 77 69 | 4);.X | box(wi|
|00003770| 6e 2c 20 30 78 62 61 2c | 20 30 78 63 64 29 3b 0a |n, 0xba,| 0xcd);.|
|00003780| 58 20 20 20 20 77 72 65 | 66 72 65 73 68 20 28 77 |X wre|fresh (w|
|00003790| 69 6e 29 3b 0a 58 20 20 | 20 20 66 6f 72 20 28 69 |in);.X | for (i|
|000037a0| 20 3d 20 31 3b 20 69 20 | 3c 3d 20 35 3b 20 69 2b | = 1; i |<= 5; i+|
|000037b0| 2b 29 20 7b 0a 58 20 20 | 20 20 20 20 64 65 6c 61 |+) {.X | dela|
|000037c0| 79 5f 6f 75 74 70 75 74 | 20 28 35 30 30 29 3b 0a |y_output| (500);.|
|000037d0| 58 20 20 20 20 20 20 73 | 63 72 6f 6c 6c 28 77 69 |X s|croll(wi|
|000037e0| 6e 29 3b 0a 58 20 20 20 | 20 20 20 77 72 65 66 72 |n);.X | wrefr|
|000037f0| 65 73 68 20 28 77 69 6e | 29 3b 0a 58 20 20 20 20 |esh (win|);.X |
|00003800| 7d 3b 0a 58 20 20 20 20 | 77 73 65 74 73 63 72 72 |};.X |wsetscrr|
|00003810| 65 67 20 28 77 69 6e 2c | 20 30 2c 20 2d 2d 4f 6c |eg (win,| 0, --Ol|
|00003820| 64 59 29 3b 0a 58 0a 58 | 7d 0a 58 23 69 66 64 65 |dY);.X.X|}.X#ifde|
|00003830| 66 20 50 52 4f 54 4f 0a | 58 76 6f 69 64 20 69 6e |f PROTO.|Xvoid in|
|00003840| 70 75 74 54 65 73 74 20 | 28 57 49 4e 44 4f 57 20 |putTest |(WINDOW |
|00003850| 2a 77 69 6e 29 0a 58 23 | 65 6c 73 65 0a 58 76 6f |*win).X#|else.Xvo|
|00003860| 69 64 20 69 6e 70 75 74 | 54 65 73 74 20 28 77 69 |id input|Test (wi|
|00003870| 6e 29 0a 58 57 49 4e 44 | 4f 57 20 2a 77 69 6e 3b |n).XWIND|OW *win;|
|00003880| 0a 58 23 65 6e 64 69 66 | 0a 58 7b 0a 58 20 20 20 |.X#endif|.X{.X |
|00003890| 20 69 6e 74 20 77 2c 20 | 68 2c 20 62 78 2c 20 62 | int w, |h, bx, b|
|000038a0| 79 2c 20 73 77 2c 20 73 | 68 2c 20 69 2c 20 63 3b |y, sw, s|h, i, c;|
|000038b0| 0a 58 20 20 20 20 63 68 | 61 72 20 62 75 66 66 65 |.X ch|ar buffe|
|000038c0| 72 20 5b 38 30 5d 3b 0a | 58 20 20 20 20 57 49 4e |r [80];.|X WIN|
|000038d0| 44 4f 57 20 2a 73 75 62 | 57 69 6e 3b 0a 58 20 20 |DOW *sub|Win;.X |
|000038e0| 20 20 77 63 6c 65 61 72 | 20 28 77 69 6e 29 3b 0a | wclear| (win);.|
|000038f0| 58 0a 58 20 20 20 20 77 | 20 20 3d 20 77 69 6e 2d |X.X w| = win-|
|00003900| 3e 5f 6d 61 78 78 3b 0a | 58 20 20 20 20 68 20 20 |>_maxx;.|X h |
|00003910| 3d 20 77 69 6e 2d 3e 5f | 6d 61 78 79 3b 0a 58 20 |= win->_|maxy;.X |
|00003920| 20 20 20 62 78 20 3d 20 | 77 69 6e 2d 3e 5f 62 65 | bx = |win->_be|
|00003930| 67 78 3b 0a 58 20 20 20 | 20 62 79 20 3d 20 77 69 |gx;.X | by = wi|
|00003940| 6e 2d 3e 5f 62 65 67 79 | 3b 0a 58 20 20 20 20 73 |n->_begy|;.X s|
|00003950| 77 20 3d 20 77 20 2f 20 | 33 3b 0a 58 20 20 20 20 |w = w / |3;.X |
|00003960| 73 68 20 3d 20 68 20 2f | 20 33 3b 0a 58 20 20 20 |sh = h /| 3;.X |
|00003970| 20 69 66 28 28 73 75 62 | 57 69 6e 20 3d 20 73 75 | if((sub|Win = su|
|00003980| 62 77 69 6e 28 77 69 6e | 2c 20 73 68 2c 20 73 77 |bwin(win|, sh, sw|
|00003990| 2c 20 62 79 20 2b 20 68 | 20 2d 20 73 68 20 2d 20 |, by + h| - sh - |
|000039a0| 32 2c 20 62 78 20 2b 20 | 77 20 2d 20 73 77 20 2d |2, bx + |w - sw -|
|000039b0| 20 32 29 29 20 3d 3d 20 | 4e 55 4c 4c 29 0a 58 20 | 2)) == |NULL).X |
|000039c0| 20 20 20 20 20 20 20 72 | 65 74 75 72 6e 3b 0a 58 | r|eturn;.X|
|000039d0| 0a 58 23 69 66 64 65 66 | 20 43 4f 4c 4f 52 5f 43 |.X#ifdef| COLOR_C|
|000039e0| 55 52 53 45 53 0a 58 20 | 20 20 20 69 66 20 28 68 |URSES.X | if (h|
|000039f0| 61 73 5f 63 6f 6c 6f 72 | 73 28 29 29 0a 58 20 20 |as_color|s()).X |
|00003a00| 20 20 20 20 20 69 6e 69 | 74 5f 70 61 69 72 28 32 | ini|t_pair(2|
|00003a10| 2c 43 4f 4c 4f 52 5f 43 | 59 41 4e 2c 43 4f 4c 4f |,COLOR_C|YAN,COLO|
|00003a20| 52 5f 42 4c 55 45 29 3b | 0a 58 20 20 20 20 77 61 |R_BLUE);|.X wa|
|00003a30| 74 74 72 73 65 74 28 73 | 75 62 57 69 6e 2c 20 43 |ttrset(s|ubWin, C|
|00003a40| 4f 4c 4f 52 5f 50 41 49 | 52 28 32 29 20 7c 20 41 |OLOR_PAI|R(2) | A|
|00003a50| 5f 42 4f 4c 44 29 3b 0a | 58 23 65 6c 73 65 0a 58 |_BOLD);.|X#else.X|
|00003a60| 20 20 20 20 77 61 74 74 | 72 73 65 74 28 73 75 62 | watt|rset(sub|
|00003a70| 57 69 6e 2c 20 41 5f 42 | 4f 4c 44 29 3b 0a 58 23 |Win, A_B|OLD);.X#|
|00003a80| 65 6e 64 69 66 0a 58 20 | 20 20 20 62 6f 78 28 73 |endif.X | box(s|
|00003a90| 75 62 57 69 6e 2c 20 30 | 78 62 61 2c 20 30 78 63 |ubWin, 0|xba, 0xc|
|00003aa0| 64 29 3b 0a 58 20 20 20 | 20 77 72 65 66 72 65 73 |d);.X | wrefres|
|00003ab0| 68 28 77 69 6e 29 3b 0a | 58 0a 58 20 20 20 20 6e |h(win);.|X.X n|
|00003ac0| 6f 63 62 72 65 61 6b 28 | 29 3b 0a 58 20 20 20 20 |ocbreak(|);.X |
|00003ad0| 6d 76 77 61 64 64 73 74 | 72 28 77 69 6e 2c 20 32 |mvwaddst|r(win, 2|
|00003ae0| 2c 20 31 2c 20 22 50 72 | 65 73 73 20 73 6f 6d 65 |, 1, "Pr|ess some|
|00003af0| 20 6b 65 79 73 20 66 6f | 72 20 35 20 73 65 63 6f | keys fo|r 5 seco|
|00003b00| 6e 64 73 22 29 3b 0a 58 | 20 20 20 20 6d 76 77 61 |nds");.X| mvwa|
|00003b10| 64 64 73 74 72 28 77 69 | 6e 2c 20 31 2c 20 31 2c |ddstr(wi|n, 1, 1,|
|00003b20| 20 22 50 72 65 73 73 69 | 6e 67 20 5e 43 20 73 68 | "Pressi|ng ^C sh|
|00003b30| 6f 75 6c 64 20 64 6f 20 | 6e 6f 74 68 69 6e 67 22 |ould do |nothing"|
|00003b40| 29 3b 0a 58 20 20 20 20 | 77 72 65 66 72 65 73 68 |);.X |wrefresh|
|00003b50| 28 77 69 6e 29 3b 0a 58 | 0a 58 20 20 20 20 66 6f |(win);.X|.X fo|
|00003b60| 72 20 28 69 20 3d 20 30 | 3b 20 69 20 3c 20 35 3b |r (i = 0|; i < 5;|
|00003b70| 20 69 2b 2b 29 20 7b 0a | 58 20 20 20 20 20 20 77 | i++) {.|X w|
|00003b80| 65 72 61 73 65 20 28 73 | 75 62 57 69 6e 29 3b 0a |erase (s|ubWin);.|
|00003b90| 58 20 20 20 20 20 20 62 | 6f 78 28 73 75 62 57 69 |X b|ox(subWi|
|00003ba0| 6e 2c 20 30 78 62 61 2c | 20 30 78 63 64 29 3b 0a |n, 0xba,| 0xcd);.|
|00003bb0| 58 20 20 20 20 20 20 6d | 76 77 70 72 69 6e 74 77 |X m|vwprintw|
|00003bc0| 20 28 73 75 62 57 69 6e | 2c 20 31 2c 20 31 2c 20 | (subWin|, 1, 1, |
|00003bd0| 22 54 69 6d 65 20 3d 20 | 25 64 22 2c 20 69 29 3b |"Time = |%d", i);|
|00003be0| 0a 58 20 20 20 20 20 20 | 77 72 65 66 72 65 73 68 |.X |wrefresh|
|00003bf0| 28 73 75 62 57 69 6e 29 | 3b 0a 58 20 20 20 20 20 |(subWin)|;.X |
|00003c00| 20 64 65 6c 61 79 5f 6f | 75 74 70 75 74 28 31 30 | delay_o|utput(10|
|00003c10| 30 30 29 3b 0a 58 20 20 | 20 20 20 20 66 6c 75 73 |00);.X | flus|
|00003c20| 68 69 6e 70 28 29 3b 0a | 58 20 20 20 20 7d 0a 58 |hinp();.|X }.X|
|00003c30| 0a 58 20 20 20 20 64 65 | 6c 77 69 6e 20 28 73 75 |.X de|lwin (su|
|00003c40| 62 57 69 6e 29 3b 0a 58 | 20 20 20 20 77 65 72 61 |bWin);.X| wera|
|00003c50| 73 65 28 77 69 6e 29 3b | 0a 58 20 20 20 20 66 6c |se(win);|.X fl|
|00003c60| 61 73 68 28 29 3b 0a 58 | 20 20 20 20 77 72 65 66 |ash();.X| wref|
|00003c70| 72 65 73 68 28 77 69 6e | 29 3b 0a 58 20 20 20 20 |resh(win|);.X |
|00003c80| 64 65 6c 61 79 5f 6f 75 | 74 70 75 74 28 35 30 30 |delay_ou|tput(500|
|00003c90| 29 3b 0a 58 0a 58 20 20 | 20 20 69 66 20 28 74 79 |);.X.X | if (ty|
|00003ca0| 70 65 61 68 65 61 64 28 | 4e 55 4c 4c 29 29 20 62 |peahead(|NULL)) b|
|00003cb0| 65 65 70 28 29 3b 0a 58 | 20 20 20 20 6d 76 77 61 |eep();.X| mvwa|
|00003cc0| 64 64 73 74 72 28 77 69 | 6e 2c 20 32 2c 20 31 2c |ddstr(wi|n, 2, 1,|
|00003cd0| 20 22 50 72 65 73 73 20 | 61 20 6b 65 79 2c 20 66 | "Press |a key, f|
|00003ce0| 6f 6c 6c 6f 77 65 64 20 | 62 79 20 45 4e 54 45 52 |ollowed |by ENTER|
|00003cf0| 22 29 3b 0a 58 20 20 20 | 20 77 6d 6f 76 65 28 77 |");.X | wmove(w|
|00003d00| 69 6e 2c 20 39 2c 20 31 | 30 29 3b 0a 58 20 20 20 |in, 9, 1|0);.X |
|00003d10| 20 77 72 65 66 72 65 73 | 68 28 77 69 6e 29 3b 0a | wrefres|h(win);.|
|00003d20| 58 20 20 20 20 65 63 68 | 6f 28 29 3b 0a 58 20 20 |X ech|o();.X |
|00003d30| 20 20 6e 6f 72 61 77 28 | 29 3b 0a 58 20 20 20 20 | noraw(|);.X |
|00003d40| 77 67 65 74 63 68 28 77 | 69 6e 29 3b 0a 58 20 20 |wgetch(w|in);.X |
|00003d50| 20 20 66 6c 75 73 68 69 | 6e 70 28 29 3b 0a 58 0a | flushi|np();.X.|
|00003d60| 58 20 20 20 20 77 6d 6f | 76 65 28 77 69 6e 2c 20 |X wmo|ve(win, |
|00003d70| 39 2c 20 31 30 29 3b 0a | 58 20 20 20 20 77 64 65 |9, 10);.|X wde|
|00003d80| 6c 63 68 28 77 69 6e 29 | 3b 0a 58 20 20 20 20 6d |lch(win)|;.X m|
|00003d90| 76 77 61 64 64 73 74 72 | 28 77 69 6e 2c 20 34 2c |vwaddstr|(win, 4,|
|00003da0| 20 31 2c 20 22 54 68 65 | 20 63 68 61 72 61 63 74 | 1, "The| charact|
|00003db0| 65 72 20 73 68 6f 75 6c | 64 20 6e 6f 77 20 68 61 |er shoul|d now ha|
|00003dc0| 76 65 20 62 65 65 6e 20 | 64 65 6c 65 74 65 64 22 |ve been |deleted"|
|00003dd0| 29 3b 0a 58 20 20 20 20 | 43 6f 6e 74 69 6e 75 65 |);.X |Continue|
|00003de0| 28 77 69 6e 29 3b 0a 58 | 0a 58 20 20 20 20 77 63 |(win);.X|.X wc|
|00003df0| 6c 65 61 72 20 28 77 69 | 6e 29 3b 0a 58 20 20 20 |lear (wi|n);.X |
|00003e00| 20 6d 76 77 61 64 64 73 | 74 72 28 77 69 6e 2c 20 | mvwadds|tr(win, |
|00003e10| 32 2c 20 31 2c 20 22 50 | 72 65 73 73 20 61 6e 20 |2, 1, "P|ress an |
|00003e20| 61 72 72 6f 77 20 6b 65 | 79 22 29 3b 0a 58 20 20 |arrow ke|y");.X |
|00003e30| 20 20 77 72 65 66 72 65 | 73 68 28 77 69 6e 29 3b | wrefre|sh(win);|
|00003e40| 0a 58 20 20 20 20 6b 65 | 79 70 61 64 28 77 69 6e |.X ke|ypad(win|
|00003e50| 2c 20 54 52 55 45 29 3b | 0a 58 20 20 20 20 72 61 |, TRUE);|.X ra|
|00003e60| 77 28 29 3b 0a 58 20 20 | 20 20 63 20 3d 20 77 67 |w();.X | c = wg|
|00003e70| 65 74 63 68 28 77 69 6e | 29 3b 0a 58 0a 58 20 20 |etch(win|);.X.X |
|00003e80| 20 20 6e 6f 64 65 6c 61 | 79 28 77 69 6e 2c 20 54 | nodela|y(win, T|
|00003e90| 52 55 45 29 3b 0a 58 20 | 20 20 20 77 67 65 74 63 |RUE);.X | wgetc|
|00003ea0| 68 28 77 69 6e 29 3b 0a | 58 20 20 20 20 6e 6f 64 |h(win);.|X nod|
|00003eb0| 65 6c 61 79 28 77 69 6e | 2c 20 46 41 4c 53 45 29 |elay(win|, FALSE)|
|00003ec0| 3b 0a 58 0a 58 20 20 20 | 20 72 65 66 72 65 73 68 |;.X.X | refresh|
|00003ed0| 28 29 3b 0a 58 20 20 20 | 20 77 63 6c 65 61 72 20 |();.X | wclear |
|00003ee0| 28 77 69 6e 29 3b 0a 58 | 20 20 20 20 6d 76 77 61 |(win);.X| mvwa|
|00003ef0| 64 64 73 74 72 28 77 69 | 6e 2c 20 33 2c 20 32 2c |ddstr(wi|n, 3, 2,|
|00003f00| 20 22 54 68 65 20 77 69 | 6e 64 6f 77 20 73 68 6f | "The wi|ndow sho|
|00003f10| 75 6c 64 20 68 61 76 65 | 20 6d 6f 76 65 64 22 29 |uld have| moved")|
|00003f20| 3b 0a 58 20 20 20 20 6d | 76 77 61 64 64 73 74 72 |;.X m|vwaddstr|
|00003f30| 28 77 69 6e 2c 20 34 2c | 20 32 2c 20 22 54 68 69 |(win, 4,| 2, "Thi|
|00003f40| 73 20 74 65 78 74 20 73 | 68 6f 75 6c 64 20 68 61 |s text s|hould ha|
|00003f50| 76 65 20 61 70 70 65 61 | 72 65 64 20 77 69 74 68 |ve appea|red with|
|00003f60| 6f 75 74 20 79 6f 75 20 | 70 72 65 73 73 69 6e 67 |out you |pressing|
|00003f70| 20 61 20 6b 65 79 22 29 | 3b 0a 58 20 20 20 20 6d | a key")|;.X m|
|00003f80| 76 77 70 72 69 6e 74 77 | 28 77 69 6e 2c 20 32 2c |vwprintw|(win, 2,|
|00003f90| 20 32 2c 20 22 4b 65 79 | 63 6f 64 65 20 3d 20 25 | 2, "Key|code = %|
|00003fa0| 64 22 2c 20 63 29 3b 0a | 58 20 20 20 20 6d 76 77 |d", c);.|X mvw|
|00003fb0| 61 64 64 73 74 72 28 77 | 69 6e 2c 20 36 2c 20 32 |addstr(w|in, 6, 2|
|00003fc0| 2c 20 22 45 6e 74 65 72 | 20 61 20 73 74 72 69 6e |, "Enter| a strin|
|00003fd0| 67 22 29 3b 0a 58 20 20 | 20 20 6d 76 77 69 6e 28 |g");.X | mvwin(|
|00003fe0| 77 69 6e 2c 20 32 2c 20 | 31 29 3b 0a 58 20 20 20 |win, 2, |1);.X |
|00003ff0| 20 77 72 65 66 72 65 73 | 68 28 77 69 6e 29 3b 0a | wrefres|h(win);.|
|00004000| 58 20 20 20 20 6d 76 77 | 73 63 61 6e 77 28 77 69 |X mvw|scanw(wi|
|00004010| 6e 2c 20 37 2c 20 36 2c | 20 22 25 73 22 2c 20 62 |n, 7, 6,| "%s", b|
|00004020| 75 66 66 65 72 29 3b 0a | 58 7d 0a 58 23 69 66 64 |uffer);.|X}.X#ifd|
|00004030| 65 66 20 50 52 4f 54 4f | 0a 58 76 6f 69 64 20 6f |ef PROTO|.Xvoid o|
|00004040| 75 74 70 75 74 54 65 73 | 74 20 28 57 49 4e 44 4f |utputTes|t (WINDO|
|00004050| 57 20 2a 77 69 6e 29 0a | 58 23 65 6c 73 65 0a 58 |W *win).|X#else.X|
|00004060| 76 6f 69 64 20 6f 75 74 | 70 75 74 54 65 73 74 20 |void out|putTest |
|00004070| 28 77 69 6e 29 0a 58 57 | 49 4e 44 4f 57 20 2a 77 |(win).XW|INDOW *w|
|00004080| 69 6e 3b 0a 58 23 65 6e | 64 69 66 0a 58 7b 0a 58 |in;.X#en|dif.X{.X|
|00004090| 20 20 20 20 57 49 4e 44 | 4f 57 20 2a 77 69 6e 31 | WIND|OW *win1|
|000040a0| 3b 0a 58 20 20 20 20 63 | 68 61 72 20 42 75 66 66 |;.X c|har Buff|
|000040b0| 65 72 20 5b 38 30 5d 3b | 0a 58 20 20 20 20 63 68 |er [80];|.X ch|
|000040c0| 74 79 70 65 20 63 68 3b | 0a 58 0a 58 20 20 20 20 |type ch;|.X.X |
|000040d0| 6e 6c 20 28 29 3b 0a 58 | 20 20 20 20 77 63 6c 65 |nl ();.X| wcle|
|000040e0| 61 72 20 28 77 69 6e 29 | 3b 0a 58 20 20 20 20 6d |ar (win)|;.X m|
|000040f0| 76 77 61 64 64 73 74 72 | 28 77 69 6e 2c 20 31 2c |vwaddstr|(win, 1,|
|00004100| 20 31 2c 20 22 59 6f 75 | 20 73 68 6f 75 6c 64 20 | 1, "You| should |
|00004110| 6e 6f 77 20 68 61 76 65 | 20 61 20 73 63 72 65 65 |now have| a scree|
|00004120| 6e 20 69 6e 20 74 68 65 | 20 75 70 70 65 72 20 6c |n in the| upper l|
|00004130| 65 66 74 20 63 6f 72 6e | 65 72 2c 20 61 6e 64 20 |eft corn|er, and |
|00004140| 74 68 69 73 20 74 65 78 | 74 20 73 68 6f 75 6c 64 |this tex|t should|
|00004150| 20 68 61 76 65 20 77 72 | 61 70 70 65 64 22 29 3b | have wr|apped");|
|00004160| 0a 58 20 20 20 20 43 6f | 6e 74 69 6e 75 65 28 77 |.X Co|ntinue(w|
|00004170| 69 6e 29 3b 0a 58 0a 58 | 20 20 20 20 77 63 6c 65 |in);.X.X| wcle|
|00004180| 61 72 28 77 69 6e 29 3b | 0a 58 20 20 20 20 6d 76 |ar(win);|.X mv|
|00004190| 77 61 64 64 73 74 72 28 | 77 69 6e 2c 20 31 2c 20 |waddstr(|win, 1, |
|000041a0| 31 2c 20 22 41 20 6e 65 | 77 20 77 69 6e 64 6f 77 |1, "A ne|w window|
|000041b0| 20 77 69 6c 6c 20 61 70 | 70 65 61 72 20 77 69 74 | will ap|pear wit|
|000041c0| 68 20 74 68 69 73 20 74 | 65 78 74 20 69 6e 20 69 |h this t|ext in i|
|000041d0| 74 22 29 3b 0a 58 20 20 | 20 20 6d 76 77 61 64 64 |t");.X | mvwadd|
|000041e0| 73 74 72 28 77 69 6e 2c | 20 38 2c 20 31 2c 20 22 |str(win,| 8, 1, "|
|000041f0| 50 72 65 73 73 20 61 6e | 79 20 6b 65 79 20 74 6f |Press an|y key to|
|00004200| 20 63 6f 6e 74 69 6e 75 | 65 22 29 3b 0a 58 20 20 | continu|e");.X |
|00004210| 20 20 77 72 65 66 72 65 | 73 68 28 77 69 6e 29 3b | wrefre|sh(win);|
|00004220| 0a 58 20 20 20 20 77 67 | 65 74 63 68 28 77 69 6e |.X wg|etch(win|
|00004230| 29 3b 0a 58 0a 58 20 20 | 20 20 77 69 6e 31 20 3d |);.X.X | win1 =|
|00004240| 20 6e 65 77 77 69 6e 28 | 31 30 2c 20 35 30 2c 20 | newwin(|10, 50, |
|00004250| 31 35 2c 20 32 35 29 3b | 0a 58 20 20 20 20 69 66 |15, 25);|.X if|
|00004260| 28 77 69 6e 31 20 3d 3d | 20 4e 55 4c 4c 29 0a 58 |(win1 ==| NULL).X|
|00004270| 20 20 20 20 7b 20 20 20 | 65 6e 64 77 69 6e 28 29 | { |endwin()|
|00004280| 3b 0a 58 20 20 20 20 20 | 20 20 20 72 65 74 75 72 |;.X | retur|
|00004290| 6e 3b 0a 58 20 20 20 20 | 7d 0a 58 23 69 66 64 65 |n;.X |}.X#ifde|
|000042a0| 66 20 43 4f 4c 4f 52 5f | 43 55 52 53 45 53 0a 58 |f COLOR_|CURSES.X|
|000042b0| 20 20 20 20 69 66 20 28 | 68 61 73 5f 63 6f 6c 6f | if (|has_colo|
|000042c0| 72 73 28 29 29 0a 58 20 | 20 20 20 20 20 20 69 6e |rs()).X | in|
|000042d0| 69 74 5f 70 61 69 72 28 | 33 2c 43 4f 4c 4f 52 5f |it_pair(|3,COLOR_|
|000042e0| 42 4c 55 45 2c 43 4f 4c | 4f 52 5f 57 48 49 54 45 |BLUE,COL|OR_WHITE|
|000042f0| 29 3b 0a 58 20 20 20 20 | 77 61 74 74 72 73 65 74 |);.X |wattrset|
|00004300| 28 77 69 6e 31 2c 20 43 | 4f 4c 4f 52 5f 50 41 49 |(win1, C|OLOR_PAI|
|00004310| 52 28 33 29 29 3b 0a 58 | 23 65 6c 73 65 0a 58 20 |R(3));.X|#else.X |
|00004320| 20 20 20 77 61 74 74 72 | 73 65 74 28 77 69 6e 31 | wattr|set(win1|
|00004330| 2c 20 41 5f 4e 4f 52 4d | 41 4c 29 3b 0a 58 23 65 |, A_NORM|AL);.X#e|
|00004340| 6e 64 69 66 0a 58 20 20 | 20 20 77 63 6c 65 61 72 |ndif.X | wclear|
|00004350| 20 28 77 69 6e 31 29 3b | 0a 58 20 20 20 20 6d 76 | (win1);|.X mv|
|00004360| 77 61 64 64 73 74 72 28 | 77 69 6e 31 2c 20 35 2c |waddstr(|win1, 5,|
|00004370| 20 31 2c 20 22 54 68 69 | 73 20 74 65 78 74 20 73 | 1, "Thi|s text s|
|00004380| 68 6f 75 6c 64 20 6e 6f | 74 20 61 70 70 65 61 72 |hould no|t appear|
|00004390| 22 29 3b 0a 58 20 20 20 | 20 6f 76 65 72 77 72 69 |");.X | overwri|
|000043a0| 74 65 28 77 69 6e 2c 20 | 77 69 6e 31 29 3b 0a 58 |te(win, |win1);.X|
|000043b0| 0a 58 20 20 20 20 62 6f | 78 28 77 69 6e 31 2c 30 |.X bo|x(win1,0|
|000043c0| 78 62 33 2c 30 78 63 34 | 29 3b 0a 58 20 20 20 20 |xb3,0xc4|);.X |
|000043d0| 77 6d 6f 76 65 28 77 69 | 6e 31 2c 20 38 2c 20 32 |wmove(wi|n1, 8, 2|
|000043e0| 36 29 3b 0a 58 20 20 20 | 20 77 72 65 66 72 65 73 |6);.X | wrefres|
|000043f0| 68 28 77 69 6e 31 29 3b | 0a 58 20 20 20 20 77 67 |h(win1);|.X wg|
|00004400| 65 74 63 68 28 77 69 6e | 31 29 3b 0a 58 0a 58 20 |etch(win|1);.X.X |
|00004410| 20 20 20 77 63 6c 65 61 | 72 28 77 69 6e 31 29 3b | wclea|r(win1);|
|00004420| 0a 58 20 20 20 20 77 61 | 74 74 72 6f 6e 28 77 69 |.X wa|ttron(wi|
|00004430| 6e 31 2c 20 41 5f 42 4c | 49 4e 4b 29 3b 0a 58 20 |n1, A_BL|INK);.X |
|00004440| 20 20 20 6d 76 77 61 64 | 64 73 74 72 28 77 69 6e | mvwad|dstr(win|
|00004450| 31 2c 20 34 2c 20 31 2c | 20 22 54 68 69 73 20 62 |1, 4, 1,| "This b|
|00004460| 6c 69 6e 6b 69 6e 67 20 | 74 65 78 74 20 73 68 6f |linking |text sho|
|00004470| 75 6c 64 20 61 70 70 65 | 61 72 20 69 6e 20 6f 6e |uld appe|ar in on|
|00004480| 6c 79 20 74 68 65 20 73 | 65 63 6f 6e 64 20 77 69 |ly the s|econd wi|
|00004490| 6e 64 6f 77 22 29 3b 0a | 58 20 20 20 20 77 61 74 |ndow");.|X wat|
|000044a0| 74 72 6f 66 66 28 77 69 | 6e 31 2c 20 41 5f 42 4c |troff(wi|n1, A_BL|
|000044b0| 49 4e 4b 29 3b 0a 58 20 | 20 20 20 6f 76 65 72 6c |INK);.X | overl|
|000044c0| 61 79 28 77 69 6e 2c 20 | 77 69 6e 31 29 3b 0a 58 |ay(win, |win1);.X|
|000044d0| 20 20 20 20 77 6d 6f 76 | 65 28 77 69 6e 31 2c 20 | wmov|e(win1, |
|000044e0| 38 2c 20 32 36 29 3b 0a | 58 20 20 20 20 77 72 65 |8, 26);.|X wre|
|000044f0| 66 72 65 73 68 28 77 69 | 6e 31 29 3b 0a 58 20 20 |fresh(wi|n1);.X |
|00004500| 20 20 77 67 65 74 63 68 | 28 77 69 6e 31 29 3b 0a | wgetch|(win1);.|
|00004510| 58 20 20 20 20 64 65 6c | 77 69 6e 28 77 69 6e 31 |X del|win(win1|
|00004520| 29 3b 0a 58 0a 58 20 20 | 20 20 63 6c 65 61 72 28 |);.X.X | clear(|
|00004530| 29 3b 0a 58 20 20 20 20 | 77 63 6c 65 61 72 28 77 |);.X |wclear(w|
|00004540| 69 6e 29 3b 0a 58 20 20 | 20 20 77 72 65 66 72 65 |in);.X | wrefre|
|00004550| 73 68 28 77 69 6e 29 3b | 0a 58 20 20 20 20 6d 76 |sh(win);|.X mv|
|00004560| 77 61 64 64 73 74 72 28 | 77 69 6e 2c 20 36 2c 20 |waddstr(|win, 6, |
|00004570| 32 2c 20 22 54 68 69 73 | 20 6c 69 6e 65 20 73 68 |2, "This| line sh|
|00004580| 6f 75 6c 64 6e 27 74 20 | 61 70 70 65 61 72 22 29 |ouldn't |appear")|
|00004590| 3b 0a 58 20 20 20 20 6d | 76 77 61 64 64 73 74 72 |;.X m|vwaddstr|
|000045a0| 28 77 69 6e 2c 20 34 2c | 20 32 2c 20 22 4f 6e 6c |(win, 4,| 2, "Onl|
|000045b0| 79 20 68 61 6c 66 20 6f | 66 20 74 68 65 20 6e 65 |y half o|f the ne|
|000045c0| 78 74 20 6c 69 6e 65 20 | 69 73 20 76 69 73 69 62 |xt line |is visib|
|000045d0| 6c 65 22 29 3b 0a 58 20 | 20 20 20 6d 76 77 61 64 |le");.X | mvwad|
|000045e0| 64 73 74 72 28 77 69 6e | 2c 20 35 2c 20 32 2c 20 |dstr(win|, 5, 2, |
|000045f0| 22 4f 6e 6c 79 20 68 61 | 6c 66 20 6f 66 20 74 68 |"Only ha|lf of th|
|00004600| 65 20 6e 65 78 74 20 6c | 69 6e 65 20 69 73 20 76 |e next l|ine is v|
|00004610| 69 73 69 62 6c 65 22 29 | 3b 0a 58 20 20 20 20 77 |isible")|;.X w|
|00004620| 6d 6f 76 65 28 77 69 6e | 2c 20 36 2c 20 31 29 3b |move(win|, 6, 1);|
|00004630| 0a 58 20 20 20 20 77 63 | 6c 72 74 6f 62 6f 74 20 |.X wc|lrtobot |
|00004640| 28 77 69 6e 29 3b 0a 58 | 20 20 20 20 77 6d 6f 76 |(win);.X| wmov|
|00004650| 65 28 77 69 6e 2c 20 35 | 2c 20 32 30 29 3b 0a 58 |e(win, 5|, 20);.X|
|00004660| 20 20 20 20 77 63 6c 72 | 74 6f 65 6f 6c 20 28 77 | wclr|toeol (w|
|00004670| 69 6e 29 3b 0a 58 20 20 | 20 20 6d 76 77 61 64 64 |in);.X | mvwadd|
|00004680| 73 74 72 28 77 69 6e 2c | 20 38 2c 20 32 2c 20 22 |str(win,| 8, 2, "|
|00004690| 54 68 69 73 20 6c 69 6e | 65 20 61 6c 73 6f 20 73 |This lin|e also s|
|000046a0| 68 6f 75 6c 64 6e 27 74 | 20 61 70 70 65 61 72 22 |houldn't| appear"|
|000046b0| 29 3b 0a 58 20 20 20 20 | 77 6d 6f 76 65 28 77 69 |);.X |wmove(wi|
|000046c0| 6e 2c 20 38 2c 20 31 29 | 3b 0a 58 20 20 20 20 77 |n, 8, 1)|;.X w|
|000046d0| 64 65 6c 65 74 65 6c 6e | 28 77 69 6e 29 3b 0a 58 |deleteln|(win);.X|
|000046e0| 20 20 20 20 43 6f 6e 74 | 69 6e 75 65 28 77 69 6e | Cont|inue(win|
|000046f0| 29 3b 0a 58 0a 58 20 20 | 20 20 77 6d 6f 76 65 20 |);.X.X | wmove |
|00004700| 28 77 69 6e 2c 20 35 2c | 20 39 29 3b 0a 58 20 20 |(win, 5,| 9);.X |
|00004710| 20 20 63 68 20 3d 20 77 | 69 6e 63 68 20 28 77 69 | ch = w|inch (wi|
|00004720| 6e 29 3b 0a 58 0a 58 20 | 20 20 20 77 63 6c 65 61 |n);.X.X | wclea|
|00004730| 72 28 77 69 6e 29 3b 0a | 58 20 20 20 20 77 6d 6f |r(win);.|X wmo|
|00004740| 76 65 20 28 77 69 6e 2c | 20 36 2c 20 32 29 3b 0a |ve (win,| 6, 2);.|
|00004750| 58 20 20 20 20 77 61 64 | 64 73 74 72 20 28 77 69 |X wad|dstr (wi|
|00004760| 6e 2c 20 22 54 68 65 20 | 6e 65 78 74 20 63 68 61 |n, "The |next cha|
|00004770| 72 20 73 68 6f 75 6c 64 | 20 62 65 20 6c 3a 20 20 |r should| be l: |
|00004780| 22 29 3b 0a 58 20 20 20 | 20 77 69 6e 73 63 68 20 |");.X | winsch |
|00004790| 28 77 69 6e 2c 20 63 68 | 29 3b 0a 58 20 20 20 20 |(win, ch|);.X |
|000047a0| 43 6f 6e 74 69 6e 75 65 | 28 77 69 6e 29 3b 0a 58 |Continue|(win);.X|
|000047b0| 0a 58 20 20 20 20 77 6d | 6f 76 65 28 77 69 6e 2c |.X wm|ove(win,|
|000047c0| 20 35 2c 20 31 29 3b 0a | 58 20 20 20 20 77 69 6e | 5, 1);.|X win|
|000047d0| 73 65 72 74 6c 6e 20 28 | 77 69 6e 29 3b 0a 58 20 |sertln (|win);.X |
|000047e0| 20 20 20 6d 76 77 61 64 | 64 73 74 72 28 77 69 6e | mvwad|dstr(win|
|000047f0| 2c 20 35 2c 20 32 2c 20 | 22 54 68 65 20 6c 69 6e |, 5, 2, |"The lin|
|00004800| 65 73 20 62 65 6c 6f 77 | 20 73 68 6f 75 6c 64 20 |es below| should |
|00004810| 68 61 76 65 20 6d 6f 76 | 65 64 20 64 6f 77 6e 22 |have mov|ed down"|
|00004820| 29 3b 0a 58 20 20 20 20 | 43 6f 6e 74 69 6e 75 65 |);.X |Continue|
|00004830| 28 77 69 6e 29 3b 0a 58 | 0a 58 20 20 20 20 77 63 |(win);.X|.X wc|
|00004840| 6c 65 61 72 28 77 69 6e | 29 3b 0a 58 20 20 20 20 |lear(win|);.X |
|00004850| 77 6d 6f 76 65 28 77 69 | 6e 2c 20 32 2c 20 32 29 |wmove(wi|n, 2, 2)|
|00004860| 3b 0a 58 20 20 20 20 77 | 70 72 69 6e 74 77 28 77 |;.X w|printw(w|
|00004870| 69 6e 2c 20 22 54 68 69 | 73 20 69 73 20 61 20 66 |in, "Thi|s is a f|
|00004880| 6f 72 6d 61 74 74 65 64 | 20 73 74 72 69 6e 67 20 |ormatted| string |
|00004890| 69 6e 20 61 20 77 69 6e | 64 6f 77 3a 20 25 64 20 |in a win|dow: %d |
|000048a0| 25 73 5c 6e 22 2c 20 34 | 32 2c 20 22 69 73 20 69 |%s\n", 4|2, "is i|
|000048b0| 74 22 29 3b 0a 58 20 20 | 20 20 6d 76 77 61 64 64 |t");.X | mvwadd|
|000048c0| 73 74 72 28 77 69 6e 2c | 20 31 30 2c 20 31 2c 20 |str(win,| 10, 1, |
|000048d0| 22 45 6e 74 65 72 20 61 | 20 73 74 72 69 6e 67 3a |"Enter a| string:|
|000048e0| 20 22 29 3b 0a 58 20 20 | 20 20 77 72 65 66 72 65 | ");.X | wrefre|
|000048f0| 73 68 28 77 69 6e 29 3b | 0a 58 20 20 20 20 77 73 |sh(win);|.X ws|
|00004900| 63 61 6e 77 20 28 77 69 | 6e 2c 20 22 25 73 22 2c |canw (wi|n, "%s",|
|00004910| 20 42 75 66 66 65 72 29 | 3b 0a 58 0a 58 20 20 20 | Buffer)|;.X.X |
|00004920| 20 77 63 6c 65 61 72 28 | 77 69 6e 29 3b 0a 58 20 | wclear(|win);.X |
|00004930| 20 20 20 6d 76 77 61 64 | 64 73 74 72 28 77 69 6e | mvwad|dstr(win|
|00004940| 2c 20 31 30 2c 20 31 2c | 20 22 45 6e 74 65 72 20 |, 10, 1,| "Enter |
|00004950| 61 20 73 74 72 69 6e 67 | 22 29 3b 0a 58 20 20 20 |a string|");.X |
|00004960| 20 77 72 65 66 72 65 73 | 68 28 77 69 6e 29 3b 0a | wrefres|h(win);.|
|00004970| 58 20 20 20 20 70 72 69 | 6e 74 77 28 22 54 68 69 |X pri|ntw("Thi|
|00004980| 73 20 69 73 20 61 20 66 | 6f 72 6d 61 74 74 65 64 |s is a f|ormatted|
|00004990| 20 73 74 72 69 6e 67 20 | 69 6e 20 73 74 64 73 63 | string |in stdsc|
|000049a0| 72 3a 20 25 64 20 25 73 | 5c 6e 22 2c 20 34 32 2c |r: %d %s|\n", 42,|
|000049b0| 20 22 69 73 20 69 74 22 | 29 3b 0a 58 20 20 20 20 | "is it"|);.X |
|000049c0| 73 63 61 6e 77 20 28 22 | 25 73 22 2c 20 42 75 66 |scanw ("|%s", Buf|
|000049d0| 66 65 72 29 3b 0a 58 0a | 58 20 20 20 20 77 63 6c |fer);.X.|X wcl|
|000049e0| 65 61 72 28 77 69 6e 29 | 3b 0a 58 20 20 20 20 63 |ear(win)|;.X c|
|000049f0| 75 72 73 5f 73 65 74 28 | 32 29 3b 0a 58 20 20 20 |urs_set(|2);.X |
|00004a00| 20 6d 76 77 61 64 64 73 | 74 72 28 77 69 6e 2c 20 | mvwadds|tr(win, |
|00004a10| 31 2c 20 31 2c 20 22 54 | 68 65 20 63 75 72 73 6f |1, 1, "T|he curso|
|00004a20| 72 20 73 68 6f 75 6c 64 | 20 61 70 70 65 61 72 20 |r should| appear |
|00004a30| 61 73 20 61 20 62 6c 6f | 63 6b 22 29 3b 0a 58 20 |as a blo|ck");.X |
|00004a40| 20 20 20 43 6f 6e 74 69 | 6e 75 65 28 77 69 6e 29 | Conti|nue(win)|
|00004a50| 3b 0a 58 0a 58 20 20 20 | 20 77 63 6c 65 61 72 28 |;.X.X | wclear(|
|00004a60| 77 69 6e 29 3b 0a 58 20 | 20 20 20 63 75 72 73 5f |win);.X | curs_|
|00004a70| 73 65 74 28 30 29 3b 0a | 58 20 20 20 20 6d 76 77 |set(0);.|X mvw|
|00004a80| 61 64 64 73 74 72 28 77 | 69 6e 2c 20 31 2c 20 31 |addstr(w|in, 1, 1|
|00004a90| 2c 20 22 54 68 65 20 63 | 75 72 73 6f 72 20 73 68 |, "The c|ursor sh|
|00004aa0| 6f 75 6c 64 20 68 61 76 | 65 20 64 69 73 61 70 70 |ould hav|e disapp|
|00004ab0| 65 61 72 65 64 22 29 3b | 0a 58 20 20 20 20 43 6f |eared");|.X Co|
|00004ac0| 6e 74 69 6e 75 65 28 77 | 69 6e 29 3b 0a 58 0a 58 |ntinue(w|in);.X.X|
|00004ad0| 20 20 20 20 77 63 6c 65 | 61 72 28 77 69 6e 29 3b | wcle|ar(win);|
|00004ae0| 0a 58 20 20 20 20 63 75 | 72 73 5f 73 65 74 28 31 |.X cu|rs_set(1|
|00004af0| 29 3b 0a 58 20 20 20 20 | 6d 76 77 61 64 64 73 74 |);.X |mvwaddst|
|00004b00| 72 28 77 69 6e 2c 20 31 | 2c 20 31 2c 20 22 54 68 |r(win, 1|, 1, "Th|
|00004b10| 65 20 63 75 72 73 6f 72 | 20 73 68 6f 75 6c 64 20 |e cursor| should |
|00004b20| 62 65 20 61 6e 20 75 6e | 64 65 72 6c 69 6e 65 22 |be an un|derline"|
|00004b30| 29 3b 0a 58 20 20 20 20 | 43 6f 6e 74 69 6e 75 65 |);.X |Continue|
|00004b40| 28 77 69 6e 29 3b 0a 58 | 7d 0a 58 0a 58 23 69 66 |(win);.X|}.X.X#if|
|00004b50| 64 65 66 20 50 52 4f 54 | 4f 0a 58 76 6f 69 64 20 |def PROT|O.Xvoid |
|00004b60| 72 65 73 69 7a 65 54 65 | 73 74 28 76 6f 69 64 29 |resizeTe|st(void)|
|00004b70| 0a 58 23 65 6c 73 65 0a | 58 76 6f 69 64 20 72 65 |.X#else.|Xvoid re|
|00004b80| 73 69 7a 65 54 65 73 74 | 28 29 0a 58 23 65 6e 64 |sizeTest|().X#end|
|00004b90| 69 66 0a 58 7b 0a 58 20 | 20 20 20 57 49 4e 44 4f |if.X{.X | WINDO|
|00004ba0| 57 20 2a 77 69 6e 31 3b | 0a 58 20 20 20 20 63 68 |W *win1;|.X ch|
|00004bb0| 61 72 20 42 75 66 66 65 | 72 20 5b 38 30 5d 3b 0a |ar Buffe|r [80];.|
|00004bc0| 58 20 20 20 20 63 68 74 | 79 70 65 20 63 68 3b 0a |X cht|ype ch;.|
|00004bd0| 58 0a 58 20 20 20 20 73 | 61 76 65 74 74 79 20 28 |X.X s|avetty (|
|00004be0| 29 3b 0a 58 0a 58 20 20 | 20 20 63 6c 65 61 72 28 |);.X.X | clear(|
|00004bf0| 29 3b 0a 58 20 20 20 20 | 72 65 66 72 65 73 68 28 |);.X |refresh(|
|00004c00| 29 3b 0a 58 20 20 20 20 | 72 65 73 69 7a 65 28 35 |);.X |resize(5|
|00004c10| 30 29 3b 0a 58 0a 58 0a | 58 20 20 20 20 77 69 6e |0);.X.X.|X win|
|00004c20| 31 20 3d 20 6e 65 77 77 | 69 6e 28 31 31 2c 20 35 |1 = neww|in(11, 5|
|00004c30| 30 2c 20 31 34 2c 20 32 | 35 29 3b 0a 58 20 20 20 |0, 14, 2|5);.X |
|00004c40| 20 69 66 28 77 69 6e 31 | 20 3d 3d 20 4e 55 4c 4c | if(win1| == NULL|
|00004c50| 29 0a 58 20 20 20 20 7b | 20 20 20 65 6e 64 77 69 |).X {| endwi|
|00004c60| 6e 28 29 3b 0a 58 20 20 | 20 20 20 20 20 20 72 65 |n();.X | re|
|00004c70| 74 75 72 6e 3b 0a 58 20 | 20 20 20 7d 0a 58 20 20 |turn;.X | }.X |
|00004c80| 20 20 69 6e 69 74 5f 70 | 61 69 72 28 33 2c 43 4f | init_p|air(3,CO|
|00004c90| 4c 4f 52 5f 42 4c 55 45 | 2c 43 4f 4c 4f 52 5f 57 |LOR_BLUE|,COLOR_W|
|00004ca0| 48 49 54 45 29 3b 0a 58 | 20 20 20 20 77 61 74 74 |HITE);.X| watt|
|00004cb0| 72 73 65 74 28 77 69 6e | 31 2c 20 43 4f 4c 4f 52 |rset(win|1, COLOR|
|00004cc0| 5f 50 41 49 52 28 33 29 | 29 3b 0a 58 20 20 20 20 |_PAIR(3)|);.X |
|00004cd0| 77 63 6c 65 61 72 20 28 | 77 69 6e 31 29 3b 0a 58 |wclear (|win1);.X|
|00004ce0| 0a 58 20 20 20 20 6d 76 | 77 61 64 64 73 74 72 28 |.X mv|waddstr(|
|00004cf0| 77 69 6e 31 2c 20 31 2c | 20 31 2c 20 22 54 68 65 |win1, 1,| 1, "The|
|00004d00| 20 73 63 72 65 65 6e 20 | 6d 61 79 20 6e 6f 77 20 | screen |may now |
|00004d10| 68 61 76 65 20 35 30 20 | 6c 69 6e 65 73 22 29 3b |have 50 |lines");|
|00004d20| 0a 58 20 20 20 20 43 6f | 6e 74 69 6e 75 65 28 77 |.X Co|ntinue(w|
|00004d30| 69 6e 31 29 3b 0a 58 0a | 58 20 20 20 20 72 65 73 |in1);.X.|X res|
|00004d40| 65 74 74 79 20 28 29 3b | 0a 58 0a 58 20 20 20 20 |etty ();|.X.X |
|00004d50| 77 63 6c 65 61 72 20 28 | 77 69 6e 31 29 3b 0a 58 |wclear (|win1);.X|
|00004d60| 20 20 20 20 6d 76 77 61 | 64 64 73 74 72 28 77 69 | mvwa|ddstr(wi|
|00004d70| 6e 31 2c 20 31 2c 20 31 | 2c 20 22 54 68 65 20 73 |n1, 1, 1|, "The s|
|00004d80| 63 72 65 65 6e 20 73 68 | 6f 75 6c 64 20 6e 6f 77 |creen sh|ould now|
|00004d90| 20 62 65 20 72 65 73 65 | 74 22 29 3b 0a 58 20 20 | be rese|t");.X |
|00004da0| 20 20 43 6f 6e 74 69 6e | 75 65 28 77 69 6e 31 29 | Contin|ue(win1)|
|00004db0| 3b 0a 58 0a 58 20 20 20 | 20 64 65 6c 77 69 6e 28 |;.X.X | delwin(|
|00004dc0| 77 69 6e 31 29 3b 0a 58 | 0a 58 20 20 20 20 63 6c |win1);.X|.X cl|
|00004dd0| 65 61 72 28 29 3b 0a 58 | 20 20 20 20 72 65 66 72 |ear();.X| refr|
|00004de0| 65 73 68 28 29 3b 0a 58 | 0a 58 7d 0a 58 23 69 66 |esh();.X|.X}.X#if|
|00004df0| 64 65 66 20 50 52 4f 54 | 4f 0a 58 76 6f 69 64 20 |def PROT|O.Xvoid |
|00004e00| 70 61 64 54 65 73 74 28 | 76 6f 69 64 29 0a 58 23 |padTest(|void).X#|
|00004e10| 65 6c 73 65 0a 58 76 6f | 69 64 20 70 61 64 54 65 |else.Xvo|id padTe|
|00004e20| 73 74 28 29 0a 58 23 65 | 6e 64 69 66 0a 58 7b 0a |st().X#e|ndif.X{.|
|00004e30| 58 57 49 4e 44 4f 57 20 | 2a 70 61 64 3b 0a 58 0a |XWINDOW |*pad;.X.|
|00004e40| 58 20 70 61 64 20 3d 20 | 6e 65 77 70 61 64 28 35 |X pad = |newpad(5|
|00004e50| 30 2c 31 30 30 29 3b 0a | 58 20 6d 76 77 61 64 64 |0,100);.|X mvwadd|
|00004e60| 73 74 72 28 70 61 64 2c | 20 35 2c 20 32 2c 20 22 |str(pad,| 5, 2, "|
|00004e70| 54 68 69 73 20 69 73 20 | 61 20 6e 65 77 20 70 61 |This is |a new pa|
|00004e80| 64 22 29 3b 0a 58 20 6d | 76 77 61 64 64 73 74 72 |d");.X m|vwaddstr|
|00004e90| 28 70 61 64 2c 20 38 2c | 20 30 2c 20 22 54 68 65 |(pad, 8,| 0, "The|
|00004ea0| 20 65 6e 64 20 6f 66 20 | 74 68 69 73 20 6c 69 6e | end of |this lin|
|00004eb0| 65 20 73 68 6f 75 6c 64 | 20 62 65 20 74 72 75 6e |e should| be trun|
|00004ec0| 63 61 74 65 64 20 68 65 | 72 65 3a 61 62 63 64 22 |cated he|re:abcd"|
|00004ed0| 29 3b 0a 58 20 6d 76 77 | 61 64 64 73 74 72 28 70 |);.X mvw|addstr(p|
|00004ee0| 61 64 2c 31 31 2c 20 31 | 2c 20 22 54 68 69 73 20 |ad,11, 1|, "This |
|00004ef0| 6c 69 6e 65 20 73 68 6f | 75 6c 64 20 6e 6f 74 20 |line sho|uld not |
|00004f00| 61 70 70 65 61 72 2e 22 | 29 3b 0a 58 20 77 6d 6f |appear."|);.X wmo|
|00004f10| 76 65 28 70 61 64 2c 20 | 31 30 2c 20 31 29 3b 0a |ve(pad, |10, 1);.|
|00004f20| 58 20 77 63 6c 72 74 6f | 65 6f 6c 28 70 61 64 29 |X wclrto|eol(pad)|
|00004f30| 3b 0a 58 20 6d 76 77 61 | 64 64 73 74 72 28 70 61 |;.X mvwa|ddstr(pa|
|00004f40| 64 2c 20 31 30 2c 20 31 | 2c 20 22 20 50 72 65 73 |d, 10, 1|, " Pres|
|00004f50| 73 20 61 6e 79 20 6b 65 | 79 20 74 6f 20 63 6f 6e |s any ke|y to con|
|00004f60| 74 69 6e 75 65 22 29 3b | 0a 58 20 70 72 65 66 72 |tinue");|.X prefr|
|00004f70| 65 73 68 28 70 61 64 2c | 30 2c 30 2c 30 2c 30 2c |esh(pad,|0,0,0,0,|
|00004f80| 31 30 2c 34 35 29 3b 0a | 58 20 6b 65 79 70 61 64 |10,45);.|X keypad|
|00004f90| 28 70 61 64 2c 20 54 52 | 55 45 29 3b 0a 58 20 72 |(pad, TR|UE);.X r|
|00004fa0| 61 77 28 29 3b 0a 58 20 | 77 67 65 74 63 68 28 70 |aw();.X |wgetch(p|
|00004fb0| 61 64 29 3b 0a 58 0a 58 | 20 6d 76 77 61 64 64 73 |ad);.X.X| mvwadds|
|00004fc0| 74 72 28 70 61 64 2c 20 | 33 35 2c 20 32 2c 20 22 |tr(pad, |35, 2, "|
|00004fd0| 54 68 69 73 20 69 73 20 | 64 69 73 70 6c 61 79 65 |This is |displaye|
|00004fe0| 64 20 61 74 20 6c 69 6e | 65 20 33 35 20 69 6e 20 |d at lin|e 35 in |
|00004ff0| 74 68 65 20 70 61 64 22 | 29 3b 0a 58 20 6d 76 77 |the pad"|);.X mvw|
|00005000| 61 64 64 73 74 72 28 70 | 61 64 2c 20 34 30 2c 20 |addstr(p|ad, 40, |
|00005010| 31 2c 20 22 20 50 72 65 | 73 73 20 61 6e 79 20 6b |1, " Pre|ss any k|
|00005020| 65 79 20 74 6f 20 63 6f | 6e 74 69 6e 75 65 22 29 |ey to co|ntinue")|
|00005030| 3b 0a 58 20 70 72 65 66 | 72 65 73 68 28 70 61 64 |;.X pref|resh(pad|
|00005040| 2c 33 30 2c 30 2c 30 2c | 30 2c 31 30 2c 34 35 29 |,30,0,0,|0,10,45)|
|00005050| 3b 0a 58 20 6b 65 79 70 | 61 64 28 70 61 64 2c 20 |;.X keyp|ad(pad, |
|00005060| 54 52 55 45 29 3b 0a 58 | 20 72 61 77 28 29 3b 0a |TRUE);.X| raw();.|
|00005070| 58 20 77 67 65 74 63 68 | 28 70 61 64 29 3b 0a 58 |X wgetch|(pad);.X|
|00005080| 0a 58 20 64 65 6c 77 69 | 6e 28 70 61 64 29 3b 0a |.X delwi|n(pad);.|
|00005090| 58 7d 0a 58 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |X}.X.END|_OF_FILE|
|000050a0| 0a 20 20 69 66 20 74 65 | 73 74 20 39 31 36 39 20 |. if te|st 9169 |
|000050b0| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 64 65 6d |-ne `wc |-c <'dem|
|000050c0| 6f 73 2f 74 65 73 74 63 | 75 72 73 2e 63 27 60 3b |os/testc|urs.c'`;|
|000050d0| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|000050e0| 68 61 72 3a 20 5c 22 27 | 64 65 6d 6f 73 2f 74 65 |har: \"'|demos/te|
|000050f0| 73 74 63 75 72 73 2e 63 | 27 5c 22 20 75 6e 70 61 |stcurs.c|'\" unpa|
|00005100| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00005110| 73 69 7a 65 21 0a 20 20 | 66 69 0a 20 20 23 20 65 |size!. |fi. # e|
|00005120| 6e 64 20 6f 66 20 27 64 | 65 6d 6f 73 2f 74 65 73 |nd of 'd|emos/tes|
|00005130| 74 63 75 72 73 2e 63 27 | 0a 66 69 0a 69 66 20 74 |tcurs.c'|.fi.if t|
|00005140| 65 73 74 20 2d 66 20 27 | 6d 61 6b 65 66 69 6c 65 |est -f '|makefile|
|00005150| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00005160| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00005170| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00005180| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|00005190| 6e 67 20 66 69 6c 65 20 | 5c 22 27 6d 61 6b 65 66 |ng file |\"'makef|
|000051a0| 69 6c 65 27 5c 22 0a 65 | 6c 73 65 0a 20 20 65 63 |ile'\".e|lse. ec|
|000051b0| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|000051c0| 69 6e 67 20 5c 22 27 6d | 61 6b 65 66 69 6c 65 27 |ing \"'m|akefile'|
|000051d0| 5c 22 20 5c 28 32 32 38 | 35 36 20 63 68 61 72 61 |\" \(228|56 chara|
|000051e0| 63 74 65 72 73 5c 29 0a | 20 20 73 65 64 20 22 73 |cters\).| sed "s|
|000051f0| 2f 5e 58 2f 2f 22 20 3e | 27 6d 61 6b 65 66 69 6c |/^X//" >|'makefil|
|00005200| 65 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |e' <<'EN|D_OF_FIL|
|00005210| 45 27 0a 58 23 20 24 48 | 65 61 64 65 72 3a 20 63 |E'.X# $H|eader: c|
|00005220| 3a 2f 63 75 72 73 65 73 | 2f 52 43 53 2f 6d 61 6b |:/curses|/RCS/mak|
|00005230| 65 66 69 6c 65 2e 25 76 | 20 32 2e 30 20 31 39 39 |efile.%v| 2.0 199|
|00005240| 32 2f 31 31 2f 31 36 20 | 32 32 3a 34 30 3a 34 39 |2/11/16 |22:40:49|
|00005250| 20 4d 48 20 52 65 6c 20 | 24 0a 58 23 3d 3d 3d 3d | MH Rel |$.X#====|
|00005260| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 20 50 44 43 |========|==== PDC|
|00005270| 75 72 73 65 73 20 6d 61 | 6b 65 66 69 6c 65 20 66 |urses ma|kefile f|
|00005280| 6f 72 20 44 4d 41 4b 45 | 20 33 2e 38 20 3d 3d 3d |or DMAKE| 3.8 ===|
|00005290| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000052a0| 3d 3d 3d 0a 58 23 20 54 | 68 69 73 20 6d 61 6b 65 |===.X# T|his make|
|000052b0| 66 69 6c 65 20 69 73 20 | 66 6f 72 20 44 4d 41 4b |file is |for DMAK|
|000052c0| 45 2c 20 65 69 74 68 65 | 72 20 75 6e 64 65 72 20 |E, eithe|r under |
|000052d0| 44 4f 53 20 6f 72 20 4f | 53 2f 32 0a 58 23 20 54 |DOS or O|S/2.X# T|
|000052e0| 68 65 20 66 6f 77 77 6f | 69 6e 67 20 4f 53 2f 43 |he fowwo|ing OS/C|
|000052f0| 6f 6d 70 69 6c 65 72 20 | 63 6f 6d 62 69 6e 61 74 |ompiler |combinat|
|00005300| 69 6f 6e 73 20 61 72 65 | 20 73 75 70 70 6f 72 74 |ions are| support|
|00005310| 65 64 3a 0a 58 23 0a 58 | 23 20 54 61 72 67 65 74 |ed:.X#.X|# Target|
|00005320| 20 20 20 20 20 20 20 43 | 6f 6d 70 69 6c 65 72 20 | C|ompiler |
|00005330| 20 20 20 43 6f 6d 6d 61 | 6e 64 20 20 20 20 20 20 | Comma|nd |
|00005340| 20 20 20 20 20 20 20 20 | 20 20 43 6f 6d 70 69 6c | | Compil|
|00005350| 65 72 0a 58 23 20 4f 70 | 65 72 61 74 69 6e 67 20 |er.X# Op|erating |
|00005360| 20 20 20 4d 6e 65 6d 6f | 69 63 20 20 20 20 20 4c | Mnemo|ic L|
|00005370| 69 6e 65 0a 58 23 20 53 | 79 73 74 65 6d 20 20 20 |ine.X# S|ystem |
|00005380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005390| 0a 58 23 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.X#-----|--------|
|000053a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000053b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000053c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000053d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 58 23 20 44 4f |--------|--.X# DO|
|000053e0| 53 20 20 20 20 20 20 20 | 20 20 20 20 20 42 43 43 |S | BCC|
|000053f0| 20 20 20 20 20 20 20 4f | 53 3d 44 4f 53 20 43 4f | O|S=DOS CO|
|00005400| 4d 50 3d 42 43 43 20 20 | 20 20 20 20 20 20 42 6f |MP=BCC | Bo|
|00005410| 72 6c 61 6e 64 20 43 2b | 2b 0a 58 23 20 44 4f 53 |rland C+|+.X# DOS|
|00005420| 20 20 20 20 20 20 20 20 | 20 20 20 20 54 43 43 20 | | TCC |
|00005430| 20 20 20 20 20 20 4f 53 | 3d 44 4f 53 20 43 4f 4d | OS|=DOS COM|
|00005440| 50 3d 54 43 43 20 20 20 | 20 20 20 20 20 42 6f 72 |P=TCC | Bor|
|00005450| 6c 61 6e 64 20 54 75 72 | 62 6f 20 43 2b 2b 0a 58 |land Tur|bo C++.X|
|00005460| 23 20 44 4f 53 20 20 20 | 20 20 20 20 20 20 20 20 |# DOS | |
|00005470| 20 54 43 20 20 20 20 20 | 20 20 20 4f 53 3d 44 4f | TC | OS=DO|
|00005480| 53 20 43 4f 4d 50 3d 54 | 43 20 20 20 20 20 20 20 |S COMP=T|C |
|00005490| 20 20 42 6f 72 6c 61 6e | 64 20 54 75 72 62 6f 20 | Borlan|d Turbo |
|000054a0| 43 0a 58 23 20 44 4f 53 | 20 20 20 20 20 20 20 20 |C.X# DOS| |
|000054b0| 20 20 20 20 4d 53 43 20 | 20 20 20 20 20 20 4f 53 | MSC | OS|
|000054c0| 3d 44 4f 53 20 43 4f 4d | 50 3d 4d 53 43 20 20 20 |=DOS COM|P=MSC |
|000054d0| 20 20 20 20 20 4d 69 63 | 72 6f 73 6f 66 74 20 43 | Mic|rosoft C|
|000054e0| 0a 58 23 20 44 4f 53 20 | 20 20 20 20 20 20 20 20 |.X# DOS | |
|000054f0| 20 20 20 51 43 20 20 20 | 20 20 20 20 20 4f 53 3d | QC | OS=|
|00005500| 44 4f 53 20 43 4f 4d 50 | 3d 51 43 20 20 20 20 20 |DOS COMP|=QC |
|00005510| 20 20 20 20 4d 69 63 72 | 6f 73 6f 66 74 20 51 75 | Micr|osoft Qu|
|00005520| 69 63 6b 20 43 0a 58 23 | 20 4f 53 32 20 20 20 20 |ick C.X#| OS2 |
|00005530| 20 20 20 20 20 20 20 20 | 4d 53 43 20 20 20 20 20 | |MSC |
|00005540| 20 20 4f 53 3d 4f 53 32 | 20 43 4f 4d 50 3d 4d 53 | OS=OS2| COMP=MS|
|00005550| 43 20 20 20 20 20 20 20 | 20 4d 69 63 72 6f 73 6f |C | Microso|
|00005560| 66 74 20 43 0a 58 23 20 | 4f 53 32 20 20 20 20 20 |ft C.X# |OS2 |
|00005570| 20 20 20 20 20 20 20 43 | 53 45 54 32 20 20 20 20 | C|SET2 |
|00005580| 20 4f 53 3d 4f 53 32 20 | 43 4f 4d 50 3d 43 53 45 | OS=OS2 |COMP=CSE|
|00005590| 54 32 20 20 20 20 20 20 | 49 42 4d 20 43 20 53 65 |T2 |IBM C Se|
|000055a0| 74 2f 32 0a 58 23 20 4f | 53 32 20 20 20 20 20 20 |t/2.X# O|S2 |
|000055b0| 20 20 20 20 20 20 45 4d | 58 20 20 20 20 20 20 20 | EM|X |
|000055c0| 4f 53 3d 4f 53 32 20 43 | 4f 4d 50 3d 45 4d 58 20 |OS=OS2 C|OMP=EMX |
|000055d0| 20 20 20 20 20 20 20 65 | 6d 78 2f 67 63 63 0a 58 | e|mx/gcc.X|
|000055e0| 23 20 4f 53 32 20 20 20 | 20 20 20 20 20 20 20 20 |# OS2 | |
|000055f0| 20 54 53 43 20 20 20 20 | 20 20 20 4f 53 3d 4f 53 | TSC | OS=OS|
|00005600| 32 20 43 4f 4d 50 3d 54 | 53 43 20 20 20 20 20 20 |2 COMP=T|SC |
|00005610| 20 20 54 6f 70 53 70 65 | 65 64 20 43 0a 58 23 20 | TopSpe|ed C.X# |
|00005620| 4f 53 32 20 20 20 20 20 | 20 20 20 20 20 20 20 57 |OS2 | W|
|00005630| 41 54 43 4f 4d 43 20 20 | 20 4f 53 3d 4f 53 32 20 |ATCOMC | OS=OS2 |
|00005640| 43 4f 4d 50 3d 57 41 54 | 43 4f 4d 43 20 20 20 20 |COMP=WAT|COMC |
|00005650| 57 61 74 63 6f 6d 20 43 | 0a 58 23 2d 2d 2d 2d 2d |Watcom C|.X#-----|
|00005660| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005670| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005680| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005690| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000056a0| 2d 2d 0a 58 23 20 53 70 | 65 63 69 61 6c 20 63 61 |--.X# Sp|ecial ca|
|000056b0| 73 65 20 66 6f 72 20 4d | 69 63 72 6f 73 6f 66 74 |se for M|icrosoft|
|000056c0| 20 43 6f 6d 70 69 6c 65 | 72 20 77 68 65 6e 20 74 | Compile|r when t|
|000056d0| 68 65 20 68 6f 73 74 20 | 4f 53 20 69 73 20 44 4f |he host |OS is DO|
|000056e0| 53 20 61 6e 64 20 74 68 | 65 0a 58 23 20 74 61 72 |S and th|e.X# tar|
|000056f0| 67 65 74 20 4f 53 20 69 | 73 20 4f 53 32 3a 0a 58 |get OS i|s OS2:.X|
|00005700| 23 20 43 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 20 77 |# Comman|d line w|
|00005710| 69 6c 6c 20 62 65 20 4f | 53 3d 44 4f 53 20 43 4f |ill be O|S=DOS CO|
|00005720| 4d 50 3d 4d 53 43 20 54 | 4f 53 3d 4f 53 32 0a 58 |MP=MSC T|OS=OS2.X|
|00005730| 23 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |#-------|--------|
|00005740| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005750| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005760| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005770| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 58 4d 4f 44 45 4c 20 |--------|.XMODEL |
|00005780| 3d 20 4c 0a 58 6d 6f 64 | 65 6c 20 3d 20 6c 0a 58 |= L.Xmod|el = l.X|
|00005790| 23 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |#-------|--------|
|000057a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000057b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000057c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000057d0| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 58 23 20 64 65 66 61 |--------|.X# defa|
|000057e0| 75 6c 74 20 73 65 74 75 | 70 20 66 6f 72 20 42 43 |ult setu|p for BC|
|000057f0| 43 20 75 6e 64 65 72 20 | 44 4f 53 2c 20 6f 70 74 |C under |DOS, opt|
|00005800| 69 6d 69 73 65 64 20 76 | 65 72 73 69 6f 6e 0a 58 |imised v|ersion.X|
|00005810| 23 20 63 68 61 6e 67 65 | 20 76 61 6c 75 65 73 20 |# change| values |
|00005820| 62 65 6c 6f 77 20 6f 72 | 20 6f 76 65 72 72 69 64 |below or| overrid|
|00005830| 65 20 77 69 74 68 20 2d | 65 20 73 77 69 74 63 68 |e with -|e switch|
|00005840| 20 6f 6e 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 | on comm|and line|
|00005850| 0a 58 23 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.X#-----|--------|
|00005860| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005870| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005880| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005890| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 58 4f 53 3d 44 |--------|--.XOS=D|
|000058a0| 4f 53 0a 58 43 4f 4d 50 | 3d 42 43 43 0a 58 4f 50 |OS.XCOMP|=BCC.XOP|
|000058b0| 54 3d 59 0a 58 23 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |T=Y.X#--|--------|
|000058c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000058d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000058e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000058f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 58 2e |--------|-----.X.|
|00005900| 49 46 20 24 28 54 4f 53 | 29 20 3d 3d 20 24 28 4e |IF $(TOS|) == $(N|
|00005910| 55 4c 4c 29 0a 58 20 20 | 20 20 54 4f 53 20 3d 20 |ULL).X | TOS = |
|00005920| 24 28 4f 53 29 0a 58 2e | 45 4e 44 0a 58 2e 49 46 |$(OS).X.|END.X.IF|
|00005930| 20 24 28 4f 53 29 20 3d | 3d 20 4f 53 32 0a 58 23 | $(OS) =|= OS2.X#|
|00005940| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005950| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005960| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005970| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005980| 3d 3d 3d 3d 3d 3d 3d 3d | 0a 58 23 3d 3d 3d 3d 3d |========|.X#=====|
|00005990| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000059a0| 3d 3d 3d 3d 20 4f 53 32 | 20 2d 20 43 53 45 54 32 |==== OS2| - CSET2|
|000059b0| 20 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d | =======|========|
|000059c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000059d0| 3d 3d 3d 0a 58 23 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |===.X#==|========|
|000059e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000059f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005a00| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005a10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 0a 58 |========|======.X|
|00005a20| 20 20 20 20 2e 49 46 20 | 24 28 43 4f 4d 50 29 20 | .IF |$(COMP) |
|00005a30| 3d 3d 20 43 53 45 54 32 | 0a 58 20 20 20 20 20 20 |== CSET2|.X |
|00005a40| 20 20 4c 49 4e 4b 20 20 | 20 20 20 20 3d 20 6c 69 | LINK | = li|
|00005a50| 6e 6b 33 38 36 0a 58 20 | 20 20 20 20 20 20 20 43 |nk386.X | C|
|00005a60| 43 20 20 20 20 20 20 20 | 20 3d 20 69 63 63 0a 58 |C | = icc.X|
|00005a70| 20 20 20 20 20 20 20 20 | 4c 49 42 5f 45 58 45 20 | |LIB_EXE |
|00005a80| 20 20 3d 20 6c 69 62 0a | 58 20 20 20 20 20 20 20 | = lib.|X |
|00005a90| 20 4c 49 42 5f 44 49 52 | 20 20 20 3d 20 67 3a 5c | LIB_DIR| = g:\|
|00005aa0| 69 62 6d 63 5c 6c 69 62 | 0a 58 20 20 20 20 20 20 |ibmc\lib|.X |
|00005ab0| 20 20 53 45 54 41 52 47 | 56 20 20 20 3d 20 24 28 | SETARG|V = $(|
|00005ac0| 4c 49 42 5f 44 49 52 29 | 5c 73 65 74 61 72 67 76 |LIB_DIR)|\setargv|
|00005ad0| 0a 58 20 20 20 20 20 20 | 20 20 2e 49 46 20 24 28 |.X | .IF $(|
|00005ae0| 4f 50 54 29 20 3d 3d 20 | 4e 0a 58 20 20 20 20 20 |OPT) == |N.X |
|00005af0| 20 20 20 20 20 20 20 43 | 44 45 42 55 47 20 3d 20 | C|DEBUG = |
|00005b00| 2d 51 2b 20 2d 4f 2d 20 | 2d 54 69 20 2d 49 24 28 |-Q+ -O- |-Ti -I$(|
|00005b10| 43 43 5f 49 4e 43 29 0a | 58 20 20 20 20 20 20 20 |CC_INC).|X |
|00005b20| 20 20 20 20 20 4c 44 45 | 42 55 47 20 3d 20 2f 4e | LDE|BUG = /N|
|00005b30| 4f 45 20 2f 53 45 3a 31 | 36 30 20 2f 50 4d 54 59 |OE /SE:1|60 /PMTY|
|00005b40| 50 45 3a 56 49 4f 0a 58 | 20 20 20 20 20 20 20 20 |PE:VIO.X| |
|00005b50| 20 20 20 20 44 42 47 20 | 20 20 20 3d 64 0a 58 20 | DBG | =d.X |
|00005b60| 20 20 20 20 20 20 20 2e | 45 4c 53 45 0a 58 20 20 | .|ELSE.X |
|00005b70| 20 20 20 20 20 20 20 20 | 20 20 43 44 45 42 55 47 | | CDEBUG|
|00005b80| 20 20 3d 20 2d 51 2b 20 | 2d 4f 2b 20 2d 44 4e 44 | = -Q+ |-O+ -DND|
|00005b90| 45 42 55 47 20 2d 49 24 | 28 43 43 5f 49 4e 43 29 |EBUG -I$|(CC_INC)|
|00005ba0| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 4c 44 |.X | LD|
|00005bb0| 45 42 55 47 20 20 3d 20 | 2f 4e 4f 45 20 2f 53 45 |EBUG = |/NOE /SE|
|00005bc0| 3a 31 36 30 20 2f 50 4d | 54 59 50 45 3a 56 49 4f |:160 /PM|TYPE:VIO|
|00005bd0| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 44 42 |.X | DB|
|00005be0| 47 20 20 20 20 20 3d 6f | 0a 58 20 20 20 20 20 20 |G =o|.X |
|00005bf0| 20 20 2e 45 4e 44 0a 58 | 20 20 20 20 20 20 20 20 | .END.X| |
|00005c00| 4f 42 4a 20 20 20 20 20 | 20 3d 20 6f 62 6a 0a 58 |OBJ | = obj.X|
|00005c10| 20 20 20 20 20 20 20 20 | 4f 42 4a 5f 44 49 52 20 | |OBJ_DIR |
|00005c20| 20 3d 20 6f 24 28 44 42 | 47 29 0a 58 20 20 20 20 | = o$(DB|G).X |
|00005c30| 20 20 20 20 50 44 43 4c | 49 42 20 20 20 3d 20 63 | PDCL|IB = c|
|00005c40| 75 72 73 65 73 24 28 44 | 42 47 29 2e 6c 69 62 0a |urses$(D|BG).lib.|
|00005c50| 58 20 20 20 20 20 20 20 | 20 4c 49 42 52 53 50 20 |X | LIBRSP |
|00005c60| 20 20 3d 2c 6c 69 62 2e | 6d 61 70 3b 0a 58 20 20 | =,lib.|map;.X |
|00005c70| 20 20 20 20 20 20 43 46 | 4c 41 47 53 20 20 20 3d | CF|LAGS =|
|00005c80| 20 24 28 43 44 45 42 55 | 47 29 20 2d 46 6f 24 40 | $(CDEBU|G) -Fo$@|
|00005c90| 20 2d 63 20 2d 49 24 28 | 43 43 5f 49 4e 43 29 0a | -c -I$(|CC_INC).|
|00005ca0| 58 20 20 20 20 20 20 20 | 20 4d 41 4b 45 5f 4c 49 |X | MAKE_LI|
|00005cb0| 42 20 3d 20 24 28 4c 49 | 42 5f 45 58 45 29 20 24 |B = $(LI|B_EXE) $|
|00005cc0| 28 50 44 43 4c 49 42 29 | 20 24 28 4c 49 42 46 4c |(PDCLIB)| $(LIBFL|
|00005cd0| 41 47 53 29 20 40 24 28 | 4c 52 46 29 0a 58 20 20 |AGS) @$(|LRF).X |
|00005ce0| 20 20 20 20 20 20 44 4c | 46 4c 41 47 53 20 20 3d | DL|FLAGS =|
|00005cf0| 20 24 28 4c 44 45 42 55 | 47 29 20 24 2a 2e 6f 62 | $(LDEBU|G) $*.ob|
|00005d00| 6a 2c 2c 2c 24 28 50 44 | 43 4c 49 42 29 3b 0a 58 |j,,,$(PD|CLIB);.X|
|00005d10| 20 20 20 20 20 20 20 20 | 55 54 4c 46 4c 41 47 53 | |UTLFLAGS|
|00005d20| 20 3d 20 24 28 4c 44 45 | 42 55 47 29 20 24 2a 2e | = $(LDE|BUG) $*.|
|00005d30| 6f 62 6a 3b 0a 58 20 20 | 20 20 20 20 20 20 4d 41 |obj;.X | MA|
|00005d40| 4e 46 4c 41 47 53 20 3d | 20 24 28 4c 44 45 42 55 |NFLAGS =| $(LDEBU|
|00005d50| 47 29 20 24 2a 2e 6f 62 | 6a 2b 24 28 53 45 54 41 |G) $*.ob|j+$(SETA|
|00005d60| 52 47 56 29 3b 0a 58 23 | 3d 3d 3d 3d 3d 3d 3d 3d |RGV);.X#|========|
|00005d70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005d80| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005d90| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005da0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005db0| 0a 58 23 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.X#=====|========|
|00005dc0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 20 4f 53 32 |========|==== OS2|
|00005dd0| 20 2d 20 4d 53 43 20 3d | 3d 3d 3d 3d 3d 3d 3d 3d | - MSC =|========|
|00005de0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005df0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 0a 58 23 3d 3d |========|===.X#==|
|00005e00| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005e10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005e20| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005e30| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005e40| 3d 3d 3d 3d 3d 3d 0a 58 | 20 20 20 20 2e 45 4c 49 |======.X| .ELI|
|00005e50| 46 20 24 28 43 4f 4d 50 | 29 20 3d 3d 20 4d 53 43 |F $(COMP|) == MSC|
|00005e60| 0a 58 20 20 20 20 20 20 | 20 20 4c 49 4e 4b 20 20 |.X | LINK |
|00005e70| 20 20 20 20 3d 20 6c 69 | 6e 6b 0a 58 20 20 20 20 | = li|nk.X |
|00005e80| 20 20 20 20 43 43 20 20 | 20 20 20 20 20 20 3d 20 | CC | = |
|00005e90| 63 6c 0a 58 20 20 20 20 | 20 20 20 20 4c 49 42 5f |cl.X | LIB_|
|00005ea0| 45 58 45 20 20 20 3d 20 | 6c 69 62 0a 58 20 20 20 |EXE = |lib.X |
|00005eb0| 20 20 20 20 20 4c 49 42 | 5f 44 49 52 20 20 20 3d | LIB|_DIR =|
|00005ec0| 20 24 28 4c 49 42 29 0a | 58 20 20 20 20 20 20 20 | $(LIB).|X |
|00005ed0| 20 53 45 54 41 52 47 56 | 20 20 20 3d 20 24 28 4c | SETARGV| = $(L|
|00005ee0| 49 42 5f 44 49 52 29 5c | 73 65 74 61 72 67 76 0a |IB_DIR)\|setargv.|
|00005ef0| 58 20 20 20 20 20 20 20 | 20 44 45 46 49 4e 45 53 |X | DEFINES|
|00005f00| 20 20 20 3d 20 2d 44 5f | 5f 4f 53 32 5f 5f 0a 58 | = -D_|_OS2__.X|
|00005f10| 20 20 20 20 20 20 20 20 | 2e 49 46 20 24 28 4f 50 | |.IF $(OP|
|00005f20| 54 29 20 3d 3d 20 4e 0a | 58 20 20 20 20 20 20 20 |T) == N.|X |
|00005f30| 20 20 20 20 20 43 44 45 | 42 55 47 20 3d 2d 6e 6f | CDE|BUG =-no|
|00005f40| 6c 6f 67 6f 20 2d 4f 64 | 20 2d 5a 69 20 2d 41 24 |logo -Od| -Zi -A$|
|00005f50| 28 4d 4f 44 45 4c 29 0a | 58 20 20 20 20 20 20 20 |(MODEL).|X |
|00005f60| 20 20 20 20 20 4c 44 45 | 42 55 47 20 3d 2f 43 4f | LDE|BUG =/CO|
|00005f70| 20 2f 4e 4f 45 20 2f 53 | 45 3a 31 36 30 20 2f 50 | /NOE /S|E:160 /P|
|00005f80| 4d 54 59 50 45 3a 56 49 | 4f 0a 58 20 20 20 20 20 |MTYPE:VI|O.X |
|00005f90| 20 20 20 20 20 20 20 44 | 42 47 20 20 20 20 3d 64 | D|BG =d|
|00005fa0| 0a 58 20 20 20 20 20 20 | 20 20 2e 45 4c 53 45 0a |.X | .ELSE.|
|00005fb0| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 43 44 45 |X | CDE|
|00005fc0| 42 55 47 20 20 3d 2d 6e | 6f 6c 6f 67 6f 20 2d 4f |BUG =-n|ologo -O|
|00005fd0| 78 20 2d 41 24 28 4d 4f | 44 45 4c 29 20 2d 44 4e |x -A$(MO|DEL) -DN|
|00005fe0| 44 45 42 55 47 0a 58 20 | 20 20 20 20 20 20 20 20 |DEBUG.X | |
|00005ff0| 20 20 20 4c 44 45 42 55 | 47 20 20 3d 20 2f 4e 4f | LDEBU|G = /NO|
|00006000| 45 20 2f 53 45 3a 31 36 | 30 20 2f 50 4d 54 59 50 |E /SE:16|0 /PMTYP|
|00006010| 45 3a 56 49 4f 0a 58 20 | 20 20 20 20 20 20 20 20 |E:VIO.X | |
|00006020| 20 20 20 44 42 47 20 20 | 20 20 20 3d 6f 0a 58 20 | DBG | =o.X |
|00006030| 20 20 20 20 20 20 20 2e | 45 4e 44 0a 58 20 20 20 | .|END.X |
|00006040| 20 20 20 20 20 4f 42 4a | 20 20 20 20 20 20 3d 20 | OBJ| = |
|00006050| 6f 62 6a 0a 58 20 20 20 | 20 20 20 20 20 4f 42 4a |obj.X | OBJ|
|00006060| 5f 44 49 52 20 20 3d 20 | 6f 24 28 44 42 47 29 24 |_DIR = |o$(DBG)$|
|00006070| 28 4d 4f 44 45 4c 29 0a | 58 20 20 20 20 20 20 20 |(MODEL).|X |
|00006080| 20 50 44 43 4c 49 42 20 | 20 20 3d 20 24 28 4d 4f | PDCLIB | = $(MO|
|00006090| 44 45 4c 29 63 75 72 73 | 65 73 24 28 44 42 47 29 |DEL)curs|es$(DBG)|
|000060a0| 2e 6c 69 62 0a 58 20 20 | 20 20 20 20 20 20 4c 49 |.lib.X | LI|
|000060b0| 42 52 53 50 20 20 20 3d | 2c 6c 69 62 2e 6d 61 70 |BRSP =|,lib.map|
|000060c0| 3b 0a 58 20 20 20 20 20 | 20 20 20 43 46 4c 41 47 |;.X | CFLAG|
|000060d0| 53 20 20 20 3d 20 24 28 | 43 44 45 42 55 47 29 20 |S = $(|CDEBUG) |
|000060e0| 24 28 44 45 46 49 4e 45 | 53 29 20 2d 46 6f 24 40 |$(DEFINE|S) -Fo$@|
|000060f0| 20 2d 63 20 2d 49 24 28 | 43 43 5f 49 4e 43 29 0a | -c -I$(|CC_INC).|
|00006100| 58 20 20 20 20 20 20 20 | 20 4d 41 4b 45 5f 4c 49 |X | MAKE_LI|
|00006110| 42 20 3d 20 24 28 4c 49 | 42 5f 45 58 45 29 20 24 |B = $(LI|B_EXE) $|
|00006120| 28 50 44 43 4c 49 42 29 | 20 24 28 4c 49 42 46 4c |(PDCLIB)| $(LIBFL|
|00006130| 41 47 53 29 20 40 24 28 | 4c 52 46 29 0a 58 20 20 |AGS) @$(|LRF).X |
|00006140| 20 20 20 20 20 20 44 4c | 46 4c 41 47 53 20 20 3d | DL|FLAGS =|
|00006150| 20 24 28 4c 44 45 42 55 | 47 29 20 24 2a 2e 6f 62 | $(LDEBU|G) $*.ob|
|00006160| 6a 2c 2c 2c 24 28 50 44 | 43 4c 49 42 29 3b 0a 58 |j,,,$(PD|CLIB);.X|
|00006170| 20 20 20 20 20 20 20 20 | 55 54 4c 46 4c 41 47 53 | |UTLFLAGS|
|00006180| 20 20 3d 20 24 28 4c 44 | 45 42 55 47 29 20 24 2a | = $(LD|EBUG) $*|
|00006190| 2e 6f 62 6a 3b 0a 58 20 | 20 20 20 20 20 20 20 4d |.obj;.X | M|
|000061a0| 41 4e 46 4c 41 47 53 20 | 3d 20 24 28 4c 44 45 42 |ANFLAGS |= $(LDEB|
|000061b0| 55 47 29 20 24 2a 2e 6f | 62 6a 2b 24 28 53 45 54 |UG) $*.o|bj+$(SET|
|000061c0| 41 52 47 56 29 3b 0a 58 | 23 3d 3d 3d 3d 3d 3d 3d |ARGV);.X|#=======|
|000061d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000061e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000061f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00006200| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00006210| 3d 0a 58 23 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |=.X#====|========|
|00006220| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 20 4f 53 |========|===== OS|
|00006230| 32 20 2d 20 45 4d 58 20 | 3d 3d 3d 3d 3d 3d 3d 3d |2 - EMX |========|
|00006240| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00006250| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0a 58 23 3d |========|====.X#=|
|00006260| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00006270| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00006280| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00006290| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000062a0| 3d 3d 3d 3d 3d 3d 3d 0a | 58 20 20 20 20 2e 45 4c |=======.|X .EL|
|000062b0| 49 46 20 24 28 43 4f 4d | 50 29 20 3d 3d 20 45 4d |IF $(COM|P) == EM|
|000062c0| 58 0a 58 20 20 20 20 20 | 20 20 20 4c 49 4e 4b 20 |X.X | LINK |
|000062d0| 20 20 20 20 20 3d 20 24 | 28 43 43 29 0a 58 20 20 | = $|(CC).X |
|000062e0| 20 20 20 20 20 20 43 43 | 20 20 20 20 20 20 20 20 | CC| |
|000062f0| 3d 20 67 63 63 0a 58 20 | 20 20 20 20 20 20 20 4c |= gcc.X | L|
|00006300| 49 42 5f 45 58 45 20 20 | 20 3d 20 61 72 0a 58 20 |IB_EXE | = ar.X |
|00006310| 20 20 20 20 20 20 20 4c | 49 42 5f 44 49 52 20 20 | L|IB_DIR |
|00006320| 20 3d 20 67 3a 5c 65 6d | 78 5c 6c 69 62 0a 58 20 | = g:\em|x\lib.X |
|00006330| 20 20 20 20 20 20 20 4c | 49 42 46 4c 41 47 53 20 | L|IBFLAGS |
|00006340| 20 3d 20 72 63 76 0a 58 | 20 20 20 20 20 20 20 20 | = rcv.X| |
|00006350| 44 45 46 49 4e 45 53 20 | 20 20 3d 20 2d 44 5f 5f |DEFINES | = -D__|
|00006360| 4f 53 32 5f 5f 20 2d 44 | 5f 5f 45 4d 58 5f 5f 0a |OS2__ -D|__EMX__.|
|00006370| 58 20 20 20 20 20 20 20 | 20 2e 49 46 20 24 28 4f |X | .IF $(O|
|00006380| 50 54 29 20 3d 3d 20 4e | 0a 58 20 20 20 20 20 20 |PT) == N|.X |
|00006390| 20 20 20 20 20 20 43 44 | 45 42 55 47 20 3d 2d 67 | CD|EBUG =-g|
|000063a0| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 4c 44 |.X | LD|
|000063b0| 45 42 55 47 20 3d 20 2d | 5a 6f 6d 66 20 0a 58 20 |EBUG = -|Zomf .X |
|000063c0| 20 20 20 20 20 20 20 20 | 20 20 20 44 42 47 20 20 | | DBG |
|000063d0| 20 20 3d 64 0a 58 20 20 | 20 20 20 20 20 20 2e 45 | =d.X | .E|
|000063e0| 4c 53 45 0a 58 20 20 20 | 20 20 20 20 20 20 20 20 |LSE.X | |
|000063f0| 20 43 44 45 42 55 47 20 | 20 3d 2d 4f 20 2d 44 4e | CDEBUG | =-O -DN|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.