home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 2 / BBS in a box - Trilogy II.iso / Files / Hyper / Co-Cz / Colorizing HC XCMD 1.1.2 ƒ / Colorizing HC XCMD < prev    next >
MacBinary  |  1992-09-16  |  60.8 KB  |  [STAK/WILD]

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

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: Colorizing HC XCMD

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert HyperCard Stack (archive/hypercard) idMeta Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Thu May 7 13:24:36 1992, modified Wed Sep 16 05:16:23 1992, creator HyperCard, type HyperCard stack, 37600 bytes "Colorizing HC XCMD" , at 0x9360 24379 bytes resource default (weak)
99% file data default
74% TrID Mac HyperCard stack (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[STAK]
macFileCreator[WILD]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 12 43 6f 6c 6f 72 69 | 7a 69 6e 67 20 48 43 20 |..Colori|zing HC |
|00000010| 58 43 4d 44 00 00 00 00 | 00 00 00 00 00 00 00 00 |XCMD....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 01 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 00 92 e0 00 | 00 5f 3b a6 2f 18 54 a6 |........|._;./.T.|
|00000060| dc ab e7 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 40 7d 00 00 |........|....@}..|
|00000080| 00 00 62 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..b.STAK|........|
|00000090| 00 00 00 0a 00 00 92 e0 | 00 00 62 00 00 00 00 00 |........|..b.....|
|000000a0| 00 00 00 00 00 00 00 02 | 00 00 0a 1c 00 00 00 02 |........|........|
|000000b0| 00 00 0b 52 00 00 12 50 | 00 00 00 00 00 00 00 00 |...R...P|........|
|000000c0| 00 00 10 2a 00 00 00 00 | 00 01 00 00 d0 00 00 00 |...*....|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 10 80 00 02 10 80 00 | 02 10 80 00 02 10 80 00 |........|........|
|000000f0| 1f 09 ae 5f 00 00 00 00 | 00 00 00 00 01 56 02 00 |..._....|.....V..|
|00000100| 00 00 00 00 01 56 02 00 | 00 00 00 00 00 00 00 00 |.....V..|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d bf 00 00 0c fc | 01 56 02 00 00 00 00 00 |........|.V......|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 6f 6e 20 63 48 43 69 6e | 73 74 61 6c 6c 20 64 65 |on cHCin|stall de|
|00000690| 70 74 68 0d 73 65 74 20 | 63 75 72 73 6f 72 20 74 |pth.set |cursor t|
|000006a0| 6f 20 62 75 73 79 0d 0d | 69 66 20 63 68 65 63 6b |o busy..|if check|
|000006b0| 45 6e 76 69 72 6f 6e 28 | 64 65 70 74 68 29 20 69 |Environ(|depth) i|
|000006c0| 73 20 6e 6f 74 20 22 4f | 4b 22 20 74 68 65 6e 0d |s not "O|K" then.|
|000006d0| 67 6f 20 48 6f 6d 65 0d | 67 65 74 48 6f 6d 65 49 |go Home.|getHomeI|
|000006e0| 6e 66 6f 0d 65 78 69 74 | 20 74 6f 20 48 79 70 65 |nfo.exit| to Hype|
|000006f0| 72 43 61 72 64 0d 65 6e | 64 20 69 66 0d 65 6e 64 |rCard.en|d if.end|
|00000700| 20 63 48 43 69 6e 73 74 | 61 6c 6c 0d 0d 66 75 6e | cHCinst|all..fun|
|00000710| 63 74 69 6f 6e 20 63 68 | 65 63 6b 45 6e 76 69 72 |ction ch|eckEnvir|
|00000720| 6f 6e 20 54 68 65 44 65 | 70 74 68 0d 2d 2d 20 54 |on TheDe|pth.-- T|
|00000730| 68 65 20 68 65 61 70 73 | 70 61 63 65 20 72 65 71 |he heaps|pace req|
|00000740| 75 69 72 65 6d 65 6e 74 | 73 20 76 61 72 79 20 64 |uirement|s vary d|
|00000750| 65 70 65 6e 64 69 6e 67 | 20 6f 6e 20 79 6f 75 72 |epending| on your|
|00000760| 20 73 74 61 63 6b 0d 70 | 75 74 20 4d 61 78 44 65 | stack.p|ut MaxDe|
|00000770| 70 74 68 28 29 20 69 6e | 74 6f 20 4d 78 44 65 70 |pth() in|to MxDep|
|00000780| 74 68 0d 69 66 20 54 68 | 65 44 65 70 74 68 20 69 |th.if Th|eDepth i|
|00000790| 73 20 65 6d 70 74 79 20 | 74 68 65 6e 20 70 75 74 |s empty |then put|
|000007a0| 20 4d 78 44 65 70 74 68 | 20 69 6e 74 6f 20 54 68 | MxDepth| into Th|
|000007b0| 65 44 65 70 74 68 0d 65 | 6c 73 65 20 70 75 74 20 |eDepth.e|lse put |
|000007c0| 4d 69 6e 20 28 4d 78 44 | 65 70 74 68 2c 54 68 65 |Min (MxD|epth,The|
|000007d0| 44 65 70 74 68 29 20 69 | 6e 74 6f 20 54 68 65 44 |Depth) i|nto TheD|
|000007e0| 65 70 74 68 0d 70 75 74 | 20 74 68 65 20 68 65 61 |epth.put| the hea|
|000007f0| 70 53 70 61 63 65 20 69 | 6e 74 6f 20 54 68 65 48 |pSpace i|nto TheH|
|00000800| 65 61 70 53 70 61 63 65 | 0d 70 75 74 20 65 6d 70 |eapSpace|.put emp|
|00000810| 74 79 20 69 6e 74 6f 20 | 6f 6e 63 65 0d 72 65 70 |ty into |once.rep|
|00000820| 65 61 74 20 77 68 69 6c | 65 20 54 68 65 44 65 70 |eat whil|e TheDep|
|00000830| 74 68 20 b3 20 34 20 6f | 72 20 6f 6e 63 65 20 69 |th . 4 o|r once i|
|00000840| 73 20 65 6d 70 74 79 0d | 70 75 74 20 32 2a 54 68 |s empty.|put 2*Th|
|00000850| 65 44 65 70 74 68 2a 28 | 77 69 64 74 68 20 6f 66 |eDepth*(|width of|
|00000860| 20 74 68 69 73 20 63 64 | 20 2a 20 68 65 69 67 68 | this cd| * heigh|
|00000870| 74 20 6f 66 20 74 68 69 | 73 20 63 64 29 20 44 49 |t of thi|s cd) DI|
|00000880| 56 20 38 c2 0d 2b 20 33 | 35 30 30 30 20 69 6e 74 |V 8..+ 3|5000 int|
|00000890| 6f 20 52 65 71 53 69 7a | 65 0d 69 66 20 54 68 65 |o ReqSiz|e.if The|
|000008a0| 48 65 61 70 53 70 61 63 | 65 20 3c 20 52 65 71 53 |HeapSpac|e < ReqS|
|000008b0| 69 7a 65 20 74 68 65 6e | 0d 69 66 20 6f 6e 63 65 |ize then|.if once|
|000008c0| 20 69 73 20 65 6d 70 74 | 79 20 74 68 65 6e 0d 65 | is empt|y then.e|
|000008d0| 72 72 4d 65 6d 6f 72 79 | 20 54 68 65 44 65 70 74 |rrMemory| TheDept|
|000008e0| 68 2c 52 65 71 53 69 7a | 65 0d 65 6e 64 20 69 66 |h,ReqSiz|e.end if|
|000008f0| 0d 65 6c 73 65 0d 69 66 | 20 6f 6e 63 65 20 69 73 |.else.if| once is|
|00000900| 20 6e 6f 74 20 65 6d 70 | 74 79 0d 74 68 65 6e 20 | not emp|ty.then |
|00000910| 69 66 20 6e 6f 74 20 77 | 61 72 6e 44 65 70 74 68 |if not w|arnDepth|
|00000920| 28 54 68 65 44 65 70 74 | 68 29 20 74 68 65 6e 20 |(TheDept|h) then |
|00000930| 72 65 74 75 72 6e 20 65 | 6d 70 74 79 0d 69 66 20 |return e|mpty.if |
|00000940| 54 68 65 44 65 70 74 68 | 20 3c 20 34 20 74 68 65 |TheDepth| < 4 the|
|00000950| 6e 20 65 72 72 42 69 74 | 44 65 70 74 68 0d 69 66 |n errBit|Depth.if|
|00000960| 20 54 68 65 48 65 61 70 | 53 70 61 63 65 20 3c 20 | TheHeap|Space < |
|00000970| 52 65 71 53 69 7a 65 2b | 39 32 31 36 30 20 2d 2d |ReqSize+|92160 --|
|00000980| 20 63 68 65 63 6b 20 66 | 6f 72 20 39 30 4b 20 65 | check f|or 90K e|
|00000990| 78 74 72 61 0d 74 68 65 | 6e 20 65 72 72 4d 65 6d |xtra.the|n errMem|
|000009a0| 6f 72 79 20 54 68 65 44 | 65 70 74 68 2c 52 65 71 |ory TheD|epth,Req|
|000009b0| 53 69 7a 65 2c 54 72 75 | 65 0d 69 66 20 73 74 61 |Size,Tru|e.if sta|
|000009c0| 63 6b 41 63 74 69 76 61 | 74 65 28 54 68 65 44 65 |ckActiva|te(TheDe|
|000009d0| 70 74 68 29 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |pth) is |not empt|
|000009e0| 79 0d 74 68 65 6e 20 65 | 72 72 43 6f 6c 6f 72 0d |y.then e|rrColor.|
|000009f0| 72 65 74 75 72 6e 20 22 | 4f 4b 22 20 2d 2d 20 65 |return "|OK" -- e|
|00000a00| 76 65 6e 20 69 66 20 65 | 72 72 6f 72 0d 65 6e 64 |ven if e|rror.end|
|00000a10| 20 69 66 0d 70 75 74 20 | 54 72 75 65 20 69 6e 74 | if.put |True int|
|00000a20| 6f 20 6f 6e 63 65 0d 70 | 75 74 20 70 72 65 76 44 |o once.p|ut prevD|
|00000a30| 65 70 74 68 28 54 68 65 | 44 65 70 74 68 29 20 69 |epth(The|Depth) i|
|00000a40| 6e 74 6f 20 54 68 65 44 | 65 70 74 68 0d 65 6e 64 |nto TheD|epth.end|
|00000a50| 20 72 65 70 65 61 74 0d | 65 6e 64 20 63 68 65 63 | repeat.|end chec|
|00000a60| 6b 45 6e 76 69 72 6f 6e | 0d 0d 66 75 6e 63 74 69 |kEnviron|..functi|
|00000a70| 6f 6e 20 70 72 65 76 44 | 65 70 74 68 20 64 65 70 |on prevD|epth dep|
|00000a80| 74 68 0d 2d 2d 20 6b 6e | 6f 77 6e 20 73 63 72 65 |th.-- kn|own scre|
|00000a90| 65 6e 20 64 65 70 74 68 | 73 0d 69 66 20 64 65 70 |en depth|s.if dep|
|00000aa0| 74 68 20 3e 20 32 34 20 | 74 68 65 6e 20 72 65 74 |th > 24 |then ret|
|00000ab0| 75 72 6e 20 32 34 0d 69 | 66 20 64 65 70 74 68 20 |urn 24.i|f depth |
|00000ac0| 3e 20 31 36 20 74 68 65 | 6e 20 72 65 74 75 72 6e |> 16 the|n return|
|00000ad0| 20 31 36 0d 69 66 20 64 | 65 70 74 68 20 3e 20 38 | 16.if d|epth > 8|
|00000ae0| 20 74 68 65 6e 20 72 65 | 74 75 72 6e 20 38 0d 69 | then re|turn 8.i|
|00000af0| 66 20 64 65 70 74 68 20 | 3e 20 34 20 74 68 65 6e |f depth |> 4 then|
|00000b00| 20 72 65 74 75 72 6e 20 | 34 0d 72 65 74 75 72 6e | return |4.return|
|00000b10| 20 31 0d 65 6e 64 20 70 | 72 65 76 44 65 70 74 68 | 1.end p|revDepth|
|00000b20| 0d 0d 6f 6e 20 65 72 72 | 4d 65 6d 6f 72 79 20 54 |..on err|Memory T|
|00000b30| 68 65 44 65 70 74 68 2c | 50 61 72 74 69 74 69 6f |heDepth,|Partitio|
|00000b40| 6e 53 69 7a 65 2c 53 6f | 66 74 0d 70 75 74 20 74 |nSize,So|ft.put t|
|00000b50| 68 65 20 73 68 6f 72 74 | 20 6e 61 6d 65 20 6f 66 |he short| name of|
|00000b60| 20 48 79 70 65 72 43 61 | 72 64 20 69 6e 74 6f 20 | HyperCa|rd into |
|00000b70| 54 68 65 48 79 70 65 72 | 43 61 72 64 0d 69 66 20 |TheHyper|Card.if |
|00000b80| 73 6f 66 74 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |soft is |not empt|
|00000b90| 79 20 74 68 65 6e 0d 61 | 6e 73 77 65 72 20 22 4d |y then.a|nswer "M|
|00000ba0| 65 6d 6f 72 79 20 69 73 | 20 6c 6f 77 2e 20 53 6f |emory is| low. So|
|00000bb0| 6d 65 20 6f 70 65 72 61 | 74 69 6f 6e 73 20 6d 61 |me opera|tions ma|
|00000bc0| 79 20 6e 6f 74 20 77 6f | 72 6b 2e 22 20 26 26 c2 |y not wo|rk." &&.|
|00000bd0| 0d 22 59 6f 75 20 73 68 | 6f 75 6c 64 20 69 6e 63 |."You sh|ould inc|
|00000be0| 72 65 61 73 65 20 74 68 | 65 20 6d 65 6d 6f 72 79 |rease th|e memory|
|00000bf0| 20 73 69 7a 65 20 6f 66 | 22 20 26 26 20 54 68 65 | size of|" && The|
|00000c00| 48 79 70 65 72 43 61 72 | 64 20 26 26 c2 0d 22 62 |HyperCar|d &&.."b|
|00000c10| 79 20 61 74 20 6c 65 61 | 73 74 20 39 30 4b 2e 22 |y at lea|st 90K."|
|00000c20| 0d 65 6c 73 65 0d 70 75 | 74 20 28 50 61 72 74 69 |.else.pu|t (Parti|
|00000c30| 74 69 6f 6e 53 69 7a 65 | 20 44 49 56 20 31 30 32 |tionSize| DIV 102|
|00000c40| 34 29 20 26 20 22 4b 22 | 20 69 6e 74 6f 20 50 61 |4) & "K"| into Pa|
|00000c50| 72 74 69 74 69 6f 6e 53 | 69 7a 65 0d 70 75 74 20 |rtitionS|ize.put |
|00000c60| 28 74 68 65 20 68 65 61 | 70 53 70 61 63 65 20 44 |(the hea|pSpace D|
|00000c70| 49 56 20 31 30 32 34 29 | 20 26 20 22 4b 22 20 69 |IV 1024)| & "K" i|
|00000c80| 6e 74 6f 20 68 65 61 70 | 53 69 7a 65 0d 61 6e 73 |nto heap|Size.ans|
|00000c90| 77 65 72 20 50 61 72 74 | 69 74 69 6f 6e 53 69 7a |wer Part|itionSiz|
|00000ca0| 65 20 26 26 20 22 65 78 | 74 72 61 20 6d 65 6d 6f |e && "ex|tra memo|
|00000cb0| 72 79 20 69 73 20 72 65 | 71 75 69 72 65 64 20 74 |ry is re|quired t|
|00000cc0| 6f 20 72 75 6e 20 d2 22 | 20 26 c2 0d 74 68 65 20 |o run ."| &..the |
|00000cd0| 73 68 6f 72 74 20 6e 61 | 6d 65 20 6f 66 20 74 68 |short na|me of th|
|00000ce0| 69 73 20 73 74 61 63 6b | 20 26 20 22 d3 20 69 6e |is stack| & ". in|
|00000cf0| 22 20 26 26 20 54 68 65 | 44 65 70 74 68 20 26 20 |" && The|Depth & |
|00000d00| c2 0d 22 62 69 74 20 6d | 6f 64 65 2c 20 62 75 74 |.."bit m|ode, but|
|00000d10| 20 6f 6e 6c 79 22 20 26 | 26 20 68 65 61 70 53 69 | only" &|& heapSi|
|00000d20| 7a 65 20 26 26 20 22 69 | 73 20 63 75 72 72 65 6e |ze && "i|s curren|
|00000d30| 74 6c 79 20 73 70 61 72 | 65 2e 22 20 26 26 c2 0d |tly spar|e." &&..|
|00000d40| 22 49 6e 63 72 65 61 73 | 65 20 74 68 65 20 6d 65 |"Increas|e the me|
|00000d50| 6d 6f 72 79 20 73 69 7a | 65 20 6f 66 22 20 26 26 |mory siz|e of" &&|
|00000d60| 20 54 68 65 48 79 70 65 | 72 43 61 72 64 20 26 20 | TheHype|rCard & |
|00000d70| 22 2e 22 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 65 |".".end |if.end e|
|00000d80| 72 72 4d 65 6d 6f 72 79 | 0d 0d 66 75 6e 63 74 69 |rrMemory|..functi|
|00000d90| 6f 6e 20 77 61 72 6e 44 | 65 70 74 68 20 64 65 70 |on warnD|epth dep|
|00000da0| 74 68 0d 61 6e 73 77 65 | 72 20 22 44 6f 20 79 6f |th.answe|r "Do yo|
|00000db0| 75 20 77 61 6e 74 20 74 | 6f 20 63 6f 6e 74 69 6e |u want t|o contin|
|00000dc0| 75 65 20 69 6e 22 20 26 | 26 20 64 65 70 74 68 20 |ue in" &|& depth |
|00000dd0| 26 20 22 62 69 74 20 6d | 6f 64 65 3f 22 c2 0d 77 |& "bit m|ode?"..w|
|00000de0| 69 74 68 20 22 4e 6f 22 | 20 6f 72 20 22 59 65 73 |ith "No"| or "Yes|
|00000df0| 22 0d 72 65 74 75 72 6e | 20 69 74 20 69 73 20 22 |".return| it is "|
|00000e00| 59 65 73 22 0d 65 6e 64 | 20 77 61 72 6e 44 65 70 |Yes".end| warnDep|
|00000e10| 74 68 0d 0d 66 75 6e 63 | 74 69 6f 6e 20 6c 61 73 |th..func|tion las|
|00000e20| 74 49 74 65 6d 20 54 68 | 65 44 65 6c 69 6d 69 74 |tItem Th|eDelimit|
|00000e30| 65 72 2c 53 74 72 69 6e | 67 0d 2d 2d 20 72 65 74 |er,Strin|g.-- ret|
|00000e40| 75 72 6e 20 74 68 65 20 | 70 6f 72 74 69 6f 6e 20 |urn the |portion |
|00000e50| 6f 66 20 3c 53 74 72 69 | 6e 67 3e 20 74 68 61 74 |of <Stri|ng> that|
|00000e60| 20 66 6f 6c 6c 6f 77 73 | 20 74 68 65 20 4c 41 53 | follows| the LAS|
|00000e70| 54 20 6f 63 63 75 72 61 | 6e 63 65 20 6f 66 20 3c |T occura|nce of <|
|00000e80| 54 68 65 44 65 6c 69 6d | 69 74 65 72 3e 0d 69 66 |TheDelim|iter>.if|
|00000e90| 20 54 68 65 44 65 6c 69 | 6d 69 74 65 72 20 69 73 | TheDeli|miter is|
|00000ea0| 20 69 6e 20 53 74 72 69 | 6e 67 0d 74 68 65 6e 20 | in Stri|ng.then |
|00000eb0| 70 75 74 20 6c 61 73 74 | 49 74 65 6d 28 54 68 65 |put last|Item(The|
|00000ec0| 44 65 6c 69 6d 69 74 65 | 72 2c 63 68 61 72 20 6f |Delimite|r,char o|
|00000ed0| 66 66 73 65 74 28 54 68 | 65 44 65 6c 69 6d 69 74 |ffset(Th|eDelimit|
|00000ee0| 65 72 2c 53 74 72 69 6e | 67 29 20 2b 20 31 20 74 |er,Strin|g) + 1 t|
|00000ef0| 6f 20 6c 65 6e 67 74 68 | 28 53 74 72 69 6e 67 29 |o length|(String)|
|00000f00| 20 6f 66 20 53 74 72 69 | 6e 67 29 20 69 6e 74 6f | of Stri|ng) into|
|00000f10| 20 53 74 72 69 6e 67 0d | 72 65 74 75 72 6e 20 53 | String.|return S|
|00000f20| 74 72 69 6e 67 0d 65 6e | 64 20 6c 61 73 74 49 74 |tring.en|d lastIt|
|00000f30| 65 6d 0d 0d 6f 6e 20 65 | 72 72 42 69 74 44 65 70 |em..on e|rrBitDep|
|00000f40| 74 68 0d 61 6e 73 77 65 | 72 20 22 54 68 69 73 20 |th.answe|r "This |
|00000f50| 73 74 61 63 6b 20 72 65 | 71 75 69 72 65 73 20 61 |stack re|quires a|
|00000f60| 20 63 6f 6c 6f 72 20 73 | 79 73 74 65 6d 20 73 65 | color s|ystem se|
|00000f70| 74 20 74 6f 20 61 74 20 | 6c 65 61 73 74 20 31 36 |t to at |least 16|
|00000f80| 20 63 6f 6c 6f 72 73 22 | 20 26 26 20 c2 0d 22 28 | colors"| && .."(|
|00000f90| 34 20 62 69 74 2d 64 65 | 70 74 68 29 20 74 6f 20 |4 bit-de|pth) to |
|00000fa0| 64 69 73 70 6c 61 79 20 | 63 6f 6c 6f 72 2e 22 0d |display |color.".|
|00000fb0| 65 6e 64 20 65 72 72 42 | 69 74 44 65 70 74 68 0d |end errB|itDepth.|
|00000fc0| 0d 6f 6e 20 63 6f 6c 6f | 72 69 7a 65 48 43 0d 67 |.on colo|rizeHC.g|
|00000fd0| 6c 6f 62 61 6c 20 67 4f | 4b 54 6f 43 6f 6c 6f 72 |lobal gO|KToColor|
|00000fe0| 69 7a 65 2c 20 67 48 43 | 6f 70 74 69 6f 6e 73 0d |ize, gHC|options.|
|00000ff0| 69 66 20 67 4f 4b 54 6f | 43 6f 6c 6f 72 69 7a 65 |if gOKTo|Colorize|
|00001000| 20 69 73 20 65 6d 70 74 | 79 20 61 6e 64 20 67 48 | is empt|y and gH|
|00001010| 43 6f 70 74 69 6f 6e 73 | 20 69 73 20 6e 6f 74 20 |Coptions| is not |
|00001020| 65 6d 70 74 79 0d 74 68 | 65 6e 20 70 61 73 73 20 |empty.th|en pass |
|00001030| 63 6f 6c 6f 72 69 7a 65 | 48 43 0d 65 6e 64 20 63 |colorize|HC.end c|
|00001040| 6f 6c 6f 72 69 7a 65 48 | 43 0d 0d 66 75 6e 63 74 |olorizeH|C..funct|
|00001050| 69 6f 6e 20 63 6f 6c 6f | 72 50 69 63 6b 65 72 20 |ion colo|rPicker |
|00001060| 70 72 6f 6d 70 74 2c 6c | 6f 63 2c 64 65 66 61 75 |prompt,l|oc,defau|
|00001070| 6c 74 0d 67 6c 6f 62 61 | 6c 20 67 48 43 6f 70 74 |lt.globa|l gHCopt|
|00001080| 69 6f 6e 73 0d 67 6c 6f | 62 61 6c 20 67 4f 4b 54 |ions.glo|bal gOKT|
|00001090| 6f 43 6f 6c 6f 72 69 7a | 65 0d 69 66 20 67 4f 4b |oColoriz|e.if gOK|
|000010a0| 54 6f 43 6f 6c 6f 72 69 | 7a 65 20 69 73 20 65 6d |ToColori|ze is em|
|000010b0| 70 74 79 20 61 6e 64 20 | 63 68 61 72 20 38 20 6f |pty and |char 8 o|
|000010c0| 66 20 67 48 43 6f 70 74 | 69 6f 6e 73 20 ad 20 31 |f gHCopt|ions . 1|
|000010d0| 0d 74 68 65 6e 20 70 61 | 73 73 20 63 6f 6c 6f 72 |.then pa|ss color|
|000010e0| 50 69 63 6b 65 72 0d 72 | 65 74 75 72 6e 20 65 6d |Picker.r|eturn em|
|000010f0| 70 74 79 0d 65 6e 64 20 | 63 6f 6c 6f 72 50 69 63 |pty.end |colorPic|
|00001100| 6b 65 72 0d 0d 66 75 6e | 63 74 69 6f 6e 20 73 74 |ker..fun|ction st|
|00001110| 61 63 6b 41 63 74 69 76 | 61 74 65 20 64 65 70 74 |ackActiv|ate dept|
|00001120| 68 0d 67 6c 6f 62 61 6c | 20 67 4f 4b 54 6f 43 6f |h.global| gOKToCo|
|00001130| 6c 6f 72 69 7a 65 2c 20 | 67 48 43 64 65 70 74 68 |lorize, |gHCdepth|
|00001140| 0d 0d 70 75 74 20 65 6d | 70 74 79 20 69 6e 74 6f |..put em|pty into|
|00001150| 20 67 4f 4b 54 6f 43 6f | 6c 6f 72 69 7a 65 20 2d | gOKToCo|lorize -|
|00001160| 2d 20 65 6e 61 62 6c 65 | 20 58 43 4d 44 0d 63 6f |- enable| XCMD.co|
|00001170| 6c 6f 72 69 7a 65 48 43 | 20 22 69 6e 73 74 61 6c |lorizeHC| "instal|
|00001180| 6c 22 2c 64 65 70 74 68 | 0d 0d 69 66 20 74 68 65 |l",depth|..if the|
|00001190| 20 72 65 73 75 6c 74 20 | 69 73 20 65 6d 70 74 79 | result |is empty|
|000011a0| 0d 74 68 65 6e 20 63 6f | 6c 6f 72 69 7a 65 48 43 |.then co|lorizeHC|
|000011b0| 20 22 61 73 73 69 67 6e | 54 6f 46 72 6f 6e 74 22 | "assign|ToFront"|
|000011c0| 0d 0d 70 75 74 20 74 68 | 65 20 72 65 73 75 6c 74 |..put th|e result|
|000011d0| 20 69 6e 74 6f 20 67 4f | 4b 54 6f 43 6f 6c 6f 72 | into gO|KToColor|
|000011e0| 69 7a 65 0d 70 75 74 20 | 64 65 70 74 68 20 69 6e |ize.put |depth in|
|000011f0| 74 6f 20 67 48 43 64 65 | 70 74 68 0d 0d 72 65 74 |to gHCde|pth..ret|
|00001200| 75 72 6e 20 67 4f 4b 54 | 6f 43 6f 6c 6f 72 69 7a |urn gOKT|oColoriz|
|00001210| 65 0d 65 6e 64 20 73 74 | 61 63 6b 41 63 74 69 76 |e.end st|ackActiv|
|00001220| 61 74 65 0d 0d 6f 6e 20 | 65 72 72 43 6f 6c 6f 72 |ate..on |errColor|
|00001230| 0d 67 6c 6f 62 61 6c 20 | 67 4f 4b 54 6f 43 6f 6c |.global |gOKToCol|
|00001240| 6f 72 69 7a 65 0d 61 6e | 73 77 65 72 20 22 57 61 |orize.an|swer "Wa|
|00001250| 72 6e 69 6e 67 3a 20 54 | 68 65 20 65 6e 76 69 72 |rning: T|he envir|
|00001260| 6f 6e 6d 65 6e 74 20 74 | 68 69 73 20 73 74 61 63 |onment t|his stac|
|00001270| 6b 20 69 73 20 63 75 72 | 72 65 6e 74 6c 79 20 72 |k is cur|rently r|
|00001280| 75 6e 6e 69 6e 67 20 69 | 6e 22 20 26 26 20 c2 0d |unning i|n" && ..|
|00001290| 22 69 73 20 75 6e 61 62 | 6c 65 20 74 6f 20 73 75 |"is unab|le to su|
|000012a0| 70 70 6f 72 74 20 63 6f | 6c 6f 72 2e 22 20 26 20 |pport co|lor." & |
|000012b0| 72 65 74 75 72 6e 20 26 | 20 22 52 65 61 73 6f 6e |return &| "Reason|
|000012c0| 3a 22 20 26 26 20 67 4f | 4b 54 6f 43 6f 6c 6f 72 |:" && gO|KToColor|
|000012d0| 69 7a 65 0d 65 6e 64 20 | 65 72 72 43 6f 6c 6f 72 |ize.end |errColor|
|000012e0| 0d 0d 6f 6e 20 63 48 43 | 64 69 73 70 6f 73 65 0d |..on cHC|dispose.|
|000012f0| 67 6c 6f 62 61 6c 20 67 | 4f 4b 54 6f 43 6f 6c 6f |global g|OKToColo|
|00001300| 72 69 7a 65 2c 20 67 48 | 43 64 65 70 74 68 0d 69 |rize, gH|Cdepth.i|
|00001310| 66 20 6e 6f 74 20 74 68 | 65 20 6c 6f 63 6b 53 63 |f not th|e lockSc|
|00001320| 72 65 65 6e 20 74 68 65 | 6e 20 6c 6f 63 6b 20 73 |reen the|n lock s|
|00001330| 63 72 65 65 6e 20 2d 2d | 20 65 6e 73 75 72 65 20 |creen --| ensure |
|00001340| 6c 61 74 65 72 20 73 63 | 72 65 65 6e 20 75 70 64 |later sc|reen upd|
|00001350| 61 74 65 0d 43 6f 6c 6f | 72 69 7a 65 48 43 20 22 |ate.Colo|rizeHC "|
|00001360| 44 69 73 70 6f 73 65 22 | 0d 69 66 20 74 68 65 20 |Dispose"|.if the |
|00001370| 72 65 73 75 6c 74 20 69 | 73 20 6e 6f 74 20 65 6d |result i|s not em|
|00001380| 70 74 79 20 74 68 65 6e | 20 61 6e 73 77 65 72 20 |pty then| answer |
|00001390| 74 68 65 20 72 65 73 75 | 6c 74 0d 70 75 74 20 22 |the resu|lt.put "|
|000013a0| 44 69 73 61 62 6c 65 64 | 22 20 69 6e 74 6f 20 67 |Disabled|" into g|
|000013b0| 4f 4b 54 6f 43 6f 6c 6f | 72 69 7a 65 0d 70 75 74 |OKToColo|rize.put|
|000013c0| 20 31 20 69 6e 74 6f 20 | 67 48 43 64 65 70 74 68 | 1 into |gHCdepth|
|000013d0| 0d 65 6e 64 20 63 48 43 | 64 69 73 70 6f 73 65 0d |.end cHC|dispose.|
|000013e0| 0d 2d 2d 20 77 69 6e 64 | 6f 77 20 61 69 64 73 0d |.-- wind|ow aids.|
|000013f0| 0d 6f 6e 20 63 48 43 61 | 64 64 57 69 6e 64 6f 77 |.on cHCa|ddWindow|
|00001400| 54 6f 4c 69 73 74 20 6e | 61 6d 65 0d 67 6c 6f 62 |ToList n|ame.glob|
|00001410| 61 6c 20 67 48 43 77 69 | 6e 64 6f 77 73 0d 70 75 |al gHCwi|ndows.pu|
|00001420| 74 20 6e 61 6d 65 20 69 | 6e 74 6f 20 69 74 65 6d |t name i|nto item|
|00001430| 20 28 28 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 | ((the n|umber of|
|00001440| 20 69 74 65 6d 73 20 69 | 6e 20 67 48 43 77 69 6e | items i|n gHCwin|
|00001450| 64 6f 77 73 29 2b 31 29 | 20 c2 0d 6f 66 20 67 48 |dows)+1)| ..of gH|
|00001460| 43 77 69 6e 64 6f 77 73 | 0d 65 6e 64 20 63 48 43 |Cwindows|.end cHC|
|00001470| 61 64 64 57 69 6e 64 6f | 77 54 6f 4c 69 73 74 0d |addWindo|wToList.|
|00001480| 0d 6f 6e 20 63 48 43 70 | 69 63 74 57 69 6e 64 6f |.on cHCp|ictWindo|
|00001490| 77 20 6e 61 6d 65 2c 20 | 70 6f 73 2c 20 6b 69 6e |w name, |pos, kin|
|000014a0| 64 2c 20 64 69 74 68 65 | 72 0d 67 6c 6f 62 61 6c |d, dithe|r.global|
|000014b0| 20 67 48 43 6f 70 74 69 | 6f 6e 73 0d 69 66 20 63 | gHCopti|ons.if c|
|000014c0| 68 61 72 20 31 30 20 6f | 66 20 67 48 43 6f 70 74 |har 10 o|f gHCopt|
|000014d0| 69 6f 6e 73 20 69 73 20 | 6e 6f 74 20 31 20 74 68 |ions is |not 1 th|
|000014e0| 65 6e 0d 61 6e 73 77 65 | 72 20 22 59 6f 75 20 6e |en.answe|r "You n|
|000014f0| 65 65 64 20 74 6f 20 73 | 65 74 20 74 68 65 20 d4 |eed to s|et the .|
|00001500| 57 69 6e 64 6f 77 73 d5 | 20 6f 70 74 69 6f 6e 20 |Windows.| option |
|00001510| 62 65 66 6f 72 65 22 20 | 26 26 20 c2 0d 22 63 61 |before" |&& .."ca|
|00001520| 6c 6c 69 6e 67 20 63 48 | 43 70 69 63 74 57 69 6e |lling cH|CpictWin|
|00001530| 64 6f 77 2e 0d 65 78 69 | 74 20 63 48 43 70 69 63 |dow..exi|t cHCpic|
|00001540| 74 57 69 6e 64 6f 77 0d | 65 6e 64 20 69 66 0d 69 |tWindow.|end if.i|
|00001550| 66 20 6b 69 6e 64 20 69 | 73 20 65 6d 70 74 79 20 |f kind i|s empty |
|00001560| 74 68 65 6e 20 70 75 74 | 20 72 65 63 74 20 69 6e |then put| rect in|
|00001570| 74 6f 20 6b 69 6e 64 0d | 69 66 20 6e 61 6d 65 20 |to kind.|if name |
|00001580| 69 73 20 61 20 6e 75 6d | 62 65 72 20 74 68 65 6e |is a num|ber then|
|00001590| 0d 61 6e 73 77 65 72 20 | 22 63 48 43 70 69 63 74 |.answer |"cHCpict|
|000015a0| 57 69 6e 64 6f 77 20 63 | 61 6e 6e 6f 74 20 64 65 |Window c|annot de|
|000015b0| 61 6c 20 77 69 74 68 20 | 72 65 73 6f 75 72 63 65 |al with |resource|
|000015c0| 20 6e 75 6d 62 65 72 73 | 21 22 0d 65 78 69 74 20 | numbers|!".exit |
|000015d0| 63 48 43 70 69 63 74 57 | 69 6e 64 6f 77 0d 65 6e |cHCpictW|indow.en|
|000015e0| 64 20 69 66 0d 69 66 20 | 6e 61 6d 65 20 63 6f 6e |d if.if |name con|
|000015f0| 74 61 69 6e 73 20 22 3a | 22 20 74 68 65 6e 0d 70 |tains ":|" then.p|
|00001600| 69 63 74 75 72 65 20 6e | 61 6d 65 2c 20 66 69 6c |icture n|ame, fil|
|00001610| 65 2c 20 6b 69 6e 64 2c | 20 46 61 6c 73 65 0d 65 |e, kind,| False.e|
|00001620| 6c 73 65 0d 70 69 63 74 | 75 72 65 20 6e 61 6d 65 |lse.pict|ure name|
|00001630| 2c 20 72 65 73 6f 75 72 | 63 65 2c 20 6b 69 6e 64 |, resour|ce, kind|
|00001640| 2c 20 46 61 6c 73 65 0d | 65 6e 64 20 69 66 0d 69 |, False.|end if.i|
|00001650| 66 20 74 68 65 20 72 65 | 73 75 6c 74 20 69 73 20 |f the re|sult is |
|00001660| 65 6d 70 74 79 20 74 68 | 65 6e 20 2d 2d 20 6f 74 |empty th|en -- ot|
|00001670| 68 65 72 77 69 73 65 20 | 77 69 6c 6c 20 73 74 69 |herwise |will sti|
|00001680| 6c 6c 20 62 65 20 73 65 | 74 20 6f 6e 20 72 65 74 |ll be se|t on ret|
|00001690| 75 72 6e 0d 69 66 20 64 | 69 74 68 65 72 20 69 73 |urn.if d|ither is|
|000016a0| 20 6e 6f 74 20 65 6d 70 | 74 79 20 74 68 65 6e 20 | not emp|ty then |
|000016b0| 73 65 74 20 74 68 65 20 | 64 69 74 68 65 72 69 6e |set the |ditherin|
|000016c0| 67 20 6f 66 20 77 69 6e | 64 6f 77 20 6e 61 6d 65 |g of win|dow name|
|000016d0| 20 74 6f 20 64 69 74 68 | 65 72 0d 69 66 20 74 68 | to dith|er.if th|
|000016e0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 69 74 65 6d |e number| of item|
|000016f0| 73 20 6f 66 20 70 6f 73 | 20 69 73 20 34 20 74 68 |s of pos| is 4 th|
|00001700| 65 6e 0d 73 65 74 20 74 | 68 65 20 72 65 63 74 20 |en.set t|he rect |
|00001710| 6f 66 20 77 69 6e 64 6f | 77 20 6e 61 6d 65 20 74 |of windo|w name t|
|00001720| 6f 20 70 6f 73 0d 65 6c | 73 65 20 2d 2d 20 61 73 |o pos.el|se -- as|
|00001730| 73 75 6d 65 20 32 0d 73 | 65 74 20 74 68 65 20 6c |sume 2.s|et the l|
|00001740| 6f 63 20 6f 66 20 77 69 | 6e 64 6f 77 20 6e 61 6d |oc of wi|ndow nam|
|00001750| 65 20 74 6f 20 70 6f 73 | 0d 65 6e 64 20 69 66 0d |e to pos|.end if.|
|00001760| 2d 2d 63 48 43 61 64 64 | 57 69 6e 64 6f 77 54 6f |--cHCadd|WindowTo|
|00001770| 4c 69 73 74 20 6e 61 6d | 65 0d 67 6c 6f 62 61 6c |List nam|e.global|
|00001780| 20 67 48 43 77 69 6e 64 | 6f 77 73 0d 70 75 74 20 | gHCwind|ows.put |
|00001790| 6e 61 6d 65 20 69 6e 74 | 6f 20 69 74 65 6d 20 28 |name int|o item (|
|000017a0| 28 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 69 |(the num|ber of i|
|000017b0| 74 65 6d 73 20 69 6e 20 | 67 48 43 77 69 6e 64 6f |tems in |gHCwindo|
|000017c0| 77 73 29 2b 31 29 20 c2 | 0d 6f 66 20 67 48 43 77 |ws)+1) .|.of gHCw|
|000017d0| 69 6e 64 6f 77 73 0d 65 | 6e 64 20 69 66 0d 65 6e |indows.e|nd if.en|
|000017e0| 64 20 63 48 43 70 69 63 | 74 57 69 6e 64 6f 77 0d |d cHCpic|tWindow.|
|000017f0| 0d 6f 6e 20 63 48 43 70 | 69 63 74 6f 69 64 20 6e |.on cHCp|ictoid n|
|00001800| 61 6d 65 2c 20 61 72 67 | 31 2c 20 61 72 67 32 2c |ame, arg|1, arg2,|
|00001810| 20 61 72 67 33 2c 20 61 | 72 67 34 2c 20 61 72 67 | arg3, a|rg4, arg|
|00001820| 35 2c 20 61 72 67 36 2c | 20 61 72 67 37 0d 67 6c |5, arg6,| arg7.gl|
|00001830| 6f 62 61 6c 20 67 48 43 | 6f 70 74 69 6f 6e 73 0d |obal gHC|options.|
|00001840| 69 66 20 63 68 61 72 20 | 31 30 20 6f 66 20 67 48 |if char |10 of gH|
|00001850| 43 6f 70 74 69 6f 6e 73 | 20 69 73 20 6e 6f 74 20 |Coptions| is not |
|00001860| 31 20 74 68 65 6e 0d 61 | 6e 73 77 65 72 20 22 59 |1 then.a|nswer "Y|
|00001870| 6f 75 20 6e 65 65 64 20 | 74 6f 20 73 65 74 20 74 |ou need |to set t|
|00001880| 68 65 20 d4 57 69 6e 64 | 6f 77 73 d5 20 6f 70 74 |he .Wind|ows. opt|
|00001890| 69 6f 6e 20 62 65 66 6f | 72 65 22 20 26 26 20 c2 |ion befo|re" && .|
|000018a0| 0d 22 63 61 6c 6c 69 6e | 67 20 63 48 43 70 69 63 |."callin|g cHCpic|
|000018b0| 74 6f 69 64 2e 22 0d 65 | 78 69 74 20 63 48 43 70 |toid.".e|xit cHCp|
|000018c0| 69 63 74 6f 69 64 0d 65 | 6e 64 20 69 66 0d 69 66 |ictoid.e|nd if.if|
|000018d0| 20 6e 6f 74 20 28 74 68 | 65 20 53 74 61 63 6b 73 | not (th|e Stacks|
|000018e0| 49 6e 55 73 65 20 63 6f | 6e 74 61 69 6e 73 20 22 |InUse co|ntains "|
|000018f0| 50 69 63 74 6f 69 64 20 | 58 43 4d 44 22 29 20 74 |Pictoid |XCMD") t|
|00001900| 68 65 6e 0d 61 6e 73 77 | 65 72 20 22 59 6f 75 20 |hen.answ|er "You |
|00001910| 6d 75 73 74 20 67 69 76 | 65 20 d4 73 74 61 72 74 |must giv|e .start|
|00001920| 20 75 73 69 6e 67 20 73 | 74 61 63 6b 22 20 26 26 | using s|tack" &&|
|00001930| 20 71 75 6f 74 65 20 26 | 20 22 50 69 63 74 6f 69 | quote &| "Pictoi|
|00001940| 64 20 58 43 4d 44 22 c2 | 0d 26 20 71 75 6f 74 65 |d XCMD".|.& quote|
|00001950| 20 26 20 22 d5 20 62 65 | 66 6f 72 65 20 75 73 69 | & ". be|fore usi|
|00001960| 6e 67 20 63 48 43 70 69 | 63 74 6f 69 64 22 0d 65 |ng cHCpi|ctoid".e|
|00001970| 78 69 74 20 63 48 43 70 | 69 63 74 6f 69 64 0d 65 |xit cHCp|ictoid.e|
|00001980| 6e 64 20 69 66 0d 70 75 | 74 20 74 68 65 20 70 61 |nd if.pu|t the pa|
|00001990| 72 61 6d 73 20 69 6e 74 | 6f 20 70 61 72 61 6d 73 |rams int|o params|
|000019a0| 0d 67 65 74 20 6f 66 66 | 73 65 74 20 28 71 75 6f |.get off|set (quo|
|000019b0| 74 65 20 26 20 22 73 68 | 6f 77 22 20 26 20 71 75 |te & "sh|ow" & qu|
|000019c0| 6f 74 65 2c 20 69 74 29 | 0d 69 66 20 69 74 20 3d |ote, it)|.if it =|
|000019d0| 20 30 20 74 68 65 6e 0d | 70 75 74 20 22 2c 22 20 | 0 then.|put "," |
|000019e0| 26 20 71 75 6f 74 65 20 | 26 20 22 68 69 64 65 22 |& quote |& "hide"|
|000019f0| 20 26 20 71 75 6f 74 65 | 20 61 66 74 65 72 20 70 | & quote| after p|
|00001a00| 61 72 61 6d 73 0d 65 6c | 73 65 0d 70 75 74 20 71 |arams.el|se.put q|
|00001a10| 75 6f 74 65 20 26 20 22 | 68 69 64 65 22 20 26 20 |uote & "|hide" & |
|00001a20| 71 75 6f 74 65 20 69 6e | 74 6f 20 63 68 61 72 20 |quote in|to char |
|00001a30| 69 74 20 74 6f 20 28 69 | 74 2b 36 29 20 6f 66 20 |it to (i|t+6) of |
|00001a40| 70 61 72 61 6d 73 0d 65 | 6e 64 20 69 66 0d 70 75 |params.e|nd if.pu|
|00001a50| 74 20 22 70 69 63 74 6f | 69 64 22 20 69 6e 74 6f |t "picto|id" into|
|00001a60| 20 77 6f 72 64 20 31 20 | 6f 66 20 70 61 72 61 6d | word 1 |of param|
|00001a70| 73 0d 64 6f 20 70 61 72 | 61 6d 73 0d 69 66 20 74 |s.do par|ams.if t|
|00001a80| 68 65 20 72 65 73 75 6c | 74 20 69 73 20 65 6d 70 |he resul|t is emp|
|00001a90| 74 79 20 74 68 65 6e 0d | 2d 2d 61 64 64 57 69 6e |ty then.|--addWin|
|00001aa0| 64 6f 77 54 6f 4c 69 73 | 74 20 6e 61 6d 65 0d 67 |dowToLis|t name.g|
|00001ab0| 6c 6f 62 61 6c 20 67 48 | 43 77 69 6e 64 6f 77 73 |lobal gH|Cwindows|
|00001ac0| 0d 70 75 74 20 6e 61 6d | 65 20 69 6e 74 6f 20 69 |.put nam|e into i|
|00001ad0| 74 65 6d 20 28 28 74 68 | 65 20 6e 75 6d 62 65 72 |tem ((th|e number|
|00001ae0| 20 6f 66 20 69 74 65 6d | 73 20 69 6e 20 67 48 43 | of item|s in gHC|
|00001af0| 77 69 6e 64 6f 77 73 29 | 2b 31 29 20 c2 0d 6f 66 |windows)|+1) ..of|
|00001b00| 20 67 48 43 77 69 6e 64 | 6f 77 73 0d 65 6e 64 20 | gHCwind|ows.end |
|00001b10| 69 66 0d 65 6e 64 20 63 | 48 43 70 69 63 74 6f 69 |if.end c|HCpictoi|
|00001b20| 64 0d 0d 6f 6e 20 63 48 | 43 73 68 6f 77 57 69 6e |d..on cH|CshowWin|
|00001b30| 64 6f 77 73 0d 67 6c 6f | 62 61 6c 20 67 48 43 77 |dows.glo|bal gHCw|
|00001b40| 69 6e 64 6f 77 73 0d 69 | 66 20 67 48 43 77 69 6e |indows.i|f gHCwin|
|00001b50| 64 6f 77 73 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |dows is |not empt|
|00001b60| 79 20 74 68 65 6e 0d 69 | 66 20 74 68 65 20 6c 6f |y then.i|f the lo|
|00001b70| 63 6b 53 63 72 65 65 6e | 20 74 68 65 6e 20 63 48 |ckScreen| then cH|
|00001b80| 43 62 72 65 61 6b 53 63 | 72 65 65 6e 4c 6f 63 6b |CbreakSc|reenLock|
|00001b90| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 69 3d 31 |.repeat |with i=1|
|00001ba0| 20 74 6f 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | to the |number o|
|00001bb0| 66 20 69 74 65 6d 73 20 | 69 6e 20 67 48 43 77 69 |f items |in gHCwi|
|00001bc0| 6e 64 6f 77 73 0d 67 65 | 74 20 6c 61 73 74 49 74 |ndows.ge|t lastIt|
|00001bd0| 65 6d 20 28 22 3a 22 2c | 20 69 74 65 6d 20 69 20 |em (":",| item i |
|00001be0| 6f 66 20 67 48 43 77 69 | 6e 64 6f 77 73 29 0d 69 |of gHCwi|ndows).i|
|00001bf0| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 77 69 6e |f there |is a win|
|00001c00| 64 6f 77 20 69 74 20 74 | 68 65 6e 20 73 68 6f 77 |dow it t|hen show|
|00001c10| 20 77 69 6e 64 6f 77 20 | 69 74 0d 65 6c 73 65 20 | window |it.else |
|00001c20| 61 6e 73 77 65 72 20 22 | 63 48 43 73 68 6f 77 57 |answer "|cHCshowW|
|00001c30| 69 6e 64 6f 77 73 3a 20 | 73 65 65 6d 20 74 6f 20 |indows: |seem to |
|00001c40| 68 61 76 65 20 6c 6f 73 | 74 20 77 69 6e 64 6f 77 |have los|t window|
|00001c50| 22 20 26 26 20 69 74 0d | 65 6e 64 20 72 65 70 65 |" && it.|end repe|
|00001c60| 61 74 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 63 48 |at.end i|f.end cH|
|00001c70| 43 73 68 6f 77 57 69 6e | 64 6f 77 73 0d 0d 6f 6e |CshowWin|dows..on|
|00001c80| 20 63 48 43 68 69 64 65 | 57 69 6e 64 6f 77 73 0d | cHChide|Windows.|
|00001c90| 67 6c 6f 62 61 6c 20 67 | 48 43 77 69 6e 64 6f 77 |global g|HCwindow|
|00001ca0| 73 0d 69 66 20 67 48 43 | 77 69 6e 64 6f 77 73 20 |s.if gHC|windows |
|00001cb0| 69 73 20 6e 6f 74 20 65 | 6d 70 74 79 20 74 68 65 |is not e|mpty the|
|00001cc0| 6e 0d 63 48 43 62 72 65 | 61 6b 53 63 72 65 65 6e |n.cHCbre|akScreen|
|00001cd0| 4c 6f 63 6b 0d 72 65 70 | 65 61 74 20 77 69 74 68 |Lock.rep|eat with|
|00001ce0| 20 69 3d 31 20 74 6f 20 | 74 68 65 20 6e 75 6d 62 | i=1 to |the numb|
|00001cf0| 65 72 20 6f 66 20 69 74 | 65 6d 73 20 69 6e 20 67 |er of it|ems in g|
|00001d00| 48 43 77 69 6e 64 6f 77 | 73 0d 67 65 74 20 6c 61 |HCwindow|s.get la|
|00001d10| 73 74 49 74 65 6d 20 28 | 22 3a 22 2c 20 69 74 65 |stItem (|":", ite|
|00001d20| 6d 20 69 20 6f 66 20 67 | 48 43 77 69 6e 64 6f 77 |m i of g|HCwindow|
|00001d30| 73 29 0d 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |s).if th|ere is a|
|00001d40| 20 77 69 6e 64 6f 77 20 | 69 74 20 74 68 65 6e 20 | window |it then |
|00001d50| 68 69 64 65 20 77 69 6e | 64 6f 77 20 69 74 0d 65 |hide win|dow it.e|
|00001d60| 6c 73 65 20 61 6e 73 77 | 65 72 20 22 63 48 43 73 |lse answ|er "cHCs|
|00001d70| 68 6f 77 57 69 6e 64 6f | 77 73 3a 20 73 65 65 6d |howWindo|ws: seem|
|00001d80| 20 74 6f 20 68 61 76 65 | 20 6c 6f 73 74 20 77 69 | to have| lost wi|
|00001d90| 6e 64 6f 77 22 20 26 26 | 20 69 74 0d 65 6e 64 20 |ndow" &&| it.end |
|00001da0| 72 65 70 65 61 74 0d 65 | 6e 64 20 69 66 0d 65 6e |repeat.e|nd if.en|
|00001db0| 64 20 63 48 43 68 69 64 | 65 57 69 6e 64 6f 77 73 |d cHChid|eWindows|
|00001dc0| 0d 0d 6f 6e 20 63 48 43 | 6b 69 6c 6c 57 69 6e 64 |..on cHC|killWind|
|00001dd0| 6f 77 73 0d 67 6c 6f 62 | 61 6c 20 67 48 43 77 69 |ows.glob|al gHCwi|
|00001de0| 6e 64 6f 77 73 0d 72 65 | 70 65 61 74 20 77 69 74 |ndows.re|peat wit|
|00001df0| 68 20 69 3d 31 20 74 6f | 20 74 68 65 20 6e 75 6d |h i=1 to| the num|
|00001e00| 62 65 72 20 6f 66 20 69 | 74 65 6d 73 20 69 6e 20 |ber of i|tems in |
|00001e10| 67 48 43 77 69 6e 64 6f | 77 73 0d 67 65 74 20 6c |gHCwindo|ws.get l|
|00001e20| 61 73 74 49 74 65 6d 20 | 28 22 3a 22 2c 20 69 74 |astItem |(":", it|
|00001e30| 65 6d 20 69 20 6f 66 20 | 67 48 43 77 69 6e 64 6f |em i of |gHCwindo|
|00001e40| 77 73 29 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |ws).if t|here is |
|00001e50| 61 20 77 69 6e 64 6f 77 | 20 69 74 20 74 68 65 6e |a window| it then|
|00001e60| 20 63 6c 6f 73 65 20 77 | 69 6e 64 6f 77 20 69 74 | close w|indow it|
|00001e70| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 70 75 74 20 |.end rep|eat.put |
|00001e80| 65 6d 70 74 79 20 69 6e | 74 6f 20 67 48 43 77 69 |empty in|to gHCwi|
|00001e90| 6e 64 6f 77 73 0d 65 6e | 64 20 63 48 43 6b 69 6c |ndows.en|d cHCkil|
|00001ea0| 6c 57 69 6e 64 6f 77 73 | 0d 0d 6f 6e 20 63 48 43 |lWindows|..on cHC|
|00001eb0| 6b 69 6c 6c 57 69 6e 64 | 6f 77 20 6e 61 6d 65 0d |killWind|ow name.|
|00001ec0| 2d 2d 20 6e 6f 74 65 20 | 77 65 20 64 65 6c 69 62 |-- note |we delib|
|00001ed0| 65 72 61 74 65 6c 79 20 | 63 68 65 63 6b 20 73 65 |erately |check se|
|00001ee0| 70 61 72 61 74 65 6c 79 | 20 66 72 6f 6d 20 74 68 |parately| from th|
|00001ef0| 65 20 77 69 6e 64 6f 77 | 20 61 6e 64 20 74 68 65 |e window| and the|
|00001f00| 20 6c 69 73 74 0d 2d 2d | 20 6a 75 73 74 20 69 6e | list.--| just in|
|00001f10| 20 63 61 73 65 20 73 6f | 6d 65 6f 6e 65 20 68 61 | case so|meone ha|
|00001f20| 73 20 70 6c 61 79 65 64 | 20 77 69 74 68 20 73 6f |s played| with so|
|00001f30| 6d 65 20 6f 74 68 65 72 | 20 63 6f 6d 6d 61 6e 64 |me other| command|
|00001f40| 73 2e 0d 67 6c 6f 62 61 | 6c 20 67 48 43 77 69 6e |s..globa|l gHCwin|
|00001f50| 64 6f 77 73 0d 70 75 74 | 20 6c 61 73 74 49 74 65 |dows.put| lastIte|
|00001f60| 6d 20 28 22 3a 22 2c 20 | 6e 61 6d 65 29 20 69 6e |m (":", |name) in|
|00001f70| 74 6f 20 73 5f 6e 61 6d | 65 0d 69 66 20 74 68 65 |to s_nam|e.if the|
|00001f80| 72 65 20 69 73 20 61 20 | 77 69 6e 64 6f 77 20 73 |re is a |window s|
|00001f90| 5f 6e 61 6d 65 20 74 68 | 65 6e 20 63 6c 6f 73 65 |_name th|en close|
|00001fa0| 20 77 69 6e 64 6f 77 20 | 73 5f 6e 61 6d 65 0d 72 | window |s_name.r|
|00001fb0| 65 70 65 61 74 20 77 69 | 74 68 20 69 3d 31 20 74 |epeat wi|th i=1 t|
|00001fc0| 6f 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |o the nu|mber of |
|00001fd0| 69 74 65 6d 73 20 69 6e | 20 67 48 43 77 69 6e 64 |items in| gHCwind|
|00001fe0| 6f 77 73 0d 67 65 74 20 | 69 74 65 6d 20 69 20 6f |ows.get |item i o|
|00001ff0| 66 20 67 48 43 77 69 6e | 64 6f 77 73 0d 69 66 20 |f gHCwin|dows.if |
|00002000| 6e 61 6d 65 20 69 73 20 | 69 74 20 6f 72 20 73 5f |name is |it or s_|
|00002010| 6e 61 6d 65 20 69 73 20 | 6c 61 73 74 49 74 65 6d |name is |lastItem|
|00002020| 28 22 3a 22 2c 20 69 74 | 29 20 74 68 65 6e 0d 64 |(":", it|) then.d|
|00002030| 65 6c 65 74 65 20 69 74 | 65 6d 20 69 20 6f 66 20 |elete it|em i of |
|00002040| 67 48 43 77 69 6e 64 6f | 77 73 0d 65 78 69 74 20 |gHCwindo|ws.exit |
|00002050| 72 65 70 65 61 74 0d 65 | 6e 64 20 69 66 0d 65 6e |repeat.e|nd if.en|
|00002060| 64 20 72 65 70 65 61 74 | 0d 65 6e 64 20 63 48 43 |d repeat|.end cHC|
|00002070| 6b 69 6c 6c 57 69 6e 64 | 6f 77 0d 0d 2d 2d 20 65 |killWind|ow..-- e|
|00002080| 78 74 72 61 73 20 61 64 | 64 65 64 20 62 79 20 4a |xtras ad|ded by J|
|00002090| 46 20 74 6f 20 68 65 6c | 70 20 77 69 74 68 20 69 |F to hel|p with i|
|000020a0| 6e 74 65 67 72 61 74 69 | 6f 6e 20 69 6e 74 6f 20 |ntegrati|on into |
|000020b0| 73 74 61 63 6b 73 2e 20 | 53 65 65 20 49 6e 66 6f |stacks. |See Info|
|000020c0| 20 63 61 72 64 0d 0d 2d | 2d 20 6f 70 74 69 6f 6e | card..-|- option|
|000020d0| 20 66 6c 61 67 73 20 28 | 31 20 69 66 20 73 65 74 | flags (|1 if set|
|000020e0| 29 0d 2d 2d 20 31 3a 20 | 48 43 43 6f 6c 6f 72 69 |).-- 1: |HCColori|
|000020f0| 7a 65 2c 20 32 3a 20 48 | 43 75 6e 43 6f 6c 6f 72 |ze, 2: H|CunColor|
|00002100| 69 7a 65 2c 20 33 3a 20 | 48 43 62 57 68 69 74 65 |ize, 3: |HCbWhite|
|00002110| 2c 20 34 3a 20 48 43 75 | 6e 42 57 68 69 74 65 0d |, 4: HCu|nBWhite.|
|00002120| 2d 2d 20 35 3a 20 48 43 | 67 72 61 70 68 69 63 2c |-- 5: HC|graphic,|
|00002130| 20 36 3a 20 48 43 75 6e | 47 72 61 70 68 69 63 2c | 6: HCun|Graphic,|
|00002140| 20 37 3a 20 6e 6f 45 72 | 72 6f 72 73 2c 20 38 3a | 7: noEr|rors, 8:|
|00002150| 20 66 6f 72 63 65 43 6f | 6c 6f 72 2c 0d 2d 2d 20 | forceCo|lor,.-- |
|00002160| 39 3a 20 66 6f 72 63 65 | 42 57 2c 20 31 30 3a 20 |9: force|BW, 10: |
|00002170| 57 69 6e 64 6f 77 73 2c | 20 31 31 3a 20 6c 65 61 |Windows,| 11: lea|
|00002180| 76 65 43 75 72 73 6f 72 | 2c 20 31 32 3a 20 6e 6f |veCursor|, 12: no|
|00002190| 56 69 73 75 61 6c 73 2c | 0d 2d 2d 20 31 33 3a 20 |Visuals,|.-- 13: |
|000021a0| 6e 6f 56 69 73 75 61 6c | 73 49 6e 43 6f 6c 6f 72 |noVisual|sInColor|
|000021b0| 2c 20 31 34 3a 20 64 62 | 43 6f 6c 6f 72 69 7a 65 |, 14: db|Colorize|
|000021c0| 48 43 2c 20 31 35 3a 20 | 48 43 70 72 65 47 72 61 |HC, 15: |HCpreGra|
|000021d0| 70 68 69 63 2c 0d 2d 2d | 20 31 36 3a 20 48 43 69 |phic,.--| 16: HCi|
|000021e0| 6e 69 74 0d 66 75 6e 63 | 74 69 6f 6e 20 63 48 43 |nit.func|tion cHC|
|000021f0| 4f 70 74 69 6f 6e 73 0d | 72 65 74 75 72 6e 20 22 |Options.|return "|
|00002200| 48 43 63 6f 6c 6f 72 69 | 7a 65 2c 48 43 75 6e 43 |HCcolori|ze,HCunC|
|00002210| 6f 6c 6f 72 69 7a 65 2c | 48 43 62 57 68 69 74 65 |olorize,|HCbWhite|
|00002220| 2c 48 43 75 6e 42 57 68 | 69 74 65 2c 48 43 67 72 |,HCunBWh|ite,HCgr|
|00002230| 61 70 68 69 63 2c 22 20 | 26 c2 0d 22 48 43 75 6e |aphic," |&.."HCun|
|00002240| 47 72 61 70 68 69 63 2c | 6e 6f 45 72 72 6f 72 73 |Graphic,|noErrors|
|00002250| 2c 66 6f 72 63 65 43 6f | 6c 6f 72 2c 66 6f 72 63 |,forceCo|lor,forc|
|00002260| 65 42 57 2c 57 69 6e 64 | 6f 77 73 2c 6c 65 61 76 |eBW,Wind|ows,leav|
|00002270| 65 43 75 72 73 6f 72 2c | 22 20 26 c2 0d 22 6e 6f |eCursor,|" &.."no|
|00002280| 56 69 73 75 61 6c 73 2c | 6e 6f 56 69 73 75 61 6c |Visuals,|noVisual|
|00002290| 73 49 6e 43 6f 6c 6f 72 | 2c 64 62 43 6f 6c 6f 72 |sInColor|,dbColor|
|000022a0| 69 7a 65 48 43 2c 48 43 | 70 72 65 47 72 61 70 68 |izeHC,HC|preGraph|
|000022b0| 69 63 2c 48 43 69 6e 69 | 74 22 0d 65 6e 64 20 63 |ic,HCini|t".end c|
|000022c0| 48 43 4f 70 74 69 6f 6e | 73 0d 0d 6f 6e 20 73 65 |HCOption|s..on se|
|000022d0| 74 4f 70 74 69 6f 6e 73 | 20 6f 70 74 69 6f 6e 73 |tOptions| options|
|000022e0| 0d 67 6c 6f 62 61 6c 20 | 67 48 43 4f 70 74 69 6f |.global |gHCOptio|
|000022f0| 6e 73 0d 70 75 74 20 22 | 30 30 30 30 30 30 30 30 |ns.put "|00000000|
|00002300| 30 30 30 30 30 30 30 30 | 22 20 69 6e 74 6f 20 67 |00000000|" into g|
|00002310| 48 43 4f 70 74 69 6f 6e | 73 20 2d 2d 20 31 36 20 |HCOption|s -- 16 |
|00002320| 30 d5 73 0d 69 66 20 6f | 70 74 69 6f 6e 73 20 69 |0.s.if o|ptions i|
|00002330| 73 20 65 6d 70 74 79 20 | 74 68 65 6e 20 2d 2d 20 |s empty |then -- |
|00002340| 66 6f 72 20 62 61 63 6b | 77 61 72 64 73 20 63 6f |for back|wards co|
|00002350| 6d 70 61 74 61 62 69 6c | 69 74 79 0d 70 75 74 20 |mpatabil|ity.put |
|00002360| 22 31 31 22 20 69 6e 74 | 6f 20 63 68 61 72 20 31 |"11" int|o char 1|
|00002370| 20 74 6f 20 32 20 6f 66 | 20 67 48 43 4f 70 74 69 | to 2 of| gHCOpti|
|00002380| 6f 6e 73 0d 65 78 69 74 | 20 73 65 74 4f 70 74 69 |ons.exit| setOpti|
|00002390| 6f 6e 73 0d 65 6e 64 20 | 69 66 0d 70 75 74 20 63 |ons.end |if.put c|
|000023a0| 48 43 4f 70 74 69 6f 6e | 73 28 29 20 69 6e 74 6f |HCOption|s() into|
|000023b0| 20 6b 6e 6f 77 6e 0d 72 | 65 70 65 61 74 20 77 69 | known.r|epeat wi|
|000023c0| 74 68 20 69 20 3d 20 31 | 20 74 6f 20 74 68 65 20 |th i = 1| to the |
|000023d0| 6e 75 6d 62 65 72 20 6f | 66 20 69 74 65 6d 73 20 |number o|f items |
|000023e0| 6f 66 20 6f 70 74 69 6f | 6e 73 0d 67 65 74 20 69 |of optio|ns.get i|
|000023f0| 74 65 6d 20 69 20 6f 66 | 20 6f 70 74 69 6f 6e 73 |tem i of| options|
|00002400| 0d 69 66 20 69 74 20 69 | 73 20 6e 6f 74 20 65 6d |.if it i|s not em|
|00002410| 70 74 79 20 74 68 65 6e | 0d 70 75 74 20 46 61 6c |pty then|.put Fal|
|00002420| 73 65 20 69 6e 74 6f 20 | 66 6f 75 6e 64 0d 72 65 |se into |found.re|
|00002430| 70 65 61 74 20 77 69 74 | 68 20 6b 20 3d 20 31 20 |peat wit|h k = 1 |
|00002440| 74 6f 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |to the n|umber of|
|00002450| 20 69 74 65 6d 73 20 6f | 66 20 6b 6e 6f 77 6e 0d | items o|f known.|
|00002460| 69 66 20 69 74 20 69 73 | 20 69 74 65 6d 20 6b 20 |if it is| item k |
|00002470| 6f 66 20 6b 6e 6f 77 6e | 20 74 68 65 6e 0d 70 75 |of known| then.pu|
|00002480| 74 20 31 20 69 6e 74 6f | 20 63 68 61 72 20 6b 20 |t 1 into| char k |
|00002490| 6f 66 20 67 48 43 4f 70 | 74 69 6f 6e 73 0d 70 75 |of gHCOp|tions.pu|
|000024a0| 74 20 54 72 75 65 20 69 | 6e 74 6f 20 66 6f 75 6e |t True i|nto foun|
|000024b0| 64 0d 65 78 69 74 20 72 | 65 70 65 61 74 0d 65 6e |d.exit r|epeat.en|
|000024c0| 64 20 69 66 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |d if.end| repeat.|
|000024d0| 69 66 20 6e 6f 74 20 66 | 6f 75 6e 64 20 74 68 65 |if not f|ound the|
|000024e0| 6e 20 61 6e 73 77 65 72 | 20 22 55 6e 6b 6e 6f 77 |n answer| "Unknow|
|000024f0| 6e 20 6f 70 74 69 6f 6e | 2e 20 49 67 6e 6f 72 69 |n option|. Ignori|
|00002500| 6e 67 3a 22 20 26 26 20 | 69 74 0d 65 6e 64 20 69 |ng:" && |it.end i|
|00002510| 66 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 69 66 20 |f.end re|peat.if |
|00002520| 63 68 61 72 20 38 20 74 | 6f 20 39 20 6f 66 20 67 |char 8 t|o 9 of g|
|00002530| 48 43 4f 70 74 69 6f 6e | 73 20 69 73 20 22 31 31 |HCOption|s is "11|
|00002540| 22 20 74 68 65 6e 0d 61 | 6e 73 77 65 72 20 22 59 |" then.a|nswer "Y|
|00002550| 6f 75 20 63 61 6e 6e 6f | 74 20 73 65 74 20 62 6f |ou canno|t set bo|
|00002560| 74 68 20 66 6f 72 63 65 | 43 6f 6c 6f 72 20 61 6e |th force|Color an|
|00002570| 64 20 66 6f 72 63 65 42 | 57 2e 20 49 67 6e 6f 72 |d forceB|W. Ignor|
|00002580| 69 6e 67 20 62 6f 74 68 | 21 22 0d 70 75 74 20 22 |ing both|!".put "|
|00002590| 30 30 22 20 69 6e 74 6f | 20 63 68 61 72 20 38 20 |00" into| char 8 |
|000025a0| 74 6f 20 39 20 6f 66 20 | 67 48 43 4f 70 74 69 6f |to 9 of |gHCOptio|
|000025b0| 6e 73 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 73 65 |ns.end i|f.end se|
|000025c0| 74 4f 70 74 69 6f 6e 73 | 0d 0d 66 75 6e 63 74 69 |tOptions|..functi|
|000025d0| 6f 6e 20 63 48 43 63 75 | 72 72 4f 70 74 69 6f 6e |on cHCcu|rrOption|
|000025e0| 73 0d 67 6c 6f 62 61 6c | 20 67 48 43 6f 70 74 69 |s.global| gHCopti|
|000025f0| 6f 6e 73 0d 70 75 74 20 | 63 48 43 4f 70 74 69 6f |ons.put |cHCOptio|
|00002600| 6e 73 28 29 20 69 6e 74 | 6f 20 6e 61 6d 65 73 0d |ns() int|o names.|
|00002610| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 72 |put empt|y into r|
|00002620| 65 73 75 6c 74 0d 72 65 | 70 65 61 74 20 77 69 74 |esult.re|peat wit|
|00002630| 68 20 69 20 3d 20 31 20 | 74 6f 20 74 68 65 20 6e |h i = 1 |to the n|
|00002640| 75 6d 62 65 72 20 6f 66 | 20 63 68 61 72 73 20 6f |umber of| chars o|
|00002650| 66 20 67 48 43 6f 70 74 | 69 6f 6e 73 0d 69 66 20 |f gHCopt|ions.if |
|00002660| 63 68 61 72 20 69 20 6f | 66 20 67 48 43 6f 70 74 |char i o|f gHCopt|
|00002670| 69 6f 6e 73 20 69 73 20 | 31 0d 74 68 65 6e 20 70 |ions is |1.then p|
|00002680| 75 74 20 69 74 65 6d 20 | 69 20 6f 66 20 6e 61 6d |ut item |i of nam|
|00002690| 65 73 20 26 20 22 2c 22 | 20 61 66 74 65 72 20 72 |es & ","| after r|
|000026a0| 65 73 75 6c 74 0d 65 6e | 64 20 72 65 70 65 61 74 |esult.en|d repeat|
|000026b0| 0d 69 66 20 72 65 73 75 | 6c 74 20 69 73 20 6e 6f |.if resu|lt is no|
|000026c0| 74 20 65 6d 70 74 79 20 | 74 68 65 6e 20 64 65 6c |t empty |then del|
|000026d0| 65 74 65 20 6c 61 73 74 | 20 63 68 61 72 20 6f 66 |ete last| char of|
|000026e0| 20 72 65 73 75 6c 74 20 | 2d 2d 20 74 72 61 69 6c | result |-- trail|
|000026f0| 69 6e 67 20 22 2c 22 0d | 73 6f 72 74 20 69 74 65 |ing ",".|sort ite|
|00002700| 6d 73 20 6f 66 20 72 65 | 73 75 6c 74 0d 72 65 74 |ms of re|sult.ret|
|00002710| 75 72 6e 20 72 65 73 75 | 6c 74 0d 65 6e 64 20 63 |urn resu|lt.end c|
|00002720| 48 43 63 75 72 72 4f 70 | 74 69 6f 6e 73 0d 0d 6f |HCcurrOp|tions..o|
|00002730| 6e 20 4f 75 74 4f 66 44 | 61 74 65 20 6e 61 6d 65 |n OutOfD|ate name|
|00002740| 0d 61 6e 73 77 65 72 20 | 22 59 6f 75 20 61 72 65 |.answer |"You are|
|00002750| 20 61 70 70 61 72 65 6e | 74 6c 79 20 75 73 69 6e | apparen|tly usin|
|00002760| 67 20 61 20 70 72 65 2d | 76 65 72 73 69 6f 6e 20 |g a pre-|version |
|00002770| 31 2e 30 2e 33 20 63 61 | 6c 6c 20 74 6f 22 20 26 |1.0.3 ca|ll to" &|
|00002780| 26 20 c2 0d 6e 61 6d 65 | 20 26 20 22 2e 20 59 6f |& ..name| & ". Yo|
|00002790| 75 20 77 69 6c 6c 20 6e | 65 65 64 20 74 6f 20 6d |u will n|eed to m|
|000027a0| 6f 64 69 66 79 20 79 6f | 75 72 20 73 63 72 69 70 |odify yo|ur scrip|
|000027b0| 74 73 20 62 65 66 6f 72 | 65 20 63 6f 6e 74 69 6e |ts befor|e contin|
|000027c0| 75 69 6e 67 2e 22 20 26 | 26 20 c2 0d 22 49 6e 69 |uing." &|& .."Ini|
|000027d0| 74 69 61 6c 69 73 61 74 | 69 6f 6e 20 61 62 6f 72 |tialisat|ion abor|
|000027e0| 74 65 64 2e 22 0d 65 78 | 69 74 20 74 6f 20 68 79 |ted.".ex|it to hy|
|000027f0| 70 65 72 63 61 72 64 0d | 65 6e 64 20 4f 75 74 4f |percard.|end OutO|
|00002800| 66 44 61 74 65 0d 0d 6f | 6e 20 73 74 6f 72 65 53 |fDate..o|n storeS|
|00002810| 74 61 74 65 0d 67 6c 6f | 62 61 6c 20 67 48 43 6f |tate.glo|bal gHCo|
|00002820| 70 74 69 6f 6e 73 2c 67 | 48 43 75 73 65 72 2c 67 |ptions,g|HCuser,g|
|00002830| 48 43 6b 65 70 74 4e 61 | 6d 65 73 0d 67 65 74 20 |HCkeptNa|mes.get |
|00002840| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 77 6f 72 |the valu|e of wor|
|00002850| 64 20 32 20 6f 66 20 74 | 68 65 20 6c 6f 6e 67 20 |d 2 of t|he long |
|00002860| 6e 61 6d 65 20 6f 66 20 | 74 68 69 73 20 73 74 61 |name of |this sta|
|00002870| 63 6b 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 69 |ck.repea|t with i|
|00002880| 20 3d 20 31 20 74 6f 20 | 74 68 65 20 6e 75 6d 62 | = 1 to |the numb|
|00002890| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 6f 66 20 67 |er of li|nes of g|
|000028a0| 48 43 6b 65 70 74 4e 61 | 6d 65 73 0d 69 66 20 6c |HCkeptNa|mes.if l|
|000028b0| 69 6e 65 20 69 20 6f 66 | 20 67 48 43 6b 65 70 74 |ine i of| gHCkept|
|000028c0| 4e 61 6d 65 73 20 69 73 | 20 69 74 20 74 68 65 6e |Names is| it then|
|000028d0| 0d 67 65 74 20 22 67 48 | 43 6b 70 75 22 20 26 20 |.get "gH|Ckpu" & |
|000028e0| 69 0d 64 6f 20 22 67 6c | 6f 62 61 6c 22 20 26 26 |i.do "gl|obal" &&|
|000028f0| 20 69 74 20 26 20 72 65 | 74 75 72 6e 20 26 20 22 | it & re|turn & "|
|00002900| 70 75 74 20 67 48 43 75 | 73 65 72 20 69 6e 74 6f |put gHCu|ser into|
|00002910| 22 20 26 26 20 69 74 0d | 67 65 74 20 22 67 48 43 |" && it.|get "gHC|
|00002920| 6b 70 6f 22 20 26 20 69 | 0d 64 6f 20 22 67 6c 6f |kpo" & i|.do "glo|
|00002930| 62 61 6c 22 20 26 26 20 | 69 74 20 26 20 72 65 74 |bal" && |it & ret|
|00002940| 75 72 6e 20 26 20 22 70 | 75 74 20 67 48 43 6f 70 |urn & "p|ut gHCop|
|00002950| 74 69 6f 6e 73 20 69 6e | 74 6f 22 20 26 26 20 69 |tions in|to" && i|
|00002960| 74 0d 65 78 69 74 20 73 | 74 6f 72 65 53 74 61 74 |t.exit s|toreStat|
|00002970| 65 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 72 65 70 |e.end if|.end rep|
|00002980| 65 61 74 0d 2d 2d 20 61 | 64 64 20 6e 65 77 20 65 |eat.-- a|dd new e|
|00002990| 6e 74 72 79 0d 70 75 74 | 20 69 74 20 26 20 72 65 |ntry.put| it & re|
|000029a0| 74 75 72 6e 20 61 66 74 | 65 72 20 67 48 43 6b 65 |turn aft|er gHCke|
|000029b0| 70 74 4e 61 6d 65 73 0d | 67 65 74 20 22 67 48 43 |ptNames.|get "gHC|
|000029c0| 6b 70 75 22 20 26 20 74 | 68 65 20 6e 75 6d 62 65 |kpu" & t|he numbe|
|000029d0| 72 20 6f 66 20 6c 69 6e | 65 73 20 6f 66 20 67 48 |r of lin|es of gH|
|000029e0| 43 6b 65 70 74 4e 61 6d | 65 73 0d 64 6f 20 22 67 |CkeptNam|es.do "g|
|000029f0| 6c 6f 62 61 6c 22 20 26 | 26 20 69 74 20 26 20 72 |lobal" &|& it & r|
|00002a00| 65 74 75 72 6e 20 26 20 | 22 70 75 74 20 67 48 43 |eturn & |"put gHC|
|00002a10| 75 73 65 72 20 69 6e 74 | 6f 22 20 26 26 20 69 74 |user int|o" && it|
|00002a20| 0d 67 65 74 20 22 67 48 | 43 6b 70 6f 22 20 26 20 |.get "gH|Ckpo" & |
|00002a30| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 6c 69 |the numb|er of li|
|00002a40| 6e 65 73 20 6f 66 20 67 | 48 43 6b 65 70 74 4e 61 |nes of g|HCkeptNa|
|00002a50| 6d 65 73 0d 64 6f 20 22 | 67 6c 6f 62 61 6c 22 20 |mes.do "|global" |
|00002a60| 26 26 20 69 74 20 26 20 | 72 65 74 75 72 6e 20 26 |&& it & |return &|
|00002a70| 20 22 70 75 74 20 67 48 | 43 6f 70 74 69 6f 6e 73 | "put gH|Coptions|
|00002a80| 20 69 6e 74 6f 22 20 26 | 26 20 69 74 0d 65 6e 64 | into" &|& it.end|
|00002a90| 20 73 74 6f 72 65 53 74 | 61 74 65 0d 0d 6f 6e 20 | storeSt|ate..on |
|00002aa0| 72 65 73 74 6f 72 65 53 | 74 61 74 65 20 55 73 65 |restoreS|tate Use|
|00002ab0| 72 4f 6e 6c 79 0d 67 6c | 6f 62 61 6c 20 67 48 43 |rOnly.gl|obal gHC|
|00002ac0| 6f 70 74 69 6f 6e 73 2c | 67 48 43 75 73 65 72 2c |options,|gHCuser,|
|00002ad0| 67 48 43 6b 65 70 74 4e | 61 6d 65 73 0d 70 75 74 |gHCkeptN|ames.put|
|00002ae0| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 67 48 43 75 | empty i|nto gHCu|
|00002af0| 73 65 72 20 2d 2d 20 69 | 6e 20 63 61 73 65 20 6e |ser -- i|n case n|
|00002b00| 6f 6e 65 20 66 6f 75 6e | 64 20 69 6e 20 73 74 6f |one foun|d in sto|
|00002b10| 72 65 0d 69 66 20 55 73 | 65 72 4f 6e 6c 79 20 69 |re.if Us|erOnly i|
|00002b20| 73 20 6e 6f 74 20 54 72 | 75 65 20 74 68 65 6e 20 |s not Tr|ue then |
|00002b30| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 67 |put empt|y into g|
|00002b40| 48 43 6f 70 74 69 6f 6e | 73 0d 67 65 74 20 74 68 |HCoption|s.get th|
|00002b50| 65 20 76 61 6c 75 65 20 | 6f 66 20 77 6f 72 64 20 |e value |of word |
|00002b60| 32 20 6f 66 20 74 68 65 | 20 6c 6f 6e 67 20 6e 61 |2 of the| long na|
|00002b70| 6d 65 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |me of th|is stack|
|00002b80| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 69 20 3d |.repeat |with i =|
|00002b90| 20 31 20 74 6f 20 74 68 | 65 20 6e 75 6d 62 65 72 | 1 to th|e number|
|00002ba0| 20 6f 66 20 6c 69 6e 65 | 73 20 6f 66 20 67 48 43 | of line|s of gHC|
|00002bb0| 6b 65 70 74 4e 61 6d 65 | 73 0d 69 66 20 6c 69 6e |keptName|s.if lin|
|00002bc0| 65 20 69 20 6f 66 20 67 | 48 43 6b 65 70 74 4e 61 |e i of g|HCkeptNa|
|00002bd0| 6d 65 73 20 69 73 20 69 | 74 20 74 68 65 6e 0d 67 |mes is i|t then.g|
|00002be0| 65 74 20 22 67 48 43 6b | 70 75 22 20 26 20 69 0d |et "gHCk|pu" & i.|
|00002bf0| 64 6f 20 22 67 6c 6f 62 | 61 6c 22 20 26 26 20 69 |do "glob|al" && i|
|00002c00| 74 20 26 20 72 65 74 75 | 72 6e 20 26 20 22 70 75 |t & retu|rn & "pu|
|00002c10| 74 22 20 26 26 20 69 74 | 20 26 26 20 22 69 6e 74 |t" && it| && "int|
|00002c20| 6f 20 67 48 43 75 73 65 | 72 22 0d 69 66 20 55 73 |o gHCuse|r".if Us|
|00002c30| 65 72 4f 6e 6c 79 20 69 | 73 20 6e 6f 74 20 54 72 |erOnly i|s not Tr|
|00002c40| 75 65 20 74 68 65 6e 0d | 67 65 74 20 22 67 48 43 |ue then.|get "gHC|
|00002c50| 6b 70 6f 22 20 26 20 69 | 0d 64 6f 20 22 67 6c 6f |kpo" & i|.do "glo|
|00002c60| 62 61 6c 22 20 26 26 20 | 69 74 20 26 20 72 65 74 |bal" && |it & ret|
|00002c70| 75 72 6e 20 26 20 22 70 | 75 74 22 20 26 26 20 69 |urn & "p|ut" && i|
|00002c80| 74 20 26 26 20 22 69 6e | 74 6f 20 67 48 43 6f 70 |t && "in|to gHCop|
|00002c90| 74 69 6f 6e 73 22 0d 65 | 6e 64 20 69 66 0d 65 78 |tions".e|nd if.ex|
|00002ca0| 69 74 20 72 65 70 65 61 | 74 0d 65 6e 64 20 69 66 |it repea|t.end if|
|00002cb0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 65 6e 64 20 |.end rep|eat.end |
|00002cc0| 72 65 73 74 6f 72 65 53 | 74 61 74 65 0d 0d 6f 6e |restoreS|tate..on|
|00002cd0| 20 73 74 61 72 74 44 65 | 62 75 67 0d 69 66 20 74 | startDe|bug.if t|
|00002ce0| 68 65 72 65 20 69 73 20 | 61 20 73 74 61 63 6b 20 |here is |a stack |
|00002cf0| 22 43 6f 6c 6f 72 69 7a | 69 6e 67 20 48 43 20 44 |"Coloriz|ing HC D|
|00002d00| 65 62 75 67 22 20 74 68 | 65 6e 0d 67 6c 6f 62 61 |ebug" th|en.globa|
|00002d10| 6c 20 67 48 43 64 65 62 | 75 67 49 6e 69 74 0d 70 |l gHCdeb|ugInit.p|
|00002d20| 75 74 20 65 6d 70 74 79 | 20 69 6e 74 6f 20 67 48 |ut empty| into gH|
|00002d30| 43 64 65 62 75 67 49 6e | 69 74 0d 73 74 61 72 74 |CdebugIn|it.start|
|00002d40| 20 75 73 69 6e 67 20 73 | 74 61 63 6b 20 22 43 6f | using s|tack "Co|
|00002d50| 6c 6f 72 69 7a 69 6e 67 | 20 48 43 20 44 65 62 75 |lorizing| HC Debu|
|00002d60| 67 22 0d 65 6c 73 65 0d | 61 6e 73 77 65 72 20 22 |g".else.|answer "|
|00002d70| 43 61 6e d5 74 20 66 69 | 6e 64 20 73 74 61 63 6b |Can.t fi|nd stack|
|00002d80| 20 27 43 6f 6c 6f 72 69 | 7a 69 6e 67 20 48 43 20 | 'Colori|zing HC |
|00002d90| 58 43 4d 44 27 20 d0 20 | 69 67 6e 6f 72 69 6e 67 |XCMD' . |ignoring|
|00002da0| 20 64 62 43 6f 6c 6f 72 | 69 7a 69 6e 67 48 43 22 | dbColor|izingHC"|
|00002db0| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 73 74 61 72 |.end if.|end star|
|00002dc0| 74 44 65 62 75 67 0d 0d | 6f 6e 20 63 48 43 73 65 |tDebug..|on cHCse|
|00002dd0| 74 55 70 20 55 73 65 43 | 6f 6c 6f 72 2c 20 73 69 |tUp UseC|olor, si|
|00002de0| 6c 65 6e 74 2c 20 6f 70 | 74 69 6f 6e 73 2c 20 64 |lent, op|tions, d|
|00002df0| 65 70 74 68 2c 20 49 6e | 53 74 61 72 74 0d 69 66 |epth, In|Start.if|
|00002e00| 20 6f 70 74 69 6f 6e 73 | 20 69 73 20 61 20 6c 6f | options| is a lo|
|00002e10| 67 69 63 61 6c 20 74 68 | 65 6e 20 2d 2d 20 75 73 |gical th|en -- us|
|00002e20| 65 64 20 74 6f 20 62 65 | 20 42 57 6d 65 73 73 61 |ed to be| BWmessa|
|00002e30| 67 65 73 0d 4f 75 74 4f | 66 44 61 74 65 20 22 63 |ges.OutO|fDate "c|
|00002e40| 48 43 73 65 74 55 70 22 | 0d 65 6e 64 20 69 66 0d |HCsetUp"|.end if.|
|00002e50| 0d 67 6c 6f 62 61 6c 20 | 67 4f 4b 74 6f 43 6f 6c |.global |gOKtoCol|
|00002e60| 6f 72 69 7a 65 2c 20 67 | 48 43 6f 70 74 69 6f 6e |orize, g|HCoption|
|00002e70| 73 2c 20 67 48 43 75 73 | 65 72 0d 0d 69 66 20 69 |s, gHCus|er..if i|
|00002e80| 6e 53 74 61 72 74 20 69 | 73 20 54 72 75 65 20 74 |nStart i|s True t|
|00002e90| 68 65 6e 20 73 65 74 4f | 70 74 69 6f 6e 73 20 6f |hen setO|ptions o|
|00002ea0| 70 74 69 6f 6e 73 0d 65 | 6c 73 65 0d 72 65 73 74 |ptions.e|lse.rest|
|00002eb0| 6f 72 65 53 74 61 74 65 | 0d 69 66 20 67 48 43 6f |oreState|.if gHCo|
|00002ec0| 70 74 69 6f 6e 73 20 69 | 73 20 65 6d 70 74 79 20 |ptions i|s empty |
|00002ed0| 74 68 65 6e 20 73 65 74 | 4f 70 74 69 6f 6e 73 20 |then set|Options |
|00002ee0| 6f 70 74 69 6f 6e 73 20 | 2d 2d 20 66 69 72 73 74 |options |-- first|
|00002ef0| 20 74 69 6d 65 0d 65 6c | 73 65 20 69 66 20 73 69 | time.el|se if si|
|00002f00| 6c 65 6e 74 20 69 73 20 | 6e 6f 74 20 4e 6f 20 74 |lent is |not No t|
|00002f10| 68 65 6e 20 70 75 74 20 | 54 72 75 65 20 69 6e 74 |hen put |True int|
|00002f20| 6f 20 53 69 6c 65 6e 74 | 0d 65 6e 64 20 69 66 0d |o Silent|.end if.|
|00002f30| 0d 69 66 20 55 73 65 43 | 6f 6c 6f 72 20 69 73 20 |.if UseC|olor is |
|00002f40| 6e 6f 74 20 46 61 6c 73 | 65 20 74 68 65 6e 0d 69 |not Fals|e then.i|
|00002f50| 66 20 6d 61 78 44 65 70 | 74 68 28 29 3d 31 20 61 |f maxDep|th()=1 a|
|00002f60| 6e 64 20 63 68 61 72 20 | 38 20 6f 66 20 67 48 43 |nd char |8 of gHC|
|00002f70| 6f 70 74 69 6f 6e 73 20 | 69 73 20 6e 6f 74 20 31 |options |is not 1|
|00002f80| 20 6f 72 c2 20 2d 2d 20 | 66 6f 72 63 65 43 6f 6c | or. -- |forceCol|
|00002f90| 6f 72 0d 63 68 61 72 20 | 39 20 6f 66 20 67 48 43 |or.char |9 of gHC|
|00002fa0| 6f 70 74 69 6f 6e 73 20 | 69 73 20 31 20 74 68 65 |options |is 1 the|
|00002fb0| 6e 20 2d 2d 20 66 6f 72 | 63 65 42 57 0d 69 66 20 |n -- for|ceBW.if |
|00002fc0| 73 69 6c 65 6e 74 20 69 | 73 20 6e 6f 74 20 54 72 |silent i|s not Tr|
|00002fd0| 75 65 20 74 68 65 6e 0d | 61 6e 73 77 65 72 20 22 |ue then.|answer "|
|00002fe0| 57 61 72 6e 69 6e 67 3a | 20 43 6f 6c 6f 72 73 20 |Warning:| Colors |
|00002ff0| 61 6e 64 20 63 6f 6c 6f | 72 65 64 20 62 69 74 6d |and colo|red bitm|
|00003000| 61 70 73 20 77 69 6c 6c | 20 6e 6f 74 20 61 70 70 |aps will| not app|
|00003010| 65 61 72 20 6f 6e 20 74 | 68 69 73 22 20 26 26 20 |ear on t|his" && |
|00003020| c2 0d 22 6d 6f 6e 6f 63 | 68 72 6f 6d 65 20 6d 6f |.."monoc|hrome mo|
|00003030| 6e 69 74 6f 72 2e 22 0d | 65 6e 64 20 69 66 0d 63 |nitor.".|end if.c|
|00003040| 48 43 64 69 73 70 6f 73 | 65 0d 65 6c 73 65 0d 63 |HCdispos|e.else.c|
|00003050| 48 43 69 6e 73 74 61 6c | 6c 20 64 65 70 74 68 0d |HCinstal|l depth.|
|00003060| 69 66 20 63 68 61 72 20 | 38 20 6f 66 20 67 48 43 |if char |8 of gHC|
|00003070| 6f 70 74 69 6f 6e 73 20 | 69 73 20 31 20 74 68 65 |options |is 1 the|
|00003080| 6e 20 70 75 74 20 65 6d | 70 74 79 20 69 6e 74 6f |n put em|pty into|
|00003090| 20 67 4f 6b 54 6f 43 6f | 6c 6f 72 69 7a 65 0d 69 | gOkToCo|lorize.i|
|000030a0| 66 20 67 4f 6b 54 6f 43 | 6f 6c 6f 72 69 7a 65 20 |f gOkToC|olorize |
|000030b0| 69 73 20 6e 6f 74 20 65 | 6d 70 74 79 20 74 68 65 |is not e|mpty the|
|000030c0| 6e 20 63 48 43 64 69 73 | 70 6f 73 65 20 20 2d 2d |n cHCdis|pose --|
|000030d0| 20 74 69 64 79 20 75 70 | 0d 65 6e 64 20 69 66 0d | tidy up|.end if.|
|000030e0| 65 6c 73 65 0d 63 48 43 | 64 69 73 70 6f 73 65 0d |else.cHC|dispose.|
|000030f0| 65 6e 64 20 69 66 0d 0d | 69 66 20 63 68 61 72 20 |end if..|if char |
|00003100| 31 34 20 6f 66 20 67 48 | 43 4f 70 74 69 6f 6e 73 |14 of gH|COptions|
|00003110| 20 69 73 20 31 20 74 68 | 65 6e 20 73 74 61 72 74 | is 1 th|en start|
|00003120| 44 65 62 75 67 0d 0d 69 | 66 20 63 68 61 72 20 31 |Debug..i|f char 1|
|00003130| 30 20 6f 66 20 67 48 43 | 4f 70 74 69 6f 6e 73 20 |0 of gHC|Options |
|00003140| 69 73 20 31 20 74 68 65 | 6e 20 2d 2d 20 57 69 6e |is 1 the|n -- Win|
|00003150| 64 6f 77 73 0d 2d 2d 20 | 77 61 6e 74 20 74 6f 20 |dows.-- |want to |
|00003160| 65 6e 73 75 72 65 20 74 | 68 65 20 73 74 61 63 6b |ensure t|he stack|
|00003170| 20 77 69 6e 64 6f 77 20 | 63 6f 6d 65 73 20 75 70 | window |comes up|
|00003180| 20 62 65 66 6f 72 65 20 | 77 65 20 70 6c 61 63 65 | before |we place|
|00003190| 20 74 68 65 20 77 69 6e | 64 6f 77 73 0d 63 48 43 | the win|dows.cHC|
|000031a0| 62 72 65 61 6b 53 63 72 | 65 65 6e 4c 6f 63 6b 0d |breakScr|eenLock.|
|000031b0| 65 6e 64 20 69 66 0d 70 | 75 74 20 65 6d 70 74 79 |end if.p|ut empty|
|000031c0| 20 69 6e 74 6f 20 67 48 | 43 75 73 65 72 0d 69 66 | into gH|Cuser.if|
|000031d0| 20 69 6e 53 74 61 72 74 | 20 69 73 20 6e 6f 74 20 | inStart| is not |
|000031e0| 54 72 75 65 20 61 6e 64 | 20 63 68 61 72 20 31 36 |True and| char 16|
|000031f0| 20 6f 66 20 67 48 43 6f | 70 74 69 6f 6e 73 20 69 | of gHCo|ptions i|
|00003200| 73 20 31 0d 74 68 65 6e | 20 73 65 6e 64 20 48 43 |s 1.then| send HC|
|00003210| 69 6e 69 74 20 74 6f 20 | 74 68 69 73 20 63 61 72 |init to |this car|
|00003220| 64 0d 65 6e 64 20 63 48 | 43 73 65 74 55 70 0d 0d |d.end cH|CsetUp..|
|00003230| 6f 6e 20 63 48 43 73 74 | 61 72 74 20 55 73 65 43 |on cHCst|art UseC|
|00003240| 6f 6c 6f 72 2c 20 73 69 | 6c 65 6e 74 2c 20 6f 70 |olor, si|lent, op|
|00003250| 74 69 6f 6e 73 2c 20 64 | 65 70 74 68 0d 69 66 20 |tions, d|epth.if |
|00003260| 6f 70 74 69 6f 6e 73 20 | 69 73 20 61 20 6c 6f 67 |options |is a log|
|00003270| 69 63 61 6c 20 74 68 65 | 6e 20 2d 2d 20 75 73 65 |ical the|n -- use|
|00003280| 64 20 74 6f 20 62 65 20 | 42 57 6d 65 73 73 61 67 |d to be |BWmessag|
|00003290| 65 73 0d 4f 75 74 4f 66 | 44 61 74 65 20 22 63 48 |es.OutOf|Date "cH|
|000032a0| 43 73 74 61 72 74 22 0d | 65 6e 64 20 69 66 0d 0d |Cstart".|end if..|
|000032b0| 63 48 43 6c 65 61 76 65 | 0d 63 48 43 73 65 74 55 |cHCleave|.cHCsetU|
|000032c0| 70 20 55 73 65 43 6f 6c | 6f 72 2c 20 73 69 6c 65 |p UseCol|or, sile|
|000032d0| 6e 74 2c 20 6f 70 74 69 | 6f 6e 73 2c 20 64 65 70 |nt, opti|ons, dep|
|000032e0| 74 68 2c 20 54 72 75 65 | 0d 72 65 73 74 6f 72 65 |th, True|.restore|
|000032f0| 53 74 61 74 65 20 54 72 | 75 65 20 2d 2d 20 67 48 |State Tr|ue -- gH|
|00003300| 43 75 73 65 72 20 69 73 | 20 65 72 61 73 65 64 20 |Cuser is| erased |
|00003310| 62 79 20 63 48 43 73 65 | 74 55 70 0d 69 66 20 63 |by cHCse|tUp.if c|
|00003320| 68 61 72 20 31 36 20 6f | 66 20 67 48 43 6f 70 74 |har 16 o|f gHCopt|
|00003330| 69 6f 6e 73 20 69 73 20 | 31 20 74 68 65 6e 20 73 |ions is |1 then s|
|00003340| 65 6e 64 20 48 43 69 6e | 69 74 20 74 6f 20 74 68 |end HCin|it to th|
|00003350| 69 73 20 63 61 72 64 0d | 63 48 43 63 6f 6c 6f 72 |is card.|cHCcolor|
|00003360| 69 7a 65 0d 65 6e 64 20 | 63 48 43 73 74 61 72 74 |ize.end |cHCstart|
|00003370| 0d 0d 6f 6e 20 63 48 43 | 73 74 6f 70 0d 63 48 43 |..on cHC|stop.cHC|
|00003380| 63 6c 6f 73 65 0d 73 74 | 6f 72 65 53 74 61 74 65 |close.st|oreState|
|00003390| 20 2d 2d 20 72 65 6d 6f | 76 65 20 70 72 65 76 69 | -- remo|ve previ|
|000033a0| 6f 75 73 20 65 6e 74 72 | 69 65 73 0d 63 48 43 73 |ous entr|ies.cHCs|
|000033b0| 68 6f 77 43 6f 6c 6f 72 | 20 2d 2d 20 66 6f 72 63 |howColor| -- forc|
|000033c0| 65 20 61 20 73 63 72 65 | 65 6e 20 75 70 64 61 74 |e a scre|en updat|
|000033d0| 65 0d 65 6e 64 20 63 48 | 43 73 74 6f 70 0d 0d 6f |e.end cH|Cstop..o|
|000033e0| 6e 20 63 48 43 72 65 73 | 74 61 72 74 20 55 73 65 |n cHCres|tart Use|
|000033f0| 43 6f 6c 6f 72 2c 20 6f | 70 74 69 6f 6e 73 2c 20 |Color, o|ptions, |
|00003400| 64 65 70 74 68 0d 69 66 | 20 6f 70 74 69 6f 6e 73 |depth.if| options|
|00003410| 20 69 73 20 61 20 6c 6f | 67 69 63 61 6c 20 74 68 | is a lo|gical th|
|00003420| 65 6e 20 2d 2d 20 75 73 | 65 64 20 74 6f 20 62 65 |en -- us|ed to be|
|00003430| 20 42 57 6d 65 73 73 61 | 67 65 73 0d 4f 75 74 4f | BWmessa|ges.OutO|
|00003440| 66 44 61 74 65 20 22 63 | 48 43 72 65 73 74 61 72 |fDate "c|HCrestar|
|00003450| 74 22 0d 65 6e 64 20 69 | 66 0d 0d 67 6c 6f 62 61 |t".end i|f..globa|
|00003460| 6c 20 67 48 43 6f 70 74 | 69 6f 6e 73 2c 20 67 4f |l gHCopt|ions, gO|
|00003470| 6b 54 6f 43 6f 6c 6f 72 | 69 7a 65 0d 0d 72 65 73 |kToColor|ize..res|
|00003480| 74 6f 72 65 53 74 61 74 | 65 0d 69 66 20 67 48 43 |toreStat|e.if gHC|
|00003490| 6f 70 74 69 6f 6e 73 20 | 69 73 20 65 6d 70 74 79 |options |is empty|
|000034a0| 20 74 68 65 6e 20 73 65 | 74 4f 70 74 69 6f 6e 73 | then se|tOptions|
|000034b0| 20 6f 70 74 69 6f 6e 73 | 20 2d 2d 20 66 69 72 73 | options| -- firs|
|000034c0| 74 20 74 69 6d 65 21 0d | 0d 69 66 20 55 73 65 43 |t time!.|.if UseC|
|000034d0| 6f 6c 6f 72 20 69 73 20 | 6e 6f 74 20 46 61 6c 73 |olor is |not Fals|
|000034e0| 65 20 74 68 65 6e 0d 69 | 66 20 6d 61 78 44 65 70 |e then.i|f maxDep|
|000034f0| 74 68 28 29 3d 31 20 61 | 6e 64 20 63 68 61 72 20 |th()=1 a|nd char |
|00003500| 38 20 6f 66 20 67 48 43 | 6f 70 74 69 6f 6e 73 20 |8 of gHC|options |
|00003510| 69 73 20 6e 6f 74 20 31 | 20 6f 72 c2 20 2d 2d 20 |is not 1| or. -- |
|00003520| 66 6f 72 63 65 43 6f 6c | 6f 72 0d 63 68 61 72 20 |forceCol|or.char |
|00003530| 39 20 6f 66 20 67 48 43 | 6f 70 74 69 6f 6e 73 20 |9 of gHC|options |
|00003540| 69 73 20 31 20 74 68 65 | 6e 20 2d 2d 20 66 6f 72 |is 1 the|n -- for|
|00003550| 63 65 42 57 0d 63 48 43 | 64 69 73 70 6f 73 65 0d |ceBW.cHC|dispose.|
|00003560| 65 6c 73 65 0d 63 48 43 | 69 6e 73 74 61 6c 6c 20 |else.cHC|install |
|00003570| 64 65 70 74 68 0d 69 66 | 20 63 68 61 72 20 38 20 |depth.if| char 8 |
|00003580| 6f 66 20 67 48 43 6f 70 | 74 69 6f 6e 73 20 69 73 |of gHCop|tions is|
|00003590| 20 31 20 74 68 65 6e 20 | 70 75 74 20 65 6d 70 74 | 1 then |put empt|
|000035a0| 79 20 69 6e 74 6f 20 67 | 4f 6b 54 6f 43 6f 6c 6f |y into g|OkToColo|
|000035b0| 72 69 7a 65 0d 69 66 20 | 67 4f 6b 54 6f 43 6f 6c |rize.if |gOkToCol|
|000035c0| 6f 72 69 7a 65 20 69 73 | 20 6e 6f 74 20 65 6d 70 |orize is| not emp|
|000035d0| 74 79 20 74 68 65 6e 20 | 63 48 43 64 69 73 70 6f |ty then |cHCdispo|
|000035e0| 73 65 20 2d 2d 20 74 69 | 64 79 20 75 70 0d 65 6e |se -- ti|dy up.en|
|000035f0| 64 20 69 66 0d 65 6c 73 | 65 0d 63 48 43 64 69 73 |d if.els|e.cHCdis|
|00003600| 70 6f 73 65 0d 65 6e 64 | 20 69 66 0d 0d 69 66 20 |pose.end| if..if |
|00003610| 63 68 61 72 20 31 34 20 | 6f 66 20 67 48 43 4f 70 |char 14 |of gHCOp|
|00003620| 74 69 6f 6e 73 20 69 73 | 20 31 20 74 68 65 6e 20 |tions is| 1 then |
|00003630| 73 74 61 72 74 44 65 62 | 75 67 0d 0d 69 66 20 63 |startDeb|ug..if c|
|00003640| 68 61 72 20 31 30 20 6f | 66 20 67 48 43 4f 70 74 |har 10 o|f gHCOpt|
|00003650| 69 6f 6e 73 20 69 73 20 | 31 20 74 68 65 6e 20 2d |ions is |1 then -|
|00003660| 2d 20 57 69 6e 64 6f 77 | 73 0d 2d 2d 20 65 6e 73 |- Window|s.-- ens|
|00003670| 75 72 65 20 74 68 65 20 | 73 74 61 63 6b 20 77 69 |ure the |stack wi|
|00003680| 6e 64 6f 77 20 63 6f 6d | 65 73 20 75 70 20 62 65 |ndow com|es up be|
|00003690| 66 6f 72 65 20 77 65 20 | 70 6c 61 63 65 20 61 6e |fore we |place an|
|000036a0| 79 20 77 69 6e 64 6f 77 | 73 0d 63 48 43 62 72 65 |y window|s.cHCbre|
|000036b0| 61 6b 53 63 72 65 65 6e | 4c 6f 63 6b 0d 65 6e 64 |akScreen|Lock.end|
|000036c0| 20 69 66 0d 0d 69 66 20 | 6e 6f 74 20 74 68 65 20 | if..if |not the |
|000036d0| 6c 6f 63 6b 53 63 72 65 | 65 6e 20 74 68 65 6e 20 |lockScre|en then |
|000036e0| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 69 66 20 63 |lock scr|een.if c|
|000036f0| 68 61 72 20 31 36 20 6f | 66 20 67 48 43 6f 70 74 |har 16 o|f gHCopt|
|00003700| 69 6f 6e 73 20 69 73 20 | 31 20 74 68 65 6e 20 73 |ions is |1 then s|
|00003710| 65 6e 64 20 48 43 69 6e | 69 74 20 74 6f 20 74 68 |end HCin|it to th|
|00003720| 69 73 20 63 61 72 64 0d | 63 48 43 63 6f 6c 6f 72 |is card.|cHCcolor|
|00003730| 69 7a 65 0d 69 66 20 6e | 6f 74 20 74 68 65 20 6c |ize.if n|ot the l|
|00003740| 6f 63 6b 53 63 72 65 65 | 6e 20 74 68 65 6e 20 6c |ockScree|n then l|
|00003750| 6f 63 6b 20 73 63 72 65 | 65 6e 0d 65 6e 64 20 63 |ock scre|en.end c|
|00003760| 48 43 72 65 73 74 61 72 | 74 0d 0d 6f 6e 20 63 6c |HCrestar|t..on cl|
|00003770| 6f 73 65 44 6f 77 6e 43 | 48 43 0d 67 6c 6f 62 61 |oseDownC|HC.globa|
|00003780| 6c 20 67 48 43 4f 70 74 | 69 6f 6e 73 2c 20 67 48 |l gHCOpt|ions, gH|
|00003790| 43 75 73 65 72 0d 63 48 | 43 75 6e 43 6f 6c 6f 72 |Cuser.cH|CunColor|
|000037a0| 69 7a 65 0d 63 48 43 64 | 69 73 70 6f 73 65 0d 69 |ize.cHCd|ispose.i|
|000037b0| 66 20 63 68 61 72 20 31 | 34 20 6f 66 20 67 48 43 |f char 1|4 of gHC|
|000037c0| 4f 70 74 69 6f 6e 73 20 | 69 73 20 31 20 2d 2d 20 |Options |is 1 -- |
|000037d0| 75 6e 64 6f 20 64 62 43 | 6f 6c 6f 72 69 7a 65 48 |undo dbC|olorizeH|
|000037e0| 43 0d 74 68 65 6e 20 69 | 66 20 74 68 65 20 73 74 |C.then i|f the st|
|000037f0| 61 63 6b 73 49 6e 55 73 | 65 20 63 6f 6e 74 61 69 |acksInUs|e contai|
|00003800| 6e 73 20 22 43 6f 6c 6f | 72 69 7a 69 6e 67 20 48 |ns "Colo|rizing H|
|00003810| 43 20 44 65 62 75 67 22 | 0d 74 68 65 6e 20 73 74 |C Debug"|.then st|
|00003820| 6f 70 20 75 73 69 6e 67 | 20 73 74 61 63 6b 20 22 |op using| stack "|
|00003830| 43 6f 6c 6f 72 69 7a 69 | 6e 67 20 48 43 20 44 65 |Colorizi|ng HC De|
|00003840| 62 75 67 22 0d 73 74 6f | 72 65 53 74 61 74 65 0d |bug".sto|reState.|
|00003850| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 67 |put empt|y into g|
|00003860| 48 43 4f 70 74 69 6f 6e | 73 20 2d 2d 20 73 68 6f |HCOption|s -- sho|
|00003870| 77 20 77 65 20 61 72 65 | 20 75 6e 69 6e 69 74 69 |w we are| uniniti|
|00003880| 61 6c 69 73 65 64 0d 70 | 75 74 20 65 6d 70 74 79 |alised.p|ut empty|
|00003890| 20 69 6e 74 6f 20 67 48 | 43 75 73 65 72 0d 65 6e | into gH|Cuser.en|
|000038a0| 64 20 63 6c 6f 73 65 44 | 6f 77 6e 43 48 43 0d 0d |d closeD|ownCHC..|
|000038b0| 6f 6e 20 63 48 43 63 6c | 6f 73 65 0d 67 6c 6f 62 |on cHCcl|ose.glob|
|000038c0| 61 6c 20 67 48 43 75 73 | 65 72 2c 20 67 48 43 6f |al gHCus|er, gHCo|
|000038d0| 70 74 69 6f 6e 73 0d 69 | 66 20 67 48 43 6f 70 74 |ptions.i|f gHCopt|
|000038e0| 69 6f 6e 73 20 69 73 20 | 65 6d 70 74 79 20 74 68 |ions is |empty th|
|000038f0| 65 6e 20 65 78 69 74 20 | 63 48 43 63 6c 6f 73 65 |en exit |cHCclose|
|00003900| 20 2d 2d 20 75 6e 69 6e | 69 74 69 61 6c 69 73 65 | -- unin|itialise|
|00003910| 64 0d 70 75 74 20 65 6d | 70 74 79 20 69 6e 74 6f |d.put em|pty into|
|00003920| 20 67 48 43 75 73 65 72 | 20 2d 2d 20 64 6f 6e 27 | gHCuser| -- don'|
|00003930| 74 20 73 61 76 65 0d 63 | 6c 6f 73 65 64 6f 77 6e |t save.c|losedown|
|00003940| 43 48 43 0d 65 6e 64 20 | 63 48 43 63 6c 6f 73 65 |CHC.end |cHCclose|
|00003950| 0d 0d 6f 6e 20 63 48 43 | 6c 65 61 76 65 0d 67 6c |..on cHC|leave.gl|
|00003960| 6f 62 61 6c 20 67 48 43 | 6f 70 74 69 6f 6e 73 0d |obal gHC|options.|
|00003970| 69 66 20 67 48 43 6f 70 | 74 69 6f 6e 73 20 69 73 |if gHCop|tions is|
|00003980| 20 65 6d 70 74 79 20 74 | 68 65 6e 20 65 78 69 74 | empty t|hen exit|
|00003990| 20 63 48 43 6c 65 61 76 | 65 20 2d 2d 20 75 6e 69 | cHCleav|e -- uni|
|000039a0| 6e 69 74 69 61 6c 69 73 | 65 64 0d 63 6c 6f 73 65 |nitialis|ed.close|
|000039b0| 64 6f 77 6e 43 48 43 0d | 65 6e 64 20 63 48 43 6c |downCHC.|end cHCl|
|000039c0| 65 61 76 65 0d 0d 6f 6e | 20 63 48 43 63 6f 6c 6f |eave..on| cHCcolo|
|000039d0| 72 69 7a 65 20 2d 2d 20 | 63 61 6c 6c 65 64 20 74 |rize -- |called t|
|000039e0| 6f 20 63 6f 6c 6f 75 72 | 20 61 20 67 69 76 65 6e |o colour| a given|
|000039f0| 20 63 61 72 64 0d 67 6c | 6f 62 61 6c 20 67 4f 4b | card.gl|obal gOK|
|00003a00| 54 6f 43 6f 6c 6f 72 69 | 7a 65 2c 20 67 48 43 6f |ToColori|ze, gHCo|
|00003a10| 70 74 69 6f 6e 73 2c 20 | 67 48 43 77 69 6e 64 6f |ptions, |gHCwindo|
|00003a20| 77 73 2c 20 67 48 43 65 | 66 66 65 63 74 73 0d 69 |ws, gHCe|ffects.i|
|00003a30| 66 20 67 48 43 6f 70 74 | 69 6f 6e 73 20 69 73 20 |f gHCopt|ions is |
|00003a40| 65 6d 70 74 79 20 74 68 | 65 6e 20 65 78 69 74 20 |empty th|en exit |
|00003a50| 63 48 43 63 6f 6c 6f 72 | 69 7a 65 20 2d 2d 20 75 |cHCcolor|ize -- u|
|00003a60| 6e 69 6e 69 74 69 61 6c | 69 73 65 64 21 0d 0d 69 |ninitial|ised!..i|
|00003a70| 66 20 6e 6f 74 20 74 68 | 65 20 6c 6f 63 6b 53 63 |f not th|e lockSc|
|00003a80| 72 65 65 6e 20 74 68 65 | 6e 20 6c 6f 63 6b 20 73 |reen the|n lock s|
|00003a90| 63 72 65 65 6e 0d 0d 69 | 66 20 63 68 61 72 20 31 |creen..i|f char 1|
|00003aa0| 35 20 6f 66 20 67 48 43 | 6f 70 74 69 6f 6e 73 20 |5 of gHC|options |
|00003ab0| 69 73 20 31 20 74 68 65 | 6e 20 73 65 6e 64 20 48 |is 1 the|n send H|
|00003ac0| 43 70 72 65 47 72 61 70 | 68 69 63 20 74 6f 20 63 |CpreGrap|hic to c|
|00003ad0| 64 0d 69 66 20 67 4f 4b | 54 6f 43 6f 6c 6f 72 69 |d.if gOK|ToColori|
|00003ae0| 7a 65 20 69 73 20 6e 6f | 74 20 65 6d 70 74 79 20 |ze is no|t empty |
|00003af0| 74 68 65 6e 0d 69 66 20 | 63 68 61 72 20 33 20 6f |then.if |char 3 o|
|00003b00| 66 20 67 48 43 6f 70 74 | 69 6f 6e 73 20 69 73 20 |f gHCopt|ions is |
|00003b10| 31 20 74 68 65 6e 0d 73 | 65 6e 64 20 48 43 62 57 |1 then.s|end HCbW|
|00003b20| 68 69 74 65 20 74 6f 20 | 63 64 0d 65 6e 64 20 69 |hite to |cd.end i|
|00003b30| 66 0d 65 6c 73 65 0d 69 | 66 20 63 68 61 72 20 31 |f.else.i|f char 1|
|00003b40| 20 6f 66 20 67 48 43 6f | 70 74 69 6f 6e 73 20 69 | of gHCo|ptions i|
|00003b50| 73 20 31 20 74 68 65 6e | 20 73 65 6e 64 20 48 43 |s 1 then| send HC|
|00003b60| 63 6f 6c 6f 72 69 7a 65 | 20 74 6f 20 63 64 0d 65 |colorize| to cd.e|
|00003b70| 6c 73 65 20 63 6f 6c 6f | 72 69 7a 65 48 43 20 22 |lse colo|rizeHC "|
|00003b80| 45 72 61 73 65 22 20 2d | 2d 20 64 65 66 61 75 6c |Erase" -|- defaul|
|00003b90| 74 20 48 43 63 6f 6c 6f | 72 69 7a 65 0d 65 6e 64 |t HCcolo|rize.end|
|00003ba0| 20 69 66 0d 69 66 20 63 | 68 61 72 20 35 20 6f 66 | if.if c|har 5 of|
|00003bb0| 20 67 48 43 6f 70 74 69 | 6f 6e 73 20 69 73 20 31 | gHCopti|ons is 1|
|00003bc0| 20 74 68 65 6e 20 73 65 | 6e 64 20 48 43 67 72 61 | then se|nd HCgra|
|00003bd0| 70 68 69 63 20 74 6f 20 | 63 64 0d 0d 67 65 74 20 |phic to |cd..get |
|00003be0| 67 48 43 65 66 66 65 63 | 74 73 20 2d 2d 20 67 65 |gHCeffec|ts -- ge|
|00003bf0| 74 20 6e 6f 77 20 2d 20 | 74 68 61 74 20 77 61 79 |t now - |that way|
|00003c00| 20 77 65 20 64 6f 6e 27 | 74 20 72 65 70 65 61 74 | we don'|t repeat|
|00003c10| 20 65 72 72 6f 72 73 0d | 70 75 74 20 65 6d 70 74 | errors.|put empt|
|00003c20| 79 20 69 6e 74 6f 20 67 | 48 43 65 66 66 65 63 74 |y into g|HCeffect|
|00003c30| 73 0d 69 66 20 69 74 20 | 69 73 20 65 6d 70 74 79 |s.if it |is empty|
|00003c40| 20 74 68 65 6e 20 75 6e | 6c 6f 63 6b 20 73 63 72 | then un|lock scr|
|00003c50| 65 65 6e 0d 65 6c 73 65 | 20 64 6f 20 22 75 6e 6c |een.else| do "unl|
|00003c60| 6f 63 6b 20 73 63 72 65 | 65 6e 20 77 69 74 68 22 |ock scre|en with"|
|00003c70| 20 26 26 20 69 74 0d 0d | 69 66 20 28 63 68 61 72 | && it..|if (char|
|00003c80| 20 31 30 20 6f 66 20 67 | 48 43 6f 70 74 69 6f 6e | 10 of g|HCoption|
|00003c90| 73 20 69 73 20 31 29 20 | 61 6e 64 20 67 48 43 77 |s is 1) |and gHCw|
|00003ca0| 69 6e 64 6f 77 73 20 69 | 73 20 6e 6f 74 20 65 6d |indows i|s not em|
|00003cb0| 70 74 79 0d 74 68 65 6e | 20 63 48 43 73 68 6f 77 |pty.then| cHCshow|
|00003cc0| 57 69 6e 64 6f 77 73 0d | 2d 2d 20 72 65 61 6c 6c |Windows.|-- reall|
|00003cd0| 79 20 73 68 6f 75 6c 64 | 20 6e 6f 74 20 63 61 6c |y should| not cal|
|00003ce0| 6c 20 75 6e 74 69 6c 20 | 75 6e 6c 6f 63 6b 20 74 |l until |unlock t|
|00003cf0| 61 6b 65 73 20 70 6c 61 | 63 65 2c 20 62 75 74 20 |akes pla|ce, but |
|00003d00| 77 6f 75 6c 64 20 72 65 | 71 75 69 72 65 0d 2d 2d |would re|quire.--|
|00003d10| 20 64 65 6c 61 79 65 64 | 20 61 63 74 69 6f 6e 0d | delayed| action.|
|00003d20| 65 6e 64 20 63 48 43 63 | 6f 6c 6f 72 69 7a 65 0d |end cHCc|olorize.|
|00003d30| 0d 6f 6e 20 63 48 43 75 | 6e 43 6f 6c 6f 72 69 7a |.on cHCu|nColoriz|
|00003d40| 65 0d 67 6c 6f 62 61 6c | 20 67 4f 4b 54 6f 43 6f |e.global| gOKToCo|
|00003d50| 6c 6f 72 69 7a 65 2c 20 | 67 48 43 6f 70 74 69 6f |lorize, |gHCoptio|
|00003d60| 6e 73 2c 20 67 48 43 77 | 69 6e 64 6f 77 73 0d 69 |ns, gHCw|indows.i|
|00003d70| 66 20 67 48 43 6f 70 74 | 69 6f 6e 73 20 69 73 20 |f gHCopt|ions is |
|00003d80| 65 6d 70 74 79 20 74 68 | 65 6e 20 65 78 69 74 20 |empty th|en exit |
|00003d90| 63 48 43 75 6e 43 6f 6c | 6f 72 69 7a 65 20 2d 2d |cHCunCol|orize --|
|00003da0| 20 75 6e 69 6e 69 74 69 | 61 6c 69 73 65 64 2e 0d | uniniti|alised..|
|00003db0| 69 66 20 67 4f 4b 54 6f | 43 6f 6c 6f 72 69 7a 65 |if gOKTo|Colorize|
|00003dc0| 20 69 73 20 6e 6f 74 20 | 65 6d 70 74 79 20 74 68 | is not |empty th|
|00003dd0| 65 6e 0d 69 66 20 63 68 | 61 72 20 34 20 6f 66 20 |en.if ch|ar 4 of |
|00003de0| 67 48 43 6f 70 74 69 6f | 6e 73 20 69 73 20 31 20 |gHCoptio|ns is 1 |
|00003df0| 74 68 65 6e 20 73 65 6e | 64 20 48 43 75 6e 42 57 |then sen|d HCunBW|
|00003e00| 68 69 74 65 20 74 6f 20 | 63 64 0d 65 6c 73 65 20 |hite to |cd.else |
|00003e10| 2d 2d 20 64 65 66 61 75 | 6c 74 20 48 43 75 6e 42 |-- defau|lt HCunB|
|00003e20| 57 68 69 74 65 0d 69 66 | 20 63 68 61 72 20 31 31 |White.if| char 11|
|00003e30| 20 6f 66 20 67 48 43 6f | 70 74 69 6f 6e 73 20 69 | of gHCo|ptions i|
|00003e40| 73 20 6e 6f 74 20 31 20 | 74 68 65 6e 20 73 65 74 |s not 1 |then set|
|00003e50| 20 74 68 65 20 63 75 72 | 73 6f 72 20 74 6f 20 77 | the cur|sor to w|
|00003e60| 61 74 63 68 0d 69 66 20 | 6e 6f 74 20 74 68 65 20 |atch.if |not the |
|00003e70| 6c 6f 63 6b 53 63 72 65 | 65 6e 20 74 68 65 6e 20 |lockScre|en then |
|00003e80| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 20 2d 2d 20 69 |lock scr|een -- i|
|00003e90| 6e 20 63 61 73 65 20 61 | 6c 72 65 61 64 79 20 73 |n case a|lready s|
|00003ea0| 65 74 0d 65 6e 64 20 69 | 66 0d 65 6c 73 65 0d 69 |et.end i|f.else.i|
|00003eb0| 66 20 63 68 61 72 20 32 | 20 6f 66 20 67 48 43 6f |f char 2| of gHCo|
|00003ec0| 70 74 69 6f 6e 73 20 69 | 73 20 31 20 74 68 65 6e |ptions i|s 1 then|
|00003ed0| 20 73 65 6e 64 20 48 43 | 75 6e 43 6f 6c 6f 72 69 | send HC|unColori|
|00003ee0| 7a 65 20 74 6f 20 63 64 | 0d 65 6c 73 65 20 2d 2d |ze to cd|.else --|
|00003ef0| 20 64 65 66 61 75 6c 74 | 20 48 43 75 6e 43 6f 6c | default| HCunCol|
|00003f00| 6f 72 69 7a 65 0d 69 66 | 20 63 68 61 72 20 31 31 |orize.if| char 11|
|00003f10| 20 6f 66 20 67 48 43 6f | 70 74 69 6f 6e 73 20 69 | of gHCo|ptions i|
|00003f20| 73 20 6e 6f 74 20 31 20 | 74 68 65 6e 20 73 65 74 |s not 1 |then set|
|00003f30| 20 74 68 65 20 63 75 72 | 73 6f 72 20 74 6f 20 77 | the cur|sor to w|
|00003f40| 61 74 63 68 0d 69 66 20 | 6e 6f 74 20 74 68 65 20 |atch.if |not the |
|00003f50| 6c 6f 63 6b 53 63 72 65 | 65 6e 20 74 68 65 6e 20 |lockScre|en then |
|00003f60| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 20 2d 2d 20 64 |lock scr|een -- d|
|00003f70| 69 74 74 6f 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |itto.end| if.end |
|00003f80| 69 66 0d 69 66 20 63 68 | 61 72 20 36 20 6f 66 20 |if.if ch|ar 6 of |
|00003f90| 67 48 43 6f 70 74 69 6f | 6e 73 20 69 73 20 31 20 |gHCoptio|ns is 1 |
|00003fa0| 74 68 65 6e 20 73 65 6e | 64 20 48 43 75 6e 47 72 |then sen|d HCunGr|
|00003fb0| 61 70 68 69 63 20 74 6f | 20 63 64 0d 69 66 20 28 |aphic to| cd.if (|
|00003fc0| 63 68 61 72 20 31 30 20 | 6f 66 20 67 48 43 6f 70 |char 10 |of gHCop|
|00003fd0| 74 69 6f 6e 73 20 69 73 | 20 31 29 20 61 6e 64 20 |tions is| 1) and |
|00003fe0| 67 48 43 77 69 6e 64 6f | 77 73 20 69 73 20 6e 6f |gHCwindo|ws is no|
|00003ff0| 74 20 65 6d 70 74 79 0d | 74 68 65 6e 20 63 48 43 |t empty.|then cHC|
|00004000| 6b 69 6c 6c 57 69 6e 64 | 6f 77 73 0d 65 6e 64 20 |killWind|ows.end |
|00004010| 63 48 43 75 6e 43 6f 6c | 6f 72 69 7a 65 0d 0d 6f |cHCunCol|orize..o|
|00004020| 6e 20 63 48 43 72 65 43 | 6f 6c 6f 72 69 7a 65 0d |n cHCreC|olorize.|
|00004030| 63 48 43 75 6e 43 6f 6c | 6f 72 69 7a 65 0d 63 48 |cHCunCol|orize.cH|
|00004040| 43 63 6f 6c 6f 72 69 7a | 65 0d 65 6e 64 20 63 48 |Ccoloriz|e.end cH|
|00004050| 43 72 65 43 6f 6c 6f 72 | 69 7a 65 0d 0d 6f 6e 20 |CreColor|ize..on |
|00004060| 63 48 43 73 68 6f 77 43 | 6f 6c 6f 72 20 73 69 6e |cHCshowC|olor sin|
|00004070| 67 6c 65 0d 69 66 20 73 | 69 6e 67 6c 65 20 69 73 |gle.if s|ingle is|
|00004080| 20 54 72 75 65 20 74 68 | 65 6e 20 2d 2d 20 6a 75 | True th|en -- ju|
|00004090| 73 74 20 65 6e 73 75 72 | 65 20 77 69 6c 6c 20 75 |st ensur|e will u|
|000040a0| 70 64 61 74 65 0d 69 66 | 20 6e 6f 74 20 74 68 65 |pdate.if| not the|
|000040b0| 20 6c 6f 63 6b 53 63 72 | 65 65 6e 20 74 68 65 6e | lockScr|een then|
|000040c0| 0d 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0d 75 6e 6c |.lock sc|reen.unl|
|000040d0| 6f 63 6b 20 73 63 72 65 | 65 6e 0d 65 6e 64 20 69 |ock scre|en.end i|
|000040e0| 66 0d 65 6c 73 65 20 69 | 66 20 73 69 6e 67 6c 65 |f.else i|f single|
|000040f0| 20 69 73 20 59 65 73 20 | 74 68 65 6e 20 2d 2d 20 | is Yes |then -- |
|00004100| 73 69 6e 67 6c 65 20 75 | 6e 6c 6f 63 6b 20 28 61 |single u|nlock (a|
|00004110| 73 73 75 6d 65 20 70 72 | 65 76 20 6c 6f 63 6b 65 |ssume pr|ev locke|
|00004120| 64 29 0d 75 6e 6c 6f 63 | 6b 20 73 63 72 65 65 6e |d).unloc|k screen|
|00004130| 0d 65 6c 73 65 0d 67 6c | 6f 62 61 6c 20 67 4f 6b |.else.gl|obal gOk|
|00004140| 54 6f 43 6f 6c 6f 72 69 | 7a 65 0d 69 66 20 67 4f |ToColori|ze.if gO|
|00004150| 6b 54 6f 43 6f 6c 6f 72 | 69 7a 65 20 69 73 20 65 |kToColor|ize is e|
|00004160| 6d 70 74 79 20 74 68 65 | 6e 0d 69 66 20 6e 6f 74 |mpty the|n.if not|
|00004170| 20 74 68 65 20 6c 6f 63 | 6b 53 63 72 65 65 6e 20 | the loc|kScreen |
|00004180| 74 68 65 6e 20 6c 6f 63 | 6b 20 73 63 72 65 65 6e |then loc|k screen|
|00004190| 0d 75 6e 6c 6f 63 6b 20 | 73 63 72 65 65 6e 20 2d |.unlock |screen -|
|000041a0| 2d 20 77 65 20 61 6c 77 | 61 79 73 20 6e 65 65 64 |- we alw|ays need|
|000041b0| 20 74 6f 20 64 6f 20 6f | 6e 63 65 2c 20 73 61 76 | to do o|nce, sav|
|000041c0| 65 73 20 61 20 74 65 73 | 74 0d 65 6e 64 20 69 66 |es a tes|t.end if|
|000041d0| 0d 72 65 70 65 61 74 20 | 77 68 69 6c 65 20 74 68 |.repeat |while th|
|000041e0| 65 20 6c 6f 63 6b 53 63 | 72 65 65 6e 0d 75 6e 6c |e lockSc|reen.unl|
|000041f0| 6f 63 6b 20 73 63 72 65 | 65 6e 0d 65 6e 64 20 72 |ock scre|en.end r|
|00004200| 65 70 65 61 74 0d 65 6e | 64 20 69 66 0d 65 6e 64 |epeat.en|d if.end|
|00004210| 20 63 48 43 73 68 6f 77 | 43 6f 6c 6f 72 0d 0d 6f | cHCshow|Color..o|
|00004220| 6e 20 63 48 43 62 72 65 | 61 6b 53 63 72 65 65 6e |n cHCbre|akScreen|
|00004230| 4c 6f 63 6b 0d 67 6c 6f | 62 61 6c 20 67 4f 6b 54 |Lock.glo|bal gOkT|
|00004240| 6f 43 6f 6c 6f 72 69 7a | 65 2c 20 67 48 43 65 66 |oColoriz|e, gHCef|
|00004250| 66 65 63 74 73 2c 20 67 | 48 43 6f 70 74 69 6f 6e |fects, g|HCoption|
|00004260| 73 0d 67 65 74 20 67 48 | 43 65 66 66 65 63 74 73 |s.get gH|Ceffects|
|00004270| 20 2d 2d 20 67 65 74 20 | 6e 6f 77 20 69 6e 20 63 | -- get |now in c|
|00004280| 61 73 65 20 6f 66 20 65 | 72 72 6f 72 0d 70 75 74 |ase of e|rror.put|
|00004290| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 67 48 43 65 | empty i|nto gHCe|
|000042a0| 66 66 65 63 74 73 0d 0d | 69 66 20 69 74 20 69 73 |ffects..|if it is|
|000042b0| 20 65 6d 70 74 79 20 74 | 68 65 6e 0d 72 65 70 65 | empty t|hen.repe|
|000042c0| 61 74 20 77 68 69 6c 65 | 20 74 68 65 20 6c 6f 63 |at while| the loc|
|000042d0| 6b 53 63 72 65 65 6e 0d | 75 6e 6c 6f 63 6b 20 73 |kScreen.|unlock s|
|000042e0| 63 72 65 65 6e 0d 65 6e | 64 20 72 65 70 65 61 74 |creen.en|d repeat|
|000042f0| 0d 65 6c 73 65 0d 72 65 | 70 65 61 74 20 77 68 69 |.else.re|peat whi|
|00004300| 6c 65 20 74 68 65 20 6c | 6f 63 6b 53 63 72 65 65 |le the l|ockScree|
|00004310| 6e 0d 64 6f 20 22 75 6e | 6c 6f 63 6b 20 73 63 72 |n.do "un|lock scr|
|00004320| 65 65 6e 20 77 69 74 68 | 22 20 26 26 20 69 74 0d |een with|" && it.|
|00004330| 65 6e 64 20 72 65 70 65 | 61 74 0d 65 6e 64 20 69 |end repe|at.end i|
|00004340| 66 0d 65 6e 64 20 63 48 | 43 62 72 65 61 6b 53 63 |f.end cH|CbreakSc|
|00004350| 72 65 65 6e 4c 6f 63 6b | 0d 0d 6f 6e 20 63 48 43 |reenLock|..on cHC|
|00004360| 66 6f 72 63 65 53 63 72 | 65 65 6e 4c 6f 63 6b 0d |forceScr|eenLock.|
|00004370| 63 48 43 62 72 65 61 6b | 53 63 72 65 65 6e 4c 6f |cHCbreak|ScreenLo|
|00004380| 63 6b 0d 65 6e 64 20 63 | 48 43 66 6f 72 63 65 53 |ck.end c|HCforceS|
|00004390| 63 72 65 65 6e 4c 6f 63 | 6b 0d 0d 6f 6e 20 63 48 |creenLoc|k..on cH|
|000043a0| 43 6c 6f 63 6b 20 52 65 | 63 65 6e 74 54 6f 6f 0d |Clock Re|centToo.|
|000043b0| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 73 65 74 20 |lock scr|een.set |
|000043c0| 6c 6f 63 6b 4d 65 73 73 | 61 67 65 73 20 74 6f 20 |lockMess|ages to |
|000043d0| 54 72 75 65 0d 69 66 20 | 52 65 63 65 6e 74 54 6f |True.if |RecentTo|
|000043e0| 6f 20 69 73 20 6e 6f 74 | 20 46 61 6c 73 65 20 74 |o is not| False t|
|000043f0| 68 65 6e 20 73 65 74 20 | 6c 6f 63 6b 52 65 63 65 |hen set |lockRece|
|00004400| 6e 74 20 74 6f 20 54 72 | 75 65 0d 65 6e 64 20 63 |nt to Tr|ue.end c|
|00004410| 48 43 6c 6f 63 6b 0d 0d | 6f 6e 20 63 48 43 75 6e |HClock..|on cHCun|
|00004420| 4c 6f 63 6b 20 52 65 63 | 65 6e 74 54 6f 6f 0d 73 |Lock Rec|entToo.s|
|00004430| 65 74 20 6c 6f 63 6b 52 | 65 63 65 6e 74 20 74 6f |et lockR|ecent to|
|00004440| 20 46 61 6c 73 65 0d 69 | 66 20 52 65 63 65 6e 74 | False.i|f Recent|
|00004450| 54 6f 6f 20 69 73 20 6e | 6f 74 20 46 61 6c 73 65 |Too is n|ot False|
|00004460| 20 74 68 65 6e 20 73 65 | 74 20 6c 6f 63 6b 52 65 | then se|t lockRe|
|00004470| 63 65 6e 74 20 74 6f 20 | 46 61 6c 73 65 0d 75 6e |cent to |False.un|
|00004480| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 65 6e 64 20 |lock scr|een.end |
|00004490| 63 48 43 75 6e 4c 6f 63 | 6b 0d 0d 6f 6e 20 63 48 |cHCunLoc|k..on cH|
|000044a0| 43 76 69 73 75 61 6c 20 | 63 6f 6d 6d 61 6e 64 2c |Cvisual |command,|
|000044b0| 20 64 6f 6e 74 52 65 70 | 6c 61 63 65 0d 67 6c 6f | dontRep|lace.glo|
|000044c0| 62 61 6c 20 67 4f 6b 54 | 6f 43 6f 6c 6f 72 69 7a |bal gOkT|oColoriz|
|000044d0| 65 2c 20 67 48 43 6f 70 | 74 69 6f 6e 73 2c 20 67 |e, gHCop|tions, g|
|000044e0| 48 43 65 66 66 65 63 74 | 73 0d 69 66 20 63 68 61 |HCeffect|s.if cha|
|000044f0| 72 20 31 32 20 6f 66 20 | 67 48 43 6f 70 74 69 6f |r 12 of |gHCoptio|
|00004500| 6e 73 20 3d 20 31 20 c2 | 20 2d 2d 20 6e 6f 56 69 |ns = 1 .| -- noVi|
|00004510| 73 75 61 6c 73 0d 6f 72 | 20 63 68 61 72 20 31 33 |suals.or| char 13|
|00004520| 20 6f 66 20 67 48 43 6f | 70 74 69 6f 6e 73 20 3d | of gHCo|ptions =|
|00004530| 20 31 20 61 6e 64 20 67 | 4f 6b 54 6f 43 6f 6c 6f | 1 and g|OkToColo|
|00004540| 72 69 7a 65 20 69 73 20 | 65 6d 70 74 79 20 74 68 |rize is |empty th|
|00004550| 65 6e 20 2d 2d 20 69 66 | 43 6f 6c 6f 72 0d 70 75 |en -- if|Color.pu|
|00004560| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 67 48 43 |t empty |into gHC|
|00004570| 65 66 66 65 63 74 73 0d | 65 78 69 74 20 63 48 43 |effects.|exit cHC|
|00004580| 76 69 73 75 61 6c 0d 65 | 6e 64 20 69 66 0d 0d 69 |visual.e|nd if..i|
|00004590| 66 20 64 6f 6e 74 52 65 | 70 6c 61 63 65 20 69 73 |f dontRe|place is|
|000045a0| 20 54 72 75 65 20 61 6e | 64 20 67 48 43 65 66 66 | True an|d gHCeff|
|000045b0| 65 63 74 73 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |ects is |not empt|
|000045c0| 79 20 74 68 65 6e 20 65 | 78 69 74 20 63 48 43 76 |y then e|xit cHCv|
|000045d0| 69 73 75 61 6c 0d 70 75 | 74 20 63 6f 6d 6d 61 6e |isual.pu|t comman|
|000045e0| 64 20 69 6e 74 6f 20 67 | 48 43 65 66 66 65 63 74 |d into g|HCeffect|
|000045f0| 73 20 2d 2d 20 73 74 6f | 72 65 20 66 6f 72 20 6c |s -- sto|re for l|
|00004600| 61 74 65 72 20 75 73 65 | 0d 65 6e 64 20 63 48 43 |ater use|.end cHC|
|00004610| 76 69 73 75 61 6c 0d 0d | 2d 2d 20 64 65 66 61 75 |visual..|-- defau|
|00004620| 6c 74 20 68 61 6e 64 6c | 65 72 73 20 2d 20 75 73 |lt handl|ers - us|
|00004630| 75 61 6c 6c 79 20 70 6c | 61 63 65 20 69 6e 20 63 |ually pl|ace in c|
|00004640| 61 72 64 73 20 74 6f 20 | 64 72 61 77 20 63 6f 6c |ards to |draw col|
|00004650| 6f 75 72 20 65 74 63 2e | 0d 2d 2d 20 5b 63 48 63 |our etc.|.-- [cHc|
|00004660| 63 6f 6c 6f 72 69 7a 65 | 2c 20 63 48 43 75 6e 43 |colorize|, cHCunC|
|00004670| 6f 6c 6f 72 69 7a 65 20 | 65 74 63 20 63 6f 6e 74 |olorize |etc cont|
|00004680| 61 69 6e 20 65 71 75 69 | 76 61 6c 65 6e 74 73 2e |ain equi|valents.|
|00004690| 5d 0d 0d 6f 6e 20 48 43 | 69 6e 69 74 0d 65 6e 64 |]..on HC|init.end|
|000046a0| 20 48 43 69 6e 69 74 0d | 0d 6f 6e 20 48 43 63 6f | HCinit.|.on HCco|
|000046b0| 6c 6f 72 69 7a 65 20 2d | 2d 20 64 65 66 61 75 6c |lorize -|- defaul|
|000046c0| 74 20 69 73 20 65 72 61 | 73 65 20 63 6f 6c 6f 75 |t is era|se colou|
|000046d0| 72 20 73 63 72 65 65 6e | 0d 43 6f 6c 6f 72 69 7a |r screen|.Coloriz|
|000046e0| 65 48 43 20 22 45 72 61 | 73 65 22 0d 65 6e 64 20 |eHC "Era|se".end |
|000046f0| 48 43 63 6f 6c 6f 72 69 | 7a 65 0d 0d 6f 6e 20 48 |HCcolori|ze..on H|
|00004700| 43 75 6e 43 6f 6c 6f 72 | 69 7a 65 20 2d 2d 20 73 |CunColor|ize -- s|
|00004710| 65 74 20 63 75 72 73 6f | 72 20 74 6f 20 73 68 6f |et curso|r to sho|
|00004720| 77 20 61 63 74 69 6f 6e | 2c 20 61 6e 64 20 6c 6f |w action|, and lo|
|00004730| 63 6b 20 73 63 72 65 65 | 6e 0d 67 6c 6f 62 61 6c |ck scree|n.global|
|00004740| 20 67 48 43 4f 70 74 69 | 6f 6e 73 0d 69 66 20 63 | gHCOpti|ons.if c|
|00004750| 68 61 72 20 31 31 20 6f | 66 20 67 48 43 6f 70 74 |har 11 o|f gHCopt|
|00004760| 69 6f 6e 73 20 69 73 20 | 6e 6f 74 20 31 20 74 68 |ions is |not 1 th|
|00004770| 65 6e 20 73 65 74 20 74 | 68 65 20 63 75 72 73 6f |en set t|he curso|
|00004780| 72 20 74 6f 20 77 61 74 | 63 68 0d 69 66 20 6e 6f |r to wat|ch.if no|
|00004790| 74 20 74 68 65 20 6c 6f | 63 6b 53 63 72 65 65 6e |t the lo|ckScreen|
|000047a0| 20 74 68 65 6e 20 6c 6f | 63 6b 20 73 63 72 65 65 | then lo|ck scree|
|000047b0| 6e 0d 65 6e 64 20 48 43 | 75 6e 43 6f 6c 6f 72 69 |n.end HC|unColori|
|000047c0| 7a 65 0d 0d 6f 6e 20 48 | 43 62 57 68 69 74 65 0d |ze..on H|CbWhite.|
|000047d0| 65 6e 64 20 48 43 62 57 | 68 69 74 65 0d 0d 6f 6e |end HCbW|hite..on|
|000047e0| 20 48 43 75 6e 42 57 68 | 69 74 65 0d 48 43 75 6e | HCunBWh|ite.HCun|
|000047f0| 43 6f 6c 6f 72 69 7a 65 | 0d 65 6e 64 20 48 43 75 |Colorize|.end HCu|
|00004800| 6e 42 57 68 69 74 65 0d | 0d 6f 6e 20 48 43 70 72 |nBWhite.|.on HCpr|
|00004810| 65 47 72 61 70 68 69 63 | 0d 65 6e 64 20 48 43 70 |eGraphic|.end HCp|
|00004820| 72 65 47 72 61 70 68 69 | 63 0d 0d 6f 6e 20 48 43 |reGraphi|c..on HC|
|00004830| 67 72 61 70 68 69 63 0d | 65 6e 64 20 48 43 67 72 |graphic.|end HCgr|
|00004840| 61 70 68 69 63 0d 0d 6f | 6e 20 48 43 75 6e 47 72 |aphic..o|n HCunGr|
|00004850| 61 70 68 69 63 0d 65 6e | 64 20 48 43 55 6e 47 72 |aphic.en|d HCUnGr|
|00004860| 61 70 68 69 63 0d 0d 2d | 2d 20 6d 69 73 63 20 68 |aphic..-|- misc h|
|00004870| 65 6c 70 0d 0d 66 75 6e | 63 74 69 6f 6e 20 63 48 |elp..fun|ction cH|
|00004880| 43 63 6f 72 72 65 63 74 | 20 70 6f 73 2c 43 6f 72 |Ccorrect| pos,Cor|
|00004890| 72 65 63 74 69 6f 6e 0d | 69 66 20 43 6f 72 72 65 |rection.|if Corre|
|000048a0| 63 74 69 6f 6e 20 69 73 | 20 6e 6f 74 20 65 6d 70 |ction is| not emp|
|000048b0| 74 79 20 74 68 65 6e 0d | 72 65 70 65 61 74 20 77 |ty then.|repeat w|
|000048c0| 69 74 68 20 69 20 3d 20 | 31 20 74 6f 20 74 68 65 |ith i = |1 to the|
|000048d0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 69 74 65 6d 73 | number |of items|
|000048e0| 20 6f 66 20 70 6f 73 0d | 61 64 64 20 69 74 65 6d | of pos.|add item|
|000048f0| 20 69 20 6f 66 20 43 6f | 72 72 65 63 74 69 6f 6e | i of Co|rrection|
|00004900| 20 74 6f 20 69 74 65 6d | 20 69 20 6f 66 20 70 6f | to item| i of po|
|00004910| 73 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 65 6e 64 |s.end re|peat.end|
|00004920| 20 69 66 0d 72 65 74 75 | 72 6e 20 70 6f 73 0d 65 | if.retu|rn pos.e|
|00004930| 6e 64 20 63 48 43 63 6f | 72 72 65 63 74 0d 0d 2d |nd cHCco|rrect..-|
|00004940| 2d 20 62 75 74 74 6f 6e | 20 61 69 64 73 0d 0d 6f |- button| aids..o|
|00004950| 6e 20 63 48 43 6d 6f 75 | 73 65 44 6f 77 6e 20 70 |n cHCmou|seDown p|
|00004960| 6f 73 2c 55 70 42 6d 61 | 70 2c 44 6f 77 6e 42 6d |os,UpBma|p,DownBm|
|00004970| 61 70 2c 43 6f 72 72 65 | 63 74 69 6f 6e 2c 48 69 |ap,Corre|ction,Hi|
|00004980| 4c 69 74 65 42 57 0d 69 | 66 20 74 68 65 20 61 75 |LiteBW.i|f the au|
|00004990| 74 6f 48 69 6c 69 74 65 | 20 6f 66 20 54 61 72 67 |toHilite| of Targ|
|000049a0| 65 74 20 2d 2d 20 6d 65 | 73 73 65 73 20 75 70 20 |et -- me|sses up |
|000049b0| 63 6f 6c 6f 75 72 2c 20 | 64 65 66 61 75 6c 74 20 |colour, |default |
|000049c0| 66 6f 72 20 42 57 0d 74 | 68 65 6e 20 65 78 69 74 |for BW.t|hen exit|
|000049d0| 20 63 48 43 6d 6f 75 73 | 65 44 6f 77 6e 0d 67 6c | cHCmous|eDown.gl|
|000049e0| 6f 62 61 6c 20 67 4f 6b | 54 6f 43 6f 6c 6f 72 69 |obal gOk|ToColori|
|000049f0| 7a 65 0d 70 75 74 20 28 | 67 4f 6b 54 6f 43 6f 6c |ze.put (|gOkToCol|
|00004a00| 6f 72 69 7a 65 20 69 73 | 20 6e 6f 74 20 65 6d 70 |orize is| not emp|
|00004a10| 74 79 29 20 6f 72 20 28 | 55 70 42 6d 61 70 20 69 |ty) or (|UpBmap i|
|00004a20| 73 20 65 6d 70 74 79 29 | 20 6f 72 20 c2 0d 28 44 |s empty)| or ..(D|
|00004a30| 6f 77 6e 42 6d 61 70 20 | 69 73 20 65 6d 70 74 79 |ownBmap |is empty|
|00004a40| 29 20 69 6e 74 6f 20 64 | 6f 42 57 0d 69 66 20 64 |) into d|oBW.if d|
|00004a50| 6f 42 57 20 61 6e 64 20 | 48 69 4c 69 74 65 42 57 |oBW and |HiLiteBW|
|00004a60| 20 69 73 20 46 61 6c 73 | 65 20 2d 2d 20 75 73 65 | is Fals|e -- use|
|00004a70| 20 28 6e 6f 74 20 61 75 | 74 6f 48 69 6c 69 74 65 | (not au|toHilite|
|00004a80| 29 20 64 65 66 61 75 6c | 74 0d 74 68 65 6e 20 65 |) defaul|t.then e|
|00004a90| 78 69 74 20 63 48 43 6d | 6f 75 73 65 44 6f 77 6e |xit cHCm|ouseDown|
|00004aa0| 0d 69 66 20 6e 6f 74 20 | 64 6f 42 57 20 74 68 65 |.if not |doBW the|
|00004ab0| 6e 0d 69 66 20 70 6f 73 | 20 69 73 20 65 6d 70 74 |n.if pos| is empt|
|00004ac0| 79 20 74 68 65 6e 20 70 | 75 74 20 74 6f 70 4c 65 |y then p|ut topLe|
|00004ad0| 66 74 20 6f 66 20 74 68 | 65 20 74 61 72 67 65 74 |ft of th|e target|
|00004ae0| 20 69 6e 74 6f 20 70 6f | 73 0d 69 66 20 43 6f 72 | into po|s.if Cor|
|00004af0| 72 65 63 74 69 6f 6e 20 | 69 73 20 6e 6f 74 20 65 |rection |is not e|
|00004b00| 6d 70 74 79 0d 74 68 65 | 6e 20 70 75 74 20 63 48 |mpty.the|n put cH|
|00004b10| 43 63 6f 72 72 65 63 74 | 28 70 6f 73 2c 43 6f 72 |Ccorrect|(pos,Cor|
|00004b20| 72 65 63 74 69 6f 6e 29 | 20 69 6e 74 6f 20 70 6f |rection)| into po|
|00004b30| 73 0d 65 6e 64 20 69 66 | 0d 70 75 74 20 46 61 6c |s.end if|.put Fal|
|00004b40| 73 65 20 69 6e 74 6f 20 | 49 73 49 6e 4d 65 0d 72 |se into |IsInMe.r|
|00004b50| 65 70 65 61 74 20 75 6e | 74 69 6c 20 74 68 65 20 |epeat un|til the |
|00004b60| 6d 6f 75 73 65 20 69 73 | 20 75 70 0d 69 66 20 28 |mouse is| up.if (|
|00004b70| 74 68 65 20 6d 6f 75 73 | 65 4c 6f 63 20 69 73 20 |the mous|eLoc is |
|00004b80| 77 69 74 68 69 6e 20 74 | 68 65 20 72 65 63 74 20 |within t|he rect |
|00004b90| 6f 66 20 74 68 65 20 74 | 61 72 67 65 74 29 20 74 |of the t|arget) t|
|00004ba0| 68 65 6e 0d 69 66 20 49 | 73 49 6e 4d 65 20 69 73 |hen.if I|sInMe is|
|00004bb0| 20 6e 6f 74 20 54 72 75 | 65 20 74 68 65 6e 0d 69 | not Tru|e then.i|
|00004bc0| 66 20 6e 6f 74 20 64 6f | 42 57 20 74 68 65 6e 0d |f not do|BW then.|
|00004bd0| 63 6f 6c 6f 72 69 7a 65 | 48 43 20 22 61 64 64 22 |colorize|HC "add"|
|00004be0| 2c 44 6f 77 6e 42 6d 61 | 70 2c 70 6f 73 0d 69 66 |,DownBma|p,pos.if|
|00004bf0| 20 74 68 65 20 72 65 73 | 75 6c 74 20 69 73 20 6e | the res|ult is n|
|00004c00| 6f 74 20 65 6d 70 74 79 | 20 74 68 65 6e 20 63 48 |ot empty| then cH|
|00004c10| 43 65 72 72 6f 72 20 74 | 68 65 20 72 65 73 75 6c |Cerror t|he resul|
|00004c20| 74 0d 63 48 43 73 68 6f | 77 43 6f 6c 6f 72 20 54 |t.cHCsho|wColor T|
|00004c30| 72 75 65 0d 65 6c 73 65 | 20 73 65 74 20 74 68 65 |rue.else| set the|
|00004c40| 20 68 69 6c 69 74 65 20 | 6f 66 20 74 68 65 20 74 | hilite |of the t|
|00004c50| 61 72 67 65 74 20 74 6f | 20 54 72 75 65 0d 70 75 |arget to| True.pu|
|00004c60| 74 20 54 72 75 65 20 69 | 6e 74 6f 20 49 73 49 6e |t True i|nto IsIn|
|00004c70| 4d 65 0d 65 6e 64 20 69 | 66 0d 65 6c 73 65 0d 69 |Me.end i|f.else.i|
|00004c80| 66 20 49 73 49 6e 4d 65 | 20 69 73 20 6e 6f 74 20 |f IsInMe| is not |
|00004c90| 46 61 6c 73 65 20 74 68 | 65 6e 0d 69 66 20 6e 6f |False th|en.if no|
|00004ca0| 74 20 64 6f 42 57 20 74 | 68 65 6e 0d 63 6f 6c 6f |t doBW t|hen.colo|
|00004cb0| 72 69 7a 65 48 43 20 22 | 61 64 64 22 2c 55 70 42 |rizeHC "|add",UpB|
|00004cc0| 4d 61 70 2c 70 6f 73 0d | 69 66 20 74 68 65 20 72 |Map,pos.|if the r|
|00004cd0| 65 73 75 6c 74 20 69 73 | 20 6e 6f 74 20 65 6d 70 |esult is| not emp|
|00004ce0| 74 79 20 74 68 65 6e 0d | 73 65 6e 64 20 22 63 48 |ty then.|send "cH|
|00004cf0| 43 65 72 72 6f 72 22 20 | 26 26 20 71 75 6f 74 65 |Cerror" |&& quote|
|00004d00| 20 26 20 74 68 65 20 72 | 65 73 75 6c 74 20 26 20 | & the r|esult & |
|00004d10| 71 75 6f 74 65 20 74 6f | 20 63 64 0d 65 6e 64 20 |quote to| cd.end |
|00004d20| 69 66 0d 63 48 43 73 68 | 6f 77 43 6f 6c 6f 72 20 |if.cHCsh|owColor |
|00004d30| 54 72 75 65 0d 65 6c 73 | 65 20 73 65 74 20 74 68 |True.els|e set th|
|00004d40| 65 20 68 69 6c 69 74 65 | 20 6f 66 20 74 68 65 20 |e hilite| of the |
|00004d50| 74 61 72 67 65 74 20 74 | 6f 20 66 61 6c 73 65 0d |target t|o false.|
|00004d60| 70 75 74 20 46 61 6c 73 | 65 20 69 6e 74 6f 20 49 |put Fals|e into I|
|00004d70| 73 49 6e 4d 65 0d 65 6e | 64 20 69 66 0d 65 6e 64 |sInMe.en|d if.end|
|00004d80| 20 69 66 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 65 | if.end |repeat.e|
|00004d90| 6e 64 20 63 48 43 6d 6f | 75 73 65 44 6f 77 6e 0d |nd cHCmo|useDown.|
|00004da0| 0d 66 75 6e 63 74 69 6f | 6e 20 63 48 43 6d 6f 75 |.functio|n cHCmou|
|00004db0| 73 65 55 70 20 70 6f 73 | 2c 55 70 42 6d 61 70 2c |seUp pos|,UpBmap,|
|00004dc0| 43 6f 72 72 65 63 74 69 | 6f 6e 2c 48 69 6c 69 74 |Correcti|on,Hilit|
|00004dd0| 65 42 57 0d 69 66 20 6e | 6f 74 20 28 74 68 65 20 |eBW.if n|ot (the |
|00004de0| 6d 6f 75 73 65 4c 6f 63 | 20 69 73 20 77 69 74 68 |mouseLoc| is with|
|00004df0| 69 6e 20 74 68 65 20 72 | 65 63 74 20 6f 66 20 74 |in the r|ect of t|
|00004e00| 68 65 20 74 61 72 67 65 | 74 29 0d 74 68 65 6e 20 |he targe|t).then |
|00004e10| 72 65 74 75 72 6e 20 46 | 61 6c 73 65 0d 65 6c 73 |return F|alse.els|
|00004e20| 65 0d 67 6c 6f 62 61 6c | 20 67 4f 6b 54 6f 43 6f |e.global| gOkToCo|
|00004e30| 6c 6f 72 69 7a 65 0d 69 | 66 20 28 67 4f 6b 54 6f |lorize.i|f (gOkTo|
|00004e40| 43 6f 6c 6f 72 69 7a 65 | 20 69 73 20 65 6d 70 74 |Colorize| is empt|
|00004e50| 79 29 20 61 6e 64 20 28 | 55 70 42 6d 61 70 20 69 |y) and (|UpBmap i|
|00004e60| 73 20 6e 6f 74 20 65 6d | 70 74 79 29 20 74 68 65 |s not em|pty) the|
|00004e70| 6e 0d 69 66 20 70 6f 73 | 20 69 73 20 65 6d 70 74 |n.if pos| is empt|
|00004e80| 79 20 74 68 65 6e 20 70 | 75 74 20 74 6f 70 4c 65 |y then p|ut topLe|
|00004e90| 66 74 20 6f 66 20 74 68 | 65 20 74 61 72 67 65 74 |ft of th|e target|
|00004ea0| 20 69 6e 74 6f 20 70 6f | 73 0d 69 66 20 43 6f 72 | into po|s.if Cor|
|00004eb0| 72 65 63 74 69 6f 6e 20 | 69 73 20 6e 6f 74 20 65 |rection |is not e|
|00004ec0| 6d 70 74 79 0d 74 68 65 | 6e 20 70 75 74 20 63 48 |mpty.the|n put cH|
|00004ed0| 43 63 6f 72 72 65 63 74 | 28 70 6f 73 2c 43 6f 72 |Ccorrect|(pos,Cor|
|00004ee0| 72 65 63 74 69 6f 6e 29 | 20 69 6e 74 6f 20 70 6f |rection)| into po|
|00004ef0| 73 0d 63 6f 6c 6f 72 69 | 7a 65 48 43 20 22 61 64 |s.colori|zeHC "ad|
|00004f00| 64 22 2c 55 70 42 4d 61 | 70 2c 70 6f 73 0d 69 66 |d",UpBMa|p,pos.if|
|00004f10| 20 74 68 65 20 72 65 73 | 75 6c 74 20 69 73 20 6e | the res|ult is n|
|00004f20| 6f 74 20 65 6d 70 74 79 | 20 74 68 65 6e 0d 73 65 |ot empty| then.se|
|00004f30| 6e 64 20 22 63 48 43 65 | 72 72 6f 72 22 20 26 26 |nd "cHCe|rror" &&|
|00004f40| 20 71 75 6f 74 65 20 26 | 20 74 68 65 20 72 65 73 | quote &| the res|
|00004f50| 75 6c 74 20 26 20 71 75 | 6f 74 65 20 74 6f 20 63 |ult & qu|ote to c|
|00004f60| 64 0d 65 6e 64 20 69 66 | 0d 63 48 43 73 68 6f 77 |d.end if|.cHCshow|
|00004f70| 43 6f 6c 6f 72 20 54 72 | 75 65 0d 65 6c 73 65 20 |Color Tr|ue.else |
|00004f80| 69 66 20 48 69 6c 69 74 | 65 42 57 20 69 73 20 6e |if Hilit|eBW is n|
|00004f90| 6f 74 20 66 61 6c 73 65 | 20 2d 2d 20 69 66 20 48 |ot false| -- if H|
|00004fa0| 69 6c 69 74 65 42 57 20 | 69 73 20 66 61 6c 73 65 |iliteBW |is false|
|00004fb0| 2c 20 6c 65 61 76 65 20 | 61 6c 6f 6e 65 21 0d 74 |, leave |alone!.t|
|00004fc0| 68 65 6e 20 73 65 74 20 | 74 68 65 20 68 69 6c 69 |hen set |the hili|
|00004fd0| 74 65 20 6f 66 20 74 68 | 65 20 74 61 72 67 65 74 |te of th|e target|
|00004fe0| 20 74 6f 20 46 61 6c 73 | 65 0d 72 65 74 75 72 6e | to Fals|e.return|
|00004ff0| 20 54 72 75 65 0d 65 6e | 64 20 69 66 0d 65 6e 64 | True.en|d if.end|
|00005000| 20 63 48 43 6d 6f 75 73 | 65 55 70 0d 0d 66 75 6e | cHCmous|eUp..fun|
|00005010| 63 74 69 6f 6e 20 63 48 | 43 62 75 74 74 46 6c 61 |ction cH|CbuttFla|
|00005020| 67 73 20 66 6c 61 67 73 | 0d 2d 2d 20 74 75 72 6e |gs flags|.-- turn|
|00005030| 20 72 65 61 64 61 62 6c | 65 20 65 71 75 69 76 20 | readabl|e equiv |
|00005040| 6f 66 20 63 48 43 69 6e | 69 74 46 6c 61 67 73 20 |of cHCin|itFlags |
|00005050| 69 6e 74 6f 20 63 6f 6d | 70 72 65 73 73 65 64 20 |into com|pressed |
|00005060| 66 6f 72 6d 0d 67 65 74 | 20 6f 66 66 73 65 74 28 |form.get| offset(|
|00005070| 22 49 3d 22 2c 66 6c 61 | 67 73 29 20 2d 2d 20 49 |"I=",fla|gs) -- I|
|00005080| 63 6f 6e 20 73 65 74 74 | 69 6e 67 0d 69 66 20 69 |con sett|ing.if i|
|00005090| 74 20 3d 20 30 20 74 68 | 65 6e 20 70 75 74 20 22 |t = 0 th|en put "|
|000050a0| 20 22 20 69 6e 74 6f 20 | 72 65 73 75 6c 74 20 2d | " into |result -|
|000050b0| 2d 20 63 68 61 72 20 31 | 0d 65 6c 73 65 20 70 75 |- char 1|.else pu|
|000050c0| 74 20 63 68 61 72 20 28 | 69 74 2b 32 29 20 6f 66 |t char (|it+2) of|
|000050d0| 20 66 6c 61 67 73 20 69 | 6e 74 6f 20 72 65 73 75 | flags i|nto resu|
|000050e0| 6c 74 0d 0d 67 65 74 20 | 6f 66 66 73 65 74 28 22 |lt..get |offset("|
|000050f0| 4e 3d 22 2c 66 6c 61 67 | 73 29 20 2d 2d 20 4e 61 |N=",flag|s) -- Na|
|00005100| 6d 65 20 73 65 74 74 69 | 6e 67 0d 69 66 20 69 74 |me setti|ng.if it|
|00005110| 20 3d 20 30 20 74 68 65 | 6e 20 70 75 74 20 22 20 | = 0 the|n put " |
|00005120| 22 20 61 66 74 65 72 20 | 72 65 73 75 6c 74 20 2d |" after |result -|
|00005130| 2d 20 63 68 61 72 20 32 | 0d 65 6c 73 65 20 70 75 |- char 2|.else pu|
|00005140| 74 20 63 68 61 72 20 28 | 69 74 2b 32 29 20 6f 66 |t char (|it+2) of|
|00005150| 20 66 6c 61 67 73 20 61 | 66 74 65 72 20 72 65 73 | flags a|fter res|
|00005160| 75 6c 74 0d 0d 67 65 74 | 20 6f 66 66 73 65 74 28 |ult..get| offset(|
|00005170| 22 4f 3d 22 2c 66 6c 61 | 67 73 29 20 2d 2d 20 4f |"O=",fla|gs) -- O|
|00005180| 75 74 6c 69 6e 65 20 73 | 65 74 74 69 6e 67 0d 69 |utline s|etting.i|
|00005190| 66 20 69 74 20 3d 20 30 | 20 74 68 65 6e 20 70 75 |f it = 0| then pu|
|000051a0| 74 20 22 20 22 20 61 66 | 74 65 72 20 72 65 73 75 |t " " af|ter resu|
|000051b0| 6c 74 20 2d 2d 20 63 68 | 61 72 20 33 0d 65 6c 73 |lt -- ch|ar 3.els|
|000051c0| 65 20 70 75 74 20 63 68 | 61 72 20 28 69 74 2b 32 |e put ch|ar (it+2|
|000051d0| 29 20 6f 66 20 66 6c 61 | 67 73 20 61 66 74 65 72 |) of fla|gs after|
|000051e0| 20 72 65 73 75 6c 74 0d | 0d 72 65 74 75 72 6e 20 | result.|.return |
|000051f0| 72 65 73 75 6c 74 0d 65 | 6e 64 20 63 48 43 62 75 |result.e|nd cHCbu|
|00005200| 74 74 46 6c 61 67 73 0d | 0d 6f 6e 20 63 48 43 69 |ttFlags.|.on cHCi|
|00005210| 6e 69 74 42 75 74 74 6f | 6e 20 73 68 6f 77 49 74 |nitButto|n showIt|
|00005220| 2c 20 66 6c 61 67 73 2c | 20 49 63 6e 2c 20 70 6f |, flags,| Icn, po|
|00005230| 73 2c 20 55 70 42 4d 61 | 70 2c 20 43 6f 72 72 65 |s, UpBMa|p, Corre|
|00005240| 63 74 69 6f 6e 2c 20 6f | 75 74 6c 69 6e 65 53 74 |ction, o|utlineSt|
|00005250| 79 6c 65 0d 2d 2d 20 64 | 65 66 61 75 6c 74 73 3a |yle.-- d|efaults:|
|00005260| 20 73 68 6f 77 49 74 20 | 46 61 6c 73 65 2c 20 70 | showIt |False, p|
|00005270| 6f 73 20 74 6f 70 4c 65 | 66 74 20 6f 66 20 74 61 |os topLe|ft of ta|
|00005280| 72 67 65 74 2c 20 43 6f | 72 72 65 63 74 69 6f 6e |rget, Co|rrection|
|00005290| 20 6e 6f 74 68 69 6e 67 | 2c 0d 2d 2d 20 66 6c 61 | nothing|,.-- fla|
|000052a0| 67 73 3a 20 49 3d 4e 65 | 76 65 72 2c 4f 3d 4e 65 |gs: I=Ne|ver,O=Ne|
|000052b0| 76 65 72 2c 4e 3d 4e 65 | 76 65 72 20 2c 20 6f 75 |ver,N=Ne|ver , ou|
|000052c0| 74 6c 69 6e 65 53 74 79 | 6c 65 3a 20 72 65 63 74 |tlineSty|le: rect|
|000052d0| 61 6e 67 6c 65 2c 20 49 | 63 6f 6e 3a 20 6e 6f 6e |angle, I|con: non|
|000052e0| 65 0d 0d 69 66 20 73 68 | 6f 77 49 74 20 69 73 20 |e..if sh|owIt is |
|000052f0| 46 61 6c 73 65 20 74 68 | 65 6e 0d 68 69 64 65 20 |False th|en.hide |
|00005300| 74 68 65 20 74 61 72 67 | 65 74 0d 65 6c 73 65 20 |the targ|et.else |
|00005310| 69 66 20 73 68 6f 77 49 | 74 20 69 73 20 22 46 6f |if showI|t is "Fo|
|00005320| 72 63 65 22 20 74 68 65 | 6e 0d 63 48 43 66 6f 72 |rce" the|n.cHCfor|
|00005330| 63 65 42 75 74 74 6f 6e | 20 66 6c 61 67 73 2c 49 |ceButton| flags,I|
|00005340| 63 6e 2c 70 6f 73 2c 55 | 70 42 4d 61 70 2c 43 6f |cn,pos,U|pBMap,Co|
|00005350| 72 72 65 63 74 69 6f 6e | 2c 6f 75 74 6c 69 6e 65 |rrection|,outline|
|00005360| 53 74 79 6c 65 0d 65 6c | 73 65 0d 67 6c 6f 62 61 |Style.el|se.globa|
|00005370| 6c 20 67 4f 6b 54 6f 43 | 6f 6c 6f 72 69 7a 65 0d |l gOkToC|olorize.|
|00005380| 70 75 74 20 67 4f 6b 54 | 6f 43 6f 6c 6f 72 69 7a |put gOkT|oColoriz|
|00005390| 65 20 69 73 20 6e 6f 74 | 20 65 6d 70 74 79 20 6f |e is not| empty o|
|000053a0| 72 20 55 70 42 4d 61 70 | 20 69 73 20 65 6d 70 74 |r UpBMap| is empt|
|000053b0| 79 20 69 6e 74 6f 20 42 | 57 0d 0d 69 66 20 66 6c |y into B|W..if fl|
|000053c0| 61 67 73 20 63 6f 6e 74 | 61 69 6e 73 20 22 3d 22 |ags cont|ains "="|
|000053d0| 20 74 68 65 6e 20 70 75 | 74 20 63 48 43 62 75 74 | then pu|t cHCbut|
|000053e0| 74 46 6c 61 67 73 28 66 | 6c 61 67 73 29 20 69 6e |tFlags(f|lags) in|
|000053f0| 74 6f 20 66 6c 61 67 73 | 0d 0d 2d 2d 20 69 6e 20 |to flags|..-- in |
|00005400| 77 68 61 74 20 66 6f 6c | 6c 6f 77 73 20 77 65 20 |what fol|lows we |
|00005410| 61 73 73 75 6d 65 20 74 | 68 61 74 20 63 48 43 69 |assume t|hat cHCi|
|00005420| 6e 69 74 42 75 74 74 6f | 6e 20 73 65 74 20 74 68 |nitButto|n set th|
|00005430| 65 20 62 75 74 74 6f 6e | 0d 2d 2d 20 62 65 66 6f |e button|.-- befo|
|00005440| 72 65 2c 20 61 6e 64 20 | 74 68 75 73 20 6f 6e 6c |re, and |thus onl|
|00005450| 79 20 42 57 20 63 68 61 | 6e 67 65 73 20 2d 20 6f |y BW cha|nges - o|
|00005460| 6e 6c 79 20 6e 65 65 64 | 20 74 6f 20 61 64 64 72 |nly need| to addr|
|00005470| 65 73 73 20 42 27 73 0d | 0d 69 66 20 42 57 20 74 |ess B's.|.if BW t|
|00005480| 68 65 6e 0d 69 66 20 63 | 68 61 72 20 33 20 6f 66 |hen.if c|har 3 of|
|00005490| 20 66 6c 61 67 73 20 69 | 73 20 22 42 22 20 74 68 | flags i|s "B" th|
|000054a0| 65 6e 20 2d 2d 20 64 6f | 4f 75 74 6c 69 6e 65 0d |en -- do|Outline.|
|000054b0| 69 66 20 6f 75 74 6c 69 | 6e 65 53 74 79 6c 65 20 |if outli|neStyle |
|000054c0| 69 73 20 65 6d 70 74 79 | 20 74 68 65 6e 0d 73 65 |is empty| then.se|
|000054d0| 74 20 74 68 65 20 73 74 | 79 6c 65 20 6f 66 20 74 |t the st|yle of t|
|000054e0| 68 65 20 74 61 72 67 65 | 74 20 74 6f 20 72 65 63 |he targe|t to rec|
|000054f0| 74 61 6e 67 6c 65 20 2d | 2d 20 64 65 66 61 75 6c |tangle -|- defaul|
|00005500| 74 0d 65 6c 73 65 20 73 | 65 74 20 74 68 65 20 73 |t.else s|et the s|
|00005510| 74 79 6c 65 20 6f 66 20 | 74 68 65 20 74 61 72 67 |tyle of |the targ|
|00005520| 65 74 20 74 6f 20 6f 75 | 74 6c 69 6e 65 53 74 79 |et to ou|tlineSty|
|00005530| 6c 65 0d 65 6e 64 20 69 | 66 0d 0d 69 66 20 63 68 |le.end i|f..if ch|
|00005540| 61 72 20 31 20 6f 66 20 | 66 6c 61 67 73 20 69 73 |ar 1 of |flags is|
|00005550| 20 22 42 22 20 2d 2d 20 | 64 6f 49 63 6f 6e 0d 74 | "B" -- |doIcon.t|
|00005560| 68 65 6e 20 73 65 74 20 | 74 68 65 20 69 63 6f 6e |hen set |the icon|
|00005570| 20 6f 66 20 74 68 65 20 | 74 61 72 67 65 74 20 74 | of the |target t|
|00005580| 6f 20 49 63 6e 0d 0d 69 | 66 20 63 68 61 72 20 32 |o Icn..i|f char 2|
|00005590| 20 6f 66 20 66 6c 61 67 | 73 20 69 73 20 22 42 22 | of flag|s is "B"|
|000055a0| 20 2d 2d 20 64 6f 4e 61 | 6d 65 0d 74 68 65 6e 20 | -- doNa|me.then |
|000055b0| 73 65 74 20 74 68 65 20 | 73 68 6f 77 4e 61 6d 65 |set the |showName|
|000055c0| 20 6f 66 20 74 68 65 20 | 74 61 72 67 65 74 20 74 | of the |target t|
|000055d0| 6f 20 54 72 75 65 0d 0d | 73 65 74 20 74 68 65 20 |o True..|set the |
|000055e0| 61 75 74 6f 48 69 6c 69 | 74 65 20 6f 66 20 74 68 |autoHili|te of th|
|000055f0| 65 20 74 61 72 67 65 74 | 20 74 6f 20 54 72 75 65 |e target| to True|
|00005600| 0d 0d 65 6c 73 65 20 2d | 2d 20 43 6f 6c 6f 75 72 |..else -|- Colour|
|00005610| 0d 69 66 20 63 68 61 72 | 20 33 20 6f 66 20 66 6c |.if char| 3 of fl|
|00005620| 61 67 73 20 69 73 20 22 | 42 22 20 2d 2d 20 64 6f |ags is "|B" -- do|
|00005630| 4f 75 74 6c 69 6e 65 0d | 74 68 65 6e 20 73 65 74 |Outline.|then set|
|00005640| 20 74 68 65 20 73 74 79 | 6c 65 20 6f 66 20 74 68 | the sty|le of th|
|00005650| 65 20 74 61 72 67 65 74 | 20 74 6f 20 6f 70 61 71 |e target| to opaq|
|00005660| 75 65 20 2d 2d 20 72 61 | 74 68 65 72 20 74 68 61 |ue -- ra|ther tha|
|00005670| 6e 20 74 72 61 6e 73 70 | 61 72 65 6e 74 0d 0d 69 |n transp|arent..i|
|00005680| 66 20 63 68 61 72 20 31 | 20 6f 66 20 66 6c 61 67 |f char 1| of flag|
|00005690| 73 20 69 73 20 22 42 22 | 20 2d 2d 20 64 6f 49 63 |s is "B"| -- doIc|
|000056a0| 6f 6e 0d 74 68 65 6e 20 | 73 65 74 20 74 68 65 20 |on.then |set the |
|000056b0| 69 63 6f 6e 20 6f 66 20 | 74 68 65 20 74 61 72 67 |icon of |the targ|
|000056c0| 65 74 20 74 6f 20 65 6d | 70 74 79 0d 0d 69 66 20 |et to em|pty..if |
|000056d0| 63 68 61 72 20 32 20 6f | 66 20 66 6c 61 67 73 20 |char 2 o|f flags |
|000056e0| 69 73 20 22 42 22 20 2d | 2d 20 64 6f 4e 61 6d 65 |is "B" -|- doName|
|000056f0| 0d 74 68 65 6e 20 73 65 | 74 20 74 68 65 20 73 68 |.then se|t the sh|
|00005700| 6f 77 4e 61 6d 65 20 6f | 66 20 74 68 65 20 74 61 |owName o|f the ta|
|00005710| 72 67 65 74 20 74 6f 20 | 46 61 6c 73 65 20 2d 2d |rget to |False --|
|00005720| 20 64 6f 4e 61 6d 65 0d | 0d 73 65 74 20 74 68 65 | doName.|.set the|
|00005730| 20 61 75 74 6f 48 69 6c | 69 74 65 20 6f 66 20 74 | autoHil|ite of t|
|00005740| 68 65 20 74 61 72 67 65 | 74 20 74 6f 20 46 61 6c |he targe|t to Fal|
|00005750| 73 65 0d 0d 2d 2d 20 70 | 61 63 65 20 74 68 65 20 |se..-- p|ace the |
|00005760| 50 49 43 54 0d 69 66 20 | 70 6f 73 20 69 73 20 65 |PICT.if |pos is e|
|00005770| 6d 70 74 79 20 74 68 65 | 6e 20 70 75 74 20 74 68 |mpty the|n put th|
|00005780| 65 20 74 6f 70 4c 65 66 | 74 20 6f 66 20 74 68 65 |e topLef|t of the|
|00005790| 20 74 61 72 67 65 74 20 | 69 6e 74 6f 20 70 6f 73 | target |into pos|
|000057a0| 0d 69 66 20 43 6f 72 72 | 65 63 74 69 6f 6e 20 69 |.if Corr|ection i|
|000057b0| 73 20 6e 6f 74 20 65 6d | 70 74 79 0d 74 68 65 6e |s not em|pty.then|
|000057c0| 20 70 75 74 20 63 48 43 | 63 6f 72 72 65 63 74 28 | put cHC|correct(|
|000057d0| 70 6f 73 2c 43 6f 72 72 | 65 63 74 69 6f 6e 29 20 |pos,Corr|ection) |
|000057e0| 69 6e 74 6f 20 70 6f 73 | 0d 63 6f 6c 6f 72 69 7a |into pos|.coloriz|
|000057f0| 65 48 43 20 22 61 64 64 | 22 2c 55 70 42 4d 61 70 |eHC "add|",UpBMap|
|00005800| 2c 70 6f 73 0d 69 66 20 | 74 68 65 20 72 65 73 75 |,pos.if |the resu|
|00005810| 6c 74 20 69 73 20 6e 6f | 74 20 65 6d 70 74 79 0d |lt is no|t empty.|
|00005820| 74 68 65 6e 20 73 65 6e | 64 20 22 63 48 43 65 72 |then sen|d "cHCer|
|00005830| 72 6f 72 22 20 26 26 20 | 71 75 6f 74 65 20 26 20 |ror" && |quote & |
|00005840| 74 68 65 20 72 65 73 75 | 6c 74 20 26 20 71 75 6f |the resu|lt & quo|
|00005850| 74 65 20 74 6f 20 63 64 | 0d 65 6e 64 20 69 66 0d |te to cd|.end if.|
|00005860| 0d 73 68 6f 77 20 74 68 | 65 20 74 61 72 67 65 74 |.show th|e target|
|00005870| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 63 48 43 69 |.end if.|end cHCi|
|00005880| 6e 69 74 42 75 74 74 6f | 6e 0d 0d 6f 6e 20 63 48 |nitButto|n..on cH|
|00005890| 43 66 6f 72 63 65 42 75 | 74 74 6f 6e 20 66 6c 61 |CforceBu|tton fla|
|000058a0| 67 73 2c 20 49 63 6e 2c | 20 70 6f 73 2c 20 55 70 |gs, Icn,| pos, Up|
|000058b0| 42 4d 61 70 2c 20 43 6f | 72 72 65 63 74 69 6f 6e |BMap, Co|rrection|
|000058c0| 2c 20 6f 75 74 6c 69 6e | 65 53 74 79 6c 65 0d 2d |, outlin|eStyle.-|
|000058d0| 2d 20 64 6f 6e 27 74 20 | 61 73 73 75 6d 65 20 77 |- don't |assume w|
|000058e0| 65 20 61 72 65 20 69 6e | 20 6b 6e 6f 77 6e 20 73 |e are in| known s|
|000058f0| 74 61 74 65 21 0d 0d 67 | 6c 6f 62 61 6c 20 67 4f |tate!..g|lobal gO|
|00005900| 6b 54 6f 43 6f 6c 6f 72 | 69 7a 65 0d 70 75 74 20 |kToColor|ize.put |
|00005910| 67 4f 6b 54 6f 43 6f 6c | 6f 72 69 7a 65 20 69 73 |gOkToCol|orize is|
|00005920| 20 6e 6f 74 20 65 6d 70 | 74 79 20 6f 72 20 55 70 | not emp|ty or Up|
|00005930| 42 4d 61 70 20 69 73 20 | 65 6d 70 74 79 20 69 6e |BMap is |empty in|
|00005940| 74 6f 20 42 57 0d 0d 69 | 66 20 66 6c 61 67 73 20 |to BW..i|f flags |
|00005950| 63 6f 6e 74 61 69 6e 73 | 20 22 3d 22 20 74 68 65 |contains| "=" the|
|00005960| 6e 20 70 75 74 20 63 48 | 43 62 75 74 74 46 6c 61 |n put cH|CbuttFla|
|00005970| 67 73 28 66 6c 61 67 73 | 29 20 69 6e 74 6f 20 66 |gs(flags|) into f|
|00005980| 6c 61 67 73 0d 0d 69 66 | 20 42 57 20 74 68 65 6e |lags..if| BW then|
|00005990| 0d 67 65 74 20 63 68 61 | 72 20 33 20 6f 66 20 66 |.get cha|r 3 of f|
|000059a0| 6c 61 67 73 20 2d 2d 20 | 64 6f 4f 75 74 6c 69 6e |lags -- |doOutlin|
|000059b0| 65 0d 69 66 20 69 74 20 | 69 73 20 22 42 22 20 6f |e.if it |is "B" o|
|000059c0| 72 20 69 74 20 69 73 20 | 22 41 22 20 74 68 65 6e |r it is |"A" then|
|000059d0| 20 2d 2d 20 64 6f 4f 75 | 74 6c 69 6e 65 0d 69 66 | -- doOu|tline.if|
|000059e0| 20 6f 75 74 6c 69 6e 65 | 53 74 79 6c 65 20 69 73 | outline|Style is|
|000059f0| 20 65 6d 70 74 79 20 74 | 68 65 6e 0d 73 65 74 20 | empty t|hen.set |
|00005a00| 74 68 65 20 73 74 79 6c | 65 20 6f 66 20 74 68 65 |the styl|e of the|
|00005a10| 20 74 61 72 67 65 74 20 | 74 6f 20 72 65 63 74 61 | target |to recta|
|00005a20| 6e 67 6c 65 20 2d 2d 20 | 64 65 66 61 75 6c 74 0d |ngle -- |default.|
|00005a30| 65 6c 73 65 20 73 65 74 | 20 74 68 65 20 73 74 79 |else set| the sty|
|00005a40| 6c 65 20 6f 66 20 74 68 | 65 20 74 61 72 67 65 74 |le of th|e target|
|00005a50| 20 74 6f 20 6f 75 74 6c | 69 6e 65 53 74 79 6c 65 | to outl|ineStyle|
|00005a60| 0d 65 6c 73 65 20 73 65 | 74 20 74 68 65 20 73 74 |.else se|t the st|
|00005a70| 79 6c 65 20 6f 66 20 74 | 68 65 20 74 61 72 67 65 |yle of t|he targe|
|00005a80| 74 20 74 6f 20 6f 70 61 | 71 75 65 20 2d 2d 20 72 |t to opa|que -- r|
|00005a90| 61 74 68 65 72 20 74 68 | 61 6e 20 74 72 61 6e 73 |ather th|an trans|
|00005aa0| 70 61 72 65 6e 74 0d 0d | 67 65 74 20 63 68 61 72 |parent..|get char|
|00005ab0| 20 31 20 6f 66 20 66 6c | 61 67 73 20 2d 2d 20 64 | 1 of fl|ags -- d|
|00005ac0| 6f 49 63 6f 6e 0d 69 66 | 20 69 74 20 69 73 20 22 |oIcon.if| it is "|
|00005ad0| 42 22 20 6f 72 20 69 74 | 20 69 73 20 22 41 22 20 |B" or it| is "A" |
|00005ae0| 74 68 65 6e 0d 73 65 74 | 20 74 68 65 20 69 63 6f |then.set| the ico|
|00005af0| 6e 20 6f 66 20 74 68 65 | 20 74 61 72 67 65 74 20 |n of the| target |
|00005b00| 74 6f 20 49 63 6e 0d 65 | 6c 73 65 20 73 65 74 20 |to Icn.e|lse set |
|00005b10| 74 68 65 20 69 63 6f 6e | 20 6f 66 20 74 68 65 20 |the icon| of the |
|00005b20| 74 61 72 67 65 74 20 74 | 6f 20 65 6d 70 74 79 0d |target t|o empty.|
|00005b30| 0d 67 65 74 20 63 68 61 | 72 20 32 20 6f 66 20 66 |.get cha|r 2 of f|
|00005b40| 6c 61 67 73 20 2d 2d 20 | 64 6f 4e 61 6d 65 0d 73 |lags -- |doName.s|
|00005b50| 65 74 20 74 68 65 20 73 | 68 6f 77 4e 61 6d 65 20 |et the s|howName |
|00005b60| 6f 66 20 74 68 65 20 74 | 61 72 67 65 74 20 74 6f |of the t|arget to|
|00005b70| 20 69 74 20 69 73 20 22 | 42 22 20 6f 72 20 69 74 | it is "|B" or it|
|00005b80| 20 69 73 20 22 41 22 0d | 73 65 74 20 74 68 65 20 | is "A".|set the |
|00005b90| 61 75 74 6f 48 69 6c 69 | 74 65 20 6f 66 20 74 68 |autoHili|te of th|
|00005ba0| 65 20 74 61 72 67 65 74 | 20 74 6f 20 54 72 75 65 |e target| to True|
|00005bb0| 0d 0d 65 6c 73 65 20 2d | 2d 20 43 6f 6c 6f 75 72 |..else -|- Colour|
|00005bc0| 0d 69 66 20 63 68 61 72 | 20 33 20 6f 66 20 66 6c |.if char| 3 of fl|
|00005bd0| 61 67 73 20 69 73 20 22 | 41 22 20 74 68 65 6e 20 |ags is "|A" then |
|00005be0| 2d 2d 20 64 6f 4f 75 74 | 6c 69 6e 65 0d 69 66 20 |-- doOut|line.if |
|00005bf0| 6f 75 74 6c 69 6e 65 53 | 74 79 6c 65 20 69 73 20 |outlineS|tyle is |
|00005c00| 65 6d 70 74 79 20 74 68 | 65 6e 0d 73 65 74 20 74 |empty th|en.set t|
|00005c10| 68 65 20 73 74 79 6c 65 | 20 6f 66 20 74 68 65 20 |he style| of the |
|00005c20| 74 61 72 67 65 74 20 74 | 6f 20 72 65 63 74 61 6e |target t|o rectan|
|00005c30| 67 6c 65 20 2d 2d 20 64 | 65 66 61 75 6c 74 0d 65 |gle -- d|efault.e|
|00005c40| 6c 73 65 20 73 65 74 20 | 74 68 65 20 73 74 79 6c |lse set |the styl|
|00005c50| 65 20 6f 66 20 74 68 65 | 20 74 61 72 67 65 74 20 |e of the| target |
|00005c60| 74 6f 20 6f 75 74 6c 69 | 6e 65 53 74 79 6c 65 0d |to outli|neStyle.|
|00005c70| 65 6c 73 65 20 73 65 74 | 20 74 68 65 20 73 74 79 |else set| the sty|
|00005c80| 6c 65 20 6f 66 20 74 68 | 65 20 74 61 72 67 65 74 |le of th|e target|
|00005c90| 20 74 6f 20 6f 70 61 71 | 75 65 20 2d 2d 20 72 61 | to opaq|ue -- ra|
|00005ca0| 74 68 65 72 20 74 68 61 | 6e 20 74 72 61 6e 73 70 |ther tha|n transp|
|00005cb0| 61 72 65 6e 74 0d 0d 69 | 66 20 63 68 61 72 20 31 |arent..i|f char 1|
|00005cc0| 20 6f 66 20 66 6c 61 67 | 73 20 69 73 20 22 41 22 | of flag|s is "A"|
|00005cd0| 20 74 68 65 6e 20 2d 2d | 20 64 6f 49 63 6f 6e 0d | then --| doIcon.|
|00005ce0| 73 65 74 20 74 68 65 20 | 69 63 6f 6e 20 6f 66 20 |set the |icon of |
|00005cf0| 74 68 65 20 74 61 72 67 | 65 74 20 74 6f 20 49 63 |the targ|et to Ic|
|00005d00| 6e 0d 65 6c 73 65 20 73 | 65 74 20 74 68 65 20 69 |n.else s|et the i|
|00005d10| 63 6f 6e 20 6f 66 20 74 | 68 65 20 74 61 72 67 65 |con of t|he targe|
|00005d20| 74 20 74 6f 20 65 6d 70 | 74 79 0d 0d 73 65 74 20 |t to emp|ty..set |
|00005d30| 74 68 65 20 73 68 6f 77 | 4e 61 6d 65 20 6f 66 20 |the show|Name of |
|00005d40| 74 68 65 20 74 61 72 67 | 65 74 20 74 6f 20 63 68 |the targ|et to ch|
|00005d50| 61 72 20 32 20 6f 66 20 | 66 6c 61 67 73 20 69 73 |ar 2 of |flags is|
|00005d60| 20 22 41 22 20 2d 2d 20 | 64 6f 4e 61 6d 65 0d 73 | "A" -- |doName.s|
|00005d70| 65 74 20 74 68 65 20 61 | 75 74 6f 48 69 6c 69 74 |et the a|utoHilit|
|00005d80| 65 20 6f 66 20 74 68 65 | 20 74 61 72 67 65 74 20 |e of the| target |
|00005d90| 74 6f 20 46 61 6c 73 65 | 0d 0d 2d 2d 20 70 6c 61 |to False|..-- pla|
|00005da0| 63 65 0d 69 66 20 70 6f | 73 20 69 73 20 65 6d 70 |ce.if po|s is emp|
|00005db0| 74 79 20 74 68 65 6e 20 | 70 75 74 20 74 68 65 20 |ty then |put the |
|00005dc0| 74 6f 70 4c 65 66 74 20 | 6f 66 20 74 68 65 20 74 |topLeft |of the t|
|00005dd0| 61 72 67 65 74 20 69 6e | 74 6f 20 70 6f 73 0d 69 |arget in|to pos.i|
|00005de0| 66 20 43 6f 72 72 65 63 | 74 69 6f 6e 20 69 73 20 |f Correc|tion is |
|00005df0| 6e 6f 74 20 65 6d 70 74 | 79 0d 74 68 65 6e 20 70 |not empt|y.then p|
|00005e00| 75 74 20 63 48 43 63 6f | 72 72 65 63 74 28 70 6f |ut cHCco|rrect(po|
|00005e10| 73 2c 43 6f 72 72 65 63 | 74 69 6f 6e 29 20 69 6e |s,Correc|tion) in|
|00005e20| 74 6f 20 70 6f 73 0d 63 | 6f 6c 6f 72 69 7a 65 48 |to pos.c|olorizeH|
|00005e30| 43 20 22 61 64 64 22 2c | 55 70 42 4d 61 70 2c 70 |C "add",|UpBMap,p|
|00005e40| 6f 73 0d 69 66 20 74 68 | 65 20 72 65 73 75 6c 74 |os.if th|e result|
|00005e50| 20 69 73 20 6e 6f 74 20 | 65 6d 70 74 79 0d 74 68 | is not |empty.th|
|00005e60| 65 6e 20 73 65 6e 64 20 | 22 63 48 43 65 72 72 6f |en send |"cHCerro|
|00005e70| 72 22 20 26 26 20 71 75 | 6f 74 65 20 26 20 74 68 |r" && qu|ote & th|
|00005e80| 65 20 72 65 73 75 6c 74 | 20 26 20 71 75 6f 74 65 |e result| & quote|
|00005e90| 20 74 6f 20 63 64 0d 65 | 6e 64 20 69 66 0d 73 68 | to cd.e|nd if.sh|
|00005ea0| 6f 77 20 74 68 65 20 74 | 61 72 67 65 74 0d 63 48 |ow the t|arget.cH|
|00005eb0| 43 73 68 6f 77 43 6f 6c | 6f 72 20 54 72 75 65 0d |CshowCol|or True.|
|00005ec0| 65 6e 64 20 63 48 43 66 | 6f 72 63 65 42 75 74 74 |end cHCf|orceButt|
|00005ed0| 6f 6e 0d 0d 2d 2d 20 73 | 63 72 69 70 74 69 6e 67 |on..-- s|cripting|
|00005ee0| 20 61 69 64 73 20 2d 20 | 72 65 61 6c 6c 79 20 69 | aids - |really i|
|00005ef0| 6e 20 22 43 6f 6c 6f 72 | 69 7a 69 6e 67 20 48 43 |n "Color|izing HC|
|00005f00| 20 41 69 64 73 22 0d 0d | 6f 6e 20 63 48 43 62 6c | Aids"..|on cHCbl|
|00005f10| 61 63 6b 53 63 72 65 65 | 6e 0d 73 65 6e 64 20 74 |ackScree|n.send t|
|00005f20| 68 65 20 70 61 72 61 6d | 73 20 74 6f 20 73 74 61 |he param|s to sta|
|00005f30| 63 6b 20 22 43 6f 6c 6f | 72 69 7a 69 6e 67 20 48 |ck "Colo|rizing H|
|00005f40| 43 20 41 69 64 73 22 0d | 65 6e 64 20 63 48 43 62 |C Aids".|end cHCb|
|00005f50| 6c 61 63 6b 53 63 72 65 | 65 6e 0d 0d 6f 6e 20 63 |lackScre|en..on c|
|00005f60| 48 43 73 73 0d 73 65 6e | 64 20 74 68 65 20 70 61 |HCss.sen|d the pa|
|00005f70| 72 61 6d 73 20 74 6f 20 | 73 74 61 63 6b 20 22 43 |rams to |stack "C|
|00005f80| 6f 6c 6f 72 69 7a 69 6e | 67 20 48 43 20 41 69 64 |olorizin|g HC Aid|
|00005f90| 73 22 0d 65 6e 64 20 63 | 48 43 73 73 0d 0d 6f 6e |s".end c|HCss..on|
|00005fa0| 20 63 48 43 72 65 64 72 | 61 77 0d 73 65 6e 64 20 | cHCredr|aw.send |
|00005fb0| 74 68 65 20 70 61 72 61 | 6d 73 20 74 6f 20 73 74 |the para|ms to st|
|00005fc0| 61 63 6b 20 22 43 6f 6c | 6f 72 69 7a 69 6e 67 20 |ack "Col|orizing |
|00005fd0| 48 43 20 41 69 64 73 22 | 0d 65 6e 64 20 63 48 43 |HC Aids"|.end cHC|
|00005fe0| 72 65 64 72 61 77 0d 0d | 2d 2d 20 6d 69 73 63 3a |redraw..|-- misc:|
|00005ff0| 0d 0d 6f 6e 20 63 48 43 | 65 72 72 6f 72 20 6d 65 |..on cHC|error me|
|00006000| 73 73 0d 67 6c 6f 62 61 | 6c 20 67 48 43 6f 70 74 |ss.globa|l gHCopt|
|00006010| 69 6f 6e 73 0d 69 66 20 | 63 68 61 72 20 37 20 6f |ions.if |char 7 o|
|00006020| 66 20 67 48 43 6f 70 74 | 69 6f 6e 73 20 69 73 20 |f gHCopt|ions is |
|00006030| 31 20 74 68 65 6e 20 65 | 78 69 74 20 63 48 43 65 |1 then e|xit cHCe|
|00006040| 72 72 6f 72 0d 69 66 20 | 6d 65 73 73 20 69 73 20 |rror.if |mess is |
|00006050| 6e 6f 74 20 65 6d 70 74 | 79 20 74 68 65 6e 20 61 |not empt|y then a|
|00006060| 6e 73 77 65 72 20 6d 65 | 73 73 0d 65 6e 64 20 63 |nswer me|ss.end c|
|00006070| 48 43 65 72 72 6f 72 0d | 0d 2d 2d 20 74 68 65 20 |HCerror.|.-- the |
|00006080| 76 65 72 73 69 6f 6e 20 | 6f 66 20 54 48 49 53 20 |version |of THIS |
|00006090| 73 74 61 63 6b 0d 0d 66 | 75 6e 63 74 69 6f 6e 20 |stack..f|unction |
|000060a0| 63 48 43 76 65 72 73 69 | 6f 6e 20 6c 6e 67 0d 69 |cHCversi|on lng.i|
|000060b0| 66 20 6c 6e 67 20 69 73 | 20 22 6c 6f 6e 67 22 20 |f lng is| "long" |
|000060c0| 74 68 65 6e 20 72 65 74 | 75 72 6e 20 22 31 2e 31 |then ret|urn "1.1|
|000060d0| 2e 32 22 0d 72 65 74 75 | 72 6e 20 22 31 2e 31 32 |.2".retu|rn "1.12|
|000060e0| 22 0d 65 6e 64 20 63 48 | 43 76 65 72 73 69 6f 6e |".end cH|Cversion|
|000060f0| 0d 0d 00 7a 69 6e 67 20 | 48 43 20 41 69 64 73 22 |...zing |HC Aids"|
|00006100| 0d 73 65 6e 64 20 74 68 | 65 20 70 61 72 61 6d 73 |.send th|e params|
|00006110| 20 74 6f 20 73 74 61 63 | 6b 20 22 43 6f 6c 6f 72 | to stac|k "Color|
|00006120| 69 7a 69 6e 67 20 48 43 | 20 41 69 64 73 22 0d 65 |izing HC| Aids".e|
|00006130| 6e 64 20 63 48 43 72 65 | 64 72 61 77 0d 0d 2d 2d |nd cHCre|draw..--|
|00006140| 20 6d 69 73 63 3a 0d 0d | 6f 6e 20 63 48 43 65 72 | misc:..|on cHCer|
|00006150| 72 6f 72 20 6d 65 73 73 | 0d 67 6c 6f 62 61 6c 20 |ror mess|.global |
|00006160| 67 48 43 6f 70 74 69 6f | 6e 73 0d 69 66 20 63 68 |gHCoptio|ns.if ch|
|00006170| 61 72 20 37 20 6f 66 20 | 67 48 43 6f 70 74 69 6f |ar 7 of |gHCoptio|
|00006180| 6e 73 20 69 73 20 31 20 | 74 68 65 6e 20 65 78 69 |ns is 1 |then exi|
|00006190| 74 20 63 48 43 65 72 72 | 6f 72 0d 69 66 20 6d 65 |t cHCerr|or.if me|
|000061a0| 73 73 20 69 73 20 6e 6f | 74 20 65 6d 70 74 79 20 |ss is no|t empty |
|000061b0| 74 68 65 6e 20 61 6e 73 | 77 65 72 20 6d 65 73 73 |then ans|wer mess|
|000061c0| 0d 65 6e 64 20 63 48 43 | 65 72 72 6f 72 0d 0d 2d |.end cHC|error..-|
|000061d0| 2d 20 74 68 65 20 76 65 | 72 73 69 6f 6e 20 6f 66 |- the ve|rsion of|
|000061e0| 20 54 48 49 53 20 73 74 | 61 63 6b 0d 0d 66 75 6e | THIS st|ack..fun|
|000061f0| 63 74 69 6f 6e 20 63 48 | 43 76 65 72 73 69 6f 6e |ction cH|Cversion|
|00006200| 20 6c 6e 67 0d 69 66 20 | 6c 6e 67 20 69 73 20 22 | lng.if |lng is "|
|00006210| 6c 6f 6e 67 22 20 74 68 | 65 6e 20 72 65 74 75 72 |long" th|en retur|
|00006220| 6e 20 22 31 2e 31 2e 32 | 22 0d 72 65 74 75 72 6e |n "1.1.2|".return|
|00006230| 20 22 31 2e 31 32 22 0d | 65 6e 64 20 63 48 43 76 | "1.12".|end cHCv|
|00006240| 65 72 73 69 6f 6e 0d 0d | 00 0d 00 2e 31 31 22 0d |ersion..|....11".|
|00006250| 65 6e 64 20 63 48 43 76 | 65 72 73 69 6f 6e 0d 0d |end cHCv|ersion..|
|00006260| 00 0d 0d 00 48 43 62 6c | 61 63 6b 53 63 72 65 65 |....HCbl|ackScree|
|00006270| 6e 0d 0d 66 75 6e 63 74 | 69 6f 6e 20 6f 70 74 41 |n..funct|ion optA|
|00006280| 00 00 02 00 4d 41 53 54 | ff ff ff ff 00 00 00 00 |....MAST|........|
|00006290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062a0| 00 00 00 00 00 00 00 00 | 00 03 64 1c 00 03 91 52 |........|..d....R|
|000062b0| 00 04 77 fc 00 04 7d bf | 00 03 bf fe 00 04 8a ee |..w...}.|........|
|000062c0| 00 04 7f 2a 00 03 74 86 | 00 03 20 50 00 03 24 15 |...*..t.|.. P..$.|
|000062d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.