home *** CD-ROM | disk | FTP | other *** search
/ Giga Games 1 / Giga Games.iso / net / go / prog / kgo.taz / kgo
Tape Archive  |  1993-06-20  |  140.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Tape Archive (archive/tar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (old), directory kgo/, mode 040775, uid 016771, gid 000000, size 00000000000, seconds 05400551435, comment: 0 default
98% file data default
65% TrID Sybase iAnywhere database files default (weak)
34% TrID TAR - Tape ARchive (directory) default
100% lsar Tar default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 6b 67 6f 2f 00 00 00 00 | 00 00 00 00 00 00 00 00 |kgo/....|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 30 34 30 37 | 37 35 00 00 30 31 36 37 |....0407|75..0167|
|00000070| 37 31 00 00 30 30 30 30 | 30 30 00 00 30 30 30 30 |71..0000|00..0000|
|00000080| 30 30 30 30 30 30 30 00 | 30 35 34 30 30 35 35 31 |0000000.|05400551|
|00000090| 34 33 35 00 30 31 30 34 | 34 37 00 20 35 00 00 00 |435.0104|47. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 20 20 20 20 20 30 00 | 00 6b 6b 6b 6b 65 6e 00 |. 0.|.kkkken.|
|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 73 79 73 74 65 6d 00 |........|.system.|
|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 20 31 00 20 30 00 |........|.. 1. 0.|
|00000160| 20 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| 6b 67 6f 2f 47 6f 62 61 | 6e 50 2e 68 00 00 00 00 |kgo/Goba|nP.h....|
|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 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 31 30 30 36 | 36 34 00 00 30 31 36 37 |....1006|64..0167|
|00000270| 37 31 00 00 30 30 30 30 | 30 30 00 00 30 30 30 30 |71..0000|00..0000|
|00000280| 30 30 30 34 33 35 32 00 | 30 35 33 37 36 35 32 34 |0004352.|05376524|
|00000290| 34 36 33 00 30 31 30 31 | 31 36 00 20 30 00 00 00 |463.0101|16. 0...|
|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 33 37 37 37 37 37 30 | 33 34 30 31 00 00 00 00 |.3777770|3401....|
|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 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 20 31 00 20 30 00 |........|.. 1. 0.|
|00000360| 20 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 0a 23 69 66 6e 64 65 66 | 20 5f 47 6f 62 61 6e 50 |.#ifndef| _GobanP|
|00000410| 5f 68 5f 49 4e 43 4c 55 | 44 45 44 0a 23 64 65 66 |_h_INCLU|DED.#def|
|00000420| 69 6e 65 20 5f 47 6f 62 | 61 6e 50 5f 68 5f 49 4e |ine _Gob|anP_h_IN|
|00000430| 43 4c 55 44 45 44 0a 0a | 0a 23 69 6e 63 6c 75 64 |CLUDED..|.#includ|
|00000440| 65 20 22 47 6f 62 61 6e | 2e 68 22 0a 23 69 6e 63 |e "Goban|.h".#inc|
|00000450| 6c 75 64 65 20 3c 58 31 | 31 2f 58 61 77 2f 53 69 |lude <X1|1/Xaw/Si|
|00000460| 6d 70 6c 65 50 2e 68 3e | 0a 0a 23 64 65 66 69 6e |mpleP.h>|..#defin|
|00000470| 65 20 4d 41 58 42 4f 41 | 52 44 20 31 39 0a 23 64 |e MAXBOA|RD 19.#d|
|00000480| 65 66 69 6e 65 20 4d 41 | 58 4d 4f 56 45 53 20 35 |efine MA|XMOVES 5|
|00000490| 30 30 0a 65 6e 75 6d 20 | 7b 20 47 4d 4d 6f 76 65 |00.enum |{ GMMove|
|000004a0| 2c 0a 09 20 20 20 47 4d | 43 61 70 74 75 72 65 2c |,.. GM|Capture,|
|000004b0| 20 47 4d 4b 6f 4c 65 66 | 74 2c 20 47 4d 4b 6f 52 | GMKoLef|t, GMKoR|
|000004c0| 69 67 68 74 2c 20 47 4d | 4b 6f 55 70 2c 20 47 4d |ight, GM|KoUp, GM|
|000004d0| 4b 6f 44 6f 77 6e 2c 0a | 09 20 20 20 47 4d 50 61 |KoDown,.|. GMPa|
|000004e0| 73 73 2c 20 47 4d 48 61 | 6e 64 69 63 61 70 2c 0a |ss, GMHa|ndicap,.|
|000004f0| 09 20 20 20 47 4d 52 65 | 6d 6f 76 65 2c 0a 09 20 |. GMRe|move,.. |
|00000500| 20 20 47 4d 55 6e 6b 6e | 6f 77 6e 20 7d 3b 0a 0a | GMUnkn|own };..|
|00000510| 74 79 70 65 64 65 66 20 | 73 74 72 75 63 74 20 7b |typedef |struct {|
|00000520| 0a 20 20 20 20 73 68 6f | 72 74 20 74 79 70 65 3b |. sho|rt type;|
|00000530| 0a 20 20 20 20 73 68 6f | 72 74 20 68 2c 20 76 3b |. sho|rt h, v;|
|00000540| 0a 7d 20 47 4d 6f 76 65 | 3b 0a 0a 74 79 70 65 64 |.} GMove|;..typed|
|00000550| 65 66 20 73 74 72 75 63 | 74 20 7b 0a 20 20 20 20 |ef struc|t {. |
|00000560| 73 68 6f 72 74 20 62 5b | 4d 41 58 42 4f 41 52 44 |short b[|MAXBOARD|
|00000570| 5d 5b 4d 41 58 42 4f 41 | 52 44 5d 3b 0a 20 20 20 |][MAXBOA|RD];. |
|00000580| 20 69 6e 74 20 62 73 69 | 7a 65 3b 0a 7d 20 47 42 | int bsi|ze;.} GB|
|00000590| 6f 61 72 64 3b 0a 0a 74 | 79 70 65 64 65 66 20 73 |oard;..t|ypedef s|
|000005a0| 74 72 75 63 74 20 7b 0a | 20 20 20 20 47 6f 62 61 |truct {.| Goba|
|000005b0| 6e 4d 6f 64 65 20 6d 6f | 64 65 3b 0a 20 20 20 20 |nMode mo|de;. |
|000005c0| 42 6f 6f 6c 65 61 6e 20 | 72 65 6d 6f 76 69 6e 67 |Boolean |removing|
|000005d0| 3b 0a 20 20 20 20 58 46 | 6f 6e 74 53 74 72 75 63 |;. XF|ontStruc|
|000005e0| 74 20 2a 66 6f 6e 74 3b | 09 09 09 2f 2a 20 4d 69 |t *font;|.../* Mi|
|000005f0| 73 63 65 6c 6c 61 6e 65 | 6f 75 73 20 63 6f 6e 66 |scellane|ous conf|
|00000600| 69 67 75 72 61 74 69 6f | 6e 20 2a 2f 0a 20 20 20 |iguratio|n */. |
|00000610| 20 50 69 78 65 6c 20 77 | 68 69 74 65 50 69 78 65 | Pixel w|hitePixe|
|00000620| 6c 3b 0a 20 20 20 20 50 | 69 78 65 6c 20 62 6c 61 |l;. P|ixel bla|
|00000630| 63 6b 50 69 78 65 6c 3b | 0a 20 20 20 20 50 69 78 |ckPixel;|. Pix|
|00000640| 65 6c 20 62 6f 61 72 64 | 50 69 78 65 6c 3b 0a 20 |el board|Pixel;. |
|00000650| 20 20 20 50 69 78 65 6c | 20 6c 69 6e 65 50 69 78 | Pixel| linePix|
|00000660| 65 6c 3b 0a 20 20 20 20 | 47 43 20 77 68 69 74 65 |el;. |GC white|
|00000670| 47 43 3b 0a 20 20 20 20 | 47 43 20 62 6c 61 63 6b |GC;. |GC black|
|00000680| 47 43 3b 0a 20 20 20 20 | 47 43 20 6c 69 6e 65 47 |GC;. |GC lineG|
|00000690| 43 3b 0a 20 20 20 20 47 | 43 20 62 67 47 43 3b 0a |C;. G|C bgGC;.|
|000006a0| 20 20 20 20 57 69 64 67 | 65 74 20 67 6f 62 61 6e | Widg|et goban|
|000006b0| 4d 65 6e 75 3b 0a 20 20 | 20 20 63 68 61 72 20 2a |Menu;. | char *|
|000006c0| 74 69 74 6c 65 3b 0a 20 | 20 20 20 63 68 61 72 20 |title;. | char |
|000006d0| 74 69 74 6c 65 42 75 66 | 5b 31 30 30 5d 3b 0a 20 |titleBuf|[100];. |
|000006e0| 20 20 20 57 69 64 67 65 | 74 20 73 68 65 6c 6c 3b | Widge|t shell;|
|000006f0| 09 09 09 2f 2a 20 6d 79 | 20 6d 6f 6d 6d 79 20 2a |.../* my| mommy *|
|00000700| 2f 0a 20 20 20 20 57 69 | 64 67 65 74 20 77 68 69 |/. Wi|dget whi|
|00000710| 74 65 43 61 70 74 75 72 | 65 73 4c 61 62 65 6c 2c |teCaptur|esLabel,|
|00000720| 20 62 6c 61 63 6b 43 61 | 70 74 75 72 65 73 4c 61 | blackCa|pturesLa|
|00000730| 62 65 6c 3b 0a 20 20 20 | 20 69 6e 74 20 77 68 69 |bel;. | int whi|
|00000740| 74 65 43 44 69 73 70 6c | 61 79 65 64 2c 20 62 6c |teCDispl|ayed, bl|
|00000750| 61 63 6b 43 44 69 73 70 | 6c 61 79 65 64 3b 0a 20 |ackCDisp|layed;. |
|00000760| 20 20 20 0a 20 20 20 20 | 69 6e 74 20 72 61 64 3b | . |int rad;|
|00000770| 09 09 09 09 2f 2a 20 50 | 6f 73 69 74 69 6f 6e 69 |..../* P|ositioni|
|00000780| 6e 67 20 61 6e 64 20 73 | 69 7a 69 6e 67 20 69 6e |ng and s|izing in|
|00000790| 66 6f 20 2a 2f 0a 20 20 | 20 20 69 6e 74 20 74 6f |fo */. | int to|
|000007a0| 70 3b 0a 20 20 20 20 69 | 6e 74 20 62 6f 74 74 6f |p;. i|nt botto|
|000007b0| 6d 3b 0a 20 20 20 20 69 | 6e 74 20 64 69 67 69 74 |m;. i|nt digit|
|000007c0| 3b 0a 20 20 20 20 69 6e | 74 20 6c 69 6e 65 48 65 |;. in|t lineHe|
|000007d0| 69 67 68 74 3b 0a 20 20 | 20 20 69 6e 74 20 2a 68 |ight;. | int *h|
|000007e0| 63 61 70 48 2c 20 2a 68 | 63 61 70 56 3b 09 09 09 |capH, *h|capV;...|
|000007f0| 2f 2a 20 41 72 72 61 79 | 73 20 6f 66 20 39 20 63 |/* Array|s of 9 c|
|00000800| 6f 6f 72 64 69 6e 61 74 | 65 73 20 2a 2f 0a 0a 20 |oordinat|es */.. |
|00000810| 20 20 20 47 42 6f 61 72 | 64 20 62 6f 61 72 64 31 | GBoar|d board1|
|00000820| 2c 20 62 6f 61 72 64 32 | 3b 09 09 2f 2a 20 47 61 |, board2|;../* Ga|
|00000830| 6d 65 20 73 74 61 74 65 | 20 2a 2f 0a 20 20 20 20 |me state| */. |
|00000840| 69 6e 74 20 62 73 69 7a | 65 3b 0a 20 20 20 20 47 |int bsiz|e;. G|
|00000850| 42 6f 61 72 64 20 2a 62 | 6f 61 72 64 3b 09 09 09 |Board *b|oard;...|
|00000860| 2f 2a 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 6f 6e |/* point|er to on|
|00000870| 65 20 6f 66 20 74 68 65 | 20 61 62 6f 76 65 20 2a |e of the| above *|
|00000880| 2f 0a 20 20 20 20 47 42 | 6f 61 72 64 20 2a 61 6c |/. GB|oard *al|
|00000890| 74 3b 09 09 09 2f 2a 20 | 70 6f 69 6e 74 65 72 20 |t;.../* |pointer |
|000008a0| 74 6f 20 74 68 65 20 6f | 74 68 65 72 20 28 64 6f |to the o|ther (do|
|000008b0| 75 62 6c 65 2d 62 75 66 | 66 65 72 69 6e 67 20 61 |uble-buf|fering a|
|000008c0| 63 74 69 6f 6e 29 20 2a | 2f 0a 20 20 20 20 69 6e |ction) *|/. in|
|000008d0| 74 20 77 68 6f 73 65 54 | 75 72 6e 3b 0a 20 20 20 |t whoseT|urn;. |
|000008e0| 20 47 4d 6f 76 65 20 6d | 6f 76 65 73 5b 4d 41 58 | GMove m|oves[MAX|
|000008f0| 4d 4f 56 45 53 5d 3b 0a | 20 20 20 20 69 6e 74 20 |MOVES];.| int |
|00000900| 6e 75 6d 4d 6f 76 65 73 | 3b 0a 20 20 20 20 69 6e |numMoves|;. in|
|00000910| 74 20 63 75 72 4d 6f 76 | 65 3b 0a 20 20 20 20 69 |t curMov|e;. i|
|00000920| 6e 74 20 6d 61 72 6b 48 | 2c 20 6d 61 72 6b 56 3b |nt markH|, markV;|
|00000930| 09 09 09 2f 2a 20 2d 31 | 20 66 6f 72 20 6e 6f 20 |.../* -1| for no |
|00000940| 6d 61 72 6b 20 2a 2f 0a | 20 20 20 20 42 6f 6f 6c |mark */.| Bool|
|00000950| 65 61 6e 20 63 75 72 72 | 65 6e 74 3b 09 09 09 2f |ean curr|ent;.../|
|00000960| 2a 20 41 72 65 20 77 65 | 20 75 70 20 77 69 74 68 |* Are we| up with|
|00000970| 20 74 68 65 20 67 61 6d | 65 3f 20 2a 2f 0a 0a 20 | the gam|e? */.. |
|00000980| 20 20 20 47 4d 6f 76 65 | 20 74 65 73 74 73 5b 4d | GMove| tests[M|
|00000990| 41 58 4d 4f 56 45 53 5d | 3b 09 09 2f 2a 20 46 6f |AXMOVES]|;../* Fo|
|000009a0| 72 20 74 72 79 69 6e 67 | 20 74 68 69 6e 67 73 20 |r trying| things |
|000009b0| 61 68 65 61 64 20 2a 2f | 0a 20 20 20 20 69 6e 74 |ahead */|. int|
|000009c0| 20 6e 75 6d 54 65 73 74 | 73 3b 09 09 09 2f 2a 20 | numTest|s;.../* |
|000009d0| 30 20 69 66 20 6e 6f 74 | 20 74 65 73 74 69 6e 67 |0 if not| testing|
|000009e0| 20 6e 6f 77 20 2a 2f 0a | 09 0a 20 20 20 20 69 6e | now */.|.. in|
|000009f0| 74 20 77 68 69 74 65 43 | 61 70 74 75 72 65 73 2c |t whiteC|aptures,|
|00000a00| 20 62 6c 61 63 6b 43 61 | 70 74 75 72 65 73 3b 09 | blackCa|ptures;.|
|00000a10| 2f 2a 20 62 6c 61 63 6b | 43 61 70 74 75 72 65 73 |/* black|Captures|
|00000a20| 20 3d 20 23 77 68 69 74 | 65 20 70 69 65 63 65 73 | = #whit|e pieces|
|00000a30| 20 62 6c 61 63 6b 20 68 | 61 73 20 63 61 70 74 75 | black h|as captu|
|00000a40| 72 65 64 20 2a 2f 0a 20 | 20 20 20 47 4d 6f 76 65 |red */. | GMove|
|00000a50| 20 2a 6c 61 73 74 4d 6f | 76 65 3b 09 09 09 2f 2a | *lastMo|ve;.../*|
|00000a60| 20 41 64 64 72 65 73 73 | 20 6f 66 20 6d 6f 73 74 | Address| of most|
|00000a70| 20 72 65 63 65 6e 74 20 | 6d 6f 76 65 20 6f 72 20 | recent |move or |
|00000a80| 4e 55 4c 4c 20 2a 2f 0a | 0a 20 20 20 20 69 6e 74 |NULL */.|. int|
|00000a90| 20 62 74 6e 44 6f 77 6e | 3b 09 09 09 2f 2a 20 49 | btnDown|;.../* I|
|00000aa0| 73 20 61 20 62 75 74 74 | 6f 6e 20 64 6f 77 6e 3f |s a butt|on down?|
|00000ab0| 20 28 69 66 20 73 6f 2c | 20 68 61 73 20 62 75 74 | (if so,| has but|
|00000ac0| 74 6f 6e 20 6e 75 6d 62 | 65 72 29 20 2a 2f 0a 20 |ton numb|er) */. |
|00000ad0| 20 20 20 69 6e 74 20 62 | 74 6e 48 2c 20 62 74 6e | int b|tnH, btn|
|00000ae0| 56 3b 09 09 09 2f 2a 20 | 49 66 20 73 6f 2c 20 74 |V;.../* |If so, t|
|00000af0| 68 69 73 20 69 73 20 77 | 68 65 72 65 20 74 68 65 |his is w|here the|
|00000b00| 20 75 73 65 72 20 69 73 | 20 63 6f 6e 73 69 64 65 | user is| conside|
|00000b10| 72 69 6e 67 20 2a 2f 0a | 09 09 09 09 09 2f 2a 20 |ring */.|...../* |
|00000b20| 28 2d 31 20 2d 31 20 69 | 66 20 6e 6f 74 20 6f 6e |(-1 -1 i|f not on|
|00000b30| 20 47 6f 62 61 6e 29 20 | 2a 2f 0a 20 20 20 20 58 | Goban) |*/. X|
|00000b40| 74 50 6f 69 6e 74 65 72 | 20 63 6c 69 65 6e 74 44 |tPointer| clientD|
|00000b50| 61 74 61 3b 09 09 2f 2a | 20 6c 65 74 20 75 73 65 |ata;../*| let use|
|00000b60| 72 20 68 6f 6f 6b 20 6f | 6e 20 72 61 6e 64 6f 6d |r hook o|n random|
|00000b70| 20 64 61 74 61 20 2a 2f | 0a 20 20 20 20 0a 7d 20 | data */|. .} |
|00000b80| 47 6f 62 61 6e 50 61 72 | 74 3b 20 20 0a 0a 74 79 |GobanPar|t; ..ty|
|00000b90| 70 65 64 65 66 20 73 74 | 72 75 63 74 20 5f 47 6f |pedef st|ruct _Go|
|00000ba0| 62 61 6e 52 65 63 20 7b | 0a 20 20 20 20 43 6f 72 |banRec {|. Cor|
|00000bb0| 65 50 61 72 74 20 63 6f | 72 65 3b 0a 20 20 20 20 |ePart co|re;. |
|00000bc0| 53 69 6d 70 6c 65 50 61 | 72 74 20 73 69 6d 70 6c |SimplePa|rt simpl|
|00000bd0| 65 3b 0a 20 20 20 20 47 | 6f 62 61 6e 50 61 72 74 |e;. G|obanPart|
|00000be0| 20 67 6f 62 61 6e 3b 0a | 7d 20 47 6f 62 61 6e 52 | goban;.|} GobanR|
|00000bf0| 65 63 3b 0a 0a 74 79 70 | 65 64 65 66 20 73 74 72 |ec;..typ|edef str|
|00000c00| 75 63 74 20 7b 0a 20 20 | 20 20 69 6e 74 20 69 67 |uct {. | int ig|
|00000c10| 6e 6f 72 65 3b 0a 7d 20 | 47 6f 62 61 6e 43 6c 61 |nore;.} |GobanCla|
|00000c20| 73 73 50 61 72 74 3b 0a | 0a 74 79 70 65 64 65 66 |ssPart;.|.typedef|
|00000c30| 20 73 74 72 75 63 74 20 | 5f 43 6c 6f 63 6b 43 6c | struct |_ClockCl|
|00000c40| 61 73 73 52 65 63 20 7b | 0a 20 20 20 20 43 6f 72 |assRec {|. Cor|
|00000c50| 65 43 6c 61 73 73 50 61 | 72 74 20 63 6f 72 65 5f |eClassPa|rt core_|
|00000c60| 63 6c 61 73 73 3b 0a 20 | 20 20 20 53 69 6d 70 6c |class;. | Simpl|
|00000c70| 65 43 6c 61 73 73 50 61 | 72 74 20 73 69 6d 70 6c |eClassPa|rt simpl|
|00000c80| 65 5f 63 6c 61 73 73 3b | 0a 20 20 20 20 47 6f 62 |e_class;|. Gob|
|00000c90| 61 6e 43 6c 61 73 73 50 | 61 72 74 20 67 6f 62 61 |anClassP|art goba|
|00000ca0| 6e 5f 63 6c 61 73 73 3b | 0a 7d 20 47 6f 62 61 6e |n_class;|.} Goban|
|00000cb0| 43 6c 61 73 73 52 65 63 | 3b 0a 0a 65 78 74 65 72 |ClassRec|;..exter|
|00000cc0| 6e 20 47 6f 62 61 6e 43 | 6c 61 73 73 52 65 63 20 |n GobanC|lassRec |
|00000cd0| 67 6f 62 61 6e 43 6c 61 | 73 73 52 65 63 3b 0a 0a |gobanCla|ssRec;..|
|00000ce0| 0a 23 65 6e 64 69 66 0a | 0a 0a 00 00 00 00 00 00 |.#endif.|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 6b 67 6f 2f 47 6f 62 61 | 6e 2e 68 00 00 00 00 00 |kgo/Goba|n.h.....|
|00000e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 31 30 30 36 | 36 34 00 00 30 31 36 37 |....1006|64..0167|
|00000e70| 37 31 00 00 30 30 30 30 | 30 30 00 00 30 30 30 30 |71..0000|00..0000|
|00000e80| 30 30 30 33 31 31 31 00 | 30 35 33 37 36 35 32 34 |0003111.|05376524|
|00000e90| 30 33 33 00 30 30 37 37 | 35 37 00 20 30 00 00 00 |033.0077|57. 0...|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 33 37 37 37 37 37 30 | 33 34 30 31 00 00 00 00 |.3777770|3401....|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 20 31 00 20 30 00 |........|.. 1. 0.|
|00000f60| 20 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 0a 23 69 66 6e 64 65 66 | 20 5f 47 6f 62 61 6e 5f |.#ifndef| _Goban_|
|00001010| 68 5f 49 4e 43 4c 55 44 | 45 44 0a 23 64 65 66 69 |h_INCLUD|ED.#defi|
|00001020| 6e 65 20 5f 47 6f 62 61 | 6e 5f 68 5f 49 4e 43 4c |ne _Goba|n_h_INCL|
|00001030| 55 44 45 44 0a 0a 23 64 | 65 66 69 6e 65 20 58 74 |UDED..#d|efine Xt|
|00001040| 4e 62 6c 61 63 6b 43 6f | 6c 6f 72 20 22 62 6c 61 |NblackCo|lor "bla|
|00001050| 63 6b 43 6f 6c 6f 72 22 | 0a 23 64 65 66 69 6e 65 |ckColor"|.#define|
|00001060| 20 58 74 4e 77 68 69 74 | 65 43 6f 6c 6f 72 20 22 | XtNwhit|eColor "|
|00001070| 77 68 69 74 65 43 6f 6c | 6f 72 22 0a 23 64 65 66 |whiteCol|or".#def|
|00001080| 69 6e 65 20 58 74 4e 62 | 6f 61 72 64 43 6f 6c 6f |ine XtNb|oardColo|
|00001090| 72 20 22 62 6f 61 72 64 | 43 6f 6c 6f 72 22 0a 23 |r "board|Color".#|
|000010a0| 64 65 66 69 6e 65 20 58 | 74 4e 6c 69 6e 65 43 6f |define X|tNlineCo|
|000010b0| 6c 6f 72 20 22 6c 69 6e | 65 43 6f 6c 6f 72 22 0a |lor "lin|eColor".|
|000010c0| 23 64 65 66 69 6e 65 20 | 58 74 4e 62 6f 61 72 64 |#define |XtNboard|
|000010d0| 53 69 7a 65 20 22 62 6f | 61 72 64 53 69 7a 65 22 |Size "bo|ardSize"|
|000010e0| 0a 23 64 65 66 69 6e 65 | 20 58 74 4e 67 6f 62 61 |.#define| XtNgoba|
|000010f0| 6e 4d 65 6e 75 20 22 67 | 6f 62 61 6e 4d 65 6e 75 |nMenu "g|obanMenu|
|00001100| 22 0a 23 64 65 66 69 6e | 65 20 58 74 4e 6d 6f 64 |".#defin|e XtNmod|
|00001110| 65 20 22 6d 6f 64 65 22 | 0a 23 64 65 66 69 6e 65 |e "mode"|.#define|
|00001120| 20 58 74 4e 63 6c 69 65 | 6e 74 44 61 74 61 20 22 | XtNclie|ntData "|
|00001130| 63 6c 69 65 6e 74 44 61 | 74 61 22 0a 23 64 65 66 |clientDa|ta".#def|
|00001140| 69 6e 65 20 58 74 4e 77 | 68 69 74 65 43 61 70 74 |ine XtNw|hiteCapt|
|00001150| 75 72 65 73 4c 61 62 65 | 6c 20 22 77 68 69 74 65 |uresLabe|l "white|
|00001160| 43 61 70 74 75 72 65 73 | 4c 61 62 65 6c 22 0a 23 |Captures|Label".#|
|00001170| 64 65 66 69 6e 65 20 58 | 74 4e 62 6c 61 63 6b 43 |define X|tNblackC|
|00001180| 61 70 74 75 72 65 73 4c | 61 62 65 6c 20 22 62 6c |apturesL|abel "bl|
|00001190| 61 63 6b 43 61 70 74 75 | 72 65 73 4c 61 62 65 6c |ackCaptu|resLabel|
|000011a0| 22 0a 23 64 65 66 69 6e | 65 20 58 74 4e 73 68 65 |".#defin|e XtNshe|
|000011b0| 6c 6c 20 22 73 68 65 6c | 6c 22 0a 23 64 65 66 69 |ll "shel|l".#defi|
|000011c0| 6e 65 20 58 74 43 53 68 | 65 6c 6c 20 22 53 68 65 |ne XtCSh|ell "She|
|000011d0| 6c 6c 22 0a 23 64 65 66 | 69 6e 65 20 58 74 43 43 |ll".#def|ine XtCC|
|000011e0| 61 70 74 75 72 65 73 4c | 61 62 65 6c 20 22 43 61 |apturesL|abel "Ca|
|000011f0| 70 74 75 72 65 73 4c 61 | 62 65 6c 22 0a 0a 74 79 |pturesLa|bel"..ty|
|00001200| 70 65 64 65 66 20 73 74 | 72 75 63 74 20 5f 47 6f |pedef st|ruct _Go|
|00001210| 62 61 6e 52 65 63 20 2a | 47 6f 62 61 6e 57 69 64 |banRec *|GobanWid|
|00001220| 67 65 74 3b 0a 74 79 70 | 65 64 65 66 20 73 74 72 |get;.typ|edef str|
|00001230| 75 63 74 20 5f 47 6f 62 | 61 6e 43 6c 61 73 73 52 |uct _Gob|anClassR|
|00001240| 65 63 20 2a 47 6f 62 61 | 6e 57 69 64 67 65 74 43 |ec *Goba|nWidgetC|
|00001250| 6c 61 73 73 3b 0a 0a 65 | 78 74 65 72 6e 20 57 69 |lass;..e|xtern Wi|
|00001260| 64 67 65 74 43 6c 61 73 | 73 20 67 6f 62 61 6e 57 |dgetClas|s gobanW|
|00001270| 69 64 67 65 74 43 6c 61 | 73 73 3b 0a 0a 65 6e 75 |idgetCla|ss;..enu|
|00001280| 6d 20 7b 20 4e 6f 50 69 | 65 63 65 2c 20 57 68 69 |m { NoPi|ece, Whi|
|00001290| 74 65 50 69 65 63 65 2c | 20 42 6c 61 63 6b 50 69 |tePiece,| BlackPi|
|000012a0| 65 63 65 2c 20 57 68 69 | 74 65 54 65 72 72 69 74 |ece, Whi|teTerrit|
|000012b0| 6f 72 79 2c 20 42 6c 61 | 63 6b 54 65 72 72 69 74 |ory, Bla|ckTerrit|
|000012c0| 6f 72 79 2c 20 4d 61 72 | 6b 65 72 50 69 65 63 65 |ory, Mar|kerPiece|
|000012d0| 20 7d 3b 0a 0a 74 79 70 | 65 64 65 66 20 65 6e 75 | };..typ|edef enu|
|000012e0| 6d 20 7b 0a 20 20 20 20 | 47 6f 62 61 6e 4e 6f 6e |m {. |GobanNon|
|000012f0| 65 2c 0a 20 20 20 20 47 | 6f 62 61 6e 50 6c 61 79 |e,. G|obanPlay|
|00001300| 69 6e 67 2c 0a 20 20 20 | 20 47 6f 62 61 6e 4f 62 |ing,. | GobanOb|
|00001310| 73 65 72 76 69 6e 67 2c | 0a 20 20 20 20 47 6f 62 |serving,|. Gob|
|00001320| 61 6e 53 63 72 65 77 69 | 6e 67 41 72 6f 75 6e 64 |anScrewi|ngAround|
|00001330| 2c 0a 7d 20 47 6f 62 61 | 6e 4d 6f 64 65 3b 0a 0a |,.} Goba|nMode;..|
|00001340| 42 6f 6f 6c 65 61 6e 20 | 58 47 6f 62 61 6e 52 65 |Boolean |XGobanRe|
|00001350| 63 65 69 76 65 64 4d 6f | 76 65 20 28 57 69 64 67 |ceivedMo|ve (Widg|
|00001360| 65 74 20 77 2c 09 2f 2a | 20 54 52 55 45 20 6d 65 |et w,./*| TRUE me|
|00001370| 61 6e 73 20 77 65 27 72 | 65 20 6f 6e 20 73 79 6e |ans we'r|e on syn|
|00001380| 63 20 2a 2f 0a 09 09 09 | 20 20 20 20 69 6e 74 20 |c */....| int |
|00001390| 6d 6f 76 65 2c 20 69 6e | 74 20 68 2c 20 69 6e 74 |move, in|t h, int|
|000013a0| 20 76 29 3b 20 2f 2a 20 | 46 41 4c 53 45 20 6d 65 | v); /* |FALSE me|
|000013b0| 61 6e 73 20 68 65 6c 70 | 20 6d 65 21 20 2a 2f 0a |ans help| me! */.|
|000013c0| 0a 42 6f 6f 6c 65 61 6e | 20 58 47 6f 62 61 6e 52 |.Boolean| XGobanR|
|000013d0| 65 63 65 69 76 65 64 48 | 61 6e 64 69 63 61 70 20 |eceivedH|andicap |
|000013e0| 28 57 69 64 67 65 74 20 | 77 2c 0a 09 09 09 20 69 |(Widget |w,.... i|
|000013f0| 6e 74 20 6d 6f 76 65 2c | 20 69 6e 74 20 68 63 61 |nt move,| int hca|
|00001400| 70 29 3b 0a 0a 42 6f 6f | 6c 65 61 6e 20 58 47 6f |p);..Boo|lean XGo|
|00001410| 62 61 6e 52 65 63 65 69 | 76 65 64 50 61 73 73 20 |banRecei|vedPass |
|00001420| 28 57 69 64 67 65 74 20 | 77 2c 20 69 6e 74 20 6d |(Widget |w, int m|
|00001430| 6f 76 65 29 3b 0a 0a 42 | 6f 6f 6c 65 61 6e 20 58 |ove);..B|oolean X|
|00001440| 47 6f 62 61 6e 52 65 63 | 65 69 76 65 64 52 65 6d |GobanRec|eivedRem|
|00001450| 6f 76 65 20 28 57 69 64 | 67 65 74 20 77 2c 20 69 |ove (Wid|get w, i|
|00001460| 6e 74 20 68 2c 20 69 6e | 74 20 76 29 3b 0a 0a 76 |nt h, in|t v);..v|
|00001470| 6f 69 64 20 58 47 6f 62 | 61 6e 52 65 73 65 74 47 |oid XGob|anResetG|
|00001480| 61 6d 65 20 28 57 69 64 | 67 65 74 20 77 2c 20 47 |ame (Wid|get w, G|
|00001490| 6f 62 61 6e 4d 6f 64 65 | 20 6d 29 3b 0a 0a 76 6f |obanMode| m);..vo|
|000014a0| 69 64 20 58 47 6f 62 61 | 6e 53 65 74 50 69 65 63 |id XGoba|nSetPiec|
|000014b0| 65 20 28 57 69 64 67 65 | 74 20 77 2c 20 69 6e 74 |e (Widge|t w, int|
|000014c0| 20 68 2c 20 69 6e 74 20 | 76 2c 20 69 6e 74 20 70 | h, int |v, int p|
|000014d0| 69 65 63 65 29 3b 0a 0a | 76 6f 69 64 20 58 47 6f |iece);..|void XGo|
|000014e0| 62 61 6e 46 69 72 73 74 | 20 28 57 69 64 67 65 74 |banFirst| (Widget|
|000014f0| 20 77 29 3b 0a 76 6f 69 | 64 20 58 47 6f 62 61 6e | w);.voi|d XGoban|
|00001500| 42 61 63 6b 77 61 72 64 | 20 28 57 69 64 67 65 74 |Backward| (Widget|
|00001510| 20 77 29 3b 0a 76 6f 69 | 64 20 58 47 6f 62 61 6e | w);.voi|d XGoban|
|00001520| 43 75 72 72 65 6e 74 20 | 28 57 69 64 67 65 74 20 |Current |(Widget |
|00001530| 77 29 3b 0a 76 6f 69 64 | 20 58 47 6f 62 61 6e 46 |w);.void| XGobanF|
|00001540| 6f 72 77 61 72 64 20 28 | 57 69 64 67 65 74 20 77 |orward (|Widget w|
|00001550| 29 3b 0a 76 6f 69 64 20 | 58 47 6f 62 61 6e 4c 61 |);.void |XGobanLa|
|00001560| 73 74 20 28 57 69 64 67 | 65 74 20 77 29 3b 0a 76 |st (Widg|et w);.v|
|00001570| 6f 69 64 20 58 47 6f 62 | 61 6e 55 6e 64 6f 20 28 |oid XGob|anUndo (|
|00001580| 57 69 64 67 65 74 20 77 | 29 3b 0a 76 6f 69 64 20 |Widget w|);.void |
|00001590| 58 47 6f 62 61 6e 4e 65 | 77 20 28 57 69 64 67 65 |XGobanNe|w (Widge|
|000015a0| 74 20 77 29 3b 0a 76 6f | 69 64 20 58 47 6f 62 61 |t w);.vo|id XGoba|
|000015b0| 6e 50 61 73 73 20 28 57 | 69 64 67 65 74 20 77 29 |nPass (W|idget w)|
|000015c0| 3b 0a 76 6f 69 64 20 58 | 47 6f 62 61 6e 44 6f 6e |;.void X|GobanDon|
|000015d0| 65 20 28 57 69 64 67 65 | 74 20 77 29 3b 0a 76 6f |e (Widge|t w);.vo|
|000015e0| 69 64 20 58 47 6f 62 61 | 6e 43 6c 65 61 72 20 28 |id XGoba|nClear (|
|000015f0| 57 69 64 67 65 74 20 77 | 29 3b 0a 76 6f 69 64 20 |Widget w|);.void |
|00001600| 58 47 6f 62 61 6e 51 75 | 69 74 20 28 57 69 64 67 |XGobanQu|it (Widg|
|00001610| 65 74 20 77 29 3b 0a 76 | 6f 69 64 20 58 47 6f 62 |et w);.v|oid XGob|
|00001620| 61 6e 48 61 6e 64 69 63 | 61 70 20 28 57 69 64 67 |anHandic|ap (Widg|
|00001630| 65 74 20 77 2c 20 69 6e | 74 20 68 63 61 70 29 3b |et w, in|t hcap);|
|00001640| 0a 0a 23 65 6e 64 69 66 | 0a 00 00 00 00 00 00 00 |..#endif|........|
|00001650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 6b 67 6f 2f 62 61 63 6b | 77 61 72 64 2e 78 62 6d |kgo/back|ward.xbm|
|00001810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001860| 00 00 00 00 31 30 30 36 | 36 34 00 00 30 31 36 37 |....1006|64..0167|
|00001870| 37 31 00 00 30 30 30 30 | 30 30 00 00 30 30 30 30 |71..0000|00..0000|
|00001880| 30 30 30 30 33 37 33 00 | 30 35 33 37 36 31 36 35 |0000373.|05376165|
|00001890| 35 30 33 00 30 31 31 30 | 36 30 00 20 30 00 00 00 |503.0110|60. 0...|
|000018a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001900| 00 33 37 37 37 37 37 30 | 33 34 30 31 00 00 00 00 |.3777770|3401....|
|00001910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001950| 00 00 00 00 00 00 00 00 | 00 00 20 31 00 20 30 00 |........|.. 1. 0.|
|00001960| 20 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00001970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a00| 23 64 65 66 69 6e 65 20 | 62 61 63 6b 77 61 72 64 |#define |backward|
|00001a10| 5f 77 69 64 74 68 20 31 | 36 0a 23 64 65 66 69 6e |_width 1|6.#defin|
|00001a20| 65 20 62 61 63 6b 77 61 | 72 64 5f 68 65 69 67 68 |e backwa|rd_heigh|
|00001a30| 74 20 31 33 0a 73 74 61 | 74 69 63 20 63 68 61 72 |t 13.sta|tic char|
|00001a40| 20 62 61 63 6b 77 61 72 | 64 5f 62 69 74 73 5b 5d | backwar|d_bits[]|
|00001a50| 20 3d 20 7b 0a 20 20 20 | 30 78 30 30 2c 20 30 78 | = {. |0x00, 0x|
|00001a60| 30 30 2c 20 30 78 30 30 | 2c 20 30 78 30 30 2c 20 |00, 0x00|, 0x00, |
|00001a70| 30 78 32 30 2c 20 30 78 | 30 30 2c 20 30 78 33 30 |0x20, 0x|00, 0x30|
|00001a80| 2c 20 30 78 30 30 2c 20 | 30 78 65 38 2c 20 30 78 |, 0x00, |0xe8, 0x|
|00001a90| 37 66 2c 20 30 78 30 34 | 2c 20 30 78 34 30 2c 0a |7f, 0x04|, 0x40,.|
|00001aa0| 20 20 20 30 78 30 32 2c | 20 30 78 34 30 2c 20 30 | 0x02,| 0x40, 0|
|00001ab0| 78 30 36 2c 20 30 78 34 | 30 2c 20 30 78 65 63 2c |x06, 0x4|0, 0xec,|
|00001ac0| 20 30 78 37 66 2c 20 30 | 78 66 38 2c 20 30 78 33 | 0x7f, 0|xf8, 0x3|
|00001ad0| 66 2c 20 30 78 33 30 2c | 20 30 78 30 30 2c 20 30 |f, 0x30,| 0x00, 0|
|00001ae0| 78 32 30 2c 20 30 78 30 | 30 2c 0a 20 20 20 30 78 |x20, 0x0|0,. 0x|
|00001af0| 30 30 2c 20 30 78 30 30 | 7d 3b 0a 00 00 00 00 00 |00, 0x00|};......|
|00001b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 6b 67 6f 2f 67 61 6d 65 | 73 2e 68 00 00 00 00 00 |kgo/game|s.h.....|
|00001c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 31 30 30 36 | 36 34 00 00 30 31 36 37 |....1006|64..0167|
|00001c70| 37 31 00 00 30 30 30 30 | 30 30 00 00 30 30 30 30 |71..0000|00..0000|
|00001c80| 30 30 30 31 33 37 31 00 | 30 35 33 37 36 32 35 34 |0001371.|05376254|
|00001c90| 31 33 35 00 30 31 30 30 | 33 36 00 20 30 00 00 00 |135.0100|36. 0...|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 33 37 37 37 37 37 30 | 33 34 30 31 00 00 00 00 |.3777770|3401....|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 20 31 00 20 30 00 |........|.. 1. 0.|
|00001d60| 20 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 0a 23 69 66 6e 64 65 66 | 20 5f 67 61 6d 65 73 5f |.#ifndef| _games_|
|00001e10| 68 5f 49 4e 43 4c 55 44 | 45 44 0a 23 64 65 66 69 |h_INCLUD|ED.#defi|
|00001e20| 6e 65 20 5f 67 61 6d 65 | 73 5f 68 5f 49 4e 43 4c |ne _game|s_h_INCL|
|00001e30| 55 44 45 44 0a 0a 0a 23 | 64 65 66 69 6e 65 20 4d |UDED...#|define M|
|00001e40| 41 58 47 41 4d 45 53 20 | 31 30 30 0a 23 64 65 66 |AXGAMES |100.#def|
|00001e50| 69 6e 65 20 4d 41 58 55 | 53 45 52 4e 41 4d 45 20 |ine MAXU|SERNAME |
|00001e60| 33 30 09 09 09 2f 2a 20 | 49 20 6d 61 64 65 20 74 |30.../* |I made t|
|00001e70| 68 65 73 65 20 75 70 20 | 2a 2f 0a 23 64 65 66 69 |hese up |*/.#defi|
|00001e80| 6e 65 20 4d 41 58 52 41 | 4e 4b 20 32 30 0a 0a 76 |ne MAXRA|NK 20..v|
|00001e90| 6f 69 64 20 43 6c 65 61 | 72 47 61 6d 65 73 28 76 |oid Clea|rGames(v|
|00001ea0| 6f 69 64 29 3b 0a 76 6f | 69 64 20 43 6c 65 61 6e |oid);.vo|id Clean|
|00001eb0| 75 70 47 61 6d 65 73 20 | 28 76 6f 69 64 29 3b 0a |upGames |(void);.|
|00001ec0| 76 6f 69 64 20 53 65 74 | 47 61 6d 65 49 6e 66 6f |void Set|GameInfo|
|00001ed0| 20 28 69 6e 74 20 6e 2c | 20 63 68 61 72 20 2a 77 | (int n,| char *w|
|00001ee0| 6e 61 6d 65 2c 20 63 68 | 61 72 20 2a 77 72 61 6e |name, ch|ar *wran|
|00001ef0| 6b 2c 20 63 68 61 72 20 | 2a 62 6e 61 6d 65 2c 20 |k, char |*bname, |
|00001f00| 63 68 61 72 20 2a 62 72 | 61 6e 6b 2c 0a 09 09 20 |char *br|ank,... |
|00001f10| 20 69 6e 74 20 6d 6f 76 | 65 2c 20 69 6e 74 20 73 | int mov|e, int s|
|00001f20| 69 7a 65 2c 20 69 6e 74 | 20 68 63 61 70 2c 20 69 |ize, int| hcap, i|
|00001f30| 6e 74 20 6b 6f 6d 69 2c | 20 69 6e 74 20 6f 62 73 |nt komi,| int obs|
|00001f40| 29 3b 0a 76 6f 69 64 20 | 52 65 63 65 69 76 65 64 |);.void |Received|
|00001f50| 4d 6f 76 65 20 28 69 6e | 74 20 67 61 6d 65 2c 20 |Move (in|t game, |
|00001f60| 69 6e 74 20 6d 6f 76 65 | 2c 20 69 6e 74 20 72 6f |int move|, int ro|
|00001f70| 77 2c 20 69 6e 74 20 63 | 6f 6c 29 3b 0a 76 6f 69 |w, int c|ol);.voi|
|00001f80| 64 20 52 65 63 65 69 76 | 65 64 47 61 6d 65 49 6e |d Receiv|edGameIn|
|00001f90| 64 69 63 61 74 6f 72 20 | 28 69 6e 74 20 67 61 6d |dicator |(int gam|
|00001fa0| 65 2c 20 63 68 61 72 20 | 2a 77 6e 61 6d 65 2c 20 |e, char |*wname, |
|00001fb0| 63 68 61 72 20 2a 62 6e | 61 6d 65 2c 0a 09 09 09 |char *bn|ame,....|
|00001fc0| 20 20 20 20 69 6e 74 20 | 77 74 69 6d 65 2c 20 69 | int |wtime, i|
|00001fd0| 6e 74 20 62 74 69 6d 65 | 2c 20 69 6e 74 20 77 73 |nt btime|, int ws|
|00001fe0| 74 6f 6e 65 73 2c 20 69 | 6e 74 20 62 73 74 6f 6e |tones, i|nt bston|
|00001ff0| 65 73 29 3b 0a 76 6f 69 | 64 20 52 65 63 65 69 76 |es);.voi|d Receiv|
|00002000| 65 64 52 65 6d 6f 76 65 | 20 28 69 6e 74 20 67 61 |edRemove| (int ga|
|00002010| 6d 65 2c 20 69 6e 74 20 | 72 6f 77 2c 20 69 6e 74 |me, int |row, int|
|00002020| 20 63 6f 6c 29 3b 0a 76 | 6f 69 64 20 52 65 63 65 | col);.v|oid Rece|
|00002030| 69 76 65 64 4b 69 62 69 | 74 7a 20 28 69 6e 74 20 |ivedKibi|tz (int |
|00002040| 67 61 6d 65 2c 20 63 68 | 61 72 20 2a 6b 6e 61 6d |game, ch|ar *knam|
|00002050| 65 2c 20 63 68 61 72 20 | 2a 6b 72 61 6e 6b 2c 20 |e, char |*krank, |
|00002060| 63 68 61 72 20 2a 74 65 | 78 74 29 3b 0a 76 6f 69 |char *te|xt);.voi|
|00002070| 64 20 53 63 6f 72 65 64 | 42 6f 61 72 64 52 65 63 |d Scored|BoardRec|
|00002080| 65 69 76 65 64 20 28 69 | 6e 74 20 68 2c 20 63 68 |eived (i|nt h, ch|
|00002090| 61 72 20 2a 6c 69 6e 65 | 29 3b 0a 76 6f 69 64 20 |ar *line|);.void |
|000020a0| 50 6f 70 75 70 55 6e 47 | 61 6d 65 20 28 76 6f 69 |PopupUnG|ame (voi|
|000020b0| 64 29 3b 0a 76 6f 69 64 | 20 50 6f 70 75 70 47 6f |d);.void| PopupGo|
|000020c0| 6e 65 20 28 57 69 64 67 | 65 74 20 77 29 3b 0a 57 |ne (Widg|et w);.W|
|000020d0| 69 64 67 65 74 20 46 69 | 6e 64 47 61 6d 65 4b 69 |idget Fi|ndGameKi|
|000020e0| 62 69 74 7a 28 76 6f 69 | 64 29 3b 0a 20 20 20 20 |bitz(voi|d);. |
|000020f0| 20 0a 23 65 6e 64 69 66 | 0a 00 00 00 00 00 00 00 | .#endif|........|
|00002100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002200| 6b 67 6f 2f 73 65 72 76 | 65 72 2e 68 00 00 00 00 |kgo/serv|er.h....|
|00002210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002260| 00 00 00 00 31 30 30 36 | 36 34 00 00 30 31 36 37 |....1006|64..0167|
|00002270| 37 31 00 00 30 30 30 30 | 30 30 00 00 30 30 30 30 |71..0000|00..0000|
|00002280| 30 30 30 30 32 36 30 00 | 30 35 33 37 37 30 33 36 |0000260.|05377036|
|00002290| 30 30 35 00 30 31 30 32 | 33 37 00 20 30 00 00 00 |005.0102|37. 0...|
|000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002300| 00 33 37 37 37 37 37 30 | 33 34 30 31 00 00 00 00 |.3777770|3401....|
|00002310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 20 31 00 20 30 00 |........|.. 1. 0.|
|00002360| 20 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002400| 0a 23 69 66 6e 64 65 66 | 20 5f 73 65 72 76 65 72 |.#ifndef| _server|
|00002410| 5f 68 5f 49 4e 43 4c 55 | 44 45 44 0a 23 64 65 66 |_h_INCLU|DED.#def|
|00002420| 69 6e 65 20 5f 73 65 72 | 76 65 72 5f 68 5f 49 4e |ine _ser|ver_h_IN|
|00002430| 43 4c 55 44 45 44 0a 0a | 0a 69 6e 74 20 4f 70 65 |CLUDED..|.int Ope|
|00002440| 6e 53 65 72 76 65 72 28 | 63 68 61 72 20 2a 68 6f |nServer(|char *ho|
|00002450| 73 74 2c 20 69 6e 74 20 | 70 6f 72 74 29 3b 0a 76 |st, int |port);.v|
|00002460| 6f 69 64 20 48 61 6e 64 | 6c 65 53 65 72 76 65 72 |oid Hand|leServer|
|00002470| 20 28 63 68 61 72 20 2a | 74 78 74 2c 20 69 6e 74 | (char *|txt, int|
|00002480| 20 6c 65 6e 29 3b 0a 76 | 6f 69 64 20 51 75 65 75 | len);.v|oid Queu|
|00002490| 65 46 6f 72 53 65 72 76 | 65 72 20 28 63 68 61 72 |eForServ|er (char|
|000024a0| 20 2a 74 78 74 29 3b 0a | 0a 23 65 6e 64 69 66 0a | *txt);.|.#endif.|
|000024b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002600| 6b 67 6f 2f 49 6d 61 6b | 65 66 69 6c 65 00 00 00 |kgo/Imak|efile...|
|00002610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002660| 00 00 00 00 31 30 30 36 | 36 34 00 00 30 31 36 37 |....1006|64..0167|
|00002670| 37 31 00 00 30 30 30 30 | 30 30 00 00 30 30 30 30 |71..0000|00..0000|
|00002680| 30 30 30 31 37 36 31 00 | 30 35 34 30 30 35 35 31 |0001761.|05400551|
|00002690| 30 32 35 00 30 31 30 33 | 36 37 00 20 30 00 00 00 |025.0103|67. 0...|
|000026a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002700| 00 33 37 37 37 37 37 30 | 33 34 30 31 00 00 00 00 |.3777770|3401....|
|00002710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002750| 00 00 00 00 00 00 00 00 | 00 00 20 31 00 20 30 00 |........|.. 1. 0.|
|00002760| 20 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00002770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002800| 0a 2f 2a 20 20 43 6f 70 | 79 72 69 67 68 74 20 28 |./* Cop|yright (|
|00002810| 63 29 20 31 39 39 33 20 | 62 79 20 4b 65 6e 6e 65 |c) 1993 |by Kenne|
|00002820| 74 68 20 44 75 64 61 20 | 3c 6b 6b 6b 6b 65 6e 40 |th Duda |<kkkken@|
|00002830| 61 74 68 65 6e 61 2e 6d | 69 74 2e 65 64 75 3e 2e |athena.m|it.edu>.|
|00002840| 20 20 0a 20 2a 20 20 41 | 6c 6c 20 72 69 67 68 74 | . * A|ll right|
|00002850| 73 20 72 65 73 65 72 76 | 65 64 2e 0a 20 2a 0a 20 |s reserv|ed.. *. |
|00002860| 2a 20 20 54 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |* This |program |
|00002870| 69 73 20 64 69 73 74 72 | 69 62 75 74 65 64 20 69 |is distr|ibuted i|
|00002880| 6e 20 74 68 65 20 68 6f | 70 65 20 74 68 61 74 20 |n the ho|pe that |
|00002890| 69 74 20 77 69 6c 6c 20 | 62 65 20 75 73 65 66 75 |it will |be usefu|
|000028a0| 6c 2e 0a 20 2a 20 20 55 | 73 65 20 61 6e 64 20 63 |l.. * U|se and c|
|000028b0| 6f 70 79 69 6e 67 20 6f | 66 20 74 68 69 73 20 73 |opying o|f this s|
|000028c0| 6f 66 74 77 61 72 65 20 | 61 6e 64 20 70 72 65 70 |oftware |and prep|
|000028d0| 61 72 61 74 69 6f 6e 20 | 6f 66 20 64 65 72 69 76 |aration |of deriv|
|000028e0| 61 74 69 76 65 20 77 6f | 72 6b 73 0a 20 2a 20 20 |ative wo|rks. * |
|000028f0| 62 61 73 65 64 20 75 70 | 6f 6e 20 74 68 69 73 20 |based up|on this |
|00002900| 73 6f 66 74 77 61 72 65 | 20 61 72 65 20 70 65 72 |software| are per|
|00002910| 6d 69 74 74 65 64 2c 20 | 73 6f 20 6c 6f 6e 67 20 |mitted, |so long |
|00002920| 61 73 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |as the f|ollowing|
|00002930| 0a 20 2a 20 20 63 6f 6e | 64 69 74 69 6f 6e 73 20 |. * con|ditions |
|00002940| 61 72 65 20 6d 65 74 3a | 0a 20 2a 20 20 20 20 20 |are met:|. * |
|00002950| 20 20 6f 20 63 72 65 64 | 69 74 20 74 6f 20 74 68 | o cred|it to th|
|00002960| 65 20 61 75 74 68 6f 72 | 20 69 73 20 61 63 6b 6e |e author| is ackn|
|00002970| 6f 77 6c 65 64 67 65 64 | 20 0a 20 2a 20 20 20 20 |owledged| . * |
|00002980| 20 20 20 6f 20 6e 6f 20 | 66 65 65 73 20 6f 72 20 | o no |fees or |
|00002990| 63 6f 6d 70 65 6e 73 61 | 74 69 6f 6e 20 61 72 65 |compensa|tion are|
|000029a0| 20 63 68 61 72 67 65 64 | 20 66 6f 72 20 75 73 65 | charged| for use|
|000029b0| 2c 20 63 6f 70 69 65 73 | 2c 20 6f 72 0a 20 2a 20 |, copies|, or. * |
|000029c0| 20 20 20 20 20 20 20 20 | 61 63 63 65 73 73 20 74 | |access t|
|000029d0| 6f 20 74 68 69 73 20 73 | 6f 66 74 77 61 72 65 0a |o this s|oftware.|
|000029e0| 20 2a 20 20 20 20 20 20 | 20 6f 20 74 68 69 73 20 | * | o this |
|000029f0| 63 6f 70 79 72 69 67 68 | 74 20 6e 6f 74 69 63 65 |copyrigh|t notice|
|00002a00| 20 69 73 20 69 6e 63 6c | 75 64 65 64 20 69 6e 74 | is incl|uded int|
|00002a10| 61 63 74 2e 0a 20 2a 20 | 20 54 68 69 73 20 73 6f |act.. * | This so|
|00002a20| 66 74 77 61 72 65 20 69 | 73 20 6d 61 64 65 20 61 |ftware i|s made a|
|00002a30| 76 61 69 6c 61 62 6c 65 | 20 41 53 20 49 53 2c 20 |vailable| AS IS, |
|00002a40| 61 6e 64 20 6e 6f 20 77 | 61 72 72 61 6e 74 79 20 |and no w|arranty |
|00002a50| 69 73 20 6d 61 64 65 20 | 61 62 6f 75 74 20 0a 20 |is made |about . |
|00002a60| 2a 20 20 74 68 65 20 73 | 6f 66 74 77 61 72 65 20 |* the s|oftware |
|00002a70| 6f 72 20 69 74 73 20 70 | 65 72 66 6f 72 6d 61 6e |or its p|erforman|
|00002a80| 63 65 2e 20 0a 20 2a 20 | 0a 20 2a 20 20 42 75 67 |ce. . * |. * Bug|
|00002a90| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 73 2c 20 75 | descrip|tions, u|
|00002aa0| 73 65 20 72 65 70 6f 72 | 74 73 2c 20 63 6f 6d 6d |se repor|ts, comm|
|00002ab0| 65 6e 74 73 20 6f 72 20 | 73 75 67 67 65 73 74 69 |ents or |suggesti|
|00002ac0| 6f 6e 73 20 61 72 65 20 | 77 65 6c 63 6f 6d 65 2e |ons are |welcome.|
|00002ad0| 0a 20 2a 20 20 53 65 6e | 64 20 74 68 65 6d 20 74 |. * Sen|d them t|
|00002ae0| 6f 20 3c 6b 6b 6b 6b 65 | 6e 40 61 74 68 65 6e 61 |o <kkkke|n@athena|
|00002af0| 2e 6d 69 74 2e 65 64 75 | 3e 2e 0a 20 2a 2f 0a 0a |.mit.edu|>.. */..|
|00002b00| 53 52 43 53 20 3d 20 41 | 73 63 69 69 54 74 79 2e |SRCS = A|sciiTty.|
|00002b10| 63 20 47 6f 62 61 6e 2e | 63 20 67 61 6d 65 73 2e |c Goban.|c games.|
|00002b20| 63 20 6d 61 69 6e 2e 63 | 20 6f 75 74 70 75 74 2e |c main.c| output.|
|00002b30| 63 20 73 65 72 76 65 72 | 2e 63 20 75 73 65 72 73 |c server|.c users|
|00002b40| 2e 63 0a 4f 42 4a 53 20 | 3d 20 41 73 63 69 69 54 |.c.OBJS |= AsciiT|
|00002b50| 74 79 2e 6f 20 47 6f 62 | 61 6e 2e 6f 20 67 61 6d |ty.o Gob|an.o gam|
|00002b60| 65 73 2e 6f 20 6d 61 69 | 6e 2e 6f 20 6f 75 74 70 |es.o mai|n.o outp|
|00002b70| 75 74 2e 6f 20 73 65 72 | 76 65 72 2e 6f 20 75 73 |ut.o ser|ver.o us|
|00002b80| 65 72 73 2e 6f 0a 4c 4f | 43 41 4c 5f 4c 49 42 52 |ers.o.LO|CAL_LIBR|
|00002b90| 41 52 49 45 53 20 3d 20 | 58 61 77 43 6c 69 65 6e |ARIES = |XawClien|
|00002ba0| 74 4c 69 62 73 0a 0a 50 | 52 4f 47 52 41 4d 20 3d |tLibs..P|ROGRAM =|
|00002bb0| 20 6b 67 6f 0a 0a 43 6f | 6d 70 6c 65 78 50 72 6f | kgo..Co|mplexPro|
|00002bc0| 67 72 61 6d 54 61 72 67 | 65 74 20 28 6b 67 6f 29 |gramTarg|et (kgo)|
|00002bd0| 0a 49 6e 73 74 61 6c 6c | 4d 61 6e 50 61 67 65 28 |.Install|ManPage(|
|00002be0| 6b 67 6f 2c 20 24 28 4d | 41 4e 44 49 52 29 29 0a |kgo, $(M|ANDIR)).|
|00002bf0| 0a 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c00| 6b 67 6f 2f 63 75 72 72 | 65 6e 74 2e 78 62 6d 00 |kgo/curr|ent.xbm.|
|00002c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c60| 00 00 00 00 31 30 30 36 | 36 34 00 00 30 31 36 37 |....1006|64..0167|
|00002c70| 37 31 00 00 30 30 30 30 | 30 30 00 00 30 30 30 30 |71..0000|00..0000|
|00002c80| 30 30 30 30 33 37 30 00 | 30 35 33 37 36 31 36 35 |0000370.|05376165|
|00002c90| 35 35 36 00 30 31 30 37 | 37 31 00 20 30 00 00 00 |556.0107|71. 0...|
|00002ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d00| 00 33 37 37 37 37 37 30 | 33 34 30 31 00 00 00 00 |.3777770|3401....|
|00002d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d50| 00 00 00 00 00 00 00 00 | 00 00 20 31 00 20 30 00 |........|.. 1. 0.|
|00002d60| 20 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e00| 23 64 65 66 69 6e 65 20 | 63 75 72 72 65 6e 74 5f |#define |current_|
|00002e10| 77 69 64 74 68 20 31 36 | 0a 23 64 65 66 69 6e 65 |width 16|.#define|
|00002e20| 20 63 75 72 72 65 6e 74 | 5f 68 65 69 67 68 74 20 | current|_height |
|00002e30| 31 33 0a 73 74 61 74 69 | 63 20 63 68 61 72 20 63 |13.stati|c char c|
|00002e40| 75 72 72 65 6e 74 5f 62 | 69 74 73 5b 5d 20 3d 20 |urrent_b|its[] = |
|00002e50| 7b 0a 20 20 20 30 78 30 | 30 2c 20 30 78 30 30 2c |{. 0x0|0, 0x00,|
|00002e60| 20 30 78 30 30 2c 20 30 | 78 30 30 2c 20 30 78 30 | 0x00, 0|x00, 0x0|
|00002e70| 30 2c 20 30 78 30 30 2c | 20 30 78 30 30 2c 20 30 |0, 0x00,| 0x00, 0|
|00002e80| 78 30 30 2c 20 30 78 66 | 65 2c 20 30 78 37 66 2c |x00, 0xf|e, 0x7f,|
|00002e90| 20 30 78 30 32 2c 20 30 | 78 34 30 2c 0a 20 20 20 | 0x02, 0|x40,. |
|00002ea0| 30 78 30 32 2c 20 30 78 | 34 30 2c 20 30 78 30 32 |0x02, 0x|40, 0x02|
|00002eb0| 2c 20 30 78 34 30 2c 20 | 30 78 66 65 2c 20 30 78 |, 0x40, |0xfe, 0x|
|00002ec0| 37 66 2c 20 30 78 66 65 | 2c 20 30 78 33 66 2c 20 |7f, 0xfe|, 0x3f, |
|00002ed0| 30 78 30 30 2c 20 30 78 | 30 30 2c 20 30 78 30 30 |0x00, 0x|00, 0x00|
|00002ee0| 2c 20 30 78 30 30 2c 0a | 20 20 20 30 78 30 30 2c |, 0x00,.| 0x00,|
|00002ef0| 20 30 78 30 30 7d 3b 0a | 20 6d 6f 6d 6d 79 20 2a | 0x00};.| mommy *|
|00002f00| 2f 0a 20 20 20 20 57 69 | 64 67 65 74 20 77 68 69 |/. Wi|dget whi|
|00002f10| 74 65 43 61 70 74 75 72 | 65 73 4c 61 62 65 6c 2c |teCaptur|esLabel,|
|00002f20| 20 62 6c 61 63 6b 43 61 | 70 74 75 72 65 73 4c 61 | blackCa|pturesLa|
|00002f30| 62 65 6c 3b 0a 20 20 20 | 20 69 6e 74 20 77 68 69 |bel;. | int whi|
|00002f40| 74 65 43 44 69 73 70 6c | 61 79 65 64 2c 20 62 6c |teCDispl|ayed, bl|
|00002f50| 61 63 6b 43 44 69 73 70 | 6c 61 79 65 64 3b 0a 20 |ackCDisp|layed;. |
|00002f60| 20 20 20 0a 20 20 20 20 | 69 6e 74 20 72 61 64 3b | . |int rad;|
|00002f70| 09 09 09 09 2f 2a 20 50 | 6f 73 69 74 69 6f 6e 69 |..../* P|ositioni|
|00002f80| 6e 67 20 61 6e 64 20 73 | 69 7a 69 6e 67 20 69 6e |ng and s|izing in|
|00002f90| 66 6f 20 2a 2f 0a 20 20 | 20 20 69 6e 74 20 74 6f |fo */. | int to|
|00002fa0| 70 3b 0a 20 20 20 20 69 | 6e 74 20 62 6f 74 74 6f |p;. i|nt botto|
|00002fb0| 6d 3b 0a 20 20 20 20 69 | 6e 74 20 64 69 67 69 74 |m;. i|nt digit|
|00002fc0| 3b 0a 20 20 20 20 69 6e | 74 20 6c 69 6e 65 48 65 |;. in|t lineHe|
|00002fd0| 69 67 68 74 3b 0a 20 20 | 20 20 69 6e 74 20 2a 68 |ight;. | int *h|
|00002fe0| 63 61 70 48 2c 20 2a 68 | 63 61 70 56 3b 09 09 09 |capH, *h|capV;...|
|00002ff0| 2f 2a 20 41 72 72 61 79 | 73 20 6f 66 20 39 20 63 |/* Array|s of 9 c|
|00003000| 6b 67 6f 2f 41 73 63 69 | 69 54 74 79 2e 63 00 00 |kgo/Asci|iTty.c..|
|00003010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003060| 00 00 00 00 31 30 30 36 | 36 34 00 00 30 31 36 37 |....1006|64..0167|
|00003070| 37 31 00 00 30 30 30 30 | 30 30 00 00 30 30 30 30 |71..0000|00..0000|
|00003080| 30 30 31 33 33 35 31 00 | 30 35 34 30 30 35 34 34 |0013351.|05400544|
|00003090| 36 36 37 00 30 31 30 34 | 36 37 00 20 30 00 00 00 |667.0104|67. 0...|
|000030a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003100| 00 33 37 37 37 37 37 30 | 33 34 30 31 00 00 00 00 |.3777770|3401....|
|00003110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003150| 00 00 00 00 00 00 00 00 | 00 00 20 31 00 20 30 00 |........|.. 1. 0.|
|00003160| 20 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003200| 0a 2f 2a 20 20 43 6f 70 | 79 72 69 67 68 74 20 28 |./* Cop|yright (|
|00003210| 63 29 20 31 39 39 33 20 | 62 79 20 4b 65 6e 6e 65 |c) 1993 |by Kenne|
|00003220| 74 68 20 44 75 64 61 20 | 3c 6b 6b 6b 6b 65 6e 40 |th Duda |<kkkken@|
|00003230| 61 74 68 65 6e 61 2e 6d | 69 74 2e 65 64 75 3e 2e |athena.m|it.edu>.|
|00003240| 20 20 0a 20 2a 20 20 41 | 6c 6c 20 72 69 67 68 74 | . * A|ll right|
|00003250| 73 20 72 65 73 65 72 76 | 65 64 2e 0a 20 2a 0a 20 |s reserv|ed.. *. |
|00003260| 2a 20 20 54 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |* This |program |
|00003270| 69 73 20 64 69 73 74 72 | 69 62 75 74 65 64 20 69 |is distr|ibuted i|
|00003280| 6e 20 74 68 65 20 68 6f | 70 65 20 74 68 61 74 20 |n the ho|pe that |
|00003290| 69 74 20 77 69 6c 6c 20 | 62 65 20 75 73 65 66 75 |it will |be usefu|
|000032a0| 6c 2e 0a 20 2a 20 20 55 | 73 65 20 61 6e 64 20 63 |l.. * U|se and c|
|000032b0| 6f 70 79 69 6e 67 20 6f | 66 20 74 68 69 73 20 73 |opying o|f this s|
|000032c0| 6f 66 74 77 61 72 65 20 | 61 6e 64 20 70 72 65 70 |oftware |and prep|
|000032d0| 61 72 61 74 69 6f 6e 20 | 6f 66 20 64 65 72 69 76 |aration |of deriv|
|000032e0| 61 74 69 76 65 20 77 6f | 72 6b 73 0a 20 2a 20 20 |ative wo|rks. * |
|000032f0| 62 61 73 65 64 20 75 70 | 6f 6e 20 74 68 69 73 20 |based up|on this |
|00003300| 73 6f 66 74 77 61 72 65 | 20 61 72 65 20 70 65 72 |software| are per|
|00003310| 6d 69 74 74 65 64 2c 20 | 73 6f 20 6c 6f 6e 67 20 |mitted, |so long |
|00003320| 61 73 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |as the f|ollowing|
|00003330| 0a 20 2a 20 20 63 6f 6e | 64 69 74 69 6f 6e 73 20 |. * con|ditions |
|00003340| 61 72 65 20 6d 65 74 3a | 0a 20 2a 20 20 20 20 20 |are met:|. * |
|00003350| 20 20 6f 20 63 72 65 64 | 69 74 20 74 6f 20 74 68 | o cred|it to th|
|00003360| 65 20 61 75 74 68 6f 72 | 20 69 73 20 61 63 6b 6e |e author| is ackn|
|00003370| 6f 77 6c 65 64 67 65 64 | 20 0a 20 2a 20 20 20 20 |owledged| . * |
|00003380| 20 20 20 6f 20 6e 6f 20 | 66 65 65 73 20 6f 72 20 | o no |fees or |
|00003390| 63 6f 6d 70 65 6e 73 61 | 74 69 6f 6e 20 61 72 65 |compensa|tion are|
|000033a0| 20 63 68 61 72 67 65 64 | 20 66 6f 72 20 75 73 65 | charged| for use|
|000033b0| 2c 20 63 6f 70 69 65 73 | 2c 20 6f 72 0a 20 2a 20 |, copies|, or. * |
|000033c0| 20 20 20 20 20 20 20 20 | 61 63 63 65 73 73 20 74 | |access t|
|000033d0| 6f 20 74 68 69 73 20 73 | 6f 66 74 77 61 72 65 0a |o this s|oftware.|
|000033e0| 20 2a 20 20 20 20 20 20 | 20 6f 20 74 68 69 73 20 | * | o this |
|000033f0| 63 6f 70 79 72 69 67 68 | 74 20 6e 6f 74 69 63 65 |copyrigh|t notice|
|00003400| 20 69 73 20 69 6e 63 6c | 75 64 65 64 20 69 6e 74 | is incl|uded int|
|00003410| 61 63 74 2e 0a 20 2a 20 | 20 54 68 69 73 20 73 6f |act.. * | This so|
|00003420| 66 74 77 61 72 65 20 69 | 73 20 6d 61 64 65 20 61 |ftware i|s made a|
|00003430| 76 61 69 6c 61 62 6c 65 | 20 41 53 20 49 53 2c 20 |vailable| AS IS, |
|00003440| 61 6e 64 20 6e 6f 20 77 | 61 72 72 61 6e 74 79 20 |and no w|arranty |
|00003450| 69 73 20 6d 61 64 65 20 | 61 62 6f 75 74 20 0a 20 |is made |about . |
|00003460| 2a 20 20 74 68 65 20 73 | 6f 66 74 77 61 72 65 20 |* the s|oftware |
|00003470| 6f 72 20 69 74 73 20 70 | 65 72 66 6f 72 6d 61 6e |or its p|erforman|
|00003480| 63 65 2e 20 0a 20 2a 20 | 0a 20 2a 20 20 42 75 67 |ce. . * |. * Bug|
|00003490| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 73 2c 20 75 | descrip|tions, u|
|000034a0| 73 65 20 72 65 70 6f 72 | 74 73 2c 20 63 6f 6d 6d |se repor|ts, comm|
|000034b0| 65 6e 74 73 20 6f 72 20 | 73 75 67 67 65 73 74 69 |ents or |suggesti|
|000034c0| 6f 6e 73 20 61 72 65 20 | 77 65 6c 63 6f 6d 65 2e |ons are |welcome.|
|000034d0| 0a 20 2a 20 20 53 65 6e | 64 20 74 68 65 6d 20 74 |. * Sen|d them t|
|000034e0| 6f 20 3c 6b 6b 6b 6b 65 | 6e 40 61 74 68 65 6e 61 |o <kkkke|n@athena|
|000034f0| 2e 6d 69 74 2e 65 64 75 | 3e 2e 0a 20 2a 2f 0a 0a |.mit.edu|>.. */..|
|00003500| 23 69 6e 63 6c 75 64 65 | 20 3c 58 31 31 2f 58 6c |#include| <X11/Xl|
|00003510| 69 62 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |ib.h>.#i|nclude <|
|00003520| 58 31 31 2f 58 61 74 6f | 6d 2e 68 3e 0a 23 69 6e |X11/Xato|m.h>.#in|
|00003530| 63 6c 75 64 65 20 3c 58 | 31 31 2f 53 74 72 69 6e |clude <X|11/Strin|
|00003540| 67 44 65 66 73 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |gDefs.h>|.#includ|
|00003550| 65 20 3c 58 31 31 2f 49 | 6e 74 72 69 6e 73 69 63 |e <X11/I|ntrinsic|
|00003560| 50 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 58 |P.h>.#in|clude <X|
|00003570| 31 31 2f 43 6f 72 65 50 | 2e 68 3e 0a 23 69 6e 63 |11/CoreP|.h>.#inc|
|00003580| 6c 75 64 65 20 3c 58 31 | 31 2f 58 61 77 2f 58 61 |lude <X1|1/Xaw/Xa|
|00003590| 77 49 6e 69 74 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |wInit.h>|.#includ|
|000035a0| 65 20 3c 58 31 31 2f 58 | 61 77 2f 41 73 63 69 69 |e <X11/X|aw/Ascii|
|000035b0| 54 65 78 74 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |Text.h>.|#include|
|000035c0| 20 22 41 73 63 69 69 54 | 74 79 50 2e 68 22 0a 23 | "AsciiT|tyP.h".#|
|000035d0| 69 6e 63 6c 75 64 65 20 | 22 6b 67 6f 2e 68 22 0a |include |"kgo.h".|
|000035e0| 0a 0a 23 64 65 66 69 6e | 65 20 4d 49 4e 57 49 44 |..#defin|e MINWID|
|000035f0| 54 48 20 32 31 30 0a 23 | 64 65 66 69 6e 65 20 4d |TH 210.#|define M|
|00003600| 49 4e 48 45 49 47 48 54 | 20 32 31 30 0a 23 64 65 |INHEIGHT| 210.#de|
|00003610| 66 69 6e 65 20 44 45 46 | 57 49 44 54 48 20 33 38 |fine DEF|WIDTH 38|
|00003620| 30 0a 23 64 65 66 69 6e | 65 20 44 45 46 48 45 49 |0.#defin|e DEFHEI|
|00003630| 47 48 54 20 33 38 30 0a | 0a 23 64 65 66 69 6e 65 |GHT 380.|.#define|
|00003640| 20 6d 61 78 28 61 2c 20 | 62 29 20 28 28 61 29 20 | max(a, |b) ((a) |
|00003650| 3e 20 28 62 29 20 3f 20 | 28 61 29 20 3a 20 28 62 |> (b) ? |(a) : (b|
|00003660| 29 29 0a 23 64 65 66 69 | 6e 65 20 6d 69 6e 28 61 |)).#defi|ne min(a|
|00003670| 2c 20 62 29 20 28 28 61 | 29 20 3c 20 28 62 29 20 |, b) ((a|) < (b) |
|00003680| 3f 20 28 61 29 20 3a 20 | 28 62 29 29 0a 23 64 65 |? (a) : |(b)).#de|
|00003690| 66 69 6e 65 20 6f 66 66 | 73 65 74 28 66 69 65 6c |fine off|set(fiel|
|000036a0| 64 29 20 58 74 4f 66 66 | 73 65 74 28 41 73 63 69 |d) XtOff|set(Asci|
|000036b0| 69 54 74 79 57 69 64 67 | 65 74 2c 61 73 63 69 69 |iTtyWidg|et,ascii|
|000036c0| 74 74 79 2e 66 69 65 6c | 64 29 0a 0a 73 74 61 74 |tty.fiel|d)..stat|
|000036d0| 69 63 20 76 6f 69 64 20 | 41 73 63 69 69 54 74 79 |ic void |AsciiTty|
|000036e0| 49 6e 69 74 69 61 6c 69 | 7a 65 28 29 2c 20 41 73 |Initiali|ze(), As|
|000036f0| 63 69 69 54 74 79 44 65 | 73 74 72 6f 79 28 29 2c |ciiTtyDe|stroy(),|
|00003700| 20 53 65 6e 64 43 6d 64 | 28 29 3b 0a 0a 73 74 61 | SendCmd|();..sta|
|00003710| 74 69 63 20 58 74 52 65 | 73 6f 75 72 63 65 20 41 |tic XtRe|source A|
|00003720| 73 63 69 69 54 74 79 52 | 65 73 6f 75 72 63 65 73 |sciiTtyR|esources|
|00003730| 5b 5d 20 3d 20 7b 0a 20 | 20 20 20 7b 20 58 74 4e |[] = {. | { XtN|
|00003740| 74 65 78 74 4c 69 6d 69 | 74 2c 20 58 74 43 54 65 |textLimi|t, XtCTe|
|00003750| 78 74 50 6f 73 69 74 69 | 6f 6e 2c 20 58 74 52 49 |xtPositi|on, XtRI|
|00003760| 6e 74 2c 20 73 69 7a 65 | 6f 66 28 69 6e 74 29 2c |nt, size|of(int),|
|00003770| 0a 09 20 20 6f 66 66 73 | 65 74 28 74 65 78 74 4c |.. offs|et(textL|
|00003780| 69 6d 69 74 29 2c 20 58 | 74 52 53 74 72 69 6e 67 |imit), X|tRString|
|00003790| 2c 20 22 38 31 39 32 22 | 20 7d 2c 0a 7d 3b 0a 0a |, "8192"| },.};..|
|000037a0| 73 74 61 74 69 63 20 58 | 74 41 63 74 69 6f 6e 73 |static X|tActions|
|000037b0| 52 65 63 20 61 63 74 69 | 6f 6e 73 4c 69 73 74 5b |Rec acti|onsList[|
|000037c0| 5d 20 3d 20 7b 20 0a 20 | 20 7b 22 73 65 6e 64 63 |] = { . | {"sendc|
|000037d0| 6d 64 22 2c 09 09 53 65 | 6e 64 43 6d 64 7d 2c 0a |md",..Se|ndCmd},.|
|000037e0| 7d 3b 0a 20 20 0a 41 73 | 63 69 69 54 74 79 43 6c |};. .As|ciiTtyCl|
|000037f0| 61 73 73 52 65 63 20 61 | 73 63 69 69 54 74 79 43 |assRec a|sciiTtyC|
|00003800| 6c 61 73 73 52 65 63 20 | 3d 20 7b 0a 20 20 20 20 |lassRec |= {. |
|00003810| 20 20 20 20 7b 20 2f 2a | 20 63 6f 72 65 20 66 69 | { /*| core fi|
|00003820| 65 6c 64 73 20 2a 2f 0a | 20 20 20 20 2f 2a 20 73 |elds */.| /* s|
|00003830| 75 70 65 72 63 6c 61 73 | 73 09 09 2a 2f 09 28 57 |uperclas|s..*/.(W|
|00003840| 69 64 67 65 74 43 6c 61 | 73 73 29 20 26 61 73 63 |idgetCla|ss) &asc|
|00003850| 69 69 54 65 78 74 43 6c | 61 73 73 52 65 63 2c 0a |iiTextCl|assRec,.|
|00003860| 20 20 20 20 2f 2a 20 63 | 6c 61 73 73 5f 6e 61 6d | /* c|lass_nam|
|00003870| 65 09 09 2a 2f 09 22 41 | 73 63 69 69 54 74 79 22 |e..*/."A|sciiTty"|
|00003880| 2c 0a 20 20 20 20 2f 2a | 20 77 69 64 67 65 74 5f |,. /*| widget_|
|00003890| 73 69 7a 65 09 09 2a 2f | 09 73 69 7a 65 6f 66 28 |size..*/|.sizeof(|
|000038a0| 41 73 63 69 69 54 74 79 | 52 65 63 29 2c 0a 20 20 |AsciiTty|Rec),. |
|000038b0| 20 20 2f 2a 20 63 6c 61 | 73 73 5f 69 6e 69 74 69 | /* cla|ss_initi|
|000038c0| 61 6c 69 7a 65 09 09 2a | 2f 09 58 61 77 49 6e 69 |alize..*|/.XawIni|
|000038d0| 74 69 61 6c 69 7a 65 57 | 69 64 67 65 74 53 65 74 |tializeW|idgetSet|
|000038e0| 2c 0a 20 20 20 20 2f 2a | 20 63 6c 61 73 73 5f 70 |,. /*| class_p|
|000038f0| 61 72 74 5f 69 6e 69 74 | 69 61 6c 69 7a 65 09 2a |art_init|ialize.*|
|00003900| 2f 09 4e 55 4c 4c 2c 0a | 20 20 20 20 2f 2a 20 63 |/.NULL,.| /* c|
|00003910| 6c 61 73 73 5f 69 6e 69 | 74 65 64 09 09 2a 2f 09 |lass_ini|ted..*/.|
|00003920| 46 41 4c 53 45 2c 0a 20 | 20 20 20 2f 2a 20 69 6e |FALSE,. | /* in|
|00003930| 69 74 69 61 6c 69 7a 65 | 09 09 2a 2f 09 41 73 63 |itialize|..*/.Asc|
|00003940| 69 69 54 74 79 49 6e 69 | 74 69 61 6c 69 7a 65 2c |iiTtyIni|tialize,|
|00003950| 0a 20 20 20 20 2f 2a 20 | 69 6e 69 74 69 61 6c 69 |. /* |initiali|
|00003960| 7a 65 5f 68 6f 6f 6b 09 | 09 2a 2f 09 4e 55 4c 4c |ze_hook.|.*/.NULL|
|00003970| 2c 0a 20 20 20 20 2f 2a | 20 72 65 61 6c 69 7a 65 |,. /*| realize|
|00003980| 09 09 09 2a 2f 09 58 74 | 49 6e 68 65 72 69 74 52 |...*/.Xt|InheritR|
|00003990| 65 61 6c 69 7a 65 2c 0a | 20 20 20 20 2f 2a 20 61 |ealize,.| /* a|
|000039a0| 63 74 69 6f 6e 73 09 09 | 09 2a 2f 09 61 63 74 69 |ctions..|.*/.acti|
|000039b0| 6f 6e 73 4c 69 73 74 2c | 0a 20 20 20 20 2f 2a 20 |onsList,|. /* |
|000039c0| 6e 75 6d 5f 61 63 74 69 | 6f 6e 73 09 09 2a 2f 09 |num_acti|ons..*/.|
|000039d0| 58 74 4e 75 6d 62 65 72 | 28 61 63 74 69 6f 6e 73 |XtNumber|(actions|
|000039e0| 4c 69 73 74 29 2c 0a 20 | 20 20 20 2f 2a 20 72 65 |List),. | /* re|
|000039f0| 73 6f 75 72 63 65 73 09 | 09 2a 2f 09 41 73 63 69 |sources.|.*/.Asci|
|00003a00| 69 54 74 79 52 65 73 6f | 75 72 63 65 73 2c 0a 20 |iTtyReso|urces,. |
|00003a10| 20 20 20 2f 2a 20 72 65 | 73 6f 75 72 63 65 5f 63 | /* re|source_c|
|00003a20| 6f 75 6e 74 09 09 2a 2f | 09 58 74 4e 75 6d 62 65 |ount..*/|.XtNumbe|
|00003a30| 72 28 41 73 63 69 69 54 | 74 79 52 65 73 6f 75 72 |r(AsciiT|tyResour|
|00003a40| 63 65 73 29 2c 0a 20 20 | 20 20 2f 2a 20 78 72 6d |ces),. | /* xrm|
|00003a50| 5f 63 6c 61 73 73 09 09 | 2a 2f 09 4e 55 4c 4c 51 |_class..|*/.NULLQ|
|00003a60| 55 41 52 4b 2c 0a 20 20 | 20 20 2f 2a 20 63 6f 6d |UARK,. | /* com|
|00003a70| 70 72 65 73 73 5f 6d 6f | 74 69 6f 6e 09 09 2a 2f |press_mo|tion..*/|
|00003a80| 09 54 52 55 45 2c 0a 20 | 20 20 20 2f 2a 20 63 6f |.TRUE,. | /* co|
|00003a90| 6d 70 72 65 73 73 5f 65 | 78 70 6f 73 75 72 65 09 |mpress_e|xposure.|
|00003aa0| 2a 2f 09 54 52 55 45 2c | 0a 20 20 20 20 2f 2a 20 |*/.TRUE,|. /* |
|00003ab0| 63 6f 6d 70 72 65 73 73 | 5f 65 6e 74 65 72 6c 65 |compress|_enterle|
|00003ac0| 61 76 65 09 2a 2f 09 54 | 52 55 45 2c 0a 20 20 20 |ave.*/.T|RUE,. |
|00003ad0| 20 2f 2a 20 76 69 73 69 | 62 6c 65 5f 69 6e 74 65 | /* visi|ble_inte|
|00003ae0| 72 65 73 74 09 09 2a 2f | 09 46 41 4c 53 45 2c 0a |rest..*/|.FALSE,.|
|00003af0| 20 20 20 20 2f 2a 20 64 | 65 73 74 72 6f 79 09 09 | /* d|estroy..|
|00003b00| 09 2a 2f 09 41 73 63 69 | 69 54 74 79 44 65 73 74 |.*/.Asci|iTtyDest|
|00003b10| 72 6f 79 2c 0a 20 20 20 | 20 2f 2a 20 72 65 73 69 |roy,. | /* resi|
|00003b20| 7a 65 09 09 09 2a 2f 09 | 58 74 49 6e 68 65 72 69 |ze...*/.|XtInheri|
|00003b30| 74 52 65 73 69 7a 65 2c | 0a 20 20 20 20 2f 2a 20 |tResize,|. /* |
|00003b40| 65 78 70 6f 73 65 09 09 | 09 2a 2f 09 58 74 49 6e |expose..|.*/.XtIn|
|00003b50| 68 65 72 69 74 45 78 70 | 6f 73 65 2c 0a 20 20 20 |heritExp|ose,. |
|00003b60| 20 2f 2a 20 73 65 74 5f | 76 61 6c 75 65 73 09 09 | /* set_|values..|
|00003b70| 2a 2f 09 4e 55 4c 4c 2c | 0a 20 20 20 20 2f 2a 20 |*/.NULL,|. /* |
|00003b80| 73 65 74 5f 76 61 6c 75 | 65 73 5f 68 6f 6f 6b 09 |set_valu|es_hook.|
|00003b90| 09 2a 2f 09 4e 55 4c 4c | 2c 0a 20 20 20 20 2f 2a |.*/.NULL|,. /*|
|00003ba0| 20 73 65 74 5f 76 61 6c | 75 65 73 5f 61 6c 6d 6f | set_val|ues_almo|
|00003bb0| 73 74 09 2a 2f 09 58 74 | 49 6e 68 65 72 69 74 53 |st.*/.Xt|InheritS|
|00003bc0| 65 74 56 61 6c 75 65 73 | 41 6c 6d 6f 73 74 2c 0a |etValues|Almost,.|
|00003bd0| 20 20 20 20 2f 2a 20 67 | 65 74 5f 76 61 6c 75 65 | /* g|et_value|
|00003be0| 73 5f 68 6f 6f 6b 09 09 | 2a 2f 09 4e 55 4c 4c 2c |s_hook..|*/.NULL,|
|00003bf0| 0a 20 20 20 20 2f 2a 20 | 61 63 63 65 70 74 5f 66 |. /* |accept_f|
|00003c00| 6f 63 75 73 09 09 2a 2f | 09 58 74 49 6e 68 65 72 |ocus..*/|.XtInher|
|00003c10| 69 74 41 63 63 65 70 74 | 46 6f 63 75 73 2c 0a 20 |itAccept|Focus,. |
|00003c20| 20 20 20 2f 2a 20 76 65 | 72 73 69 6f 6e 09 09 09 | /* ve|rsion...|
|00003c30| 2a 2f 09 58 74 56 65 72 | 73 69 6f 6e 2c 0a 20 20 |*/.XtVer|sion,. |
|00003c40| 20 20 2f 2a 20 63 61 6c | 6c 62 61 63 6b 5f 70 72 | /* cal|lback_pr|
|00003c50| 69 76 61 74 65 09 09 2a | 2f 09 4e 55 4c 4c 2c 0a |ivate..*|/.NULL,.|
|00003c60| 20 20 20 20 2f 2a 20 74 | 6d 5f 74 61 62 6c 65 09 | /* t|m_table.|
|00003c70| 09 09 2a 2f 09 58 74 49 | 6e 68 65 72 69 74 54 72 |..*/.XtI|nheritTr|
|00003c80| 61 6e 73 6c 61 74 69 6f | 6e 73 2c 0a 20 20 20 20 |anslatio|ns,. |
|00003c90| 2f 2a 20 71 75 65 72 79 | 5f 67 65 6f 6d 65 74 72 |/* query|_geometr|
|00003ca0| 79 20 20 20 20 20 20 20 | 20 20 20 20 2a 2f 09 58 |y | */.X|
|00003cb0| 74 49 6e 68 65 72 69 74 | 51 75 65 72 79 47 65 6f |tInherit|QueryGeo|
|00003cc0| 6d 65 74 72 79 2c 0a 20 | 20 20 20 2f 2a 20 64 69 |metry,. | /* di|
|00003cd0| 73 70 6c 61 79 5f 61 63 | 63 65 6c 65 72 61 74 6f |splay_ac|celerato|
|00003ce0| 72 20 20 20 20 20 20 2a | 2f 09 58 74 49 6e 68 65 |r *|/.XtInhe|
|00003cf0| 72 69 74 44 69 73 70 6c | 61 79 41 63 63 65 6c 65 |ritDispl|ayAccele|
|00003d00| 72 61 74 6f 72 2c 0a 20 | 20 20 20 2f 2a 20 65 78 |rator,. | /* ex|
|00003d10| 74 65 6e 73 69 6f 6e 20 | 20 20 20 20 20 20 20 20 |tension | |
|00003d20| 20 20 20 20 20 20 20 2a | 2f 09 4e 55 4c 4c 0a 20 | *|/.NULL. |
|00003d30| 20 20 20 7d 2c 0a 20 20 | 7b 20 2f 2a 20 53 69 6d | },. |{ /* Sim|
|00003d40| 70 6c 65 20 66 69 65 6c | 64 73 20 2a 2f 0a 20 20 |ple fiel|ds */. |
|00003d50| 20 20 2f 2a 20 63 68 61 | 6e 67 65 5f 73 65 6e 73 | /* cha|nge_sens|
|00003d60| 69 74 69 76 65 09 2a 2f | 09 58 74 49 6e 68 65 72 |itive.*/|.XtInher|
|00003d70| 69 74 43 68 61 6e 67 65 | 53 65 6e 73 69 74 69 76 |itChange|Sensitiv|
|00003d80| 65 0a 20 20 7d 2c 0a 20 | 20 7b 20 2f 2a 20 74 65 |e. },. | { /* te|
|00003d90| 78 74 20 66 69 65 6c 64 | 73 20 2a 2f 0a 20 20 20 |xt field|s */. |
|00003da0| 20 2f 2a 20 65 6d 70 74 | 79 20 20 20 20 20 20 20 | /* empt|y |
|00003db0| 20 20 20 20 20 2a 2f 20 | 20 20 20 20 20 30 0a 20 | */ | 0. |
|00003dc0| 20 7d 2c 0a 20 20 7b 20 | 2f 2a 20 61 73 63 69 69 | },. { |/* ascii|
|00003dd0| 20 66 69 65 6c 64 73 20 | 2a 2f 0a 20 20 20 20 2f | fields |*/. /|
|00003de0| 2a 20 65 6d 70 74 79 20 | 20 20 20 20 20 20 20 20 |* empty | |
|00003df0| 20 20 20 2a 2f 20 20 20 | 20 20 20 30 0a 20 20 7d | */ | 0. }|
|00003e00| 2c 0a 20 20 7b 20 2f 2a | 20 61 73 63 69 69 74 74 |,. { /*| asciitt|
|00003e10| 79 20 66 69 65 6c 64 73 | 20 2a 2f 0a 20 20 20 20 |y fields| */. |
|00003e20| 2f 2a 20 65 6d 70 74 79 | 20 20 20 20 20 20 20 20 |/* empty| |
|00003e30| 20 20 20 20 2a 2f 20 20 | 20 20 20 20 30 0a 20 20 | */ | 0. |
|00003e40| 7d 0a 7d 3b 0a 0a 57 69 | 64 67 65 74 43 6c 61 73 |}.};..Wi|dgetClas|
|00003e50| 73 20 61 73 63 69 69 54 | 74 79 57 69 64 67 65 74 |s asciiT|tyWidget|
|00003e60| 43 6c 61 73 73 20 3d 20 | 28 57 69 64 67 65 74 43 |Class = |(WidgetC|
|00003e70| 6c 61 73 73 29 20 26 61 | 73 63 69 69 54 74 79 43 |lass) &a|sciiTtyC|
|00003e80| 6c 61 73 73 52 65 63 3b | 0a 0a 0a 73 74 61 74 69 |lassRec;|...stati|
|00003e90| 63 20 76 6f 69 64 20 53 | 65 74 45 64 69 74 54 79 |c void S|etEditTy|
|00003ea0| 70 65 20 28 74 65 78 74 | 2c 20 74 79 70 65 29 0a |pe (text|, type).|
|00003eb0| 20 20 20 20 20 57 69 64 | 67 65 74 20 74 65 78 74 | Wid|get text|
|00003ec0| 3b 0a 20 20 20 20 20 69 | 6e 74 20 74 79 70 65 3b |;. i|nt type;|
|00003ed0| 0a 7b 0a 20 20 20 20 41 | 72 67 20 61 72 67 73 5b |.{. A|rg args[|
|00003ee0| 31 5d 3b 0a 20 20 20 20 | 0a 20 20 20 20 58 74 53 |1];. |. XtS|
|00003ef0| 65 74 41 72 67 28 61 72 | 67 73 5b 30 5d 2c 20 58 |etArg(ar|gs[0], X|
|00003f00| 74 4e 65 64 69 74 54 79 | 70 65 2c 20 74 79 70 65 |tNeditTy|pe, type|
|00003f10| 29 3b 20 2f 2a 20 48 6d | 6d 6d 20 2a 2f 0a 20 20 |); /* Hm|mm */. |
|00003f20| 20 20 58 74 53 65 74 56 | 61 6c 75 65 73 28 74 65 | XtSetV|alues(te|
|00003f30| 78 74 2c 20 61 72 67 73 | 2c 20 31 29 3b 0a 7d 0a |xt, args|, 1);.}.|
|00003f40| 20 20 20 20 20 0a 73 74 | 61 74 69 63 20 76 6f 69 | .st|atic voi|
|00003f50| 64 20 41 73 63 69 69 54 | 74 79 49 6e 69 74 69 61 |d AsciiT|tyInitia|
|00003f60| 6c 69 7a 65 28 72 65 71 | 75 65 73 74 2c 20 6e 65 |lize(req|uest, ne|
|00003f70| 77 29 0a 20 20 20 20 20 | 57 69 64 67 65 74 20 72 |w). |Widget r|
|00003f80| 65 71 75 65 73 74 3b 0a | 20 20 20 20 20 57 69 64 |equest;.| Wid|
|00003f90| 67 65 74 20 6e 65 77 3b | 0a 7b 0a 20 20 20 20 41 |get new;|.{. A|
|00003fa0| 73 63 69 69 54 74 79 57 | 69 64 67 65 74 20 61 74 |sciiTtyW|idget at|
|00003fb0| 77 20 3d 20 28 41 73 63 | 69 69 54 74 79 57 69 64 |w = (Asc|iiTtyWid|
|00003fc0| 67 65 74 29 20 6e 65 77 | 3b 0a 20 20 20 20 58 74 |get) new|;. Xt|
|00003fd0| 54 72 61 6e 73 6c 61 74 | 69 6f 6e 73 20 74 72 20 |Translat|ions tr |
|00003fe0| 3d 20 58 74 50 61 72 73 | 65 54 72 61 6e 73 6c 61 |= XtPars|eTransla|
|00003ff0| 74 69 6f 6e 54 61 62 6c | 65 28 22 3c 4b 65 79 3e |tionTabl|e("<Key>|
|00004000| 52 65 74 75 72 6e 3a 20 | 20 20 73 65 6e 64 63 6d |Return: | sendcm|
|00004010| 64 28 29 5c 6e 22 29 3b | 0a 0a 20 20 20 20 58 74 |d()\n");|.. Xt|
|00004020| 4f 76 65 72 72 69 64 65 | 54 72 61 6e 73 6c 61 74 |Override|Translat|
|00004030| 69 6f 6e 73 20 28 6e 65 | 77 2c 20 74 72 29 3b 0a |ions (ne|w, tr);.|
|00004040| 20 20 20 20 61 74 77 2d | 3e 61 73 63 69 69 74 74 | atw-|>asciitt|
|00004050| 79 2e 75 73 65 72 49 6e | 70 75 74 53 74 61 72 74 |y.userIn|putStart|
|00004060| 20 3d 20 30 3b 0a 20 20 | 20 20 53 65 74 45 64 69 | = 0;. | SetEdi|
|00004070| 74 54 79 70 65 20 28 6e | 65 77 2c 20 58 61 77 74 |tType (n|ew, Xawt|
|00004080| 65 78 74 41 70 70 65 6e | 64 29 3b 0a 20 20 20 20 |extAppen|d);. |
|00004090| 0a 7d 0a 0a 0a 73 74 61 | 74 69 63 20 76 6f 69 64 |.}...sta|tic void|
|000040a0| 20 41 73 63 69 69 54 74 | 79 44 65 73 74 72 6f 79 | AsciiTt|yDestroy|
|000040b0| 28 77 29 0a 20 20 20 20 | 20 57 69 64 67 65 74 20 |(w). | Widget |
|000040c0| 77 3b 0a 7b 0a 7d 0a 0a | 58 61 77 54 65 78 74 50 |w;.{.}..|XawTextP|
|000040d0| 6f 73 69 74 69 6f 6e 20 | 58 61 77 47 65 74 4c 61 |osition |XawGetLa|
|000040e0| 73 74 50 6f 73 20 28 77 | 29 0a 20 20 20 20 20 57 |stPos (w|). W|
|000040f0| 69 64 67 65 74 20 77 3b | 0a 7b 0a 20 20 20 20 41 |idget w;|.{. A|
|00004100| 73 63 69 69 54 74 79 57 | 69 64 67 65 74 20 61 74 |sciiTtyW|idget at|
|00004110| 77 20 3d 20 28 41 73 63 | 69 69 54 74 79 57 69 64 |w = (Asc|iiTtyWid|
|00004120| 67 65 74 29 20 77 3b 0a | 0a 20 20 20 20 72 65 74 |get) w;.|. ret|
|00004130| 75 72 6e 20 61 74 77 2d | 3e 74 65 78 74 2e 6c 61 |urn atw-|>text.la|
|00004140| 73 74 50 6f 73 3b 09 09 | 2f 2a 20 47 72 61 62 20 |stPos;..|/* Grab |
|00004150| 69 74 20 72 69 67 68 74 | 20 6f 75 74 20 6f 66 20 |it right| out of |
|00004160| 77 69 64 67 65 74 20 2a | 2f 0a 09 09 09 09 09 2f |widget *|/....../|
|00004170| 2a 20 49 20 64 6f 6e 27 | 74 20 6b 6e 6f 77 20 68 |* I don'|t know h|
|00004180| 6f 77 20 65 6c 73 65 20 | 74 6f 20 67 65 74 20 74 |ow else |to get t|
|00004190| 68 69 73 20 2a 2f 0a 7d | 0a 0a 76 6f 69 64 20 58 |his */.}|..void X|
|000041a0| 61 77 41 73 63 69 69 54 | 74 79 4f 75 74 70 75 74 |awAsciiT|tyOutput|
|000041b0| 20 28 77 2c 20 74 65 78 | 74 2c 20 6c 65 6e 29 0a | (w, tex|t, len).|
|000041c0| 20 20 20 20 20 57 69 64 | 67 65 74 20 77 3b 0a 20 | Wid|get w;. |
|000041d0| 20 20 20 20 63 68 61 72 | 20 2a 74 65 78 74 3b 0a | char| *text;.|
|000041e0| 20 20 20 20 20 69 6e 74 | 20 6c 65 6e 3b 0a 7b 0a | int| len;.{.|
|000041f0| 20 20 20 20 41 73 63 69 | 69 54 74 79 57 69 64 67 | Asci|iTtyWidg|
|00004200| 65 74 20 61 74 77 20 3d | 20 28 41 73 63 69 69 54 |et atw =| (AsciiT|
|00004210| 74 79 57 69 64 67 65 74 | 29 20 77 3b 0a 20 20 20 |tyWidget|) w;. |
|00004220| 20 58 61 77 54 65 78 74 | 42 6c 6f 63 6b 20 62 6c | XawText|Block bl|
|00004230| 6f 63 6b 3b 0a 20 20 20 | 20 58 61 77 54 65 78 74 |ock;. | XawText|
|00004240| 50 6f 73 69 74 69 6f 6e | 20 65 6e 64 2c 20 64 65 |Position| end, de|
|00004250| 6c 3b 0a 20 20 20 20 58 | 61 77 54 65 78 74 50 6f |l;. X|awTextPo|
|00004260| 73 69 74 69 6f 6e 20 70 | 6f 73 20 3d 20 61 74 77 |sition p|os = atw|
|00004270| 2d 3e 61 73 63 69 69 74 | 74 79 2e 75 73 65 72 49 |->asciit|ty.userI|
|00004280| 6e 70 75 74 53 74 61 72 | 74 3b 0a 20 20 20 20 0a |nputStar|t;. .|
|00004290| 20 20 20 20 69 66 20 28 | 6c 65 6e 20 3c 3d 20 30 | if (|len <= 0|
|000042a0| 29 20 72 65 74 75 72 6e | 3b 0a 20 20 20 20 62 6c |) return|;. bl|
|000042b0| 6f 63 6b 2e 66 69 72 73 | 74 50 6f 73 20 3d 20 30 |ock.firs|tPos = 0|
|000042c0| 3b 0a 20 20 20 20 62 6c | 6f 63 6b 2e 6c 65 6e 67 |;. bl|ock.leng|
|000042d0| 74 68 20 3d 20 6c 65 6e | 3b 0a 20 20 20 20 62 6c |th = len|;. bl|
|000042e0| 6f 63 6b 2e 70 74 72 20 | 3d 20 74 65 78 74 3b 0a |ock.ptr |= text;.|
|000042f0| 20 20 20 20 62 6c 6f 63 | 6b 2e 66 6f 72 6d 61 74 | bloc|k.format|
|00004300| 20 3d 20 58 41 5f 53 54 | 52 49 4e 47 3b 09 09 2f | = XA_ST|RING;../|
|00004310| 2a 20 57 68 61 74 20 74 | 68 65 20 68 65 79 20 2e |* What t|he hey .|
|00004320| 2e 2e 20 2a 2f 0a 20 20 | 20 20 53 65 74 45 64 69 |.. */. | SetEdi|
|00004330| 74 54 79 70 65 20 28 77 | 2c 20 58 61 77 74 65 78 |tType (w|, Xawtex|
|00004340| 74 45 64 69 74 29 3b 0a | 20 20 20 20 58 61 77 54 |tEdit);.| XawT|
|00004350| 65 78 74 52 65 70 6c 61 | 63 65 20 28 77 2c 20 70 |extRepla|ce (w, p|
|00004360| 6f 73 2c 20 70 6f 73 2c | 20 26 62 6c 6f 63 6b 29 |os, pos,| &block)|
|00004370| 3b 0a 20 20 20 20 61 74 | 77 2d 3e 61 73 63 69 69 |;. at|w->ascii|
|00004380| 74 74 79 2e 75 73 65 72 | 49 6e 70 75 74 53 74 61 |tty.user|InputSta|
|00004390| 72 74 20 2b 3d 20 6c 65 | 6e 3b 0a 20 20 20 20 65 |rt += le|n;. e|
|000043a0| 6e 64 20 3d 20 58 61 77 | 47 65 74 4c 61 73 74 50 |nd = Xaw|GetLastP|
|000043b0| 6f 73 28 77 29 3b 0a 20 | 20 20 20 69 66 20 28 65 |os(w);. | if (e|
|000043c0| 6e 64 20 3e 20 61 74 77 | 2d 3e 61 73 63 69 69 74 |nd > atw|->asciit|
|000043d0| 74 79 2e 74 65 78 74 4c | 69 6d 69 74 29 20 7b 0a |ty.textL|imit) {.|
|000043e0| 09 62 6c 6f 63 6b 2e 6c | 65 6e 67 74 68 20 3d 20 |.block.l|ength = |
|000043f0| 30 3b 0a 09 64 65 6c 20 | 3d 20 61 74 77 2d 3e 61 |0;..del |= atw->a|
|00004400| 73 63 69 69 74 74 79 2e | 74 65 78 74 4c 69 6d 69 |sciitty.|textLimi|
|00004410| 74 20 2f 20 32 3b 0a 09 | 58 61 77 54 65 78 74 52 |t / 2;..|XawTextR|
|00004420| 65 70 6c 61 63 65 20 28 | 77 2c 20 30 2c 20 64 65 |eplace (|w, 0, de|
|00004430| 6c 2c 20 26 62 6c 6f 63 | 6b 29 3b 0a 09 65 6e 64 |l, &bloc|k);..end|
|00004440| 20 2d 3d 20 64 65 6c 3b | 0a 09 61 74 77 2d 3e 61 | -= del;|..atw->a|
|00004450| 73 63 69 69 74 74 79 2e | 75 73 65 72 49 6e 70 75 |sciitty.|userInpu|
|00004460| 74 53 74 61 72 74 20 2d | 3d 20 64 65 6c 3b 0a 20 |tStart -|= del;. |
|00004470| 20 20 20 7d 0a 20 20 20 | 20 53 65 74 45 64 69 74 | }. | SetEdit|
|00004480| 54 79 70 65 20 28 77 2c | 20 58 61 77 74 65 78 74 |Type (w,| Xawtext|
|00004490| 41 70 70 65 6e 64 29 3b | 0a 20 20 20 20 58 61 77 |Append);|. Xaw|
|000044a0| 54 65 78 74 53 65 74 49 | 6e 73 65 72 74 69 6f 6e |TextSetI|nsertion|
|000044b0| 50 6f 69 6e 74 20 28 77 | 2c 20 65 6e 64 29 3b 0a |Point (w|, end);.|
|000044c0| 7d 0a 0a 76 6f 69 64 20 | 58 61 77 41 73 63 69 69 |}..void |XawAscii|
|000044d0| 54 74 79 53 69 6d 75 6c | 61 74 65 49 6e 70 75 74 |TtySimul|ateInput|
|000044e0| 20 28 77 2c 20 74 78 74 | 2c 20 6c 65 6e 29 0a 20 | (w, txt|, len). |
|000044f0| 20 20 20 20 57 69 64 67 | 65 74 20 77 3b 0a 20 20 | Widg|et w;. |
|00004500| 20 20 20 63 68 61 72 20 | 2a 74 78 74 3b 0a 20 20 | char |*txt;. |
|00004510| 20 20 20 69 6e 74 20 6c | 65 6e 3b 0a 7b 0a 20 20 | int l|en;.{. |
|00004520| 20 20 58 61 77 54 65 78 | 74 42 6c 6f 63 6b 20 62 | XawTex|tBlock b|
|00004530| 6c 6f 63 6b 3b 0a 20 20 | 20 20 58 61 77 54 65 78 |lock;. | XawTex|
|00004540| 74 50 6f 73 69 74 69 6f | 6e 20 70 6f 73 20 3d 20 |tPositio|n pos = |
|00004550| 58 61 77 47 65 74 4c 61 | 73 74 50 6f 73 20 28 77 |XawGetLa|stPos (w|
|00004560| 29 3b 0a 20 20 20 20 0a | 20 20 20 20 69 66 20 28 |);. .| if (|
|00004570| 6c 65 6e 20 3c 3d 20 30 | 29 20 72 65 74 75 72 6e |len <= 0|) return|
|00004580| 3b 0a 20 20 20 20 62 6c | 6f 63 6b 2e 66 69 72 73 |;. bl|ock.firs|
|00004590| 74 50 6f 73 20 3d 20 30 | 3b 0a 20 20 20 20 62 6c |tPos = 0|;. bl|
|000045a0| 6f 63 6b 2e 6c 65 6e 67 | 74 68 20 3d 20 6c 65 6e |ock.leng|th = len|
|000045b0| 3b 0a 20 20 20 20 62 6c | 6f 63 6b 2e 70 74 72 20 |;. bl|ock.ptr |
|000045c0| 3d 20 74 78 74 3b 0a 20 | 20 20 20 62 6c 6f 63 6b |= txt;. | block|
|000045d0| 2e 66 6f 72 6d 61 74 20 | 3d 20 58 41 5f 53 54 52 |.format |= XA_STR|
|000045e0| 49 4e 47 3b 09 09 2f 2a | 20 57 68 61 74 20 74 68 |ING;../*| What th|
|000045f0| 65 20 68 65 79 20 2e 2e | 2e 20 2a 2f 0a 20 20 20 |e hey ..|. */. |
|00004600| 20 58 61 77 54 65 78 74 | 52 65 70 6c 61 63 65 20 | XawText|Replace |
|00004610| 28 77 2c 20 70 6f 73 2c | 20 70 6f 73 2c 20 26 62 |(w, pos,| pos, &b|
|00004620| 6c 6f 63 6b 29 3b 0a 7d | 20 20 20 20 0a 0a 73 74 |lock);.}| ..st|
|00004630| 61 74 69 63 20 76 6f 69 | 64 20 53 65 6e 64 43 6d |atic voi|d SendCm|
|00004640| 64 28 77 2c 20 65 76 65 | 6e 74 2c 20 70 61 72 61 |d(w, eve|nt, para|
|00004650| 6d 73 2c 20 6e 75 6d 5f | 70 61 72 61 6d 73 29 0a |ms, num_|params).|
|00004660| 20 20 20 20 20 57 69 64 | 67 65 74 20 77 3b 0a 20 | Wid|get w;. |
|00004670| 20 20 20 20 58 45 76 65 | 6e 74 20 2a 65 76 65 6e | XEve|nt *even|
|00004680| 74 3b 0a 20 20 20 20 20 | 53 74 72 69 6e 67 20 2a |t;. |String *|
|00004690| 70 61 72 61 6d 73 3b 0a | 20 20 20 20 20 43 61 72 |params;.| Car|
|000046a0| 64 69 6e 61 6c 20 2a 6e | 75 6d 5f 70 61 72 61 6d |dinal *n|um_param|
|000046b0| 73 3b 0a 7b 0a 20 20 20 | 20 41 73 63 69 69 54 74 |s;.{. | AsciiTt|
|000046c0| 79 57 69 64 67 65 74 20 | 61 74 77 20 3d 20 28 41 |yWidget |atw = (A|
|000046d0| 73 63 69 69 54 74 79 57 | 69 64 67 65 74 29 20 77 |sciiTtyW|idget) w|
|000046e0| 3b 0a 20 20 20 20 58 61 | 77 54 65 78 74 50 6f 73 |;. Xa|wTextPos|
|000046f0| 69 74 69 6f 6e 20 73 74 | 61 72 74 3b 0a 20 20 20 |ition st|art;. |
|00004700| 20 58 61 77 54 65 78 74 | 50 6f 73 69 74 69 6f 6e | XawText|Position|
|00004710| 20 65 6e 64 3b 0a 20 20 | 20 20 63 68 61 72 20 2a | end;. | char *|
|00004720| 74 78 74 3b 0a 0a 20 20 | 20 20 58 61 77 41 73 63 |txt;.. | XawAsc|
|00004730| 69 69 54 74 79 53 69 6d | 75 6c 61 74 65 49 6e 70 |iiTtySim|ulateInp|
|00004740| 75 74 20 28 77 2c 20 22 | 5c 6e 22 2c 20 31 29 3b |ut (w, "|\n", 1);|
|00004750| 0a 20 20 20 20 73 74 61 | 72 74 20 3d 20 61 74 77 |. sta|rt = atw|
|00004760| 2d 3e 61 73 63 69 69 74 | 74 79 2e 75 73 65 72 49 |->asciit|ty.userI|
|00004770| 6e 70 75 74 53 74 61 72 | 74 3b 0a 20 20 20 20 65 |nputStar|t;. e|
|00004780| 6e 64 20 3d 20 58 61 77 | 47 65 74 4c 61 73 74 50 |nd = Xaw|GetLastP|
|00004790| 6f 73 28 77 29 3b 0a 20 | 20 20 20 61 74 77 2d 3e |os(w);. | atw->|
|000047a0| 61 73 63 69 69 74 74 79 | 2e 75 73 65 72 49 6e 70 |asciitty|.userInp|
|000047b0| 75 74 53 74 61 72 74 20 | 3d 20 65 6e 64 3b 0a 20 |utStart |= end;. |
|000047c0| 20 20 20 69 66 20 28 73 | 74 61 72 74 20 3c 20 65 | if (s|tart < e|
|000047d0| 6e 64 29 20 7b 0a 09 74 | 78 74 20 3d 20 28 63 68 |nd) {..t|xt = (ch|
|000047e0| 61 72 20 2a 29 20 5f 58 | 61 77 54 65 78 74 47 65 |ar *) _X|awTextGe|
|000047f0| 74 54 65 78 74 20 28 61 | 74 77 2c 20 73 74 61 72 |tText (a|tw, star|
|00004800| 74 2c 20 65 6e 64 29 3b | 20 2f 2a 20 46 6f 75 6e |t, end);| /* Foun|
|00004810| 64 20 74 68 69 73 20 62 | 79 20 75 73 69 6e 67 20 |d this b|y using |
|00004820| 74 68 65 20 66 6f 72 63 | 65 20 2a 2f 0a 09 0a 09 |the forc|e */....|
|00004830| 53 65 6e 64 53 65 72 76 | 65 72 4e 6f 45 63 68 6f |SendServ|erNoEcho|
|00004840| 28 74 78 74 29 3b 09 09 | 2f 2a 20 57 68 65 65 2e |(txt);..|/* Whee.|
|00004850| 2e 20 68 75 67 65 20 61 | 62 73 74 72 61 63 74 69 |. huge a|bstracti|
|00004860| 6f 6e 20 62 72 65 61 6b | 20 2a 2f 0a 09 53 65 74 |on break| */..Set|
|00004870| 4f 75 74 70 75 74 53 69 | 6e 6b 20 28 77 29 3b 09 |OutputSi|nk (w);.|
|00004880| 09 2f 2a 20 61 20 63 61 | 6c 6c 62 61 63 6b 20 77 |./* a ca|llback w|
|00004890| 6f 75 6c 64 20 62 65 20 | 73 6f 20 6d 75 63 68 20 |ould be |so much |
|000048a0| 6e 69 63 65 72 20 2a 2f | 0a 09 09 09 09 09 2f 2a |nicer */|....../*|
|000048b0| 20 62 75 74 20 49 27 6d | 20 73 75 63 68 20 61 20 | but I'm| such a |
|000048c0| 6c 61 7a 79 20 62 75 6d | 20 2a 2f 0a 09 58 74 46 |lazy bum| */..XtF|
|000048d0| 72 65 65 28 74 78 74 29 | 3b 0a 20 20 20 20 7d 0a |ree(txt)|;. }.|
|000048e0| 7d 0a 09 09 20 20 20 20 | 0a 29 3b 0a 20 20 20 20 |}... |.);. |
|000048f0| 20 0a 23 65 6e 64 69 66 | 0a 00 00 00 00 00 00 00 | .#endif|........|
|00004900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a00| 6b 67 6f 2f 66 6f 72 77 | 61 72 64 2e 78 62 6d 00 |kgo/forw|ard.xbm.|
|00004a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a60| 00 00 00 00 31 30 30 36 | 36 34 00 00 30 31 36 37 |....1006|64..0167|
|00004a70| 37 31 00 00 30 30 30 30 | 30 30 00 00 30 30 30 30 |71..0000|00..0000|
|00004a80| 30 30 30 30 33 37 30 00 | 30 35 33 37 36 31 36 35 |0000370.|05376165|
|00004a90| 36 31 37 00 30 31 30 37 | 35 31 00 20 30 00 00 00 |617.0107|51. 0...|
|00004aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b00| 00 33 37 37 37 37 37 30 | 33 34 30 31 00 00 00 00 |.3777770|3401....|
|00004b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b50| 00 00 00 00 00 00 00 00 | 00 00 20 31 00 20 30 00 |........|.. 1. 0.|
|00004b60| 20 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00004b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c00| 23 64 65 66 69 6e 65 20 | 66 6f 72 77 61 72 64 5f |#define |forward_|
|00004c10| 77 69 64 74 68 20 31 36 | 0a 23 64 65 66 69 6e 65 |width 16|.#define|
|00004c20| 20 66 6f 72 77 61 72 64 | 5f 68 65 69 67 68 74 20 | forward|_height |
|00004c30| 31 33 0a 73 74 61 74 69 | 63 20 63 68 61 72 20 66 |13.stati|c char f|
|00004c40| 6f 72 77 61 72 64 5f 62 | 69 74 73 5b 5d 20 3d 20 |orward_b|its[] = |
|00004c50| 7b 0a 20 20 20 30 78 30 | 30 2c 20 30 78 30 30 2c |{. 0x0|0, 0x00,|
|00004c60| 20 30 78 30 30 2c 20 30 | 78 30 30 2c 20 30 78 30 | 0x00, 0|x00, 0x0|
|00004c70| 30 2c 20 30 78 30 34 2c | 20 30 78 30 30 2c 20 30 |0, 0x04,| 0x00, 0|
|00004c80| 78 30 63 2c 20 30 78 66 | 65 2c 20 30 78 31 37 2c |x0c, 0xf|e, 0x17,|
|00004c90| 20 30 78 30 32 2c 20 30 | 78 32 30 2c 0a 20 20 20 | 0x02, 0|x20,. |
|00004ca0| 30 78 30 32 2c 20 30 78 | 34 30 2c 20 30 78 30 32 |0x02, 0x|40, 0x02|
|00004cb0| 2c 20 30 78 36 30 2c 20 | 30 78 66 65 2c 20 30 78 |, 0x60, |0xfe, 0x|
|00004cc0| 33 37 2c 20 30 78 66 65 | 2c 20 30 78 31 66 2c 20 |37, 0xfe|, 0x1f, |
|00004cd0| 30 78 30 30 2c 20 30 78 | 30 63 2c 20 30 78 30 30 |0x00, 0x|0c, 0x00|
|00004ce0| 2c 20 30 78 30 34 2c 0a | 20 20 20 30 78 30 30 2c |, 0x04,.| 0x00,|
|00004cf0| 20 30 78 30 30 7d 3b 0a | 00 00 00 00 00 00 00 00 | 0x00};.|........|
|00004d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e00| 6b 67 6f 2f 47 6f 62 61 | 6e 2e 63 00 00 00 00 00 |kgo/Goba|n.c.....|
|00004e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e60| 00 00 00 00 31 30 30 36 | 36 34 00 00 30 31 36 37 |....1006|64..0167|
|00004e70| 37 31 00 00 30 30 30 30 | 30 30 00 00 30 30 30 30 |71..0000|00..0000|
|00004e80| 30 31 31 36 30 31 37 00 | 30 35 34 30 30 35 34 34 |0116017.|05400544|
|00004e90| 37 31 32 00 30 30 37 37 | 35 36 00 20 30 00 00 00 |712.0077|56. 0...|
|00004ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f00| 00 33 37 37 37 37 37 30 | 33 34 30 31 00 00 00 00 |.3777770|3401....|
|00004f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f50| 00 00 00 00 00 00 00 00 | 00 00 20 31 00 20 30 00 |........|.. 1. 0.|
|00004f60| 20 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00004f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005000| 0a 0a 2f 2a 20 20 43 6f | 70 79 72 69 67 68 74 20 |../* Co|pyright |
|00005010| 28 63 29 20 31 39 39 33 | 20 62 79 20 4b 65 6e 6e |(c) 1993| by Kenn|
|00005020| 65 74 68 20 44 75 64 61 | 20 3c 6b 6b 6b 6b 65 6e |eth Duda| <kkkken|
|00005030| 40 61 74 68 65 6e 61 2e | 6d 69 74 2e 65 64 75 3e |@athena.|mit.edu>|
|00005040| 2e 20 20 0a 20 2a 20 20 | 41 6c 6c 20 72 69 67 68 |. . * |All righ|
|00005050| 74 73 20 72 65 73 65 72 | 76 65 64 2e 0a 20 2a 0a |ts reser|ved.. *.|
|00005060| 20 2a 20 20 54 68 69 73 | 20 70 72 6f 67 72 61 6d | * This| program|
|00005070| 20 69 73 20 64 69 73 74 | 72 69 62 75 74 65 64 20 | is dist|ributed |
|00005080| 69 6e 20 74 68 65 20 68 | 6f 70 65 20 74 68 61 74 |in the h|ope that|
|00005090| 20 69 74 20 77 69 6c 6c | 20 62 65 20 75 73 65 66 | it will| be usef|
|000050a0| 75 6c 2e 0a 20 2a 20 20 | 55 73 65 20 61 6e 64 20 |ul.. * |Use and |
|000050b0| 63 6f 70 79 69 6e 67 20 | 6f 66 20 74 68 69 73 20 |copying |of this |
|000050c0| 73 6f 66 74 77 61 72 65 | 20 61 6e 64 20 70 72 65 |software| and pre|
|000050d0| 70 61 72 61 74 69 6f 6e | 20 6f 66 20 64 65 72 69 |paration| of deri|
|000050e0| 76 61 74 69 76 65 20 77 | 6f 72 6b 73 0a 20 2a 20 |vative w|orks. * |
|000050f0| 20 62 61 73 65 64 20 75 | 70 6f 6e 20 74 68 69 73 | based u|pon this|
|00005100| 20 73 6f 66 74 77 61 72 | 65 20 61 72 65 20 70 65 | softwar|e are pe|
|00005110| 72 6d 69 74 74 65 64 2c | 20 73 6f 20 6c 6f 6e 67 |rmitted,| so long|
|00005120| 20 61 73 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | as the |followin|
|00005130| 67 0a 20 2a 20 20 63 6f | 6e 64 69 74 69 6f 6e 73 |g. * co|nditions|
|00005140| 20 61 72 65 20 6d 65 74 | 3a 0a 20 2a 20 20 20 20 | are met|:. * |
|00005150| 20 20 20 6f 20 63 72 65 | 64 69 74 20 74 6f 20 74 | o cre|dit to t|
|00005160| 68 65 20 61 75 74 68 6f | 72 20 69 73 20 61 63 6b |he autho|r is ack|
|00005170| 6e 6f 77 6c 65 64 67 65 | 64 20 0a 20 2a 20 20 20 |nowledge|d . * |
|00005180| 20 20 20 20 6f 20 6e 6f | 20 66 65 65 73 20 6f 72 | o no| fees or|
|00005190| 20 63 6f 6d 70 65 6e 73 | 61 74 69 6f 6e 20 61 72 | compens|ation ar|
|000051a0| 65 20 63 68 61 72 67 65 | 64 20 66 6f 72 20 75 73 |e charge|d for us|
|000051b0| 65 2c 20 63 6f 70 69 65 | 73 2c 20 6f 72 0a 20 2a |e, copie|s, or. *|
|000051c0| 20 20 20 20 20 20 20 20 | 20 61 63 63 65 73 73 20 | | access |
|000051d0| 74 6f 20 74 68 69 73 20 | 73 6f 66 74 77 61 72 65 |to this |software|
|000051e0| 0a 20 2a 20 20 20 20 20 | 20 20 6f 20 74 68 69 73 |. * | o this|
|000051f0| 20 63 6f 70 79 72 69 67 | 68 74 20 6e 6f 74 69 63 | copyrig|ht notic|
|00005200| 65 20 69 73 20 69 6e 63 | 6c 75 64 65 64 20 69 6e |e is inc|luded in|
|00005210| 74 61 63 74 2e 0a 20 2a | 20 20 54 68 69 73 20 73 |tact.. *| This s|
|00005220| 6f 66 74 77 61 72 65 20 | 69 73 20 6d 61 64 65 20 |oftware |is made |
|00005230| 61 76 61 69 6c 61 62 6c | 65 20 41 53 20 49 53 2c |availabl|e AS IS,|
|00005240| 20 61 6e 64 20 6e 6f 20 | 77 61 72 72 61 6e 74 79 | and no |warranty|
|00005250| 20 69 73 20 6d 61 64 65 | 20 61 62 6f 75 74 20 0a | is made| about .|
|00005260| 20 2a 20 20 74 68 65 20 | 73 6f 66 74 77 61 72 65 | * the |software|
|00005270| 20 6f 72 20 69 74 73 20 | 70 65 72 66 6f 72 6d 61 | or its |performa|
|00005280| 6e 63 65 2e 20 0a 20 2a | 20 0a 20 2a 20 20 42 75 |nce. . *| . * Bu|
|00005290| 67 20 64 65 73 63 72 69 | 70 74 69 6f 6e 73 2c 20 |g descri|ptions, |
|000052a0| 75 73 65 20 72 65 70 6f | 72 74 73 2c 20 63 6f 6d |use repo|rts, com|
|000052b0| 6d 65 6e 74 73 20 6f 72 | 20 73 75 67 67 65 73 74 |ments or| suggest|
|000052c0| 69 6f 6e 73 20 61 72 65 | 20 77 65 6c 63 6f 6d 65 |ions are| welcome|
|000052d0| 2e 0a 20 2a 20 20 53 65 | 6e 64 20 74 68 65 6d 20 |.. * Se|nd them |
|000052e0| 74 6f 20 3c 6b 6b 6b 6b | 65 6e 40 61 74 68 65 6e |to <kkkk|en@athen|
|000052f0| 61 2e 6d 69 74 2e 65 64 | 75 3e 2e 0a 20 2a 2f 0a |a.mit.ed|u>.. */.|
|00005300| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 58 31 31 2f 58 |.#includ|e <X11/X|
|00005310| 6c 69 62 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |lib.h>.#|include |
|00005320| 3c 58 31 31 2f 53 74 72 | 69 6e 67 44 65 66 73 2e |<X11/Str|ingDefs.|
|00005330| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 58 31 31 |h>.#incl|ude <X11|
|00005340| 2f 49 6e 74 72 69 6e 73 | 69 63 50 2e 68 3e 0a 23 |/Intrins|icP.h>.#|
|00005350| 69 6e 63 6c 75 64 65 20 | 3c 58 31 31 2f 53 68 65 |include |<X11/She|
|00005360| 6c 6c 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |ll.h>.#i|nclude <|
|00005370| 58 31 31 2f 58 61 77 2f | 58 61 77 49 6e 69 74 2e |X11/Xaw/|XawInit.|
|00005380| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 58 31 31 |h>.#incl|ude <X11|
|00005390| 2f 58 61 77 2f 53 69 6d | 70 6c 65 4d 65 6e 75 2e |/Xaw/Sim|pleMenu.|
|000053a0| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 58 31 31 |h>.#incl|ude <X11|
|000053b0| 2f 58 61 77 2f 53 6d 65 | 42 53 42 2e 68 3e 0a 23 |/Xaw/Sme|BSB.h>.#|
|000053c0| 69 6e 63 6c 75 64 65 20 | 3c 58 31 31 2f 58 61 77 |include |<X11/Xaw|
|000053d0| 2f 53 6d 65 4c 69 6e 65 | 2e 68 3e 0a 23 69 6e 63 |/SmeLine|.h>.#inc|
|000053e0| 6c 75 64 65 20 3c 58 31 | 31 2f 58 61 77 2f 4d 65 |lude <X1|1/Xaw/Me|
|000053f0| 6e 75 42 75 74 74 6f 6e | 2e 68 3e 0a 23 69 6e 63 |nuButton|.h>.#inc|
|00005400| 6c 75 64 65 20 22 47 6f | 62 61 6e 50 2e 68 22 0a |lude "Go|banP.h".|
|00005410| 0a 23 64 65 66 69 6e 65 | 20 6f 66 66 73 65 74 28 |.#define| offset(|
|00005420| 66 69 65 6c 64 29 20 58 | 74 4f 66 66 73 65 74 28 |field) X|tOffset(|
|00005430| 47 6f 62 61 6e 57 69 64 | 67 65 74 2c 67 6f 62 61 |GobanWid|get,goba|
|00005440| 6e 2e 66 69 65 6c 64 29 | 0a 23 64 65 66 69 6e 65 |n.field)|.#define|
|00005450| 20 67 6f 66 66 73 65 74 | 28 66 69 65 6c 64 29 20 | goffset|(field) |
|00005460| 58 74 4f 66 66 73 65 74 | 28 57 69 64 67 65 74 2c |XtOffset|(Widget,|
|00005470| 63 6f 72 65 2e 66 69 65 | 6c 64 29 0a 0a 23 64 65 |core.fie|ld)..#de|
|00005480| 66 69 6e 65 20 4d 49 4e | 57 49 44 54 48 20 32 31 |fine MIN|WIDTH 21|
|00005490| 30 0a 23 64 65 66 69 6e | 65 20 4d 49 4e 48 45 49 |0.#defin|e MINHEI|
|000054a0| 47 48 54 20 32 31 30 0a | 23 64 65 66 69 6e 65 20 |GHT 210.|#define |
|000054b0| 44 45 46 57 49 44 54 48 | 20 33 38 30 0a 23 64 65 |DEFWIDTH| 380.#de|
|000054c0| 66 69 6e 65 20 44 45 46 | 48 45 49 47 48 54 20 33 |fine DEF|HEIGHT 3|
|000054d0| 38 30 0a 0a 23 64 65 66 | 69 6e 65 20 6d 61 78 28 |80..#def|ine max(|
|000054e0| 61 2c 20 62 29 20 28 28 | 61 29 20 3e 20 28 62 29 |a, b) ((|a) > (b)|
|000054f0| 20 3f 20 28 61 29 20 3a | 20 28 62 29 29 0a 23 64 | ? (a) :| (b)).#d|
|00005500| 65 66 69 6e 65 20 6d 69 | 6e 28 61 2c 20 62 29 20 |efine mi|n(a, b) |
|00005510| 28 28 61 29 20 3c 20 28 | 62 29 20 3f 20 28 61 29 |((a) < (|b) ? (a)|
|00005520| 20 3a 20 28 62 29 29 0a | 23 64 65 66 69 6e 65 20 | : (b)).|#define |
|00005530| 61 62 73 28 61 29 20 28 | 28 61 29 20 3c 20 30 20 |abs(a) (|(a) < 0 |
|00005540| 3f 20 2d 28 61 29 20 3a | 20 28 61 29 29 0a 0a 73 |? -(a) :| (a))..s|
|00005550| 74 61 74 69 63 20 76 6f | 69 64 20 47 6f 62 61 6e |tatic vo|id Goban|
|00005560| 43 6c 61 73 73 49 6e 69 | 74 69 61 6c 69 7a 65 28 |ClassIni|tialize(|
|00005570| 29 3b 0a 73 74 61 74 69 | 63 20 76 6f 69 64 20 47 |);.stati|c void G|
|00005580| 6f 62 61 6e 49 6e 69 74 | 69 61 6c 69 7a 65 28 29 |obanInit|ialize()|
|00005590| 2c 20 47 6f 62 61 6e 52 | 65 61 6c 69 7a 65 28 29 |, GobanR|ealize()|
|000055a0| 2c 20 47 6f 62 61 6e 44 | 65 73 74 72 6f 79 28 29 |, GobanD|estroy()|
|000055b0| 2c 20 47 6f 62 61 6e 52 | 65 73 69 7a 65 28 29 2c |, GobanR|esize(),|
|000055c0| 20 47 6f 62 61 6e 52 65 | 64 69 73 70 6c 61 79 28 | GobanRe|display(|
|000055d0| 29 3b 0a 73 74 61 74 69 | 63 20 42 6f 6f 6c 65 61 |);.stati|c Boolea|
|000055e0| 6e 20 47 6f 62 61 6e 53 | 65 74 56 61 6c 75 65 73 |n GobanS|etValues|
|000055f0| 28 29 3b 0a 73 74 61 74 | 69 63 20 76 6f 69 64 20 |();.stat|ic void |
|00005600| 43 6f 6e 73 69 64 65 72 | 28 29 2c 20 41 64 6a 75 |Consider|(), Adju|
|00005610| 73 74 28 29 2c 20 43 6f | 6d 6d 69 74 28 29 2c 20 |st(), Co|mmit(), |
|00005620| 42 61 63 6b 75 70 28 29 | 2c 20 46 6f 72 77 61 72 |Backup()|, Forwar|
|00005630| 64 28 29 3b 0a 73 74 61 | 74 69 63 20 76 6f 69 64 |d();.sta|tic void|
|00005640| 20 46 69 72 73 74 28 29 | 2c 20 43 75 72 72 65 6e | First()|, Curren|
|00005650| 74 28 29 2c 20 4c 61 73 | 74 28 29 2c 20 48 61 6e |t(), Las|t(), Han|
|00005660| 64 69 63 61 70 28 29 2c | 20 55 6e 64 6f 28 29 2c |dicap(),| Undo(),|
|00005670| 20 4e 65 77 28 29 2c 20 | 43 6c 65 61 72 28 29 2c | New(), |Clear(),|
|00005680| 20 51 75 69 74 28 29 2c | 20 50 61 73 73 28 29 2c | Quit(),| Pass(),|
|00005690| 20 44 6f 6e 65 28 29 3b | 0a 73 74 61 74 69 63 20 | Done();|.static |
|000056a0| 76 6f 69 64 20 64 6f 5f | 62 61 63 6b 75 70 28 29 |void do_|backup()|
|000056b0| 2c 20 64 6f 5f 66 6f 72 | 77 61 72 64 28 29 2c 20 |, do_for|ward(), |
|000056c0| 64 6f 5f 63 6c 65 61 72 | 28 29 2c 20 64 6f 5f 6e |do_clear|(), do_n|
|000056d0| 65 77 28 29 3b 0a 73 74 | 61 74 69 63 20 76 6f 69 |ew();.st|atic voi|
|000056e0| 64 20 64 6f 5f 75 6e 64 | 6f 28 29 2c 20 64 6f 5f |d do_und|o(), do_|
|000056f0| 70 61 73 73 28 29 2c 20 | 64 6f 5f 71 75 69 74 28 |pass(), |do_quit(|
|00005700| 29 2c 20 64 6f 5f 64 6f | 6e 65 28 29 2c 20 64 6f |), do_do|ne(), do|
|00005710| 5f 63 75 72 72 65 6e 74 | 28 29 2c 20 64 6f 5f 66 |_current|(), do_f|
|00005720| 69 72 73 74 28 29 2c 20 | 64 6f 5f 6c 61 73 74 28 |irst(), |do_last(|
|00005730| 29 3b 0a 73 74 61 74 69 | 63 20 76 6f 69 64 20 52 |);.stati|c void R|
|00005740| 6f 6c 6c 46 6f 72 77 61 | 72 64 20 28 47 6f 62 61 |ollForwa|rd (Goba|
|00005750| 6e 57 69 64 67 65 74 20 | 67 29 2c 20 4d 61 79 62 |nWidget |g), Mayb|
|00005760| 65 43 75 72 72 65 6e 74 | 28 47 6f 62 61 6e 57 69 |eCurrent|(GobanWi|
|00005770| 64 67 65 74 20 67 29 3b | 0a 0a 73 74 61 74 69 63 |dget g);|..static|
|00005780| 20 63 68 61 72 20 64 65 | 66 61 75 6c 74 54 72 61 | char de|faultTra|
|00005790| 6e 73 6c 61 74 69 6f 6e | 73 5b 5d 20 3d 0a 20 20 |nslation|s[] =. |
|000057a0| 20 20 22 3c 42 74 6e 31 | 44 6f 77 6e 3e 3a 20 20 | "<Btn1|Down>: |
|000057b0| 20 20 20 20 20 63 6f 6e | 73 69 64 65 72 28 29 20 | con|sider() |
|000057c0| 20 20 20 20 20 20 20 20 | 20 20 20 5c 6e 5c 0a 20 | | \n\. |
|000057d0| 20 20 20 20 3c 42 74 6e | 33 44 6f 77 6e 3e 3a 20 | <Btn|3Down>: |
|000057e0| 20 20 20 20 20 20 63 6f | 6e 73 69 64 65 72 28 29 | co|nsider()|
|000057f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 5c 6e 5c 0a | | \n\.|
|00005800| 20 20 20 20 20 3c 42 74 | 6e 4d 6f 74 69 6f 6e 3e | <Bt|nMotion>|
|00005810| 3a 20 20 20 20 20 20 61 | 64 6a 75 73 74 28 29 20 |: a|djust() |
|00005820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 5c 6e 5c | | \n\|
|00005830| 0a 20 20 20 20 20 3c 42 | 74 6e 55 70 3e 3a 09 20 |. <B|tnUp>:. |
|00005840| 20 20 20 20 20 20 63 6f | 6d 6d 69 74 28 29 20 20 | co|mmit() |
|00005850| 20 20 20 20 20 20 20 20 | 20 20 20 20 5c 6e 5c 0a | | \n\.|
|00005860| 20 20 20 20 20 3c 4b 65 | 79 3e 62 3a 20 20 20 20 | <Ke|y>b: |
|00005870| 20 20 20 20 20 20 20 62 | 61 63 6b 75 70 28 29 20 | b|ackup() |
|00005880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 5c 6e 5c | | \n\|
|00005890| 0a 20 20 20 20 20 3c 4b | 65 79 3e 66 3a 20 20 20 |. <K|ey>f: |
|000058a0| 20 20 20 20 20 20 20 20 | 66 6f 72 77 61 72 64 28 | |forward(|
|000058b0| 29 20 20 20 20 20 20 20 | 20 20 20 20 20 20 5c 6e |) | \n|
|000058c0| 5c 0a 20 20 20 20 20 3c | 4b 65 79 3e 63 3a 20 20 |\. <|Key>c: |
|000058d0| 20 20 20 20 20 20 20 20 | 20 63 75 72 72 65 6e 74 | | current|
|000058e0| 28 29 20 20 20 20 20 20 | 20 20 20 20 20 20 20 5c |() | \|
|000058f0| 6e 5c 0a 20 20 20 20 20 | 3c 4b 65 79 3e 6c 3a 20 |n\. |<Key>l: |
|00005900| 20 20 20 20 20 20 20 20 | 20 20 6c 61 73 74 28 29 | | last()|
|00005910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005920| 5c 6e 5c 0a 20 20 20 20 | 20 3c 4b 65 79 3e 73 3a |\n\. | <Key>s:|
|00005930| 20 20 20 20 20 20 20 20 | 20 20 20 66 69 72 73 74 | | first|
|00005940| 28 29 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |() | |
|00005950| 20 5c 6e 5c 0a 20 20 20 | 20 20 3c 4b 65 79 3e 75 | \n\. | <Key>u|
|00005960| 3a 20 20 20 20 20 20 20 | 20 20 20 20 75 6e 64 6f |: | undo|
|00005970| 28 29 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |() | |
|00005980| 20 20 5c 6e 5c 0a 20 20 | 20 20 20 3c 4b 65 79 3e | \n\. | <Key>|
|00005990| 64 3a 20 20 20 20 20 20 | 20 20 20 20 20 64 6f 6e |d: | don|
|000059a0| 65 28 29 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e() | |
|000059b0| 20 20 20 5c 6e 5c 0a 20 | 20 20 20 20 3c 4b 65 79 | \n\. | <Key|
|000059c0| 3e 70 3a 20 20 20 20 20 | 20 20 20 20 20 20 70 61 |>p: | pa|
|000059d0| 73 73 28 29 20 20 20 20 | 20 20 20 20 20 20 20 20 |ss() | |
|000059e0| 20 20 20 20 5c 6e 5c 0a | 20 20 20 20 20 3c 4b 65 | \n\.| <Ke|
|000059f0| 79 3e 6e 3a 20 20 20 20 | 20 20 20 20 20 20 20 6e |y>n: | n|
|00005a00| 65 77 28 29 20 20 20 20 | 20 20 20 20 20 20 20 20 |ew() | |
|00005a10| 20 20 20 20 20 5c 6e 5c | 0a 20 20 20 20 20 3c 4b | \n\|. <K|
|00005a20| 65 79 3e 71 3a 20 20 20 | 20 20 20 20 20 20 20 20 |ey>q: | |
|00005a30| 71 75 69 74 28 29 20 20 | 20 20 20 20 20 20 20 20 |quit() | |
|00005a40| 20 20 20 20 20 20 5c 6e | 5c 0a 20 20 20 20 20 3c | \n|\. <|
|00005a50| 4b 65 79 3e 32 3a 20 20 | 20 20 20 20 20 20 20 20 |Key>2: | |
|00005a60| 20 68 61 6e 64 69 63 61 | 70 28 32 29 20 20 20 20 | handica|p(2) |
|00005a70| 20 20 20 20 20 20 20 5c | 6e 5c 0a 20 20 20 20 20 | \|n\. |
|00005a80| 3c 4b 65 79 3e 33 3a 20 | 20 20 20 20 20 20 20 20 |<Key>3: | |
|00005a90| 20 20 68 61 6e 64 69 63 | 61 70 28 33 29 20 20 20 | handic|ap(3) |
|00005aa0| 20 20 20 20 20 20 20 20 | 5c 6e 5c 0a 20 20 20 20 | |\n\. |
|00005ab0| 20 3c 4b 65 79 3e 34 3a | 20 20 20 20 20 20 20 20 | <Key>4:| |
|00005ac0| 20 20 20 68 61 6e 64 69 | 63 61 70 28 34 29 20 20 | handi|cap(4) |
|00005ad0| 20 20 20 20 20 20 20 20 | 20 5c 6e 5c 0a 20 20 20 | | \n\. |
|00005ae0| 20 20 3c 4b 65 79 3e 35 | 3a 20 20 20 20 20 20 20 | <Key>5|: |
|00005af0| 20 20 20 20 68 61 6e 64 | 69 63 61 70 28 35 29 20 | hand|icap(5) |
|00005b00| 20 20 20 20 20 20 20 20 | 20 20 5c 6e 5c 0a 20 20 | | \n\. |
|00005b10| 20 20 20 3c 4b 65 79 3e | 36 3a 20 20 20 20 20 20 | <Key>|6: |
|00005b20| 20 20 20 20 20 68 61 6e | 64 69 63 61 70 28 36 29 | han|dicap(6)|
|00005b30| 20 20 20 20 20 20 20 20 | 20 20 20 5c 6e 5c 0a 20 | | \n\. |
|00005b40| 20 20 20 20 3c 4b 65 79 | 3e 37 3a 20 20 20 20 20 | <Key|>7: |
|00005b50| 20 20 20 20 20 20 68 61 | 6e 64 69 63 61 70 28 37 | ha|ndicap(7|
|00005b60| 29 20 20 20 20 20 20 20 | 20 20 20 20 5c 6e 5c 0a |) | \n\.|
|00005b70| 20 20 20 20 20 3c 4b 65 | 79 3e 38 3a 20 20 20 20 | <Ke|y>8: |
|00005b80| 20 20 20 20 20 20 20 68 | 61 6e 64 69 63 61 70 28 | h|andicap(|
|00005b90| 38 29 20 20 20 20 20 20 | 20 20 20 20 20 5c 6e 5c |8) | \n\|
|00005ba0| 0a 20 20 20 20 20 3c 4b | 65 79 3e 39 3a 20 20 20 |. <K|ey>9: |
|00005bb0| 20 20 20 20 20 20 20 20 | 68 61 6e 64 69 63 61 70 | |handicap|
|00005bc0| 28 39 29 20 20 20 20 20 | 20 20 20 20 20 20 5c 6e |(9) | \n|
|00005bd0| 5c 0a 20 20 20 20 20 3c | 42 74 6e 32 44 6f 77 6e |\. <|Btn2Down|
|00005be0| 3e 3a 20 20 20 20 20 20 | 20 58 61 77 50 6f 73 69 |>: | XawPosi|
|00005bf0| 74 69 6f 6e 53 69 6d 70 | 6c 65 4d 65 6e 75 28 67 |tionSimp|leMenu(g|
|00005c00| 6f 62 61 6e 4d 65 6e 75 | 29 20 4d 65 6e 75 50 6f |obanMenu|) MenuPo|
|00005c10| 70 75 70 28 67 6f 62 61 | 6e 4d 65 6e 75 29 5c 6e |pup(goba|nMenu)\n|
|00005c20| 22 3b 0a 0a 73 74 61 74 | 69 63 20 58 74 41 63 74 |";..stat|ic XtAct|
|00005c30| 69 6f 6e 73 52 65 63 20 | 61 63 74 69 6f 6e 73 4c |ionsRec |actionsL|
|00005c40| 69 73 74 5b 5d 20 3d 20 | 7b 20 0a 20 20 7b 22 63 |ist[] = |{ . {"c|
|00005c50| 6f 6e 73 69 64 65 72 22 | 2c 09 09 43 6f 6e 73 69 |onsider"|,..Consi|
|00005c60| 64 65 72 7d 2c 0a 20 20 | 7b 22 61 64 6a 75 73 74 |der},. |{"adjust|
|00005c70| 22 2c 09 09 41 64 6a 75 | 73 74 7d 2c 0a 20 20 7b |",..Adju|st},. {|
|00005c80| 22 62 61 63 6b 75 70 22 | 2c 20 20 20 20 20 20 20 |"backup"|, |
|00005c90| 20 20 20 20 20 42 61 63 | 6b 75 70 7d 2c 20 0a 20 | Bac|kup}, . |
|00005ca0| 20 7b 22 66 6f 72 77 61 | 72 64 22 2c 20 20 20 20 | {"forwa|rd", |
|00005cb0| 20 20 20 20 20 20 20 46 | 6f 72 77 61 72 64 7d 2c | F|orward},|
|00005cc0| 20 0a 20 20 7b 22 63 75 | 72 72 65 6e 74 22 2c 20 | . {"cu|rrent", |
|00005cd0| 20 20 20 20 20 20 20 20 | 20 20 43 75 72 72 65 6e | | Curren|
|00005ce0| 74 7d 2c 20 0a 20 20 7b | 22 66 69 72 73 74 22 2c |t}, . {|"first",|
|00005cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 46 69 72 | | Fir|
|00005d00| 73 74 7d 2c 20 0a 20 20 | 7b 22 6c 61 73 74 22 2c |st}, . |{"last",|
|00005d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 4c 61 | | La|
|00005d20| 73 74 7d 2c 20 0a 20 20 | 7b 22 63 6f 6d 6d 69 74 |st}, . |{"commit|
|00005d30| 22 2c 09 09 43 6f 6d 6d | 69 74 7d 2c 0a 20 20 7b |",..Comm|it},. {|
|00005d40| 22 68 61 6e 64 69 63 61 | 70 22 2c 09 09 48 61 6e |"handica|p",..Han|
|00005d50| 64 69 63 61 70 7d 2c 0a | 20 20 7b 22 75 6e 64 6f |dicap},.| {"undo|
|00005d60| 22 2c 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |", | |
|00005d70| 55 6e 64 6f 7d 2c 0a 20 | 20 7b 22 70 61 73 73 22 |Undo},. | {"pass"|
|00005d80| 2c 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 50 |, | P|
|00005d90| 61 73 73 7d 2c 0a 20 20 | 7b 22 64 6f 6e 65 22 2c |ass},. |{"done",|
|00005da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 44 6f | | Do|
|00005db0| 6e 65 7d 2c 0a 20 20 7b | 22 63 6c 65 61 72 22 2c |ne},. {|"clear",|
|00005dc0| 09 09 43 6c 65 61 72 7d | 2c 0a 20 20 7b 22 6e 65 |..Clear}|,. {"ne|
|00005dd0| 77 22 2c 09 09 4e 65 77 | 7d 2c 0a 20 20 7b 22 71 |w",..New|},. {"q|
|00005de0| 75 69 74 22 2c 09 09 51 | 75 69 74 7d 2c 0a 7d 3b |uit",..Q|uit},.};|
|00005df0| 0a 0a 0a 0a 73 74 61 74 | 69 63 20 58 74 52 65 73 |....stat|ic XtRes|
|00005e00| 6f 75 72 63 65 20 67 6f | 62 61 6e 52 65 73 6f 75 |ource go|banResou|
|00005e10| 72 63 65 73 5b 5d 20 3d | 20 7b 0a 20 20 20 20 7b |rces[] =| {. {|
|00005e20| 58 74 4e 77 69 64 74 68 | 2c 20 58 74 43 57 69 64 |XtNwidth|, XtCWid|
|00005e30| 74 68 2c 20 58 74 52 44 | 69 6d 65 6e 73 69 6f 6e |th, XtRD|imension|
|00005e40| 2c 20 73 69 7a 65 6f 66 | 28 44 69 6d 65 6e 73 69 |, sizeof|(Dimensi|
|00005e50| 6f 6e 29 2c 0a 09 20 67 | 6f 66 66 73 65 74 28 77 |on),.. g|offset(w|
|00005e60| 69 64 74 68 29 2c 20 58 | 74 52 49 6d 6d 65 64 69 |idth), X|tRImmedi|
|00005e70| 61 74 65 2c 20 28 63 61 | 64 64 72 5f 74 29 20 30 |ate, (ca|ddr_t) 0|
|00005e80| 7d 2c 0a 20 20 20 20 7b | 58 74 4e 68 65 69 67 68 |},. {|XtNheigh|
|00005e90| 74 2c 20 58 74 43 48 65 | 69 67 68 74 2c 20 58 74 |t, XtCHe|ight, Xt|
|00005ea0| 52 44 69 6d 65 6e 73 69 | 6f 6e 2c 20 73 69 7a 65 |RDimensi|on, size|
|00005eb0| 6f 66 28 44 69 6d 65 6e | 73 69 6f 6e 29 2c 0a 09 |of(Dimen|sion),..|
|00005ec0| 67 6f 66 66 73 65 74 28 | 68 65 69 67 68 74 29 2c |goffset(|height),|
|00005ed0| 20 58 74 52 49 6d 6d 65 | 64 69 61 74 65 2c 20 28 | XtRImme|diate, (|
|00005ee0| 63 61 64 64 72 5f 74 29 | 20 30 7d 2c 0a 20 20 20 |caddr_t)| 0},. |
|00005ef0| 20 7b 58 74 4e 62 6c 61 | 63 6b 43 6f 6c 6f 72 2c | {XtNbla|ckColor,|
|00005f00| 20 58 74 43 46 6f 72 65 | 67 72 6f 75 6e 64 2c 20 | XtCFore|ground, |
|00005f10| 58 74 52 50 69 78 65 6c | 2c 20 73 69 7a 65 6f 66 |XtRPixel|, sizeof|
|00005f20| 28 50 69 78 65 6c 29 2c | 0a 09 6f 66 66 73 65 74 |(Pixel),|..offset|
|00005f30| 28 62 6c 61 63 6b 50 69 | 78 65 6c 29 2c 20 58 74 |(blackPi|xel), Xt|
|00005f40| 52 53 74 72 69 6e 67 2c | 20 22 62 6c 61 63 6b 22 |RString,| "black"|
|00005f50| 7d 2c 0a 20 20 20 20 7b | 58 74 4e 77 68 69 74 65 |},. {|XtNwhite|
|00005f60| 43 6f 6c 6f 72 2c 20 58 | 74 43 46 6f 72 65 67 72 |Color, X|tCForegr|
|00005f70| 6f 75 6e 64 2c 20 58 74 | 52 50 69 78 65 6c 2c 20 |ound, Xt|RPixel, |
|00005f80| 73 69 7a 65 6f 66 28 50 | 69 78 65 6c 29 2c 0a 09 |sizeof(P|ixel),..|
|00005f90| 6f 66 66 73 65 74 28 77 | 68 69 74 65 50 69 78 65 |offset(w|hitePixe|
|00005fa0| 6c 29 2c 20 58 74 52 53 | 74 72 69 6e 67 2c 20 22 |l), XtRS|tring, "|
|00005fb0| 77 68 69 74 65 22 7d 2c | 0a 20 20 20 20 7b 58 74 |white"},|. {Xt|
|00005fc0| 4e 6c 69 6e 65 43 6f 6c | 6f 72 2c 20 58 74 43 46 |NlineCol|or, XtCF|
|00005fd0| 6f 72 65 67 72 6f 75 6e | 64 2c 20 58 74 52 50 69 |oregroun|d, XtRPi|
|00005fe0| 78 65 6c 2c 20 73 69 7a | 65 6f 66 28 50 69 78 65 |xel, siz|eof(Pixe|
|00005ff0| 6c 29 2c 0a 09 6f 66 66 | 73 65 74 28 6c 69 6e 65 |l),..off|set(line|
|00006000| 50 69 78 65 6c 29 2c 20 | 58 74 52 53 74 72 69 6e |Pixel), |XtRStrin|
|00006010| 67 2c 20 22 62 6c 75 65 | 22 7d 2c 0a 20 20 20 20 |g, "blue|"},. |
|00006020| 7b 58 74 4e 62 6f 61 72 | 64 43 6f 6c 6f 72 2c 20 |{XtNboar|dColor, |
|00006030| 58 74 43 42 61 63 6b 67 | 72 6f 75 6e 64 2c 20 58 |XtCBackg|round, X|
|00006040| 74 52 50 69 78 65 6c 2c | 20 73 69 7a 65 6f 66 28 |tRPixel,| sizeof(|
|00006050| 50 69 78 65 6c 29 2c 0a | 09 67 6f 66 66 73 65 74 |Pixel),.|.goffset|
|00006060| 28 62 61 63 6b 67 72 6f | 75 6e 64 5f 70 69 78 65 |(backgro|und_pixe|
|00006070| 6c 29 2c 20 58 74 52 53 | 74 72 69 6e 67 2c 20 22 |l), XtRS|tring, "|
|00006080| 67 72 61 79 22 7d 2c 0a | 20 20 20 20 7b 58 74 4e |gray"},.| {XtN|
|00006090| 62 6f 61 72 64 53 69 7a | 65 2c 20 58 74 43 50 61 |boardSiz|e, XtCPa|
|000060a0| 72 61 6d 65 74 65 72 2c | 20 58 74 52 49 6e 74 2c |rameter,| XtRInt,|
|000060b0| 20 73 69 7a 65 6f 66 28 | 69 6e 74 29 2c 0a 09 6f | sizeof(|int),..o|
|000060c0| 66 66 73 65 74 28 62 73 | 69 7a 65 29 2c 20 58 74 |ffset(bs|ize), Xt|
|000060d0| 52 53 74 72 69 6e 67 2c | 20 22 31 39 22 7d 2c 0a |RString,| "19"},.|
|000060e0| 20 20 20 20 7b 58 74 4e | 66 6f 6e 74 2c 20 58 74 | {XtN|font, Xt|
|000060f0| 43 46 6f 6e 74 2c 20 58 | 74 52 46 6f 6e 74 53 74 |CFont, X|tRFontSt|
|00006100| 72 75 63 74 2c 20 73 69 | 7a 65 6f 66 28 58 46 6f |ruct, si|zeof(XFo|
|00006110| 6e 74 53 74 72 75 63 74 | 20 2a 29 2c 0a 20 20 20 |ntStruct| *),. |
|00006120| 20 20 20 20 20 6f 66 66 | 73 65 74 28 66 6f 6e 74 | off|set(font|
|00006130| 29 2c 20 58 74 52 53 74 | 72 69 6e 67 2c 20 22 66 |), XtRSt|ring, "f|
|00006140| 69 78 65 64 22 7d 2c 0a | 20 20 20 20 7b 58 74 4e |ixed"},.| {XtN|
|00006150| 6d 6f 64 65 2c 20 58 74 | 43 50 61 72 61 6d 65 74 |mode, Xt|CParamet|
|00006160| 65 72 2c 20 58 74 52 49 | 6e 74 2c 20 73 69 7a 65 |er, XtRI|nt, size|
|00006170| 6f 66 28 47 6f 62 61 6e | 4d 6f 64 65 29 2c 0a 20 |of(Goban|Mode),. |
|00006180| 20 20 20 20 20 20 20 6f | 66 66 73 65 74 28 6d 6f | o|ffset(mo|
|00006190| 64 65 29 2c 20 58 74 52 | 53 74 72 69 6e 67 2c 20 |de), XtR|String, |
|000061a0| 22 30 22 7d 2c 0a 20 20 | 20 20 7b 58 74 4e 73 68 |"0"},. | {XtNsh|
|000061b0| 65 6c 6c 2c 20 58 74 43 | 53 68 65 6c 6c 2c 20 58 |ell, XtC|Shell, X|
|000061c0| 74 52 57 69 64 67 65 74 | 2c 20 73 69 7a 65 6f 66 |tRWidget|, sizeof|
|000061d0| 28 57 69 64 67 65 74 29 | 2c 0a 20 20 20 20 20 20 |(Widget)|,. |
|000061e0| 20 20 6f 66 66 73 65 74 | 28 73 68 65 6c 6c 29 2c | offset|(shell),|
|000061f0| 20 58 74 52 57 69 64 67 | 65 74 2c 20 4e 55 4c 4c | XtRWidg|et, NULL|
|00006200| 7d 2c 0a 20 20 20 20 7b | 58 74 4e 63 6c 69 65 6e |},. {|XtNclien|
|00006210| 74 44 61 74 61 2c 20 58 | 74 43 56 61 6c 75 65 2c |tData, X|tCValue,|
|00006220| 20 58 74 52 50 6f 69 6e | 74 65 72 2c 20 73 69 7a | XtRPoin|ter, siz|
|00006230| 65 6f 66 28 58 74 50 6f | 69 6e 74 65 72 29 2c 0a |eof(XtPo|inter),.|
|00006240| 09 20 6f 66 66 73 65 74 | 28 63 6c 69 65 6e 74 44 |. offset|(clientD|
|00006250| 61 74 61 29 2c 20 58 74 | 52 50 6f 69 6e 74 65 72 |ata), Xt|RPointer|
|00006260| 2c 20 4e 55 4c 4c 7d 2c | 0a 20 20 20 20 7b 58 74 |, NULL},|. {Xt|
|00006270| 4e 77 68 69 74 65 43 61 | 70 74 75 72 65 73 4c 61 |NwhiteCa|pturesLa|
|00006280| 62 65 6c 2c 20 58 74 43 | 43 61 70 74 75 72 65 73 |bel, XtC|Captures|
|00006290| 4c 61 62 65 6c 2c 20 58 | 74 52 57 69 64 67 65 74 |Label, X|tRWidget|
|000062a0| 2c 20 73 69 7a 65 6f 66 | 28 57 69 64 67 65 74 29 |, sizeof|(Widget)|
|000062b0| 2c 0a 09 20 6f 66 66 73 | 65 74 28 77 68 69 74 65 |,.. offs|et(white|
|000062c0| 43 61 70 74 75 72 65 73 | 4c 61 62 65 6c 29 2c 20 |Captures|Label), |
|000062d0| 58 74 52 57 69 64 67 65 | 74 2c 20 4e 55 4c 4c 7d |XtRWidge|t, NULL}|
|000062e0| 2c 0a 20 20 20 20 7b 58 | 74 4e 62 6c 61 63 6b 43 |,. {X|tNblackC|
|000062f0| 61 70 74 75 72 65 73 4c | 61 62 65 6c 2c 20 58 74 |apturesL|abel, Xt|
|00006300| 43 43 61 70 74 75 72 65 | 73 4c 61 62 65 6c 2c 20 |CCapture|sLabel, |
|00006310| 58 74 52 57 69 64 67 65 | 74 2c 20 73 69 7a 65 6f |XtRWidge|t, sizeo|
|00006320| 66 28 57 69 64 67 65 74 | 29 2c 0a 09 20 6f 66 66 |f(Widget|),.. off|
|00006330| 73 65 74 28 62 6c 61 63 | 6b 43 61 70 74 75 72 65 |set(blac|kCapture|
|00006340| 73 4c 61 62 65 6c 29 2c | 20 58 74 52 57 69 64 67 |sLabel),| XtRWidg|
|00006350| 65 74 2c 20 4e 55 4c 4c | 7d 2c 0a 20 20 20 20 0a |et, NULL|},. .|
|00006360| 7d 3b 0a 0a 47 6f 62 61 | 6e 43 6c 61 73 73 52 65 |};..Goba|nClassRe|
|00006370| 63 20 67 6f 62 61 6e 43 | 6c 61 73 73 52 65 63 20 |c gobanC|lassRec |
|00006380| 3d 20 7b 0a 20 20 20 20 | 20 20 20 20 7b 20 2f 2a |= {. | { /*|
|00006390| 20 63 6f 72 65 20 66 69 | 65 6c 64 73 20 2a 2f 0a | core fi|elds */.|
|000063a0| 20 20 20 20 2f 2a 20 73 | 75 70 65 72 63 6c 61 73 | /* s|uperclas|
|000063b0| 73 09 09 2a 2f 09 28 57 | 69 64 67 65 74 43 6c 61 |s..*/.(W|idgetCla|
|000063c0| 73 73 29 20 26 73 69 6d | 70 6c 65 43 6c 61 73 73 |ss) &sim|pleClass|
|000063d0| 52 65 63 2c 0a 20 20 20 | 20 2f 2a 20 63 6c 61 73 |Rec,. | /* clas|
|000063e0| 73 5f 6e 61 6d 65 09 09 | 2a 2f 09 22 47 6f 62 61 |s_name..|*/."Goba|
|000063f0| 6e 22 2c 0a 20 20 20 20 | 2f 2a 20 77 69 64 67 65 |n",. |/* widge|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.