home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
You can browse this item here: curswdgt.tar
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| tar archive
| default
| |
99%
| file
| tar archive (V7), file curses-widgets/, mode 755 , uid 243 , gid 12 , size 0 , seconds 4403602327
| default
| |
98%
| file
| data
| default
| |
100%
| siegfried
| x-fmt/265 Tape Archive Format
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| Pre-POSIX tar archive
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 63 75 72 73 65 73 2d 77 | 69 64 67 65 74 73 2f 00 |curses-w|idgets/.|
|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 20 20 20 37 | 35 35 20 00 20 20 20 32 |.... 7|55 . 2|
|00000070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 34 30 33 36 30 32 | 0 | 4403602|
|00000090| 33 32 37 20 20 20 36 37 | 36 34 00 20 00 00 00 00 |327 67|64. ....|
|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 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 63 75 72 73 65 73 2d 77 | 69 64 67 65 74 73 2f 52 |curses-w|idgets/R|
|00000210| 45 41 44 4d 45 00 00 00 | 00 00 00 00 00 00 00 00 |EADME...|........|
|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 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000280| 20 20 20 33 36 36 36 20 | 20 34 34 30 33 36 30 32 | 3666 | 4403602|
|00000290| 33 30 31 20 20 20 37 37 | 33 34 00 20 00 00 00 00 |301 77|34. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 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| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00000410| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000420| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000430| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000440| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0a 2f |********|******./|
|00000450| 2a 20 20 46 49 4c 45 3a | 09 09 52 45 41 44 4d 45 |* FILE:|..README|
|00000460| 0a 2f 2a 20 20 44 41 54 | 45 3a 09 09 41 75 67 75 |./* DAT|E:..Augu|
|00000470| 73 74 20 31 39 38 38 2e | 0a 2f 2a 20 20 41 55 54 |st 1988.|./* AUT|
|00000480| 48 4f 52 3a 09 09 52 69 | 63 68 61 72 64 20 41 2e |HOR:..Ri|chard A.|
|00000490| 20 43 75 6c 73 68 61 77 | 2e 0a 2f 2a 20 44 49 53 | Culshaw|../* DIS|
|000004a0| 43 4c 41 49 4d 45 52 3a | 09 09 54 68 69 73 20 66 |CLAIMER:|..This f|
|000004b0| 69 6c 65 20 69 73 20 64 | 65 65 6d 65 64 20 74 6f |ile is d|eemed to|
|000004c0| 20 62 65 20 70 75 62 6c | 69 63 2d 64 6f 6d 61 69 | be publ|ic-domai|
|000004d0| 6e 2c 20 6f 6e 20 74 68 | 65 20 73 69 6d 70 6c 65 |n, on th|e simple|
|000004e0| 0a 2f 2a 09 09 09 70 72 | 6f 76 69 73 6f 73 20 74 |./*...pr|ovisos t|
|000004f0| 68 61 74 20 74 68 69 73 | 20 73 65 63 74 69 6f 6e |hat this| section|
|00000500| 20 72 65 6d 61 69 6e 73 | 20 69 6e 20 74 68 69 73 | remains| in this|
|00000510| 20 66 69 6c 65 20 61 6e | 64 0a 2f 2a 09 09 09 74 | file an|d./*...t|
|00000520| 68 61 74 20 63 6f 64 65 | 20 75 73 69 6e 67 20 69 |hat code| using i|
|00000530| 74 20 64 6f 20 6e 6f 74 | 20 64 6f 20 73 6f 20 66 |t do not| do so f|
|00000540| 6f 72 20 6d 6f 6e 65 74 | 61 72 79 20 67 61 69 6e |or monet|ary gain|
|00000550| 2e 0a 2f 2a 09 09 09 4e | 65 69 74 68 65 72 20 74 |../*...N|either t|
|00000560| 68 65 20 61 75 74 68 6f | 72 2c 20 6e 6f 72 20 74 |he autho|r, nor t|
|00000570| 68 65 20 61 75 74 68 6f | 72 73 20 65 6d 70 6c 6f |he autho|rs emplo|
|00000580| 79 65 65 73 20 61 74 20 | 74 68 65 0a 2f 2a 09 09 |yees at |the./*..|
|00000590| 09 74 69 6d 65 20 6f 66 | 20 64 65 76 65 6c 6f 70 |.time of| develop|
|000005a0| 69 6e 67 20 74 68 69 73 | 20 63 6f 64 65 2c 20 61 |ing this| code, a|
|000005b0| 63 63 65 70 74 20 61 6e | 79 20 6c 69 61 62 69 6c |ccept an|y liabil|
|000005c0| 69 74 79 20 6f 72 0a 2f | 2a 09 09 09 72 65 73 70 |ity or./|*...resp|
|000005d0| 6f 6e 73 69 62 69 6c 69 | 74 79 20 66 6f 72 20 74 |onsibili|ty for t|
|000005e0| 68 65 20 75 73 65 2c 20 | 61 62 75 73 65 20 6f 72 |he use, |abuse or|
|000005f0| 20 6d 69 73 75 73 65 20 | 6f 66 20 74 68 69 73 0a | misuse |of this.|
|00000600| 2f 2a 09 09 09 63 6f 64 | 65 2e 0a 2f 2a 2a 2a 2a |/*...cod|e../****|
|00000610| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000620| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000630| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000640| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000650| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2f 0a 0a 09 57 69 64 |********|*/...Wid|
|00000660| 67 65 74 6c 69 62 20 69 | 73 20 61 20 73 74 61 6e |getlib i|s a stan|
|00000670| 64 61 72 64 20 43 20 6c | 69 62 72 61 72 79 20 77 |dard C l|ibrary w|
|00000680| 68 69 63 68 20 61 6c 6c | 6f 77 73 20 74 68 65 20 |hich all|ows the |
|00000690| 75 73 65 72 20 74 6f 20 | 64 65 66 69 6e 65 0a 61 |user to |define.a|
|000006a0| 6e 64 20 69 6e 74 65 72 | 61 63 74 20 77 69 74 68 |nd inter|act with|
|000006b0| 20 77 69 64 67 65 74 73 | 20 28 77 69 6e 64 6f 77 | widgets| (window|
|000006c0| 20 67 61 64 67 65 74 29 | 2e 20 54 68 65 20 66 69 | gadget)|. The fi|
|000006d0| 6c 65 73 20 70 72 6f 76 | 69 64 65 64 20 61 72 65 |les prov|ided are|
|000006e0| 3a 0a 0a 2d 72 77 2d 72 | 2d 2d 72 2d 2d 20 20 20 |:..-rw-r|--r-- |
|000006f0| 31 20 70 6a 73 20 20 20 | 20 20 20 6e 65 74 20 20 |1 pjs | net |
|00000700| 20 20 20 20 20 20 20 31 | 39 36 30 20 4f 63 74 20 | 1|960 Oct |
|00000710| 31 34 20 31 33 3a 32 35 | 20 52 45 41 44 4d 45 0a |14 13:25| README.|
|00000720| 2d 72 77 2d 72 2d 2d 72 | 2d 2d 20 20 20 31 20 70 |-rw-r--r|-- 1 p|
|00000730| 6a 73 20 20 20 20 20 20 | 6e 65 74 20 20 20 20 20 |js |net |
|00000740| 20 20 20 20 31 31 34 34 | 20 4f 63 74 20 31 34 20 | 1144| Oct 14 |
|00000750| 31 33 3a 32 33 20 6d 61 | 6b 65 66 69 6c 65 0a 2d |13:23 ma|kefile.-|
|00000760| 72 77 2d 72 2d 2d 72 2d | 2d 20 20 20 31 20 70 6a |rw-r--r-|- 1 pj|
|00000770| 73 20 20 20 20 20 20 6e | 65 74 20 20 20 20 20 20 |s n|et |
|00000780| 20 20 20 32 37 35 32 20 | 4f 63 74 20 31 34 20 31 | 2752 |Oct 14 1|
|00000790| 33 3a 31 35 20 77 69 64 | 67 65 74 2e 68 0a 2d 72 |3:15 wid|get.h.-r|
|000007a0| 77 2d 72 2d 2d 72 2d 2d | 20 20 20 31 20 70 6a 73 |w-r--r--| 1 pjs|
|000007b0| 20 20 20 20 20 20 6e 65 | 74 20 20 20 20 20 20 20 | ne|t |
|000007c0| 20 31 30 39 34 36 20 4f | 63 74 20 31 34 20 31 32 | 10946 O|ct 14 12|
|000007d0| 3a 31 38 20 77 69 64 67 | 65 74 2e 6d 73 0a 2d 72 |:18 widg|et.ms.-r|
|000007e0| 77 2d 72 2d 2d 72 2d 2d | 20 20 20 31 20 70 6a 73 |w-r--r--| 1 pjs|
|000007f0| 20 20 20 20 20 20 6e 65 | 74 20 20 20 20 20 20 20 | ne|t |
|00000800| 20 33 34 38 31 37 20 4f | 63 74 20 31 34 20 31 33 | 34817 O|ct 14 13|
|00000810| 3a 31 35 20 77 69 64 67 | 65 74 6c 69 62 2e 63 0a |:15 widg|etlib.c.|
|00000820| 2d 72 77 2d 72 2d 2d 72 | 2d 2d 20 20 20 31 20 70 |-rw-r--r|-- 1 p|
|00000830| 6a 73 20 20 20 20 20 20 | 6e 65 74 20 20 20 20 20 |js |net |
|00000840| 20 20 20 20 33 32 31 38 | 20 4f 63 74 20 31 34 20 | 3218| Oct 14 |
|00000850| 31 33 3a 31 34 20 77 70 | 61 67 65 2e 63 0a 0a 31 |13:14 wp|age.c..1|
|00000860| 29 20 77 69 64 67 65 74 | 6c 69 62 2e 63 20 20 20 |) widget|lib.c |
|00000870| 20 20 20 20 28 74 68 65 | 20 61 63 74 75 61 6c 20 | (the| actual |
|00000880| 63 6f 64 65 29 0a 32 29 | 20 77 69 64 67 65 74 2e |code).2)| widget.|
|00000890| 68 09 20 20 20 20 20 28 | 74 68 65 20 68 65 61 64 |h. (|the head|
|000008a0| 65 72 20 66 69 6c 65 20 | 77 68 69 63 68 20 69 73 |er file |which is|
|000008b0| 20 6e 65 65 64 65 64 20 | 69 6e 20 70 72 6f 67 72 | needed |in progr|
|000008c0| 61 6d 73 20 69 6e 74 65 | 6e 64 69 6e 67 0a 09 09 |ams inte|nding...|
|000008d0| 20 20 20 20 20 20 74 6f | 20 69 6e 63 6f 72 70 6f | to| incorpo|
|000008e0| 72 61 74 65 20 74 68 65 | 20 6c 69 62 72 61 72 79 |rate the| library|
|000008f0| 29 0a 33 29 20 77 69 64 | 67 65 74 2e 6d 73 09 20 |).3) wid|get.ms. |
|00000900| 20 20 20 20 28 61 6e 20 | 65 78 70 6c 61 6e 61 74 | (an |explanat|
|00000910| 69 6f 6e 20 6f 66 20 74 | 68 65 20 6c 69 62 72 61 |ion of t|he libra|
|00000920| 72 79 20 61 6e 64 20 68 | 6f 77 20 74 6f 20 75 73 |ry and h|ow to us|
|00000930| 65 20 69 74 29 0a 34 29 | 20 77 70 61 67 65 2e 63 |e it).4)| wpage.c|
|00000940| 09 20 20 20 20 20 28 61 | 20 6c 69 74 74 6c 65 20 |. (a| little |
|00000950| 65 78 61 6d 70 6c 65 20 | 6f 66 20 74 68 65 20 6c |example |of the l|
|00000960| 69 62 72 61 72 79 20 69 | 6e 20 75 73 65 29 0a 35 |ibrary i|n use).5|
|00000970| 29 20 6d 61 6b 65 66 69 | 6c 65 20 20 20 20 20 20 |) makefi|le |
|00000980| 20 20 20 20 28 63 6f 6d | 70 69 6c 65 73 20 65 76 | (com|piles ev|
|00000990| 65 72 79 74 68 69 6e 67 | 20 74 6f 67 65 74 68 65 |erything| togethe|
|000009a0| 72 29 0a 0a 43 6f 6d 70 | 69 6c 69 6e 67 20 74 68 |r)..Comp|iling th|
|000009b0| 69 6e 67 73 0a 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |ings.===|========|
|000009c0| 3d 3d 3d 3d 3d 0a 0a 54 | 79 70 65 20 27 6d 61 6b |=====..T|ype 'mak|
|000009d0| 65 27 20 77 69 74 68 69 | 6e 20 74 68 65 20 64 69 |e' withi|n the di|
|000009e0| 72 65 63 74 6f 72 79 20 | 77 68 69 63 68 20 63 6f |rectory |which co|
|000009f0| 6e 74 61 69 6e 73 20 74 | 68 65 20 66 69 6c 65 73 |ntains t|he files|
|00000a00| 2e 0a 54 68 69 73 20 63 | 72 65 61 74 65 73 20 61 |..This c|reates a|
|00000a10| 20 6c 6f 63 61 6c 20 6c | 69 62 72 61 72 79 20 77 | local l|ibrary w|
|00000a20| 69 74 68 69 6e 20 74 68 | 65 20 64 69 72 65 63 74 |ithin th|e direct|
|00000a30| 6f 72 79 2c 20 61 6e 64 | 20 63 72 65 61 74 65 73 |ory, and| creates|
|00000a40| 20 74 68 65 20 0a 65 78 | 65 63 75 74 61 62 6c 65 | the .ex|ecutable|
|00000a50| 20 27 77 70 61 67 65 27 | 20 28 61 20 64 65 6d 6f | 'wpage'| (a demo|
|00000a60| 20 66 6f 72 20 79 6f 75 | 20 74 6f 20 70 6c 61 79 | for you| to play|
|00000a70| 20 77 69 74 68 29 2e 0a | 0a 46 6f 72 20 67 65 6e | with)..|.For gen|
|00000a80| 65 72 61 6c 20 75 73 65 | 20 27 77 69 64 67 65 74 |eral use| 'widget|
|00000a90| 2e 68 27 20 6d 75 73 74 | 20 62 65 20 70 6c 61 63 |.h' must| be plac|
|00000aa0| 65 64 20 69 6e 20 74 68 | 65 20 73 74 61 6e 64 61 |ed in th|e standa|
|00000ab0| 72 64 20 69 6e 63 6c 75 | 64 65 20 64 69 72 65 63 |rd inclu|de direc|
|00000ac0| 74 6f 72 79 0a 61 6e 64 | 20 74 68 65 20 6c 69 62 |tory.and| the lib|
|00000ad0| 72 61 72 79 20 27 77 69 | 64 67 65 74 6c 69 62 2e |rary 'wi|dgetlib.|
|00000ae0| 61 27 20 6d 75 73 74 20 | 67 6f 20 69 6e 20 61 20 |a' must |go in a |
|00000af0| 67 6c 6f 62 61 6c 6c 79 | 20 61 63 63 65 73 73 61 |globally| accessa|
|00000b00| 62 6c 65 20 70 6c 61 63 | 65 20 73 75 63 68 0a 61 |ble plac|e such.a|
|00000b10| 73 20 2f 75 73 72 2f 6c | 69 62 2e 0a 0a 50 72 69 |s /usr/l|ib...Pri|
|00000b20| 6e 74 69 6e 67 20 64 6f | 63 0a 3d 3d 3d 3d 3d 3d |nting do|c.======|
|00000b30| 3d 3d 3d 3d 3d 3d 0a 0a | 27 77 69 64 67 65 74 2e |======..|'widget.|
|00000b40| 6d 73 27 20 77 61 73 20 | 63 72 65 61 74 65 64 20 |ms' was |created |
|00000b50| 75 73 69 6e 67 20 74 68 | 65 20 6d 73 20 6d 61 63 |using th|e ms mac|
|00000b60| 72 6f 73 20 61 6e 64 20 | 63 61 6e 20 70 72 69 6e |ros and |can prin|
|00000b70| 74 65 64 20 75 73 69 6e | 67 20 73 6f 6d 65 74 68 |ted usin|g someth|
|00000b80| 69 6e 67 20 6c 69 6b 65 | 0a 27 6e 72 6f 66 66 20 |ing like|.'nroff |
|00000b90| 2d 6d 73 20 77 69 64 67 | 65 74 2e 6d 73 27 0a 0a |-ms widg|et.ms'..|
|00000ba0| 0a 48 61 76 65 20 66 75 | 6e 2e 20 52 69 63 68 61 |.Have fu|n. Richa|
|00000bb0| 72 64 20 43 2e 0a 00 00 | 00 00 00 00 00 00 00 00 |rd C....|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 63 75 72 73 65 73 2d 77 | 69 64 67 65 74 73 2f 6d |curses-w|idgets/m|
|00000c10| 61 6b 65 66 69 6c 65 00 | 00 00 00 00 00 00 00 00 |akefile.|........|
|00000c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000c70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000c80| 20 20 20 32 31 37 30 20 | 20 34 34 30 33 36 30 32 | 2170 | 4403602|
|00000c90| 33 30 34 20 20 31 30 35 | 34 34 00 20 00 00 00 00 |304 105|44. ....|
|00000ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00000e10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000e20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000e30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000e40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0a 2f |********|******./|
|00000e50| 2a 20 20 46 49 4c 45 3a | 09 09 6d 61 6b 65 66 69 |* FILE:|..makefi|
|00000e60| 6c 65 0a 2f 2a 20 20 44 | 41 54 45 3a 09 09 41 75 |le./* D|ATE:..Au|
|00000e70| 67 75 73 74 20 31 39 38 | 38 2e 0a 2f 2a 20 20 41 |gust 198|8../* A|
|00000e80| 55 54 48 4f 52 3a 09 09 | 52 69 63 68 61 72 64 20 |UTHOR:..|Richard |
|00000e90| 41 2e 20 43 75 6c 73 68 | 61 77 2e 0a 2f 2a 20 44 |A. Culsh|aw../* D|
|00000ea0| 49 53 43 4c 41 49 4d 45 | 52 3a 09 09 54 68 69 73 |ISCLAIME|R:..This|
|00000eb0| 20 66 69 6c 65 20 69 73 | 20 64 65 65 6d 65 64 20 | file is| deemed |
|00000ec0| 74 6f 20 62 65 20 70 75 | 62 6c 69 63 2d 64 6f 6d |to be pu|blic-dom|
|00000ed0| 61 69 6e 2c 20 6f 6e 20 | 74 68 65 20 73 69 6d 70 |ain, on |the simp|
|00000ee0| 6c 65 0a 2f 2a 09 09 09 | 70 72 6f 76 69 73 6f 73 |le./*...|provisos|
|00000ef0| 20 74 68 61 74 20 74 68 | 69 73 20 73 65 63 74 69 | that th|is secti|
|00000f00| 6f 6e 20 72 65 6d 61 69 | 6e 73 20 69 6e 20 74 68 |on remai|ns in th|
|00000f10| 69 73 20 66 69 6c 65 20 | 61 6e 64 0a 2f 2a 09 09 |is file |and./*..|
|00000f20| 09 74 68 61 74 20 63 6f | 64 65 20 75 73 69 6e 67 |.that co|de using|
|00000f30| 20 69 74 20 64 6f 20 6e | 6f 74 20 64 6f 20 73 6f | it do n|ot do so|
|00000f40| 20 66 6f 72 20 6d 6f 6e | 65 74 61 72 79 20 67 61 | for mon|etary ga|
|00000f50| 69 6e 2e 0a 2f 2a 09 09 | 09 4e 65 69 74 68 65 72 |in../*..|.Neither|
|00000f60| 20 74 68 65 20 61 75 74 | 68 6f 72 2c 20 6e 6f 72 | the aut|hor, nor|
|00000f70| 20 74 68 65 20 61 75 74 | 68 6f 72 73 20 65 6d 70 | the aut|hors emp|
|00000f80| 6c 6f 79 65 65 73 20 61 | 74 20 74 68 65 0a 2f 2a |loyees a|t the./*|
|00000f90| 09 09 09 74 69 6d 65 20 | 6f 66 20 64 65 76 65 6c |...time |of devel|
|00000fa0| 6f 70 69 6e 67 20 74 68 | 69 73 20 63 6f 64 65 2c |oping th|is code,|
|00000fb0| 20 61 63 63 65 70 74 20 | 61 6e 79 20 6c 69 61 62 | accept |any liab|
|00000fc0| 69 6c 69 74 79 20 6f 72 | 0a 2f 2a 09 09 09 72 65 |ility or|./*...re|
|00000fd0| 73 70 6f 6e 73 69 62 69 | 6c 69 74 79 20 66 6f 72 |sponsibi|lity for|
|00000fe0| 20 74 68 65 20 75 73 65 | 2c 20 61 62 75 73 65 20 | the use|, abuse |
|00000ff0| 6f 72 20 6d 69 73 75 73 | 65 20 6f 66 20 74 68 69 |or misus|e of thi|
|00001000| 73 0a 2f 2a 09 09 09 63 | 6f 64 65 2e 0a 2f 2a 2a |s./*...c|ode../**|
|00001010| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001020| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001030| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001040| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001050| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2f 0a 0a 23 20 |********|***/..# |
|00001060| 55 73 65 20 2d 67 20 69 | 66 20 79 6f 75 20 77 61 |Use -g i|f you wa|
|00001070| 6e 74 20 6c 61 72 67 65 | 2c 20 62 75 74 20 73 64 |nt large|, but sd|
|00001080| 62 2d 2c 67 64 62 2d 2c | 64 62 78 2d 61 62 6c 65 |b-,gdb-,|dbx-able|
|00001090| 20 6f 62 6a 65 63 74 73 | 2e 0a 4f 50 54 49 4f 4e | objects|..OPTION|
|000010a0| 53 3d 20 2d 4f 0a 0a 23 | 20 42 53 44 20 73 79 73 |S= -O..#| BSD sys|
|000010b0| 74 65 6d 73 2c 20 69 6e | 20 70 61 72 74 69 63 75 |tems, in| particu|
|000010c0| 6c 61 72 2c 20 77 69 6c | 6c 20 77 61 6e 74 20 2d |lar, wil|l want -|
|000010d0| 6c 63 75 72 73 65 73 20 | 2d 6c 74 65 72 6d 63 61 |lcurses |-ltermca|
|000010e0| 70 2e 0a 43 55 52 53 45 | 53 3d 20 20 2d 6c 63 75 |p..CURSE|S= -lcu|
|000010f0| 72 73 65 73 0a 0a 23 20 | 53 59 53 35 20 73 79 73 |rses..# |SYS5 sys|
|00001100| 74 65 6d 73 2c 20 69 6e | 20 70 61 72 74 69 63 75 |tems, in| particu|
|00001110| 6c 61 72 2c 20 64 6f 20 | 6e 6f 74 20 68 61 76 65 |lar, do |not have|
|00001120| 20 72 61 6e 6c 69 62 28 | 31 29 20 66 6f 72 20 74 | ranlib(|1) for t|
|00001130| 68 65 69 72 20 6c 69 62 | 72 61 72 69 65 73 2e 0a |heir lib|raries..|
|00001140| 23 20 53 6f 20 64 65 66 | 69 6e 65 20 74 68 69 73 |# So def|ine this|
|00001150| 20 61 73 2c 20 66 6f 72 | 20 65 78 61 6d 70 6c 65 | as, for| example|
|00001160| 2c 20 74 6f 75 63 68 2c | 20 69 66 20 79 6f 75 20 |, touch,| if you |
|00001170| 64 6f 6e 27 74 20 68 61 | 76 65 20 72 61 6e 6c 69 |don't ha|ve ranli|
|00001180| 62 2e 0a 52 41 4e 4c 49 | 42 3d 20 74 6f 75 63 68 |b..RANLI|B= touch|
|00001190| 0a 0a 57 44 47 54 4c 49 | 42 3d 20 77 69 64 67 65 |..WDGTLI|B= widge|
|000011a0| 74 6c 69 62 2e 61 0a 0a | 61 6c 6c 3a 20 77 70 61 |tlib.a..|all: wpa|
|000011b0| 67 65 0a 0a 77 69 64 67 | 65 74 6c 69 62 2e 61 3a |ge..widg|etlib.a:|
|000011c0| 20 77 69 64 67 65 74 6c | 69 62 2e 6f 20 77 69 64 | widgetl|ib.o wid|
|000011d0| 67 65 74 2e 68 0a 09 61 | 72 20 63 72 76 20 24 40 |get.h..a|r crv $@|
|000011e0| 20 77 69 64 67 65 74 6c | 69 62 2e 6f 0a 09 24 7b | widgetl|ib.o..${|
|000011f0| 52 41 4e 4c 49 42 7d 20 | 24 40 0a 09 72 6d 20 2d |RANLIB} |$@..rm -|
|00001200| 66 20 77 69 64 67 65 74 | 6c 69 62 2e 6f 0a 0a 77 |f widget|lib.o..w|
|00001210| 70 61 67 65 3a 20 77 69 | 64 67 65 74 6c 69 62 2e |page: wi|dgetlib.|
|00001220| 61 20 77 70 61 67 65 2e | 6f 0a 09 63 63 20 24 7b |a wpage.|o..cc ${|
|00001230| 4f 50 54 49 4f 4e 7d 20 | 2d 6f 20 24 40 20 77 70 |OPTION} |-o $@ wp|
|00001240| 61 67 65 2e 6f 20 24 7b | 57 44 47 54 4c 49 42 7d |age.o ${|WDGTLIB}|
|00001250| 20 24 7b 43 55 52 53 45 | 53 7d 0a 0a 63 6c 65 61 | ${CURSE|S}..clea|
|00001260| 6e 3a 0a 09 72 6d 20 2d | 66 20 77 70 61 67 65 20 |n:..rm -|f wpage |
|00001270| 2a 2e 6f 20 2a 2e 61 0a | 20 61 63 74 75 61 6c 20 |*.o *.a.| actual |
|00001280| 63 6f 64 65 29 0a 32 29 | 20 77 69 64 67 65 74 2e |code).2)| widget.|
|00001290| 68 09 20 20 20 20 20 28 | 74 68 65 20 68 65 61 64 |h. (|the head|
|000012a0| 65 72 20 66 69 6c 65 20 | 77 68 69 63 68 20 69 73 |er file |which is|
|000012b0| 20 6e 65 65 64 65 64 20 | 69 6e 20 70 72 6f 67 72 | needed |in progr|
|000012c0| 61 6d 73 20 69 6e 74 65 | 6e 64 69 6e 67 0a 09 09 |ams inte|nding...|
|000012d0| 20 20 20 20 20 20 74 6f | 20 69 6e 63 6f 72 70 6f | to| incorpo|
|000012e0| 72 61 74 65 20 74 68 65 | 20 6c 69 62 72 61 72 79 |rate the| library|
|000012f0| 29 0a 33 29 20 77 69 64 | 67 65 74 2e 6d 73 09 20 |).3) wid|get.ms. |
|00001300| 20 20 20 20 28 61 6e 20 | 65 78 70 6c 61 6e 61 74 | (an |explanat|
|00001310| 69 6f 6e 20 6f 66 20 74 | 68 65 20 6c 69 62 72 61 |ion of t|he libra|
|00001320| 72 79 20 61 6e 64 20 68 | 6f 77 20 74 6f 20 75 73 |ry and h|ow to us|
|00001330| 65 20 69 74 29 0a 34 29 | 20 77 70 61 67 65 2e 63 |e it).4)| wpage.c|
|00001340| 09 20 20 20 20 20 28 61 | 20 6c 69 74 74 6c 65 20 |. (a| little |
|00001350| 65 78 61 6d 70 6c 65 20 | 6f 66 20 74 68 65 20 6c |example |of the l|
|00001360| 69 62 72 61 72 79 20 69 | 6e 20 75 73 65 29 0a 35 |ibrary i|n use).5|
|00001370| 29 20 6d 61 6b 65 66 69 | 6c 65 20 20 20 20 20 20 |) makefi|le |
|00001380| 20 20 20 20 28 63 6f 6d | 70 69 6c 65 73 20 65 76 | (com|piles ev|
|00001390| 65 72 79 74 68 69 6e 67 | 20 74 6f 67 65 74 68 65 |erything| togethe|
|000013a0| 72 29 0a 0a 43 6f 6d 70 | 69 6c 69 6e 67 20 74 68 |r)..Comp|iling th|
|000013b0| 69 6e 67 73 0a 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |ings.===|========|
|000013c0| 3d 3d 3d 3d 3d 0a 0a 54 | 79 70 65 20 27 6d 61 6b |=====..T|ype 'mak|
|000013d0| 65 27 20 77 69 74 68 69 | 6e 20 74 68 65 20 64 69 |e' withi|n the di|
|000013e0| 72 65 63 74 6f 72 79 20 | 77 68 69 63 68 20 63 6f |rectory |which co|
|000013f0| 6e 74 61 69 6e 73 20 74 | 68 65 20 66 69 6c 65 73 |ntains t|he files|
|00001400| 63 75 72 73 65 73 2d 77 | 69 64 67 65 74 73 2f 77 |curses-w|idgets/w|
|00001410| 69 64 67 65 74 2e 68 00 | 00 00 00 00 00 00 00 00 |idget.h.|........|
|00001420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001470| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00001480| 20 20 20 35 33 30 30 20 | 20 34 34 30 33 36 30 32 | 5300 | 4403602|
|00001490| 33 30 37 20 20 31 30 35 | 30 31 00 20 00 00 00 00 |307 105|01. ....|
|000014a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001600| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00001610| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001620| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001630| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001640| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0a 2f |********|******./|
|00001650| 2a 20 20 46 49 4c 45 3a | 09 09 77 69 64 67 65 74 |* FILE:|..widget|
|00001660| 2e 68 0a 2f 2a 20 20 44 | 41 54 45 3a 09 09 41 75 |.h./* D|ATE:..Au|
|00001670| 67 75 73 74 20 31 39 38 | 38 2e 0a 2f 2a 20 20 41 |gust 198|8../* A|
|00001680| 55 54 48 4f 52 3a 09 09 | 52 69 63 68 61 72 64 20 |UTHOR:..|Richard |
|00001690| 41 2e 20 43 75 6c 73 68 | 61 77 2e 0a 2f 2a 20 20 |A. Culsh|aw../* |
|000016a0| 44 45 53 43 52 49 50 54 | 49 4f 4e 3a 09 43 6f 6e |DESCRIPT|ION:.Con|
|000016b0| 74 61 69 6e 73 20 74 68 | 65 20 64 65 66 69 6e 69 |tains th|e defini|
|000016c0| 74 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 77 69 64 |tions of| the wid|
|000016d0| 67 65 74 20 73 74 72 75 | 63 74 75 72 65 73 2e 0a |get stru|ctures..|
|000016e0| 2f 2a 09 09 09 49 74 20 | 73 68 6f 75 6c 64 20 62 |/*...It |should b|
|000016f0| 65 20 69 6e 63 6c 75 64 | 65 64 20 62 79 20 61 6c |e includ|ed by al|
|00001700| 6c 20 70 72 6f 67 72 61 | 6d 73 20 74 68 61 74 20 |l progra|ms that |
|00001710| 77 61 6e 74 20 74 6f 0a | 2f 2a 09 09 09 75 73 65 |want to.|/*...use|
|00001720| 20 74 68 65 20 77 69 64 | 67 65 74 20 6c 69 62 72 | the wid|get libr|
|00001730| 61 72 79 2e 0a 2f 2a 20 | 44 49 53 43 4c 41 49 4d |ary../* |DISCLAIM|
|00001740| 45 52 3a 09 09 54 68 69 | 73 20 66 69 6c 65 20 69 |ER:..Thi|s file i|
|00001750| 73 20 64 65 65 6d 65 64 | 20 74 6f 20 62 65 20 70 |s deemed| to be p|
|00001760| 75 62 6c 69 63 2d 64 6f | 6d 61 69 6e 2c 20 6f 6e |ublic-do|main, on|
|00001770| 20 74 68 65 20 73 69 6d | 70 6c 65 0a 2f 2a 09 09 | the sim|ple./*..|
|00001780| 09 70 72 6f 76 69 73 6f | 73 20 74 68 61 74 20 74 |.proviso|s that t|
|00001790| 68 69 73 20 73 65 63 74 | 69 6f 6e 20 72 65 6d 61 |his sect|ion rema|
|000017a0| 69 6e 73 20 69 6e 20 74 | 68 69 73 20 66 69 6c 65 |ins in t|his file|
|000017b0| 20 61 6e 64 0a 2f 2a 09 | 09 09 74 68 61 74 20 63 | and./*.|..that c|
|000017c0| 6f 64 65 20 75 73 69 6e | 67 20 69 74 20 64 6f 20 |ode usin|g it do |
|000017d0| 6e 6f 74 20 64 6f 20 73 | 6f 20 66 6f 72 20 6d 6f |not do s|o for mo|
|000017e0| 6e 65 74 61 72 79 20 67 | 61 69 6e 2e 0a 2f 2a 09 |netary g|ain../*.|
|000017f0| 09 09 4e 65 69 74 68 65 | 72 20 74 68 65 20 61 75 |..Neithe|r the au|
|00001800| 74 68 6f 72 2c 20 6e 6f | 72 20 74 68 65 20 61 75 |thor, no|r the au|
|00001810| 74 68 6f 72 73 20 65 6d | 70 6c 6f 79 65 65 73 20 |thors em|ployees |
|00001820| 61 74 20 74 68 65 0a 2f | 2a 09 09 09 74 69 6d 65 |at the./|*...time|
|00001830| 20 6f 66 20 64 65 76 65 | 6c 6f 70 69 6e 67 20 74 | of deve|loping t|
|00001840| 68 69 73 20 63 6f 64 65 | 2c 20 61 63 63 65 70 74 |his code|, accept|
|00001850| 20 61 6e 79 20 6c 69 61 | 62 69 6c 69 74 79 20 6f | any lia|bility o|
|00001860| 72 0a 2f 2a 09 09 09 72 | 65 73 70 6f 6e 73 69 62 |r./*...r|esponsib|
|00001870| 69 6c 69 74 79 20 66 6f | 72 20 74 68 65 20 75 73 |ility fo|r the us|
|00001880| 65 2c 20 61 62 75 73 65 | 20 6f 72 20 6d 69 73 75 |e, abuse| or misu|
|00001890| 73 65 20 6f 66 20 74 68 | 69 73 0a 2f 2a 09 09 09 |se of th|is./*...|
|000018a0| 63 6f 64 65 2e 0a 2f 2a | 2a 2a 2a 2a 2a 2a 2a 2a |code../*|********|
|000018b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000018c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000018d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000018e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000018f0| 2a 2a 2a 2a 2f 0a 0a 23 | 69 6e 63 6c 75 64 65 20 |****/..#|include |
|00001900| 3c 63 75 72 73 65 73 2e | 68 3e 0a 0a 2f 2a 20 64 |<curses.|h>../* d|
|00001910| 65 66 69 6e 69 74 69 6f | 6e 20 66 6f 72 20 63 6f |efinitio|n for co|
|00001920| 6d 6d 61 6e 64 20 77 69 | 64 67 65 74 20 65 6e 74 |mmand wi|dget ent|
|00001930| 72 79 20 69 6e 20 6c 69 | 6e 6b 65 64 20 6c 69 73 |ry in li|nked lis|
|00001940| 74 20 2a 2f 0a 73 74 72 | 75 63 74 20 20 20 20 63 |t */.str|uct c|
|00001950| 6d 64 77 69 64 7b 0a 20 | 20 20 20 09 09 57 49 4e |mdwid{. | ..WIN|
|00001960| 44 4f 57 09 09 2a 77 69 | 64 67 65 74 3b 0a 20 20 |DOW..*wi|dget;. |
|00001970| 20 20 09 09 69 6e 74 09 | 09 69 64 3b 0a 20 20 20 | ..int.|.id;. |
|00001980| 20 09 09 63 68 61 72 09 | 09 6d 73 67 5b 31 30 30 | ..char.|.msg[100|
|00001990| 5d 3b 0a 20 20 20 20 09 | 09 63 68 61 72 09 09 61 |];. .|.char..a|
|000019a0| 63 70 74 3b 0a 20 20 20 | 20 09 09 69 6e 74 09 09 |cpt;. | ..int..|
|000019b0| 28 2a 66 75 6e 63 29 28 | 29 3b 0a 20 20 20 20 09 |(*func)(|);. .|
|000019c0| 09 69 6e 74 09 09 6c 65 | 6e 67 74 68 3b 09 0a 20 |.int..le|ngth;.. |
|000019d0| 20 20 20 09 09 69 6e 74 | 09 09 78 2c 79 3b 0a 09 | ..int|..x,y;..|
|000019e0| 09 69 6e 74 09 09 61 63 | 74 69 76 65 3b 0a 20 20 |.int..ac|tive;. |
|000019f0| 20 20 09 09 73 74 72 75 | 63 74 20 63 6d 64 77 69 | ..stru|ct cmdwi|
|00001a00| 64 09 2a 6e 65 78 74 3b | 0a 20 20 20 20 09 7d 20 |d.*next;|. .} |
|00001a10| 2a 63 6d 64 6c 69 73 74 | 3b 0a 0a 2f 2a 20 64 65 |*cmdlist|;../* de|
|00001a20| 66 69 6e 69 74 69 6f 6e | 20 66 6f 72 20 6c 61 62 |finition| for lab|
|00001a30| 65 6c 20 77 69 64 67 65 | 74 20 65 6e 74 72 79 20 |el widge|t entry |
|00001a40| 69 6e 20 6c 69 6e 6b 65 | 64 20 6c 69 73 74 20 2a |in linke|d list *|
|00001a50| 2f 0a 73 74 72 75 63 74 | 20 20 20 20 6c 62 6c 77 |/.struct| lblw|
|00001a60| 69 64 7b 0a 20 20 20 20 | 09 09 57 49 4e 44 4f 57 |id{. |..WINDOW|
|00001a70| 09 09 2a 77 69 64 67 65 | 74 3b 0a 20 20 20 20 09 |..*widge|t;. .|
|00001a80| 09 69 6e 74 09 09 69 64 | 3b 0a 20 20 20 20 09 09 |.int..id|;. ..|
|00001a90| 63 68 61 72 09 09 6d 73 | 67 5b 31 30 30 5d 3b 0a |char..ms|g[100];.|
|00001aa0| 20 20 20 20 09 09 63 68 | 61 72 09 09 70 6f 73 3b | ..ch|ar..pos;|
|00001ab0| 0a 20 20 20 20 09 09 69 | 6e 74 09 09 6c 65 6e 67 |. ..i|nt..leng|
|00001ac0| 74 68 3b 09 0a 09 09 69 | 6e 74 09 09 64 69 66 66 |th;....i|nt..diff|
|00001ad0| 65 72 65 6e 63 65 3b 0a | 20 20 20 20 09 09 69 6e |erence;.| ..in|
|00001ae0| 74 09 09 78 2c 79 3b 0a | 20 20 20 20 09 09 73 74 |t..x,y;.| ..st|
|00001af0| 72 75 63 74 20 6c 62 6c | 77 69 64 09 2a 6e 65 78 |ruct lbl|wid.*nex|
|00001b00| 74 3b 0a 20 20 20 20 09 | 7d 20 2a 6c 62 6c 6c 69 |t;. .|} *lblli|
|00001b10| 73 74 3b 0a 0a 2f 2a 20 | 64 65 66 69 6e 69 74 69 |st;../* |definiti|
|00001b20| 6f 6e 20 66 6f 72 20 74 | 6f 67 6c 65 20 77 69 64 |on for t|ogle wid|
|00001b30| 67 65 74 20 65 6e 74 72 | 79 20 69 6e 20 6c 69 6e |get entr|y in lin|
|00001b40| 6b 65 64 20 6c 69 73 74 | 20 2a 2f 0a 73 74 72 75 |ked list| */.stru|
|00001b50| 63 74 20 20 20 20 20 74 | 67 6c 77 69 64 7b 0a 20 |ct t|glwid{. |
|00001b60| 20 20 20 09 09 57 49 4e | 44 4f 57 09 09 2a 77 69 | ..WIN|DOW..*wi|
|00001b70| 64 67 65 74 3b 0a 20 20 | 20 20 09 09 69 6e 74 09 |dget;. | ..int.|
|00001b80| 09 69 64 3b 0a 20 20 20 | 20 09 09 63 68 61 72 09 |.id;. | ..char.|
|00001b90| 09 6d 73 67 5b 31 30 30 | 5d 3b 0a 20 20 20 20 09 |.msg[100|];. .|
|00001ba0| 09 63 68 61 72 09 09 74 | 67 6c 5b 31 30 5d 5b 32 |.char..t|gl[10][2|
|00001bb0| 30 5d 3b 0a 20 20 20 20 | 09 09 63 68 61 72 09 09 |0];. |..char..|
|00001bc0| 74 6f 67 67 6c 65 3b 0a | 20 20 20 20 09 09 69 6e |toggle;.| ..in|
|00001bd0| 74 09 09 63 75 72 3b 0a | 09 20 09 69 6e 74 20 09 |t..cur;.|. .int .|
|00001be0| 09 74 6f 74 61 6c 3b 0a | 20 20 20 20 09 09 69 6e |.total;.| ..in|
|00001bf0| 74 09 09 6c 65 6e 67 74 | 68 3b 0a 20 20 20 20 09 |t..lengt|h;. .|
|00001c00| 09 69 6e 74 20 09 09 78 | 74 67 6c 3b 0a 20 20 20 |.int ..x|tgl;. |
|00001c10| 20 09 09 69 6e 74 09 09 | 78 2c 79 3b 0a 09 09 69 | ..int..|x,y;...i|
|00001c20| 6e 74 09 09 61 63 74 69 | 76 65 3b 0a 20 20 20 20 |nt..acti|ve;. |
|00001c30| 09 09 73 74 72 75 63 74 | 20 74 67 6c 77 69 64 09 |..struct| tglwid.|
|00001c40| 2a 6e 65 78 74 3b 0a 20 | 20 20 20 09 7d 20 2a 74 |*next;. | .} *t|
|00001c50| 67 6c 6c 69 73 74 3b 0a | 0a 2f 2a 20 64 65 66 69 |gllist;.|./* defi|
|00001c60| 6e 69 74 69 6f 6e 20 66 | 6f 72 20 69 6e 70 75 74 |nition f|or input|
|00001c70| 20 77 69 64 67 65 74 20 | 65 6e 74 72 79 20 69 6e | widget |entry in|
|00001c80| 20 6c 69 6e 6b 65 64 20 | 6c 69 73 74 20 2a 2f 0a | linked |list */.|
|00001c90| 73 74 72 75 63 74 20 69 | 6e 70 77 69 64 7b 0a 20 |struct i|npwid{. |
|00001ca0| 20 20 20 09 09 57 49 4e | 44 4f 57 09 09 2a 77 69 | ..WIN|DOW..*wi|
|00001cb0| 64 67 65 74 3b 0a 20 20 | 20 20 09 09 69 6e 74 20 |dget;. | ..int |
|00001cc0| 09 09 69 64 3b 0a 09 09 | 63 68 61 72 09 09 6d 73 |..id;...|char..ms|
|00001cd0| 67 5b 31 30 30 5d 3b 0a | 20 20 20 20 09 09 63 68 |g[100];.| ..ch|
|00001ce0| 61 72 09 09 61 63 70 74 | 3b 0a 20 20 20 20 09 09 |ar..acpt|;. ..|
|00001cf0| 63 68 61 72 09 09 2a 69 | 6e 70 75 74 3b 0a 09 09 |char..*i|nput;...|
|00001d00| 69 6e 74 09 09 73 6f 66 | 69 3b 0a 09 09 69 6e 74 |int..sof|i;...int|
|00001d10| 09 09 65 78 65 63 3b 0a | 20 20 20 20 09 09 69 6e |..exec;.| ..in|
|00001d20| 74 09 09 6c 6f 66 73 3b | 0a 20 20 20 20 09 09 69 |t..lofs;|. ..i|
|00001d30| 6e 74 09 09 6c 65 6e 67 | 74 68 3b 0a 20 20 20 20 |nt..leng|th;. |
|00001d40| 09 09 69 6e 74 09 09 78 | 2c 79 3b 0a 09 09 69 6e |..int..x|,y;...in|
|00001d50| 74 09 09 61 63 74 69 76 | 65 3b 0a 20 20 20 20 09 |t..activ|e;. .|
|00001d60| 09 73 74 72 75 63 74 20 | 69 6e 70 77 69 64 09 2a |.struct |inpwid.*|
|00001d70| 6e 65 78 74 3b 0a 20 20 | 20 20 09 7d 20 2a 69 6e |next;. | .} *in|
|00001d80| 70 6c 69 73 74 3b 0a 20 | 20 20 20 0a 2f 2a 20 6c |plist;. | ./* l|
|00001d90| 69 6e 6b 65 64 20 6c 69 | 73 74 20 6f 66 20 63 68 |inked li|st of ch|
|00001da0| 61 72 61 63 74 65 72 73 | 20 75 73 65 64 20 66 6f |aracters| used fo|
|00001db0| 72 20 61 63 74 69 76 61 | 74 69 6e 67 20 77 69 64 |r activa|ting wid|
|00001dc0| 67 65 74 73 20 2a 2f 09 | 0a 73 74 72 75 63 74 20 |gets */.|.struct |
|00001dd0| 63 68 65 6e 74 72 79 20 | 7b 0a 20 20 20 20 09 09 |chentry |{. ..|
|00001de0| 63 68 61 72 09 09 20 20 | 63 68 3b 0a 20 20 20 20 |char.. |ch;. |
|00001df0| 09 09 69 6e 74 09 20 09 | 20 20 74 79 70 65 3b 0a |..int. .| type;.|
|00001e00| 20 20 20 20 09 09 69 6e | 74 09 09 20 20 69 64 3b | ..in|t.. id;|
|00001e10| 0a 09 09 73 74 72 75 63 | 74 20 63 68 65 6e 74 72 |...struc|t chentr|
|00001e20| 79 20 20 20 20 2a 6e 65 | 78 74 3b 0a 20 20 20 20 |y *ne|xt;. |
|00001e30| 09 7d 20 2a 61 63 74 6c | 69 73 74 3b 0a 0a 2f 2a |.} *actl|ist;../*|
|00001e40| 20 6e 75 6c 6c 20 65 6e | 74 72 69 65 73 20 69 6e | null en|tries in|
|00001e50| 20 74 68 65 20 76 61 72 | 69 6f 75 73 20 6c 69 6e | the var|ious lin|
|00001e60| 6b 65 64 20 6c 69 73 74 | 20 2a 2f 0a 23 64 65 66 |ked list| */.#def|
|00001e70| 69 6e 65 20 4e 55 4c 4c | 43 4d 44 09 09 28 73 74 |ine NULL|CMD..(st|
|00001e80| 72 75 63 74 20 63 6d 64 | 77 69 64 20 2a 29 4e 55 |ruct cmd|wid *)NU|
|00001e90| 4c 4c 0a 23 64 65 66 69 | 6e 65 20 4e 55 4c 4c 4c |LL.#defi|ne NULLL|
|00001ea0| 42 4c 20 09 28 73 74 72 | 75 63 74 20 6c 62 6c 77 |BL .(str|uct lblw|
|00001eb0| 69 64 20 2a 29 4e 55 4c | 4c 0a 23 64 65 66 69 6e |id *)NUL|L.#defin|
|00001ec0| 65 20 4e 55 4c 4c 54 47 | 4c 20 09 28 73 74 72 75 |e NULLTG|L .(stru|
|00001ed0| 63 74 20 74 67 6c 77 69 | 64 20 2a 29 4e 55 4c 4c |ct tglwi|d *)NULL|
|00001ee0| 0a 23 64 65 66 69 6e 65 | 20 4e 55 4c 4c 49 4e 50 |.#define| NULLINP|
|00001ef0| 20 09 28 73 74 72 75 63 | 74 20 69 6e 70 77 69 64 | .(struc|t inpwid|
|00001f00| 20 2a 29 4e 55 4c 4c 0a | 23 64 65 66 69 6e 65 20 | *)NULL.|#define |
|00001f10| 4e 55 4c 4c 43 48 20 09 | 09 28 73 74 72 75 63 74 |NULLCH .|.(struct|
|00001f20| 20 63 68 65 6e 74 72 79 | 20 2a 29 4e 55 4c 4c 0a | chentry| *)NULL.|
|00001f30| 0a 2f 2a 20 70 61 72 74 | 20 6f 66 20 74 68 65 20 |./* part| of the |
|00001f40| 73 70 65 63 69 66 69 63 | 61 74 69 6f 6e 73 20 66 |specific|ations f|
|00001f50| 6f 72 20 6c 61 62 65 6c | 20 77 69 64 67 65 74 73 |or label| widgets|
|00001f60| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 43 45 4e 54 | */.#def|ine CENT|
|00001f70| 52 45 09 09 31 0a 23 64 | 65 66 69 6e 65 09 4c 45 |RE..1.#d|efine.LE|
|00001f80| 46 54 4a 55 53 54 09 32 | 0a 23 64 65 66 69 6e 65 |FTJUST.2|.#define|
|00001f90| 20 52 49 47 48 54 4a 55 | 53 54 09 34 0a 23 64 65 | RIGHTJU|ST.4.#de|
|00001fa0| 66 69 6e 65 20 4e 4f 48 | 49 47 48 09 09 38 0a 0a |fine NOH|IGH..8..|
|00001fb0| 2f 2a 20 74 68 65 20 74 | 79 70 65 73 20 6f 66 20 |/* the t|ypes of |
|00001fc0| 74 68 65 20 77 69 64 67 | 65 74 73 20 2a 2f 0a 23 |the widg|ets */.#|
|00001fd0| 64 65 66 69 6e 65 20 43 | 4d 44 09 09 31 0a 23 64 |define C|MD..1.#d|
|00001fe0| 65 66 69 6e 65 20 54 47 | 4c 09 09 32 0a 23 64 65 |efine TG|L..2.#de|
|00001ff0| 66 69 6e 65 20 4c 42 4c | 09 09 33 0a 23 64 65 66 |fine LBL|..3.#def|
|00002000| 69 6e 65 20 49 4e 50 09 | 09 34 0a 0a 23 64 65 66 |ine INP.|.4..#def|
|00002010| 69 6e 65 20 42 4c 41 4e | 4b 09 09 31 0a 23 64 65 |ine BLAN|K..1.#de|
|00002020| 66 69 6e 65 20 4e 4f 42 | 4c 41 4e 4b 09 09 30 0a |fine NOB|LANK..0.|
|00002030| 0a 23 64 65 66 69 6e 65 | 20 4e 55 4c 4c 57 49 44 |.#define| NULLWID|
|00002040| 47 45 54 09 30 0a 0a 23 | 64 65 66 69 6e 65 20 45 |GET.0..#|define E|
|00002050| 58 45 43 09 09 31 0a 23 | 64 65 66 69 6e 65 20 4e |XEC..1.#|define N|
|00002060| 4f 45 58 45 43 09 09 30 | 0a 0a 23 64 65 66 69 6e |OEXEC..0|..#defin|
|00002070| 65 20 56 45 52 54 49 43 | 41 4c 09 31 0a 23 64 65 |e VERTIC|AL.1.#de|
|00002080| 66 69 6e 65 20 48 4f 52 | 49 5a 4f 4e 54 41 4c 09 |fine HOR|IZONTAL.|
|00002090| 32 0a 0a 74 79 70 65 64 | 65 66 20 69 6e 74 20 57 |2..typed|ef int W|
|000020a0| 49 44 47 45 54 3b 0a 74 | 79 70 65 64 65 66 20 69 |IDGET;.t|ypedef i|
|000020b0| 6e 74 20 57 49 44 47 45 | 54 54 59 50 45 3b 0a 0a |nt WIDGE|TTYPE;..|
|000020c0| 74 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 77 69 64 |tions of| the wid|
|000020d0| 67 65 74 20 73 74 72 75 | 63 74 75 72 65 73 2e 0a |get stru|ctures..|
|000020e0| 2f 2a 09 09 09 49 74 20 | 73 68 6f 75 6c 64 20 62 |/*...It |should b|
|000020f0| 65 20 69 6e 63 6c 75 64 | 65 64 20 62 79 20 61 6c |e includ|ed by al|
|00002100| 6c 20 70 72 6f 67 72 61 | 6d 73 20 74 68 61 74 20 |l progra|ms that |
|00002110| 77 61 6e 74 20 74 6f 0a | 2f 2a 09 09 09 75 73 65 |want to.|/*...use|
|00002120| 20 74 68 65 20 77 69 64 | 67 65 74 20 6c 69 62 72 | the wid|get libr|
|00002130| 61 72 79 2e 0a 2f 2a 20 | 44 49 53 43 4c 41 49 4d |ary../* |DISCLAIM|
|00002140| 45 52 3a 09 09 54 68 69 | 73 20 66 69 6c 65 20 69 |ER:..Thi|s file i|
|00002150| 73 20 64 65 65 6d 65 64 | 20 74 6f 20 62 65 20 70 |s deemed| to be p|
|00002160| 75 62 6c 69 63 2d 64 6f | 6d 61 69 6e 2c 20 6f 6e |ublic-do|main, on|
|00002170| 20 74 68 65 20 73 69 6d | 70 6c 65 0a 2f 2a 09 09 | the sim|ple./*..|
|00002180| 09 70 72 6f 76 69 73 6f | 73 20 74 68 61 74 20 74 |.proviso|s that t|
|00002190| 68 69 73 20 73 65 63 74 | 69 6f 6e 20 72 65 6d 61 |his sect|ion rema|
|000021a0| 69 6e 73 20 69 6e 20 74 | 68 69 73 20 66 69 6c 65 |ins in t|his file|
|000021b0| 20 61 6e 64 0a 2f 2a 09 | 09 09 74 68 61 74 20 63 | and./*.|..that c|
|000021c0| 6f 64 65 20 75 73 69 6e | 67 20 69 74 20 64 6f 20 |ode usin|g it do |
|000021d0| 6e 6f 74 20 64 6f 20 73 | 6f 20 66 6f 72 20 6d 6f |not do s|o for mo|
|000021e0| 6e 65 74 61 72 79 20 67 | 61 69 6e 2e 0a 2f 2a 09 |netary g|ain../*.|
|000021f0| 09 09 4e 65 69 74 68 65 | 72 20 74 68 65 20 61 75 |..Neithe|r the au|
|00002200| 63 75 72 73 65 73 2d 77 | 69 64 67 65 74 73 2f 77 |curses-w|idgets/w|
|00002210| 69 64 67 65 74 2e 6d 73 | 00 00 00 00 00 00 00 00 |idget.ms|........|
|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 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00002270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00002280| 20 20 32 35 33 34 32 20 | 20 34 34 30 33 36 30 32 | 25342 | 4403602|
|00002290| 33 31 33 20 20 31 30 37 | 31 36 00 20 00 00 00 00 |313 107|16. ....|
|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 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 00 00 00 00 00 00 |........|........|
|00002360| 00 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| 2e 4e 44 0a 2e 4c 50 0a | 2e 6e 72 20 50 53 20 31 |.ND..LP.|.nr PS 1|
|00002410| 32 0a 2e 6e 72 20 56 53 | 20 31 33 0a 2e 4c 50 0a |2..nr VS| 13..LP.|
|00002420| 2e 6e 68 0a 2e 52 50 0a | 2e 54 4c 0a 41 20 57 69 |.nh..RP.|.TL.A Wi|
|00002430| 6e 64 6f 77 20 62 61 73 | 65 64 20 49 6e 74 65 72 |ndow bas|ed Inter|
|00002440| 61 63 74 69 76 65 20 50 | 72 6f 67 72 61 6d 6d 69 |active P|rogrammi|
|00002450| 6e 67 20 55 74 69 6c 69 | 74 79 20 4f 6e 20 55 6e |ng Utili|ty On Un|
|00002460| 69 78 3a 0a 41 20 4c 69 | 62 72 61 72 79 20 50 61 |ix:.A Li|brary Pa|
|00002470| 63 6b 61 67 65 20 66 6f | 72 20 43 20 70 72 6f 67 |ckage fo|r C prog|
|00002480| 72 61 6d 6d 65 72 73 0a | 2e 41 55 0a 52 69 63 68 |rammers.|.AU.Rich|
|00002490| 61 72 64 20 41 2e 20 43 | 75 6c 73 68 61 77 0a 2e |ard A. C|ulshaw..|
|000024a0| 41 49 0a 47 45 43 20 48 | 69 72 73 74 20 52 65 73 |AI.GEC H|irst Res|
|000024b0| 65 61 72 63 68 20 43 65 | 6e 74 72 65 0a 44 61 74 |earch Ce|ntre.Dat|
|000024c0| 61 20 53 79 73 74 65 6d | 73 20 44 69 76 69 73 69 |a System|s Divisi|
|000024d0| 6f 6e 0a 45 61 73 74 20 | 4c 61 6e 65 0a 57 65 6d |on.East |Lane.Wem|
|000024e0| 62 6c 65 79 0a 4d 69 64 | 64 6c 65 73 65 78 20 48 |bley.Mid|dlesex H|
|000024f0| 41 39 20 37 50 50 0a 2e | 4e 44 0a 2e 4b 53 0a 2e |A9 7PP..|ND..KS..|
|00002500| 53 48 0a 49 4e 54 52 4f | 44 55 43 54 49 4f 4e 0a |SH.INTRO|DUCTION.|
|00002510| 0a 2e 50 50 0a 41 20 57 | 69 64 67 65 74 20 69 73 |..PP.A W|idget is|
|00002520| 20 61 20 75 73 65 72 20 | 64 65 66 69 6e 61 62 6c | a user |definabl|
|00002530| 65 20 0a 2e 42 20 22 77 | 69 6e 64 6f 77 20 67 61 |e ..B "w|indow ga|
|00002540| 64 67 65 74 2e 22 0a 20 | 54 68 65 79 20 61 6c 6c |dget.". |They all|
|00002550| 6f 77 20 74 68 65 20 75 | 73 65 72 20 74 6f 20 69 |ow the u|ser to i|
|00002560| 6e 74 65 72 61 63 74 20 | 77 69 74 68 20 74 68 65 |nteract |with the|
|00002570| 20 70 72 6f 67 72 61 6d | 20 69 6e 20 73 70 65 63 | program| in spec|
|00002580| 69 66 79 69 6e 67 20 6f | 70 65 72 61 74 69 6f 6e |ifying o|peration|
|00002590| 73 20 74 6f 20 62 65 20 | 63 61 72 72 69 65 64 20 |s to be |carried |
|000025a0| 6f 75 74 2e 20 57 69 64 | 67 65 74 6c 69 62 20 69 |out. Wid|getlib i|
|000025b0| 73 20 61 20 73 65 74 20 | 6f 66 20 6c 69 62 72 61 |s a set |of libra|
|000025c0| 72 79 20 66 75 6e 63 74 | 69 6f 6e 73 20 77 68 69 |ry funct|ions whi|
|000025d0| 63 68 20 61 6c 6c 6f 77 | 73 20 74 68 65 20 75 73 |ch allow|s the us|
|000025e0| 65 72 20 74 6f 20 63 72 | 65 61 74 65 20 61 6e 64 |er to cr|eate and|
|000025f0| 20 69 6e 74 65 72 61 63 | 74 20 77 69 74 68 20 0a | interac|t with .|
|00002600| 2e 42 20 77 69 64 67 65 | 74 73 2e 0a 41 20 77 69 |.B widge|ts..A wi|
|00002610| 64 67 65 74 20 63 61 6e | 20 62 65 20 6f 6e 65 20 |dget can| be one |
|00002620| 6f 66 20 66 6f 75 72 20 | 74 79 70 65 73 20 3a 0a |of four |types :.|
|00002630| 2e 4c 50 0a 20 20 20 20 | 20 20 31 29 20 0a 2e 42 |.LP. | 1) ..B|
|00002640| 20 43 6f 6d 6d 61 6e 64 | 20 0a 57 69 64 67 65 74 | Command| .Widget|
|00002650| 20 0a 20 20 20 20 20 20 | 32 29 20 0a 2e 42 20 4c | . |2) ..B L|
|00002660| 61 62 65 6c 20 0a 57 69 | 64 67 65 74 0a 20 20 20 |abel .Wi|dget. |
|00002670| 20 20 20 33 29 20 0a 2e | 42 20 54 6f 67 67 6c 65 | 3) ..|B Toggle|
|00002680| 20 0a 57 69 64 67 65 74 | 0a 20 20 20 20 20 20 34 | .Widget|. 4|
|00002690| 29 20 0a 2e 42 20 49 6e | 70 75 74 20 0a 57 69 64 |) ..B In|put .Wid|
|000026a0| 67 65 74 0a 0a 2e 53 48 | 0a 43 6f 6d 6d 61 6e 64 |get...SH|.Command|
|000026b0| 20 57 69 64 67 65 74 73 | 0a 2e 50 50 0a 41 20 63 | Widgets|..PP.A c|
|000026c0| 6f 6d 6d 61 6e 64 20 77 | 69 64 67 65 74 20 61 6c |ommand w|idget al|
|000026d0| 6c 6f 77 73 20 74 68 65 | 20 75 73 65 72 20 74 6f |lows the| user to|
|000026e0| 20 73 65 6c 65 63 74 20 | 61 20 66 75 6e 63 74 69 | select |a functi|
|000026f0| 6f 6e 20 74 6f 20 62 65 | 20 63 61 72 72 69 65 64 |on to be| carried|
|00002700| 20 6f 75 74 2c 20 65 2e | 67 20 69 6e 20 61 20 70 | out, e.|g in a p|
|00002710| 61 67 69 6e 67 20 70 72 | 6f 67 72 61 6d 20 6f 6e |aging pr|ogram on|
|00002720| 65 20 73 75 63 68 20 63 | 6f 6d 6d 61 6e 64 20 63 |e such c|ommand c|
|00002730| 6f 75 6c 64 20 62 65 20 | 27 4e 65 78 74 20 50 61 |ould be |'Next Pa|
|00002740| 67 65 27 2e 20 49 6e 20 | 63 72 65 61 74 69 6e 67 |ge'. In |creating|
|00002750| 20 61 20 63 6f 6d 6d 61 | 6e 64 20 77 69 64 67 65 | a comma|nd widge|
|00002760| 74 20 74 68 65 20 70 72 | 6f 67 72 61 6d 6d 65 72 |t the pr|ogrammer|
|00002770| 20 6d 75 73 74 20 70 61 | 73 73 20 69 74 20 74 68 | must pa|ss it th|
|00002780| 65 20 66 75 6e 63 74 69 | 6f 6e 20 74 6f 20 62 65 |e functi|on to be|
|00002790| 20 63 61 72 72 69 65 64 | 20 6f 75 74 20 77 68 65 | carried| out whe|
|000027a0| 6e 20 74 68 65 20 77 69 | 64 67 65 74 20 69 73 20 |n the wi|dget is |
|000027b0| 73 65 6c 65 63 74 65 64 | 20 28 61 63 74 69 76 61 |selected| (activa|
|000027c0| 74 65 64 29 2e 20 54 68 | 65 20 77 69 64 67 65 74 |ted). Th|e widget|
|000027d0| 20 69 73 20 61 63 74 69 | 76 61 74 65 64 20 75 73 | is acti|vated us|
|000027e0| 69 6e 67 20 61 20 75 6e | 69 71 75 65 20 27 61 63 |ing a un|ique 'ac|
|000027f0| 74 69 76 61 74 69 6f 6e | 27 20 63 68 61 72 61 63 |tivation|' charac|
|00002800| 74 65 72 20 77 68 69 63 | 68 20 69 73 20 64 69 73 |ter whic|h is dis|
|00002810| 70 6c 61 79 65 64 20 69 | 6e 20 74 68 65 20 77 69 |played i|n the wi|
|00002820| 64 67 65 74 20 66 6f 72 | 20 65 61 73 79 20 72 65 |dget for| easy re|
|00002830| 66 65 72 65 6e 63 65 2e | 0a 0a 2e 53 48 0a 4c 61 |ference.|...SH.La|
|00002840| 62 65 6c 20 57 69 64 67 | 65 74 73 0a 2e 50 50 0a |bel Widg|ets..PP.|
|00002850| 41 20 6c 61 62 65 6c 20 | 77 69 64 67 65 74 20 69 |A label |widget i|
|00002860| 73 20 73 69 6d 70 6c 79 | 20 61 20 77 69 64 67 65 |s simply| a widge|
|00002870| 74 20 77 68 69 63 68 20 | 68 6f 6c 64 73 20 61 20 |t which |holds a |
|00002880| 63 68 61 72 61 63 74 65 | 72 20 73 74 72 69 6e 67 |characte|r string|
|00002890| 20 73 75 63 68 20 61 73 | 20 61 20 68 65 61 64 69 | such as| a headi|
|000028a0| 6e 67 2c 20 77 68 69 63 | 68 20 63 61 6e 20 62 65 |ng, whic|h can be|
|000028b0| 20 63 68 61 6e 67 65 64 | 20 61 74 20 77 69 6c 6c | changed| at will|
|000028c0| 20 6c 61 74 65 72 2e 20 | 54 68 65 20 70 72 6f 67 | later. |The prog|
|000028d0| 72 61 6d 6d 65 72 20 63 | 61 6e 20 73 75 70 70 6c |rammer c|an suppl|
|000028e0| 79 20 70 61 72 61 6d 65 | 74 65 72 73 20 77 68 69 |y parame|ters whi|
|000028f0| 63 68 20 63 61 6e 20 65 | 69 74 68 65 72 20 6c 65 |ch can e|ither le|
|00002900| 66 74 20 6a 75 73 74 69 | 66 79 20 28 64 65 66 61 |ft justi|fy (defa|
|00002910| 75 6c 74 29 2c 20 72 69 | 67 68 74 20 6a 75 73 74 |ult), ri|ght just|
|00002920| 69 66 79 2c 20 6f 72 20 | 63 65 6e 74 72 65 20 74 |ify, or |centre t|
|00002930| 68 65 20 6d 65 73 73 61 | 67 65 20 77 69 74 68 69 |he messa|ge withi|
|00002940| 6e 20 74 68 65 20 77 69 | 64 67 65 74 20 28 77 68 |n the wi|dget (wh|
|00002950| 69 63 68 20 68 61 73 20 | 61 20 75 73 65 72 20 64 |ich has |a user d|
|00002960| 65 66 69 6e 61 62 6c 65 | 20 77 69 64 74 68 29 20 |efinable| width) |
|00002970| 61 73 20 77 65 6c 6c 20 | 61 73 20 68 69 67 68 6c |as well |as highl|
|00002980| 69 67 68 74 20 28 64 65 | 66 61 75 6c 74 29 20 6f |ight (de|fault) o|
|00002990| 72 20 64 65 68 69 67 68 | 6c 69 67 68 74 20 69 74 |r dehigh|light it|
|000029a0| 2e 0a 0a 2e 53 48 0a 54 | 6f 67 67 6c 65 20 57 69 |....SH.T|oggle Wi|
|000029b0| 64 67 65 74 73 0a 2e 50 | 50 0a 41 20 74 6f 67 67 |dgets..P|P.A togg|
|000029c0| 6c 65 20 77 69 64 67 65 | 74 20 63 6f 6e 74 61 69 |le widge|t contai|
|000029d0| 6e 73 20 61 20 6d 65 73 | 73 61 67 65 20 77 68 69 |ns a mes|sage whi|
|000029e0| 63 68 20 69 6e 64 69 63 | 61 74 65 73 20 74 68 65 |ch indic|ates the|
|000029f0| 20 63 75 72 72 65 6e 74 | 20 76 61 6c 75 65 20 6f | current| value o|
|00002a00| 66 20 61 6e 20 65 6e 74 | 69 74 79 20 77 68 69 63 |f an ent|ity whic|
|00002a10| 68 20 63 61 6e 20 62 65 | 20 6d 6f 72 65 20 74 68 |h can be| more th|
|00002a20| 61 6e 20 6f 6e 65 20 76 | 61 6c 75 65 20 65 2e 67 |an one v|alue e.g|
|00002a30| 2c 20 59 65 73 2f 4e 6f | 2f 44 6f 6e 27 74 2d 4b |, Yes/No|/Don't-K|
|00002a40| 6e 6f 77 2e 20 54 68 65 | 20 76 61 6c 75 65 20 69 |now. The| value i|
|00002a50| 73 20 74 6f 67 67 6c 65 | 64 20 77 68 65 6e 20 61 |s toggle|d when a|
|00002a60| 20 67 69 76 65 6e 20 63 | 68 61 72 61 63 74 65 72 | given c|haracter|
|00002a70| 20 69 73 20 70 72 65 73 | 73 65 64 2e 20 54 68 65 | is pres|sed. The|
|00002a80| 20 61 63 74 69 76 61 74 | 69 6f 6e 20 63 68 61 72 | activat|ion char|
|00002a90| 61 63 74 65 72 20 69 73 | 20 61 6c 73 6f 20 64 69 |acter is| also di|
|00002aa0| 73 70 6c 61 79 65 64 20 | 69 6e 20 74 68 65 20 77 |splayed |in the w|
|00002ab0| 69 64 67 65 74 2e 20 41 | 74 20 61 6e 79 20 70 6f |idget. A|t any po|
|00002ac0| 69 6e 74 20 74 68 65 20 | 70 72 6f 67 72 61 6d 6d |int the |programm|
|00002ad0| 65 72 20 63 61 6e 20 65 | 6e 71 75 69 72 65 20 61 |er can e|nquire a|
|00002ae0| 73 20 74 6f 20 74 68 65 | 20 74 68 65 20 63 75 72 |s to the| the cur|
|00002af0| 72 65 6e 74 20 74 6f 67 | 67 6c 65 20 76 61 6c 75 |rent tog|gle valu|
|00002b00| 65 2e 0a 0a 2e 53 48 0a | 49 6e 70 75 74 20 57 69 |e....SH.|Input Wi|
|00002b10| 64 67 65 74 73 0a 2e 50 | 50 0a 41 6e 20 69 6e 70 |dgets..P|P.An inp|
|00002b20| 75 74 20 77 69 64 67 65 | 74 20 61 6c 6c 6f 77 73 |ut widge|t allows|
|00002b30| 20 74 68 65 20 75 73 65 | 72 20 74 6f 20 65 6e 74 | the use|r to ent|
|00002b40| 65 72 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 69 |er infor|mation i|
|00002b50| 6e 74 6f 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 |nto the |program |
|00002b60| 69 6e 20 74 68 65 20 66 | 6f 72 6d 20 6f 66 20 61 |in the f|orm of a|
|00002b70| 20 73 74 72 69 6e 67 2c | 20 65 2e 67 20 69 6e 20 | string,| e.g in |
|00002b80| 61 20 70 61 67 69 6e 67 | 20 70 72 6f 67 72 61 6d |a paging| program|
|00002b90| 20 6f 6e 65 20 6d 69 67 | 68 74 20 77 61 6e 74 20 | one mig|ht want |
|00002ba0| 74 6f 20 73 75 70 70 6c | 79 20 61 20 66 69 6c 65 |to suppl|y a file|
|00002bb0| 20 6e 61 6d 65 2e 20 54 | 68 65 72 65 20 61 72 65 | name. T|here are|
|00002bc0| 20 74 77 6f 20 74 79 70 | 65 73 20 6f 66 20 69 6e | two typ|es of in|
|00002bd0| 70 75 74 20 77 69 64 67 | 65 74 73 20 3a 0a 0a 61 |put widg|ets :..a|
|00002be0| 29 20 54 68 65 20 77 69 | 64 67 65 74 20 69 73 20 |) The wi|dget is |
|00002bf0| 61 63 74 69 76 61 74 65 | 64 20 69 6d 6d 65 64 69 |activate|d immedi|
|00002c00| 61 74 65 6c 79 20 6f 6e | 20 63 72 65 61 74 69 6f |ately on| creatio|
|00002c10| 6e 20 74 68 65 72 65 66 | 6f 72 65 20 61 6e 20 61 |n theref|ore an a|
|00002c20| 63 74 69 76 61 74 69 6f | 6e 20 63 68 61 72 61 63 |ctivatio|n charac|
|00002c30| 74 65 72 20 69 73 20 6e | 6f 74 20 72 65 71 75 69 |ter is n|ot requi|
|00002c40| 72 65 64 2e 20 45 2e 67 | 20 69 6e 20 61 20 70 61 |red. E.g| in a pa|
|00002c50| 67 69 6e 67 20 70 72 6f | 67 72 61 6d 20 6f 6e 65 |ging pro|gram one|
|00002c60| 20 6d 69 67 68 74 20 68 | 61 76 65 20 61 20 63 6f | might h|ave a co|
|00002c70| 6d 6d 61 6e 64 20 77 69 | 64 67 65 74 20 77 68 69 |mmand wi|dget whi|
|00002c80| 63 68 20 61 63 74 69 76 | 61 74 65 73 20 74 68 69 |ch activ|ates thi|
|00002c90| 73 20 74 79 70 65 20 6f | 66 20 69 6e 70 75 74 20 |s type o|f input |
|00002ca0| 77 69 64 67 65 74 20 69 | 6e 20 6f 72 64 65 72 20 |widget i|n order |
|00002cb0| 74 6f 20 67 65 74 20 61 | 20 66 69 6c 65 20 6e 61 |to get a| file na|
|00002cc0| 6d 65 2e 0a 2e 4c 50 0a | 62 29 20 54 68 65 20 77 |me...LP.|b) The w|
|00002cd0| 69 64 67 65 74 20 68 61 | 73 20 61 6e 20 61 73 73 |idget ha|s an ass|
|00002ce0| 6f 63 69 61 74 65 64 20 | 61 63 74 69 76 61 74 69 |ociated |activati|
|00002cf0| 6f 6e 20 63 68 61 72 61 | 63 74 65 72 20 73 6f 20 |on chara|cter so |
|00002d00| 74 68 65 72 65 66 6f 72 | 65 20 69 74 20 6d 61 79 |therefor|e it may|
|00002d10| 20 62 65 20 61 63 74 69 | 76 61 74 65 64 20 61 74 | be acti|vated at|
|00002d20| 20 61 6e 79 20 70 6f 69 | 6e 74 20 61 66 74 65 72 | any poi|nt after|
|00002d30| 20 63 72 65 61 74 69 6f | 6e 2e 20 54 68 65 20 63 | creatio|n. The c|
|00002d40| 68 61 72 61 63 74 65 72 | 20 69 73 20 64 69 73 70 |haracter| is disp|
|00002d50| 6c 61 79 65 64 20 69 6e | 20 74 68 65 20 77 69 64 |layed in| the wid|
|00002d60| 67 65 74 2e 0a 0a 46 6f | 72 20 65 61 73 65 20 6f |get...Fo|r ease o|
|00002d70| 66 20 75 73 65 20 74 68 | 65 20 69 6e 70 75 74 20 |f use th|e input |
|00002d80| 77 69 64 67 65 74 73 20 | 63 6f 6e 74 61 69 6e 20 |widgets |contain |
|00002d90| 63 68 61 72 61 63 74 65 | 72 20 73 74 72 69 6e 67 |characte|r string|
|00002da0| 73 20 77 68 69 63 68 20 | 63 61 6e 20 65 78 70 6c |s which |can expl|
|00002db0| 61 69 6e 0a 74 68 65 72 | 65 20 75 73 65 20 77 69 |ain.ther|e use wi|
|00002dc0| 74 68 69 6e 20 74 68 65 | 20 70 72 6f 67 72 61 6d |thin the| program|
|00002dd0| 2e 0a 2e 4b 45 0a 2e 62 | 70 0a 2e 53 48 0a 54 65 |...KE..b|p..SH.Te|
|00002de0| 78 74 20 57 69 6e 64 6f | 77 0a 2e 50 50 0a 54 68 |xt Windo|w..PP.Th|
|00002df0| 65 20 6c 69 62 72 61 72 | 79 20 61 6c 73 6f 20 61 |e librar|y also a|
|00002e00| 6c 6c 6f 77 73 20 74 68 | 65 20 75 73 65 72 20 74 |llows th|e user t|
|00002e10| 6f 20 64 65 66 69 6e 65 | 20 61 20 74 65 78 74 20 |o define| a text |
|00002e20| 77 69 6e 64 6f 77 20 69 | 6e 74 6f 20 77 68 69 63 |window i|nto whic|
|00002e30| 68 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 6d 61 |h the pr|ogram ma|
|00002e40| 79 20 72 65 70 6f 72 74 | 20 69 6e 66 6f 72 6d 61 |y report| informa|
|00002e50| 74 69 6f 6e 2e 20 4f 6e | 20 63 72 65 61 74 69 6f |tion. On| creatio|
|00002e60| 6e 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 68 61 |n the pr|ogram ha|
|00002e70| 73 20 74 6f 20 70 61 73 | 73 20 61 20 70 61 72 61 |s to pas|s a para|
|00002e80| 6d 65 74 65 72 20 77 68 | 69 63 68 20 73 70 65 63 |meter wh|ich spec|
|00002e90| 69 66 69 65 73 20 68 6f | 77 20 6d 75 63 68 20 72 |ifies ho|w much r|
|00002ea0| 6f 6f 6d 20 74 6f 20 6c | 65 61 76 65 20 62 65 66 |oom to l|eave bef|
|00002eb0| 6f 72 65 20 74 68 65 20 | 74 6f 70 20 6f 66 20 74 |ore the |top of t|
|00002ec0| 68 65 20 74 65 78 74 20 | 77 69 6e 64 6f 77 2e 20 |he text |window. |
|00002ed0| 45 2e 67 20 30 20 6d 65 | 61 6e 73 20 70 6c 61 63 |E.g 0 me|ans plac|
|00002ee0| 65 20 74 68 65 20 77 69 | 6e 64 6f 77 20 69 6d 6d |e the wi|ndow imm|
|00002ef0| 65 64 69 61 74 65 6c 79 | 20 62 65 6c 6f 77 20 74 |ediately| below t|
|00002f00| 68 65 20 6c 6f 77 65 73 | 74 20 77 69 64 67 65 74 |he lowes|t widget|
|00002f10| 2c 20 31 20 6d 65 61 6e | 73 20 61 6c 6c 6f 77 20 |, 1 mean|s allow |
|00002f20| 72 6f 6f 6d 20 66 6f 72 | 20 6f 6e 65 20 6d 6f 72 |room for| one mor|
|00002f30| 65 20 72 6f 77 20 6f 66 | 20 77 69 64 67 65 74 73 |e row of| widgets|
|00002f40| 20 62 65 66 6f 72 65 20 | 70 6c 61 63 69 6e 67 20 | before |placing |
|00002f50| 74 68 65 20 77 69 6e 64 | 6f 77 2e 20 54 68 65 20 |the wind|ow. The |
|00002f60| 74 65 78 74 20 77 69 6e | 64 6f 77 20 61 6c 77 61 |text win|dow alwa|
|00002f70| 79 73 20 73 74 72 65 74 | 63 68 65 73 20 74 6f 20 |ys stret|ches to |
|00002f80| 74 68 65 20 62 6f 74 74 | 6f 6d 20 6f 66 20 74 68 |the bott|om of th|
|00002f90| 65 20 73 63 72 65 65 6e | 2e 20 54 68 65 20 77 69 |e screen|. The wi|
|00002fa0| 6e 64 6f 77 20 63 61 6e | 20 62 65 20 62 6f 72 64 |ndow can| be bord|
|00002fb0| 65 72 65 64 20 6f 6e 20 | 61 6e 79 20 32 20 6f 70 |ered on |any 2 op|
|00002fc0| 70 6f 73 69 74 65 20 73 | 69 64 65 73 20 6f 72 20 |posite s|ides or |
|00002fd0| 6f 6e 20 61 6c 6c 20 34 | 20 28 65 66 66 65 63 74 |on all 4| (effect|
|00002fe0| 69 76 65 6c 79 20 62 6f | 78 69 6e 67 20 0a 0a 0a |ively bo|xing ...|
|00002ff0| 0a 0a 0a 0a 0a 69 74 29 | 2e 0a 0a 2e 53 48 0a 57 |.....it)|....SH.W|
|00003000| 69 64 67 65 74 20 50 6c | 61 63 65 6d 65 6e 74 0a |idget Pl|acement.|
|00003010| 2e 50 50 0a 54 68 65 20 | 6c 69 62 72 61 72 79 20 |.PP.The |library |
|00003020| 6d 61 69 6e 74 61 69 6e | 73 20 74 68 65 20 63 75 |maintain|s the cu|
|00003030| 72 72 65 6e 74 20 58 2c | 59 20 63 6f 6f 72 64 69 |rrent X,|Y coordi|
|00003040| 6e 61 74 65 20 6f 66 20 | 74 68 65 20 6c 61 73 74 |nate of |the last|
|00003050| 20 77 69 64 67 65 74 20 | 63 72 65 61 74 65 64 2e | widget |created.|
|00003060| 20 57 68 65 6e 20 61 20 | 6e 65 77 20 77 69 64 67 | When a |new widg|
|00003070| 65 74 20 69 73 20 63 72 | 65 61 74 65 64 20 74 68 |et is cr|eated th|
|00003080| 65 20 70 72 6f 67 72 61 | 6d 20 6d 75 73 74 20 70 |e progra|m must p|
|00003090| 61 73 73 20 61 20 70 61 | 72 61 6d 65 74 65 72 20 |ass a pa|rameter |
|000030a0| 30 20 6f 72 20 31 2e 20 | 41 20 30 20 6d 65 61 6e |0 or 1. |A 0 mean|
|000030b0| 73 20 70 75 74 20 74 68 | 65 20 6e 65 77 20 77 69 |s put th|e new wi|
|000030c0| 64 67 65 74 20 6f 6e 20 | 74 68 65 20 63 75 72 72 |dget on |the curr|
|000030d0| 65 6e 74 20 72 6f 77 20 | 69 66 20 70 6f 73 73 69 |ent row |if possi|
|000030e0| 62 6c 65 2c 20 65 6c 73 | 65 20 67 6f 20 6f 6e 74 |ble, els|e go ont|
|000030f0| 6f 20 74 68 65 20 6e 65 | 78 74 20 72 6f 77 2e 20 |o the ne|xt row. |
|00003100| 41 20 31 20 66 6f 72 63 | 65 73 20 74 68 65 20 6e |A 1 forc|es the n|
|00003110| 65 77 20 77 69 64 67 65 | 74 20 6f 6e 74 6f 20 74 |ew widge|t onto t|
|00003120| 68 65 20 6e 65 78 74 20 | 72 6f 77 2e 20 54 68 69 |he next |row. Thi|
|00003130| 73 20 6d 65 61 6e 73 20 | 74 68 61 74 20 77 69 64 |s means |that wid|
|00003140| 67 65 74 73 20 63 61 6e | 20 6f 6e 6c 79 20 67 6f |gets can| only go|
|00003150| 20 61 66 74 65 72 20 70 | 72 65 63 65 64 69 6e 67 | after p|receding|
|00003160| 20 6f 6e 65 73 20 61 6e | 64 20 6e 6f 74 20 62 65 | ones an|d not be|
|00003170| 66 6f 72 65 2e 20 42 75 | 74 20 68 6f 77 65 76 65 |fore. Bu|t howeve|
|00003180| 72 20 77 69 64 67 65 74 | 73 20 63 61 6e 20 62 65 |r widget|s can be|
|00003190| 20 70 6c 61 63 65 64 20 | 6f 76 65 72 20 77 69 64 | placed |over wid|
|000031a0| 67 65 74 73 20 77 68 69 | 63 68 20 68 61 76 65 20 |gets whi|ch have |
|000031b0| 70 72 65 76 69 6f 75 73 | 6c 79 20 62 65 65 6e 20 |previous|ly been |
|000031c0| 64 65 73 74 72 6f 79 65 | 64 2e 0a 0a 2e 53 48 0a |destroye|d....SH.|
|000031d0| 43 6f 6d 70 69 6c 69 6e | 67 20 54 68 69 6e 67 73 |Compilin|g Things|
|000031e0| 0a 2e 50 50 0a 49 6e 20 | 6f 72 64 65 72 20 74 6f |..PP.In |order to|
|000031f0| 20 75 73 65 20 74 68 65 | 20 6c 69 62 72 61 72 79 | use the| library|
|00003200| 2c 20 69 74 20 69 73 20 | 6e 65 63 65 73 73 61 72 |, it is |necessar|
|00003210| 79 20 74 6f 20 68 61 76 | 65 20 63 65 72 74 61 69 |y to hav|e certai|
|00003220| 6e 20 74 79 70 65 73 20 | 61 6e 64 20 76 61 72 69 |n types |and vari|
|00003230| 61 62 6c 65 73 20 64 65 | 66 69 6e 65 64 2e 20 54 |ables de|fined. T|
|00003240| 68 65 72 65 66 6f 72 65 | 2c 20 74 68 65 20 70 72 |herefore|, the pr|
|00003250| 6f 67 72 61 6d 20 6d 75 | 73 74 20 68 61 76 65 20 |ogram mu|st have |
|00003260| 74 68 65 20 6c 69 6e 65 | 3a 0a 2e 50 50 0a 2e 42 |the line|:..PP..B|
|00003270| 20 22 23 69 6e 63 6c 75 | 64 65 20 3c 77 69 64 67 | "#inclu|de <widg|
|00003280| 65 74 73 2e 68 3e 22 0a | 2e 4c 50 0a 61 74 20 74 |ets.h>".|.LP.at t|
|00003290| 68 65 20 74 6f 70 20 6f | 66 20 74 68 65 20 73 6f |he top o|f the so|
|000032a0| 75 72 63 65 2e 20 54 68 | 65 20 68 65 61 64 65 72 |urce. Th|e header|
|000032b0| 20 66 69 6c 65 20 69 6e | 63 6c 75 64 65 73 20 3c | file in|cludes <|
|000032c0| 63 75 72 73 65 73 2e 68 | 3e 2c 20 3c 73 67 65 74 |curses.h|>, <sget|
|000032d0| 74 79 2e 68 3e 2c 20 3c | 73 74 64 69 6f 2e 68 3e |ty.h>, <|stdio.h>|
|000032e0| 20 73 6f 20 79 6f 75 20 | 64 6f 6e 27 74 20 68 61 | so you |don't ha|
|000032f0| 76 65 20 74 6f 20 69 6e | 63 6c 75 64 65 20 74 68 |ve to in|clude th|
|00003300| 65 6d 20 61 6c 73 6f 2e | 20 41 6c 73 6f 20 63 6f |em also.| Also co|
|00003310| 6d 70 69 6c 61 74 69 6f | 6e 73 20 73 68 6f 75 6c |mpilatio|ns shoul|
|00003320| 64 20 68 61 76 65 20 74 | 68 65 20 66 6f 6c 6c 6f |d have t|he follo|
|00003330| 77 69 6e 67 20 66 6f 72 | 6d 3a 0a 2e 50 50 0a 2e |wing for|m:..PP..|
|00003340| 42 20 22 63 63 20 5b 66 | 6c 61 67 73 5d 20 66 69 |B "cc [f|lags] fi|
|00003350| 6c 65 20 2e 2e 2e 20 2d | 6c 77 69 64 67 65 74 73 |le ... -|lwidgets|
|00003360| 20 2d 6c 63 75 72 73 65 | 73 22 0a 0a 2e 53 48 0a | -lcurse|s"...SH.|
|00003370| 54 79 70 65 20 44 65 66 | 69 6e 69 74 69 6f 6e 73 |Type Def|initions|
|00003380| 0a 2e 4c 50 0a 54 68 65 | 20 66 75 6e 63 74 69 6f |..LP.The| functio|
|00003390| 6e 73 20 77 68 69 63 68 | 20 63 72 65 61 74 65 20 |ns which| create |
|000033a0| 77 69 64 67 65 74 73 20 | 72 65 74 75 72 6e 20 61 |widgets |return a|
|000033b0| 20 74 79 70 65 20 0a 2e | 42 20 57 49 44 47 45 54 | type ..|B WIDGET|
|000033c0| 0a 77 68 69 63 68 20 69 | 73 20 75 73 65 64 20 66 |.which i|s used f|
|000033d0| 6f 72 20 6c 61 74 65 72 | 20 69 64 65 6e 74 69 66 |or later| identif|
|000033e0| 69 63 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 77 |ication |of the w|
|000033f0| 69 64 67 65 74 2e 0a 2e | 4c 50 0a 49 66 20 61 20 |idget...|LP.If a |
|00003400| 66 75 6e 63 74 69 6f 6e | 20 69 73 20 72 65 71 75 |function| is requ|
|00003410| 69 72 65 64 20 74 6f 20 | 72 65 74 75 72 6e 20 61 |ired to |return a|
|00003420| 20 77 69 64 67 65 74 20 | 69 64 65 6e 74 69 66 69 | widget |identifi|
|00003430| 65 72 2c 20 74 68 65 6e | 20 69 74 20 77 69 6c 6c |er, then| it will|
|00003440| 20 72 65 74 75 72 6e 20 | 0a 2e 42 20 4e 55 4c 4c | return |..B NULL|
|00003450| 57 49 44 47 45 54 0a 75 | 70 6f 6e 20 65 72 72 6f |WIDGET.u|pon erro|
|00003460| 72 2e 0a 0a 2e 53 48 0a | 53 63 72 65 65 6e 20 52 |r....SH.|Screen R|
|00003470| 65 66 72 65 73 68 0a 2e | 4c 50 0a 54 68 65 20 6c |efresh..|LP.The l|
|00003480| 69 62 72 61 72 79 20 73 | 75 70 70 6f 72 74 73 20 |ibrary s|upports |
|00003490| 61 20 73 74 61 6e 64 61 | 72 64 20 73 63 72 65 65 |a standa|rd scree|
|000034a0| 6e 20 72 65 66 72 65 73 | 68 20 69 6e 76 6f 6b 65 |n refres|h invoke|
|000034b0| 64 20 62 79 20 5e 4c 2e | 0a 2e 4b 45 0a 2e 62 70 |d by ^L.|..KE..bp|
|000034c0| 0a 2e 4b 53 0a 2e 53 48 | 0a 20 20 20 20 20 20 20 |..KS..SH|. |
|000034d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000034e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000034f0| 20 20 20 20 20 20 20 55 | 53 41 47 45 0a 2e 53 48 | U|SAGE..SH|
|00003500| 0a 47 65 74 74 69 6e 67 | 20 53 74 61 72 74 65 64 |.Getting| Started|
|00003510| 0a 2e 4c 50 0a 54 68 65 | 20 66 69 72 73 74 20 74 |..LP.The| first t|
|00003520| 68 69 6e 67 20 74 6f 20 | 64 6f 20 77 68 65 6e 20 |hing to |do when |
|00003530| 75 73 69 6e 67 20 74 68 | 65 20 6c 69 62 72 61 72 |using th|e librar|
|00003540| 79 20 69 73 20 73 65 74 | 20 75 70 20 74 68 65 20 |y is set| up the |
|00003550| 77 69 6e 64 6f 77 69 6e | 67 20 73 79 73 74 65 6d |windowin|g system|
|00003560| 20 62 79 20 63 61 6c 6c | 69 6e 67 20 0a 2e 4c 50 | by call|ing ..LP|
|00003570| 0a 2e 69 6e 20 30 2e 35 | 69 0a 69 6e 69 74 69 61 |..in 0.5|i.initia|
|00003580| 6c 69 73 65 77 69 64 67 | 65 74 73 28 29 0a 2e 69 |lisewidg|ets()..i|
|00003590| 6e 20 30 0a 0a 2e 53 48 | 0a 43 72 65 61 74 69 6e |n 0...SH|.Creatin|
|000035a0| 67 20 57 69 64 67 65 74 | 73 0a 2e 4c 50 0a 2e 62 |g Widget|s..LP..b|
|000035b0| 72 0a 0a 2e 69 6e 20 30 | 2e 35 69 0a 57 49 44 47 |r...in 0|.5i.WIDG|
|000035c0| 45 54 20 6d 6b 63 6d 64 | 77 69 64 67 65 74 20 28 |ET mkcmd|widget (|
|000035d0| 6d 65 73 73 61 67 65 2c | 20 63 68 2c 20 66 75 6e |message,| ch, fun|
|000035e0| 63 74 69 6f 6e 2c 20 72 | 6f 77 29 0a 2e 62 72 20 |ction, r|ow)..br |
|000035f0| 0a 63 68 61 72 20 6d 65 | 73 73 61 67 65 5b 5d 3b |.char me|ssage[];|
|00003600| 0a 2e 62 72 20 0a 63 68 | 61 72 20 63 68 3b 0a 2e |..br .ch|ar ch;..|
|00003610| 62 72 20 0a 69 6e 74 20 | 0a 28 2a 66 75 6e 63 29 |br .int |.(*func)|
|00003620| 28 29 3b 0a 2e 62 72 20 | 0a 69 6e 74 20 6c 69 6e |();..br |.int lin|
|00003630| 65 3b 0a 2e 69 6e 20 30 | 0a 2e 4c 50 0a 43 72 65 |e;..in 0|..LP.Cre|
|00003640| 61 74 65 73 20 61 20 6e | 65 77 20 63 6f 6d 6d 61 |ates a n|ew comma|
|00003650| 6e 64 20 77 69 64 67 65 | 74 2e 20 6d 65 73 73 61 |nd widge|t. messa|
|00003660| 67 65 20 68 6f 6c 64 73 | 20 74 68 65 20 6d 65 73 |ge holds| the mes|
|00003670| 73 61 67 65 20 74 6f 20 | 62 65 20 64 69 73 70 6c |sage to |be displ|
|00003680| 61 79 65 64 20 69 6e 20 | 74 68 65 20 63 6f 6d 6d |ayed in |the comm|
|00003690| 61 6e 64 20 77 69 64 67 | 65 74 2e 20 63 68 20 69 |and widg|et. ch i|
|000036a0| 73 20 74 68 65 20 61 63 | 74 69 76 61 74 69 6f 6e |s the ac|tivation|
|000036b0| 20 63 68 61 72 61 63 74 | 65 72 20 6f 6e 20 77 68 | charact|er on wh|
|000036c0| 69 63 68 20 66 75 6e 63 | 74 69 6f 6e 20 69 73 20 |ich func|tion is |
|000036d0| 65 78 65 63 75 74 65 64 | 2e 20 72 6f 77 20 73 70 |executed|. row sp|
|000036e0| 65 63 69 66 69 65 73 20 | 77 68 65 72 65 20 74 6f |ecifies |where to|
|000036f0| 20 70 6c 61 63 65 20 74 | 68 65 20 77 69 64 67 65 | place t|he widge|
|00003700| 74 20 28 61 73 20 64 65 | 73 63 72 69 62 65 64 20 |t (as de|scribed |
|00003710| 61 62 6f 76 65 29 2e 20 | 54 68 65 20 72 65 74 75 |above). |The retu|
|00003720| 72 6e 65 64 20 76 61 6c | 75 65 20 69 73 20 74 68 |rned val|ue is th|
|00003730| 65 20 77 69 64 67 65 74 | 20 69 64 65 6e 74 69 66 |e widget| identif|
|00003740| 69 65 72 20 66 6f 72 20 | 6c 61 74 65 72 20 75 73 |ier for |later us|
|00003750| 65 2e 0a 0a 2e 4c 50 0a | 2e 69 6e 20 30 2e 35 69 |e....LP.|.in 0.5i|
|00003760| 0a 57 49 44 47 45 54 20 | 6d 6b 6c 62 6c 77 69 64 |.WIDGET |mklblwid|
|00003770| 67 65 74 20 28 6d 65 73 | 73 61 67 65 2c 20 70 6f |get (mes|sage, po|
|00003780| 73 69 74 69 6f 6e 2c 20 | 73 70 61 63 65 2c 20 72 |sition, |space, r|
|00003790| 6f 77 29 0a 2e 62 72 0a | 63 68 61 72 20 6d 65 73 |ow)..br.|char mes|
|000037a0| 73 61 67 65 5b 5d 3b 0a | 2e 62 72 0a 69 6e 74 20 |sage[];.|.br.int |
|000037b0| 20 70 6f 73 69 74 69 6f | 6e 2c 20 73 70 61 63 65 | positio|n, space|
|000037c0| 2c 20 72 6f 77 3b 0a 2e | 69 6e 20 30 0a 2e 4c 50 |, row;..|in 0..LP|
|000037d0| 0a 43 72 65 61 74 65 73 | 20 61 20 6e 65 77 20 6c |.Creates| a new l|
|000037e0| 61 62 65 6c 20 77 69 64 | 67 65 74 2e 20 4d 65 73 |abel wid|get. Mes|
|000037f0| 73 61 67 65 20 68 6f 6c | 64 73 20 74 68 65 20 63 |sage hol|ds the c|
|00003800| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 74 68 65 20 6c |ontents |of the l|
|00003810| 61 62 65 6c 2c 20 70 6f | 73 69 74 69 6f 6e 20 73 |abel, po|sition s|
|00003820| 70 65 63 69 66 69 65 73 | 20 68 6f 77 20 74 68 65 |pecifies| how the|
|00003830| 20 6d 65 73 73 61 67 65 | 20 69 73 20 74 6f 20 61 | message| is to a|
|00003840| 70 70 65 61 72 2e 20 55 | 73 69 6e 67 20 74 68 65 |ppear. U|sing the|
|00003850| 20 63 6f 6e 73 74 61 6e | 74 73 20 43 45 4e 54 52 | constan|ts CENTR|
|00003860| 45 2c 20 4c 45 46 54 4a | 55 53 54 2c 20 52 49 47 |E, LEFTJ|UST, RIG|
|00003870| 48 54 4a 55 53 54 2c 20 | 4e 4f 48 49 47 48 2c 20 |HTJUST, |NOHIGH, |
|00003880| 70 61 73 73 20 61 20 63 | 6f 6d 62 69 6e 61 74 69 |pass a c|ombinati|
|00003890| 6f 6e 20 74 6f 20 70 6f | 73 69 74 69 6f 6e 20 65 |on to po|sition e|
|000038a0| 2e 67 20 43 45 4e 54 52 | 45 20 6f 72 20 4c 45 46 |.g CENTR|E or LEF|
|000038b0| 54 4a 55 53 54 7c 4e 4f | 48 49 47 48 20 65 74 63 |TJUST|NO|HIGH etc|
|000038c0| 2e 73 70 61 63 65 20 69 | 6e 64 69 63 61 74 65 73 |.space i|ndicates|
|000038d0| 20 68 6f 77 20 6c 61 72 | 67 65 20 74 68 65 20 6c | how lar|ge the l|
|000038e0| 61 62 65 6c 20 77 69 64 | 67 65 74 20 69 73 20 74 |abel wid|get is t|
|000038f0| 6f 20 62 65 2e 20 41 20 | 70 6f 73 69 74 69 76 65 |o be. A |positive|
|00003900| 20 76 61 6c 75 65 20 69 | 73 20 74 68 65 20 61 62 | value i|s the ab|
|00003910| 73 6f 6c 75 74 65 20 6c | 65 6e 67 74 68 20 6f 66 |solute l|ength of|
|00003920| 20 74 68 65 20 77 69 64 | 67 65 74 2c 20 77 68 65 | the wid|get, whe|
|00003930| 72 65 61 73 20 76 61 6c | 75 65 20 3c 3d 20 30 20 |reas val|ue <= 0 |
|00003940| 73 70 65 63 69 66 69 65 | 73 20 68 6f 77 20 66 61 |specifie|s how fa|
|00003950| 72 20 74 68 65 20 77 69 | 64 67 65 74 20 69 73 20 |r the wi|dget is |
|00003960| 74 6f 20 62 65 20 66 72 | 6f 6d 20 74 68 65 20 72 |to be fr|om the r|
|00003970| 69 67 68 74 68 61 6e 64 | 20 65 64 67 65 20 6f 66 |ighthand| edge of|
|00003980| 20 74 68 65 20 73 63 72 | 65 65 6e 2e 20 72 6f 77 | the scr|een. row|
|00003990| 20 73 70 65 63 69 66 69 | 65 73 20 77 68 65 72 65 | specifi|es where|
|000039a0| 20 74 6f 20 70 6c 61 63 | 65 20 74 68 65 20 77 69 | to plac|e the wi|
|000039b0| 64 67 65 74 20 28 61 73 | 20 64 65 73 63 72 69 62 |dget (as| describ|
|000039c0| 65 64 20 61 62 6f 76 65 | 29 2e 20 54 68 65 20 72 |ed above|). The r|
|000039d0| 0a 0a 0a 0a 0a 0a 0a 0a | 65 74 75 72 6e 65 64 20 |........|eturned |
|000039e0| 76 61 6c 75 65 20 69 73 | 20 74 68 65 20 77 69 64 |value is| the wid|
|000039f0| 67 65 74 20 69 64 65 6e | 74 69 66 69 65 72 20 66 |get iden|tifier f|
|00003a00| 6f 72 20 6c 61 74 65 72 | 20 75 73 65 2e 0a 0a 2e |or later| use....|
|00003a10| 4c 50 0a 2e 69 6e 20 30 | 2e 35 69 0a 57 49 44 47 |LP..in 0|.5i.WIDG|
|00003a20| 45 54 20 6d 6b 74 67 6c | 77 69 64 67 65 74 20 28 |ET mktgl|widget (|
|00003a30| 6d 65 73 73 61 67 65 2c | 20 6e 75 6d 62 65 72 2c |message,| number,|
|00003a40| 20 74 67 6c 2c 20 74 67 | 6c 63 68 2c 20 72 6f 77 | tgl, tg|lch, row|
|00003a50| 29 0a 2e 62 72 0a 63 68 | 61 72 20 6d 65 73 73 61 |)..br.ch|ar messa|
|00003a60| 67 65 5b 5d 3b 0a 2e 62 | 72 0a 69 6e 74 20 20 6e |ge[];..b|r.int n|
|00003a70| 75 6d 62 65 72 3b 0a 2e | 62 72 0a 63 68 61 72 20 |umber;..|br.char |
|00003a80| 74 67 6c 5b 31 30 5d 5b | 32 30 5d 3b 0a 2e 62 72 |tgl[10][|20];..br|
|00003a90| 0a 63 68 61 72 20 74 67 | 6c 63 68 3b 0a 2e 62 72 |.char tg|lch;..br|
|00003aa0| 0a 69 6e 74 20 20 72 6f | 77 3b 0a 2e 69 6e 20 30 |.int ro|w;..in 0|
|00003ab0| 0a 2e 4c 50 0a 43 72 65 | 61 74 65 73 20 61 20 6e |..LP.Cre|ates a n|
|00003ac0| 65 77 20 74 6f 67 67 6c | 65 20 77 69 64 67 65 74 |ew toggl|e widget|
|00003ad0| 2e 20 6d 65 73 73 61 67 | 65 20 63 6f 6e 74 61 69 |. messag|e contai|
|00003ae0| 6e 73 20 61 20 6c 61 62 | 65 6c 20 66 6f 72 20 74 |ns a lab|el for t|
|00003af0| 68 65 20 77 69 64 67 65 | 74 2c 20 61 6e 64 20 6e |he widge|t, and n|
|00003b00| 75 6d 62 65 72 20 68 6f | 6c 64 73 20 74 68 65 20 |umber ho|lds the |
|00003b10| 6e 75 6d 62 65 72 20 6f | 66 20 74 6f 67 67 6c 65 |number o|f toggle|
|00003b20| 20 76 61 6c 75 65 73 2e | 20 74 67 6c 20 69 73 20 | values.| tgl is |
|00003b30| 75 73 65 64 20 66 6f 72 | 20 68 6f 6c 64 69 6e 67 |used for| holding|
|00003b40| 20 61 63 74 75 61 6c 20 | 74 6f 67 67 6c 65 20 76 | actual |toggle v|
|00003b50| 61 6c 75 65 73 20 77 68 | 69 63 68 20 61 72 65 20 |alues wh|ich are |
|00003b60| 74 6f 67 67 6c 65 64 20 | 62 65 74 77 65 65 6e 20 |toggled |between |
|00003b70| 75 73 69 6e 67 20 74 68 | 65 20 61 63 74 69 76 61 |using th|e activa|
|00003b80| 74 69 6f 6e 20 63 68 61 | 72 61 63 74 65 72 20 74 |tion cha|racter t|
|00003b90| 67 6c 63 68 2e 20 41 74 | 20 70 72 65 73 65 6e 74 |glch. At| present|
|00003ba0| 20 74 68 65 72 65 20 69 | 73 20 61 20 6c 69 6d 69 | there i|s a limi|
|00003bb0| 74 20 6f 66 20 31 30 20 | 74 6f 67 67 6c 65 20 76 |t of 10 |toggle v|
|00003bc0| 61 6c 75 65 73 2c 20 65 | 61 63 68 20 62 65 69 6e |alues, e|ach bein|
|00003bd0| 67 20 61 20 6d 61 78 69 | 6d 75 6d 20 6c 65 6e 67 |g a maxi|mum leng|
|00003be0| 74 68 20 6f 66 20 32 30 | 20 63 68 61 72 61 63 74 |th of 20| charact|
|00003bf0| 65 72 73 2e 20 72 6f 77 | 20 73 70 65 63 69 66 69 |ers. row| specifi|
|00003c00| 65 73 20 77 68 65 72 65 | 20 74 6f 20 70 6c 61 63 |es where| to plac|
|00003c10| 65 20 74 68 65 20 77 69 | 64 67 65 74 20 28 61 73 |e the wi|dget (as|
|00003c20| 20 64 65 73 63 72 69 62 | 65 64 20 61 62 6f 76 65 | describ|ed above|
|00003c30| 29 2e 20 54 68 65 20 72 | 65 74 75 72 6e 65 64 20 |). The r|eturned |
|00003c40| 76 61 6c 75 65 20 69 73 | 20 74 68 65 20 77 69 64 |value is| the wid|
|00003c50| 67 65 74 20 69 64 65 6e | 74 69 66 69 65 72 20 66 |get iden|tifier f|
|00003c60| 6f 72 20 6c 61 74 65 72 | 20 75 73 65 2e 0a 2e 4c |or later| use...L|
|00003c70| 50 0a 2e 4b 45 0a 2e 62 | 70 0a 2e 4b 53 0a 2e 69 |P..KE..b|p..KS..i|
|00003c80| 6e 20 30 2e 35 69 0a 57 | 49 44 47 45 54 20 6d 6b |n 0.5i.W|IDGET mk|
|00003c90| 69 6e 70 77 69 64 67 65 | 74 20 28 6d 65 73 73 61 |inpwidge|t (messa|
|00003ca0| 67 65 2c 20 63 68 61 72 | 61 63 74 65 72 2c 20 69 |ge, char|acter, i|
|00003cb0| 6e 70 75 74 2c 20 6c 65 | 6e 67 74 68 73 74 72 2c |nput, le|ngthstr,|
|00003cc0| 20 6c 65 6e 67 74 68 77 | 69 64 2c 20 72 6f 77 2c | lengthw|id, row,|
|00003cd0| 20 65 78 65 63 29 0a 2e | 62 72 0a 63 68 61 72 20 | exec)..|br.char |
|00003ce0| 6d 65 73 73 61 67 65 5b | 5d 2c 20 63 68 61 72 61 |message[|], chara|
|00003cf0| 63 74 65 72 2c 20 69 6e | 70 75 74 5b 5d 3b 0a 2e |cter, in|put[];..|
|00003d00| 62 72 0a 69 6e 74 20 20 | 6c 65 6e 67 74 68 73 74 |br.int |lengthst|
|00003d10| 72 2c 20 6c 65 6e 67 74 | 68 77 69 64 2c 20 72 6f |r, lengt|hwid, ro|
|00003d20| 77 2c 20 65 78 65 63 3b | 20 0a 2e 69 6e 20 30 0a |w, exec;| ..in 0.|
|00003d30| 2e 4c 50 0a 43 72 65 61 | 74 65 73 20 61 20 6e 65 |.LP.Crea|tes a ne|
|00003d40| 77 20 69 6e 70 75 74 20 | 77 69 64 67 65 74 2e 20 |w input |widget. |
|00003d50| 6d 65 73 73 61 67 65 20 | 63 6f 6e 74 61 69 6e 73 |message |contains|
|00003d60| 20 74 68 65 20 6c 61 62 | 65 6c 20 66 6f 72 20 74 | the lab|el for t|
|00003d70| 68 65 20 77 69 64 67 65 | 74 2c 20 61 6e 64 20 63 |he widge|t, and c|
|00003d80| 68 61 72 61 63 74 65 72 | 20 69 73 20 74 68 65 20 |haracter| is the |
|00003d90| 61 63 74 69 76 61 74 69 | 6f 6e 20 63 68 61 72 61 |activati|on chara|
|00003da0| 63 74 65 72 20 66 6f 72 | 20 74 68 65 20 77 69 64 |cter for| the wid|
|00003db0| 67 65 74 2e 20 69 6e 70 | 75 74 20 69 73 20 74 68 |get. inp|ut is th|
|00003dc0| 65 20 76 61 72 69 61 62 | 6c 65 20 69 6e 20 77 68 |e variab|le in wh|
|00003dd0| 69 63 68 20 74 68 65 20 | 75 73 65 72 20 77 69 73 |ich the |user wis|
|00003de0| 68 65 73 20 74 68 65 20 | 64 61 74 61 20 6f 62 74 |hes the |data obt|
|00003df0| 61 69 6e 65 64 20 66 72 | 6f 6d 20 74 68 65 20 69 |ained fr|om the i|
|00003e00| 6e 70 75 74 20 77 69 64 | 67 65 74 20 74 6f 20 62 |nput wid|get to b|
|00003e10| 65 20 70 6c 61 63 65 64 | 2c 20 6c 65 6e 67 74 68 |e placed|, length|
|00003e20| 73 74 72 20 69 73 20 74 | 68 65 20 6c 65 6e 67 74 |str is t|he lengt|
|00003e30| 68 20 6f 66 20 69 6e 70 | 75 74 2e 20 6c 65 6e 67 |h of inp|ut. leng|
|00003e40| 74 68 77 69 64 20 73 70 | 65 63 69 66 69 65 73 20 |thwid sp|ecifies |
|00003e50| 68 6f 77 20 62 69 67 20 | 74 6f 20 6d 61 6b 65 20 |how big |to make |
|00003e60| 74 68 65 20 77 69 64 67 | 65 74 2e 20 41 20 70 6f |the widg|et. A po|
|00003e70| 73 69 74 69 76 65 20 76 | 61 6c 75 65 20 69 6e 64 |sitive v|alue ind|
|00003e80| 69 63 61 74 65 73 20 74 | 68 65 20 61 62 73 6f 6c |icates t|he absol|
|00003e90| 75 74 65 20 6c 65 6e 67 | 74 68 20 6f 66 20 74 68 |ute leng|th of th|
|00003ea0| 65 20 77 69 64 67 65 74 | 2c 20 77 68 65 72 65 20 |e widget|, where |
|00003eb0| 61 73 20 61 20 76 61 6c | 75 65 20 3c 3d 20 30 20 |as a val|ue <= 0 |
|00003ec0| 69 6e 64 69 63 61 74 65 | 73 20 68 6f 77 20 66 61 |indicate|s how fa|
|00003ed0| 72 20 66 72 6f 6d 20 74 | 68 65 20 72 69 67 68 74 |r from t|he right|
|00003ee0| 68 61 6e 64 20 65 64 67 | 65 20 74 68 65 20 77 69 |hand edg|e the wi|
|00003ef0| 64 67 65 74 20 69 73 20 | 74 6f 20 62 65 2e 20 65 |dget is |to be. e|
|00003f00| 78 65 63 20 69 73 20 75 | 73 65 64 20 74 6f 20 69 |xec is u|sed to i|
|00003f10| 6e 64 69 63 61 74 65 20 | 77 68 65 74 68 65 72 20 |ndicate |whether |
|00003f20| 74 68 65 20 77 69 64 67 | 65 74 20 73 68 6f 75 6c |the widg|et shoul|
|00003f30| 64 20 62 0a 0a 0a 0a 0a | 0a 0a 0a 65 20 61 63 74 |d b.....|...e act|
|00003f40| 69 76 61 74 65 64 20 6f | 6e 20 63 72 65 61 74 69 |ivated o|n creati|
|00003f50| 6f 6e 20 62 79 20 28 70 | 61 73 73 69 6e 67 20 45 |on by (p|assing E|
|00003f60| 58 45 43 29 2c 20 6f 72 | 20 73 68 6f 75 6c 64 20 |XEC), or| should |
|00003f70| 72 65 6d 61 69 6e 20 64 | 6f 72 6d 61 6e 74 20 75 |remain d|ormant u|
|00003f80| 6e 74 69 6c 20 74 68 65 | 20 61 63 74 69 76 61 74 |ntil the| activat|
|00003f90| 69 6f 6e 20 63 68 61 72 | 61 63 74 65 72 20 69 73 |ion char|acter is|
|00003fa0| 20 75 73 65 64 20 28 70 | 61 73 73 69 6e 67 20 4e | used (p|assing N|
|00003fb0| 4f 45 58 45 43 29 2e 20 | 28 6e 2e 62 20 77 68 65 |OEXEC). |(n.b whe|
|00003fc0| 6e 20 70 61 73 73 69 6e | 67 20 45 58 45 43 20 61 |n passin|g EXEC a|
|00003fd0| 6e 20 61 63 74 69 76 61 | 74 69 6f 6e 20 63 68 61 |n activa|tion cha|
|00003fe0| 72 61 63 74 65 72 20 69 | 73 20 6e 6f 74 20 6e 65 |racter i|s not ne|
|00003ff0| 65 64 65 64 20 74 68 65 | 72 65 66 6f 72 65 20 6f |eded the|refore o|
|00004000| 6e 65 20 63 6f 75 6c 64 | 20 70 61 73 73 20 4e 55 |ne could| pass NU|
|00004010| 4c 4c 20 66 6f 72 20 63 | 68 61 72 61 63 74 65 72 |LL for c|haracter|
|00004020| 2e 29 0a 0a 2e 53 48 0a | 54 65 78 74 20 57 69 6e |.)...SH.|Text Win|
|00004030| 64 6f 77 20 4d 61 6e 61 | 67 65 6d 65 6e 74 0a 2e |dow Mana|gement..|
|00004040| 4c 50 0a 2e 62 72 0a 0a | 2e 69 6e 20 30 2e 35 69 |LP..br..|.in 0.5i|
|00004050| 0a 69 6e 74 20 6f 70 65 | 6e 74 65 78 74 77 69 6e |.int ope|ntextwin|
|00004060| 64 6f 77 20 28 70 6f 73 | 69 74 69 6f 6e 2c 20 62 |dow (pos|ition, b|
|00004070| 6f 72 64 65 72 29 0a 2e | 62 72 0a 69 6e 74 20 70 |order)..|br.int p|
|00004080| 6f 73 69 74 69 6f 6e 2c | 20 62 6f 72 64 65 72 3b |osition,| border;|
|00004090| 0a 2e 69 6e 20 30 0a 2e | 4c 50 0a 4f 70 65 6e 73 |..in 0..|LP.Opens|
|000040a0| 20 61 6e 64 20 64 69 73 | 70 6c 61 79 73 20 74 68 | and dis|plays th|
|000040b0| 65 20 74 65 78 74 20 77 | 69 6e 64 6f 77 2e 20 70 |e text w|indow. p|
|000040c0| 6f 73 69 74 69 6f 6e 20 | 73 70 65 63 69 66 69 65 |osition |specifie|
|000040d0| 73 20 77 68 65 72 65 20 | 74 68 65 20 77 69 6e 64 |s where |the wind|
|000040e0| 6f 77 20 69 73 20 74 6f | 20 67 6f 2e 20 69 2e 65 |ow is to| go. i.e|
|000040f0| 20 70 6f 73 69 74 69 6f | 6e 20 3d 20 30 20 77 69 | positio|n = 0 wi|
|00004100| 6c 6c 20 70 6c 61 63 65 | 20 74 68 65 20 77 69 6e |ll place| the win|
|00004110| 64 6f 77 20 69 6d 6d 65 | 64 69 61 74 65 6c 79 20 |dow imme|diately |
|00004120| 62 65 6c 6f 77 20 74 68 | 65 20 6c 6f 77 65 73 74 |below th|e lowest|
|00004130| 20 77 69 64 67 65 74 2c | 20 70 6f 73 69 74 69 6f | widget,| positio|
|00004140| 6e 20 3d 20 31 20 77 69 | 6c 6c 20 61 6c 6c 6f 77 |n = 1 wi|ll allow|
|00004150| 20 72 6f 6f 6d 20 66 6f | 72 20 31 20 6d 6f 72 65 | room fo|r 1 more|
|00004160| 20 72 6f 77 20 6f 66 20 | 77 69 64 67 65 74 73 20 | row of |widgets |
|00004170| 62 65 6c 6f 77 20 74 68 | 65 20 63 75 72 72 65 6e |below th|e curren|
|00004180| 74 20 6c 6f 77 65 73 74 | 20 62 65 66 6f 72 65 20 |t lowest| before |
|00004190| 70 6c 61 63 69 6e 67 20 | 74 68 65 20 77 69 6e 64 |placing |the wind|
|000041a0| 6f 77 20 65 74 63 2e 20 | 62 6f 72 64 65 72 20 69 |ow etc. |border i|
|000041b0| 73 20 75 73 65 64 20 74 | 6f 20 69 6e 64 69 63 61 |s used t|o indica|
|000041c0| 74 65 20 77 68 65 74 68 | 65 72 20 74 68 65 20 77 |te wheth|er the w|
|000041d0| 69 6e 64 6f 77 20 73 68 | 6f 75 6c 64 20 62 65 20 |indow sh|ould be |
|000041e0| 62 6f 72 64 65 72 65 64 | 2e 20 69 2e 65 20 75 73 |bordered|. i.e us|
|000041f0| 69 6e 67 20 74 68 65 20 | 70 61 72 61 6d 65 74 65 |ing the |paramete|
|00004200| 72 73 20 56 45 52 54 49 | 43 41 4c 20 26 20 48 4f |rs VERTI|CAL & HO|
|00004210| 52 49 5a 4f 4e 54 41 4c | 2c 20 6f 6e 65 20 63 61 |RIZONTAL|, one ca|
|00004220| 6e 20 73 70 65 63 69 66 | 79 20 77 68 65 74 68 65 |n specif|y whethe|
|00004230| 72 20 74 68 65 20 77 69 | 6e 64 6f 77 20 73 68 6f |r the wi|ndow sho|
|00004240| 75 6c 64 20 62 65 20 62 | 6f 72 64 65 72 65 64 20 |uld be b|ordered |
|00004250| 76 65 72 74 69 63 61 6c | 6c 79 20 28 70 61 73 73 |vertical|ly (pass|
|00004260| 69 6e 67 20 56 45 52 54 | 49 43 41 4c 29 2c 20 68 |ing VERT|ICAL), h|
|00004270| 6f 72 69 7a 6f 6e 74 61 | 6c 6c 79 20 28 70 61 73 |orizonta|lly (pas|
|00004280| 73 69 6e 67 20 48 4f 52 | 49 5a 4f 4e 54 41 4c 29 |sing HOR|IZONTAL)|
|00004290| 2c 20 62 6f 74 68 20 28 | 70 61 0a 0a 0a 0a 0a 0a |, both (|pa......|
|000042a0| 0a 0a 73 73 69 6e 67 20 | 56 45 52 54 49 43 41 4c |..ssing |VERTICAL|
|000042b0| 7c 48 4f 52 49 5a 4f 4e | 54 41 4c 29 2c 20 6f 72 ||HORIZON|TAL), or|
|000042c0| 20 6e 65 69 74 68 65 72 | 20 28 70 61 73 73 69 6e | neither| (passin|
|000042d0| 67 20 30 29 2e 20 54 68 | 65 20 66 75 6e 63 74 69 |g 0). Th|e functi|
|000042e0| 6f 6e 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 6e |on retur|ns the n|
|000042f0| 75 6d 62 65 72 20 6f 66 | 20 6c 69 6e 65 73 20 77 |umber of| lines w|
|00004300| 69 74 68 69 6e 20 74 68 | 65 20 77 69 6e 64 6f 77 |ithin th|e window|
|00004310| 2e 0a 0a 2e 69 6e 20 30 | 2e 35 69 0a 72 65 70 6f |....in 0|.5i.repo|
|00004320| 72 74 20 28 6d 65 73 73 | 61 67 65 29 0a 2e 62 72 |rt (mess|age)..br|
|00004330| 0a 63 68 61 72 20 2a 6d | 65 73 73 61 67 65 3b 0a |.char *m|essage;.|
|00004340| 2e 69 6e 20 30 0a 2e 4c | 50 0a 44 69 73 70 6c 61 |.in 0..L|P.Displa|
|00004350| 79 73 20 74 68 65 20 67 | 69 76 65 6e 20 6d 65 73 |ys the g|iven mes|
|00004360| 73 61 67 65 20 69 6e 20 | 74 68 65 20 74 65 78 74 |sage in |the text|
|00004370| 20 77 69 6e 64 6f 77 2e | 20 53 63 72 6f 6c 6c 69 | window.| Scrolli|
|00004380| 6e 67 20 69 73 20 64 6f | 6e 65 20 61 75 74 6f 6d |ng is do|ne autom|
|00004390| 61 74 69 63 61 6c 6c 79 | 20 77 68 65 6e 20 74 68 |atically| when th|
|000043a0| 65 20 62 6f 74 74 6f 6d | 20 6f 66 20 74 68 65 20 |e bottom| of the |
|000043b0| 77 69 6e 64 6f 77 20 69 | 73 20 72 65 61 63 68 65 |window i|s reache|
|000043c0| 64 20 61 6e 64 20 69 73 | 20 74 68 65 72 65 66 6f |d and is| therefo|
|000043d0| 72 65 20 6f 66 20 6e 6f | 20 63 6f 6e 63 65 72 6e |re of no| concern|
|000043e0| 20 66 6f 72 20 74 68 65 | 20 75 73 65 72 2e 0a 0a | for the| user...|
|000043f0| 2e 69 6e 20 30 2e 35 69 | 0a 63 6c 65 61 72 74 65 |.in 0.5i|.clearte|
|00004400| 78 74 77 69 6e 64 6f 77 | 20 28 29 0a 2e 69 6e 20 |xtwindow| ()..in |
|00004410| 30 0a 2e 4c 50 0a 43 6c | 65 61 72 73 20 74 68 65 |0..LP.Cl|ears the|
|00004420| 20 74 65 78 74 20 77 69 | 6e 64 6f 77 20 61 6e 64 | text wi|ndow and|
|00004430| 20 72 65 74 75 72 6e 73 | 20 69 74 73 20 63 75 72 | returns| its cur|
|00004440| 73 6f 72 20 74 6f 20 74 | 68 65 20 74 6f 70 20 6c |sor to t|he top l|
|00004450| 65 66 74 68 61 6e 64 20 | 63 6f 72 6e 65 72 2e 20 |efthand |corner. |
|00004460| 0a 0a 2e 69 6e 20 30 2e | 35 69 0a 6b 69 6c 6c 74 |...in 0.|5i.killt|
|00004470| 65 78 74 77 69 6e 64 6f | 77 20 28 29 0a 2e 69 6e |extwindo|w ()..in|
|00004480| 20 30 0a 2e 4c 50 0a 44 | 65 73 74 72 6f 79 73 20 | 0..LP.D|estroys |
|00004490| 74 68 65 20 74 65 78 74 | 20 77 69 6e 64 6f 77 2e |the text| window.|
|000044a0| 20 54 68 65 20 74 65 78 | 74 20 77 69 6e 64 6f 77 | The tex|t window|
|000044b0| 20 63 61 6e 20 62 65 20 | 72 65 64 65 66 69 6e 65 | can be |redefine|
|000044c0| 64 20 61 74 20 61 20 6c | 61 74 65 72 20 64 61 74 |d at a l|ater dat|
|000044d0| 65 2e 0a 0a 2e 53 48 0a | 4b 69 6c 6c 69 6e 67 20 |e....SH.|Killing |
|000044e0| 57 69 64 67 65 74 73 0a | 0a 2e 4c 50 0a 2e 62 72 |Widgets.|..LP..br|
|000044f0| 0a 2e 69 6e 20 30 2e 35 | 69 0a 69 6e 74 20 6b 69 |..in 0.5|i.int ki|
|00004500| 6c 6c 77 69 64 67 65 74 | 20 28 70 74 72 29 0a 2e |llwidget| (ptr)..|
|00004510| 62 72 0a 57 49 44 47 45 | 54 20 70 74 72 3b 0a 2e |br.WIDGE|T ptr;..|
|00004520| 69 6e 20 30 0a 2e 4c 50 | 0a 4b 69 6c 6c 73 20 74 |in 0..LP|.Kills t|
|00004530| 68 65 20 67 69 76 65 6e | 20 77 69 64 67 65 74 2e |he given| widget.|
|00004540| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 72 65 | the fun|ction re|
|00004550| 74 75 72 6e 73 20 54 52 | 55 45 20 69 66 20 73 75 |turns TR|UE if su|
|00004560| 63 63 65 73 73 66 75 6c | 6c 20 6f 72 20 46 41 4c |ccessful|l or FAL|
|00004570| 53 45 20 69 66 20 74 68 | 65 20 77 69 64 67 65 74 |SE if th|e widget|
|00004580| 20 64 6f 65 73 6e 27 74 | 20 65 78 69 73 74 2e 0a | doesn't| exist..|
|00004590| 2e 4b 45 0a 2e 62 70 0a | 2e 4b 53 0a 2e 53 48 0a |.KE..bp.|.KS..SH.|
|000045a0| 49 6e 74 65 72 61 63 74 | 69 6f 6e 0a 0a 2e 4c 50 |Interact|ion...LP|
|000045b0| 0a 2e 62 72 0a 2e 69 6e | 20 30 2e 35 69 0a 57 49 |..br..in| 0.5i.WI|
|000045c0| 44 47 45 54 20 77 69 64 | 67 65 74 69 6e 70 75 74 |DGET wid|getinput|
|000045d0| 20 28 29 0a 2e 69 6e 20 | 30 0a 2e 4c 50 0a 57 61 | ()..in |0..LP.Wa|
|000045e0| 69 74 20 66 6f 72 20 69 | 6e 70 75 74 20 66 72 6f |it for i|nput fro|
|000045f0| 6d 20 77 69 64 67 65 74 | 73 2e 20 50 72 6f 67 72 |m widget|s. Progr|
|00004600| 61 6d 20 63 6f 6e 74 72 | 6f 6c 20 69 73 20 70 61 |am contr|ol is pa|
|00004610| 73 73 65 64 20 62 61 63 | 6b 20 77 68 65 6e 20 3a |ssed bac|k when :|
|00004620| 2d 0a 2e 62 72 0a 61 29 | 20 41 20 43 6f 6d 6d 61 |-..br.a)| A Comma|
|00004630| 6e 64 20 77 69 64 67 65 | 74 20 69 73 20 61 63 74 |nd widge|t is act|
|00004640| 69 76 61 74 65 64 20 61 | 6e 64 20 63 6f 6e 74 72 |ivated a|nd contr|
|00004650| 6f 6c 20 69 73 20 70 61 | 73 73 65 64 20 74 6f 20 |ol is pa|ssed to |
|00004660| 69 74 73 20 61 73 73 6f | 63 69 61 74 65 64 20 66 |its asso|ciated f|
|00004670| 75 6e 63 74 69 6f 6e 2e | 0a 2e 62 72 0a 62 29 20 |unction.|..br.b) |
|00004680| 41 6e 20 69 6e 70 75 74 | 20 77 69 64 67 65 74 20 |An input| widget |
|00004690| 69 73 20 61 63 74 69 76 | 61 74 65 64 20 61 6e 64 |is activ|ated and|
|000046a0| 20 61 66 74 65 72 20 73 | 75 62 73 65 71 75 65 6e | after s|ubsequen|
|000046b0| 74 20 69 6e 70 75 74 2c | 20 63 6f 6e 74 72 6f 6c |t input,| control|
|000046c0| 20 69 73 20 70 61 73 73 | 65 64 20 74 6f 20 74 68 | is pass|ed to th|
|000046d0| 65 20 63 61 6c 6c 69 6e | 67 20 66 75 6e 63 74 69 |e callin|g functi|
|000046e0| 6f 6e 20 77 69 74 68 20 | 74 68 65 20 77 69 64 67 |on with |the widg|
|000046f0| 65 74 20 70 6f 69 6e 74 | 65 72 20 6f 66 20 74 68 |et point|er of th|
|00004700| 65 20 61 63 74 69 76 61 | 74 65 64 20 69 6e 70 75 |e activa|ted inpu|
|00004710| 74 20 77 69 64 67 65 74 | 2e 0a 2e 62 72 0a 41 63 |t widget|...br.Ac|
|00004720| 74 69 76 61 74 69 6e 67 | 20 61 20 74 6f 67 67 6c |tivating| a toggl|
|00004730| 65 20 77 69 64 67 65 74 | 20 6a 75 73 74 20 74 6f |e widget| just to|
|00004740| 67 67 6c 65 73 20 74 68 | 65 20 77 69 64 67 65 74 |ggles th|e widget|
|00004750| 2c 20 63 6f 6e 74 72 6f | 6c 20 69 73 20 6f 6e 6c |, contro|l is onl|
|00004760| 79 20 70 61 73 73 65 64 | 20 62 61 63 6b 20 75 70 |y passed| back up|
|00004770| 6f 6e 20 6f 6e 65 20 6f | 66 20 74 68 65 20 61 62 |on one o|f the ab|
|00004780| 6f 76 65 20 63 6f 6e 64 | 69 74 69 6f 6e 73 2e 0a |ove cond|itions..|
|00004790| 0a 2e 4c 50 0a 2e 62 72 | 0a 2e 69 6e 20 30 2e 35 |..LP..br|..in 0.5|
|000047a0| 69 0a 69 6e 74 20 74 73 | 74 74 67 6c 77 69 64 67 |i.int ts|ttglwidg|
|000047b0| 65 74 20 28 70 74 72 29 | 0a 2e 62 72 0a 57 49 44 |et (ptr)|..br.WID|
|000047c0| 47 45 54 20 70 74 72 3b | 0a 2e 69 6e 20 30 0a 2e |GET ptr;|..in 0..|
|000047d0| 4c 50 0a 52 65 74 75 72 | 6e 73 20 74 68 65 20 69 |LP.Retur|ns the i|
|000047e0| 6e 64 65 78 20 76 61 6c | 75 65 20 6f 66 20 74 68 |ndex val|ue of th|
|000047f0| 65 20 63 75 72 72 65 6e | 74 20 73 74 61 74 65 20 |e curren|t state |
|00004800| 6f 66 20 74 68 65 20 67 | 69 76 65 6e 20 74 6f 67 |of the g|iven tog|
|00004810| 67 6c 65 20 77 69 64 67 | 65 74 20 28 30 20 3c 20 |gle widg|et (0 < |
|00004820| 69 6e 64 65 78 20 3c 20 | 6e 75 6d 62 65 72 20 74 |index < |number t|
|00004830| 6f 67 67 6c 65 20 76 61 | 6c 75 65 73 20 2d 20 31 |oggle va|lues - 1|
|00004840| 29 2e 20 52 65 74 75 72 | 6e 73 20 46 41 4c 53 45 |). Retur|ns FALSE|
|00004850| 20 69 66 20 74 68 65 20 | 67 69 76 65 6e 20 77 69 | if the |given wi|
|00004860| 64 67 65 74 20 64 6f 65 | 73 20 6e 6f 74 20 65 78 |dget doe|s not ex|
|00004870| 69 73 74 2e 0a 0a 2e 4c | 50 0a 2e 62 72 0a 2e 69 |ist....L|P..br..i|
|00004880| 6e 20 30 2e 35 69 0a 69 | 6e 74 20 61 63 74 69 76 |n 0.5i.i|nt activ|
|00004890| 61 74 65 20 28 70 74 72 | 29 0a 2e 62 72 0a 57 49 |ate (ptr|)..br.WI|
|000048a0| 44 47 45 54 20 70 74 72 | 3b 0a 2e 69 6e 20 30 0a |DGET ptr|;..in 0.|
|000048b0| 2e 4c 50 0a 52 65 61 63 | 74 69 76 61 74 65 73 20 |.LP.Reac|tivates |
|000048c0| 61 20 77 69 64 67 65 74 | 20 77 68 69 63 68 20 77 |a widget| which w|
|000048d0| 61 73 20 70 72 65 76 69 | 6f 75 73 6c 79 20 64 65 |as previ|ously de|
|000048e0| 61 63 74 69 76 61 74 65 | 64 2e 20 52 65 74 75 72 |activate|d. Retur|
|000048f0| 6e 73 20 54 52 55 45 20 | 69 66 20 73 75 63 63 65 |ns TRUE |if succe|
|00004900| 73 73 66 75 6c 20 6f 74 | 68 65 72 77 69 73 65 20 |ssful ot|herwise |
|00004910| 46 41 4c 53 45 2e 0a 0a | 2e 4c 50 0a 2e 62 72 0a |FALSE...|.LP..br.|
|00004920| 2e 69 6e 20 30 2e 35 69 | 0a 69 6e 74 20 64 65 61 |.in 0.5i|.int dea|
|00004930| 63 74 69 76 61 74 65 20 | 28 70 74 72 2c 20 62 6c |ctivate |(ptr, bl|
|00004940| 61 6e 6b 29 0a 2e 62 72 | 0a 57 49 44 47 45 54 20 |ank)..br|.WIDGET |
|00004950| 70 74 72 3b 0a 2e 62 72 | 0a 69 6e 74 20 20 20 20 |ptr;..br|.int |
|00004960| 62 6c 61 6e 6b 3b 0a 2e | 69 6e 20 30 0a 2e 4c 50 |blank;..|in 0..LP|
|00004970| 0a 44 65 61 63 74 69 76 | 61 74 65 73 20 74 68 65 |.Deactiv|ates the|
|00004980| 20 67 69 76 65 6e 20 61 | 63 74 69 76 65 20 77 69 | given a|ctive wi|
|00004990| 64 67 65 74 2e 20 54 68 | 65 20 77 69 64 67 65 74 |dget. Th|e widget|
|000049a0| 20 72 65 6d 61 69 6e 73 | 20 6f 6e 20 73 63 72 65 | remains| on scre|
|000049b0| 65 6e 20 62 75 74 20 69 | 74 20 63 61 6e 6e 6f 74 |en but i|t cannot|
|000049c0| 20 62 65 20 61 63 74 69 | 76 61 74 65 64 2e 20 62 | be acti|vated. b|
|000049d0| 6c 61 6e 6b 20 63 61 6e | 20 62 65 20 42 4c 41 4e |lank can| be BLAN|
|000049e0| 4b 20 6f 72 20 4e 4f 42 | 4c 41 4e 4b 20 77 68 69 |K or NOB|LANK whi|
|000049f0| 63 68 20 69 6e 64 69 63 | 61 74 65 73 20 77 68 65 |ch indic|ates whe|
|00004a00| 74 68 65 72 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |ther the| content|
|00004a10| 73 20 6f 66 20 74 68 65 | 20 77 69 64 67 65 74 20 |s of the| widget |
|00004a20| 73 68 6f 75 6c 64 20 62 | 65 20 62 6c 61 6e 6b 65 |should b|e blanke|
|00004a30| 64 20 6f 75 74 20 6f 72 | 20 6e 6f 74 20 77 68 69 |d out or| not whi|
|00004a40| 6c 65 20 69 74 20 69 73 | 20 69 6e 61 63 74 69 76 |le it is| inactiv|
|00004a50| 65 2e 20 54 68 65 20 66 | 75 6e 63 74 69 6f 6e 20 |e. The f|unction |
|00004a60| 72 65 74 75 72 6e 73 20 | 54 52 55 45 20 69 66 20 |returns |TRUE if |
|00004a70| 73 75 63 63 65 73 73 66 | 75 6c 20 6f 72 20 46 41 |successf|ul or FA|
|00004a80| 4c 53 45 20 69 66 20 74 | 68 65 20 67 69 76 65 6e |LSE if t|he given|
|00004a90| 20 77 69 64 67 65 74 20 | 64 6f 65 73 20 6e 6f 74 | widget |does not|
|00004aa0| 20 65 78 69 73 74 2e 0a | 0a 2e 4c 50 0a 2e 62 72 | exist..|..LP..br|
|00004ab0| 0a 2e 69 6e 20 30 2e 35 | 69 0a 69 6e 74 20 68 69 |..in 0.5|i.int hi|
|00004ac0| 67 68 6c 69 67 68 74 20 | 28 70 74 72 29 0a 2e 62 |ghlight |(ptr)..b|
|00004ad0| 72 0a 57 49 44 47 45 54 | 20 70 74 72 3b 0a 2e 69 |r.WIDGET| ptr;..i|
|00004ae0| 6e 20 30 0a 2e 4c 50 0a | 48 69 67 68 6c 69 67 68 |n 0..LP.|Highligh|
|00004af0| 74 73 20 74 68 65 20 67 | 69 76 65 6e 20 77 69 64 |ts the g|iven wid|
|00004b00| 67 65 74 2e 20 52 65 74 | 75 72 6e 73 20 54 52 55 |get. Ret|urns TRU|
|00004b10| 45 20 69 66 20 73 75 63 | 63 65 73 73 66 75 6c 20 |E if suc|cessful |
|00004b20| 65 6c 73 65 20 46 41 4c | 53 45 20 69 66 20 74 68 |else FAL|SE if th|
|00004b30| 65 20 77 69 64 67 65 74 | 20 64 6f 65 73 20 6e 6f |e widget| does no|
|00004b40| 74 20 65 78 69 73 74 2e | 0a 0a 2e 4c 50 0a 2e 62 |t exist.|...LP..b|
|00004b50| 72 0a 2e 69 6e 20 30 2e | 35 69 0a 69 6e 74 20 64 |r..in 0.|5i.int d|
|00004b60| 65 68 69 67 68 6c 69 67 | 68 74 20 28 70 74 72 29 |ehighlig|ht (ptr)|
|00004b70| 0a 2e 62 72 0a 57 49 44 | 47 45 54 20 70 74 72 3b |..br.WID|GET ptr;|
|00004b80| 0a 2e 69 6e 20 30 0a 2e | 4c 50 0a 54 75 72 6e 73 |..in 0..|LP.Turns|
|00004b90| 20 6f 66 66 20 74 68 65 | 20 68 69 67 68 6c 69 67 | off the| highlig|
|00004ba0| 68 74 69 6e 67 20 6f 66 | 20 74 68 65 20 67 69 76 |hting of| the giv|
|00004bb0| 65 6e 20 77 69 64 67 65 | 74 2e 20 52 65 74 75 72 |en widge|t. Retur|
|00004bc0| 6e 73 20 54 52 55 45 20 | 69 66 20 73 75 63 63 65 |ns TRUE |if succe|
|00004bd0| 73 73 66 75 6c 20 65 6c | 73 65 20 46 41 4c 53 45 |ssful el|se FALSE|
|00004be0| 20 69 66 20 74 68 65 20 | 77 69 64 67 65 74 20 64 | if the |widget d|
|00004bf0| 6f 65 73 20 6e 6f 74 20 | 65 78 69 73 74 2e 0a 0a |oes not |exist...|
|00004c00| 2e 4c 50 0a 2e 62 72 0a | 2e 69 6e 20 30 2e 35 69 |.LP..br.|.in 0.5i|
|00004c10| 0a 69 6e 74 20 63 68 61 | 6e 67 65 6c 62 6c 77 69 |.int cha|ngelblwi|
|00004c20| 64 67 65 74 20 28 70 74 | 72 2c 20 6d 65 73 73 61 |dget (pt|r, messa|
|00004c30| 67 65 2c 20 70 6f 73 69 | 74 69 6f 6e 29 0a 2e 62 |ge, posi|tion)..b|
|00004c40| 72 0a 57 49 44 47 45 54 | 20 70 74 72 3b 0a 2e 62 |r.WIDGET| ptr;..b|
|00004c50| 72 0a 63 68 61 72 20 20 | 20 6d 65 73 73 61 67 65 |r.char | message|
|00004c60| 5b 5d 3b 0a 2e 62 72 0a | 69 6e 74 20 20 20 20 70 |[];..br.|int p|
|00004c70| 6f 73 69 74 69 6f 6e 3b | 0a 2e 69 6e 20 30 0a 2e |osition;|..in 0..|
|00004c80| 4c 50 0a 43 68 61 6e 67 | 65 73 20 74 68 65 20 63 |LP.Chang|es the c|
|00004c90| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 74 68 65 20 67 |ontents |of the g|
|00004ca0| 69 76 65 6e 20 6c 61 62 | 65 6c 20 77 69 64 67 65 |iven lab|el widge|
|00004cb0| 74 20 74 6f 20 74 68 61 | 74 20 67 69 76 65 6e 20 |t to tha|t given |
|00004cc0| 69 6e 20 6d 65 73 73 61 | 67 65 2e 20 70 6f 73 69 |in messa|ge. posi|
|00004cd0| 74 69 6f 6e 20 73 70 65 | 63 69 66 69 65 73 20 68 |tion spe|cifies h|
|00004ce0| 6f 77 20 74 68 65 20 6d | 65 73 73 61 67 65 20 69 |ow the m|essage i|
|00004cf0| 73 20 74 6f 20 61 70 70 | 65 61 72 20 28 73 65 65 |s to app|ear (see|
|00004d00| 20 6d 6b 6c 62 6c 77 69 | 64 67 65 74 29 2e 20 54 | mklblwi|dget). T|
|00004d10| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 72 65 74 75 |he funct|ion retu|
|00004d20| 72 6e 73 20 54 52 55 45 | 20 69 66 20 73 75 63 63 |rns TRUE| if succ|
|00004d30| 65 73 73 66 75 6c 20 65 | 6c 73 65 20 46 41 4c 53 |essful e|lse FALS|
|00004d40| 45 2e 0a 2e 4b 45 0a 2e | 4b 53 0a 2e 4c 50 0a 2e |E...KE..|KS..LP..|
|00004d50| 62 72 0a 2e 69 6e 20 30 | 2e 35 69 0a 57 49 44 47 |br..in 0|.5i.WIDG|
|00004d60| 45 54 54 59 50 45 20 77 | 69 64 67 65 74 74 79 70 |ETTYPE w|idgettyp|
|00004d70| 65 20 28 70 74 72 29 0a | 2e 62 72 0a 57 49 44 47 |e (ptr).|.br.WIDG|
|00004d80| 45 54 20 70 74 72 3b 0a | 2e 69 6e 20 30 0a 2e 4c |ET ptr;.|.in 0..L|
|00004d90| 50 0a 52 65 74 75 72 6e | 73 20 74 68 65 20 74 79 |P.Return|s the ty|
|00004da0| 70 65 20 6f 66 20 77 69 | 64 67 65 74 20 70 6f 69 |pe of wi|dget poi|
|00004db0| 6e 74 65 64 20 74 6f 6f | 20 62 79 20 70 74 72 2e |nted too| by ptr.|
|00004dc0| 20 54 68 65 20 72 65 74 | 75 72 6e 65 64 20 74 79 | The ret|urned ty|
|00004dd0| 70 65 20 76 61 6c 75 65 | 20 69 73 20 6f 6e 65 20 |pe value| is one |
|00004de0| 6f 66 20 43 4d 44 2c 20 | 4c 42 4c 2c 20 54 47 4c |of CMD, |LBL, TGL|
|00004df0| 2c 20 49 4e 50 20 6f 72 | 20 46 41 4c 53 45 20 69 |, INP or| FALSE i|
|00004e00| 66 20 74 68 65 20 77 69 | 64 67 65 74 20 64 6f 65 |f the wi|dget doe|
|00004e10| 73 20 6e 6f 74 20 65 78 | 69 73 74 2e 0a 0a 2e 53 |s not ex|ist....S|
|00004e20| 48 0a 46 69 6e 69 73 68 | 69 6e 67 20 55 70 0a 0a |H.Finish|ing Up..|
|00004e30| 2e 4c 50 0a 2e 62 72 0a | 2e 69 6e 20 30 2e 35 69 |.LP..br.|.in 0.5i|
|00004e40| 0a 65 6e 64 77 69 64 67 | 65 74 73 20 28 29 0a 2e |.endwidg|ets ()..|
|00004e50| 69 6e 20 30 0a 2e 4c 50 | 0a 43 6c 6f 73 65 73 20 |in 0..LP|.Closes |
|00004e60| 64 6f 77 6e 20 74 68 65 | 20 77 69 6e 64 6f 77 69 |down the| windowi|
|00004e70| 6e 67 20 73 79 73 74 65 | 6d 20 61 6e 64 20 73 68 |ng syste|m and sh|
|00004e80| 6f 75 6c 64 20 62 65 20 | 75 73 65 64 20 61 74 20 |ould be |used at |
|00004e90| 74 68 65 20 65 6e 64 2e | 20 54 68 69 73 20 66 75 |the end.| This fu|
|00004ea0| 6e 63 74 69 6f 6e 20 69 | 73 20 61 6c 73 6f 20 61 |nction i|s also a|
|00004eb0| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 63 61 6c |utomatic|ally cal|
|00004ec0| 6c 65 64 20 6f 6e 20 61 | 6e 20 69 6e 74 65 72 72 |led on a|n interr|
|00004ed0| 75 70 74 20 28 65 2e 67 | 20 5e 43 29 2e 0a 2e 4b |upt (e.g| ^C)...K|
|00004ee0| 45 0a 6f 20 79 6f 75 20 | 64 6f 6e 27 74 20 68 61 |E.o you |don't ha|
|00004ef0| 76 65 20 74 6f 20 69 6e | 63 6c 75 64 65 20 74 68 |ve to in|clude th|
|00004f00| 65 6d 20 61 6c 73 6f 2e | 20 41 6c 73 6f 20 63 6f |em also.| Also co|
|00004f10| 6d 70 69 6c 61 74 69 6f | 6e 73 20 73 68 6f 75 6c |mpilatio|ns shoul|
|00004f20| 64 20 68 61 76 65 20 74 | 68 65 20 66 6f 6c 6c 6f |d have t|he follo|
|00004f30| 77 69 6e 67 20 66 6f 72 | 6d 3a 0a 2e 50 50 0a 2e |wing for|m:..PP..|
|00004f40| 42 20 22 63 63 20 5b 66 | 6c 61 67 73 5d 20 66 69 |B "cc [f|lags] fi|
|00004f50| 6c 65 20 2e 2e 2e 20 2d | 6c 77 69 64 67 65 74 73 |le ... -|lwidgets|
|00004f60| 20 2d 6c 63 75 72 73 65 | 73 22 0a 0a 2e 53 48 0a | -lcurse|s"...SH.|
|00004f70| 54 79 70 65 20 44 65 66 | 69 6e 69 74 69 6f 6e 73 |Type Def|initions|
|00004f80| 0a 2e 4c 50 0a 54 68 65 | 20 66 75 6e 63 74 69 6f |..LP.The| functio|
|00004f90| 6e 73 20 77 68 69 63 68 | 20 63 72 65 61 74 65 20 |ns which| create |
|00004fa0| 77 69 64 67 65 74 73 20 | 72 65 74 75 72 6e 20 61 |widgets |return a|
|00004fb0| 20 74 79 70 65 20 0a 2e | 42 20 57 49 44 47 45 54 | type ..|B WIDGET|
|00004fc0| 0a 77 68 69 63 68 20 69 | 73 20 75 73 65 64 20 66 |.which i|s used f|
|00004fd0| 6f 72 20 6c 61 74 65 72 | 20 69 64 65 6e 74 69 66 |or later| identif|
|00004fe0| 69 63 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 77 |ication |of the w|
|00004ff0| 69 64 67 65 74 2e 0a 2e | 4c 50 0a 49 66 20 61 20 |idget...|LP.If a |
|00005000| 63 75 72 73 65 73 2d 77 | 69 64 67 65 74 73 2f 77 |curses-w|idgets/w|
|00005010| 69 64 67 65 74 6c 69 62 | 2e 63 00 00 00 00 00 00 |idgetlib|.c......|
|00005020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00005070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00005080| 20 31 30 34 30 30 31 20 | 20 34 34 30 33 36 30 32 | 104001 | 4403602|
|00005090| 33 32 34 20 20 31 31 32 | 32 30 00 20 00 00 00 00 |324 112|20. ....|
|000050a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005200| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00005210| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005220| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005230| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005240| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0a 2f |********|******./|
|00005250| 2a 20 20 46 49 4c 45 3a | 09 09 77 69 64 67 65 74 |* FILE:|..widget|
|00005260| 6c 69 62 2e 63 0a 2f 2a | 20 20 44 41 54 45 3a 09 |lib.c./*| DATE:.|
|00005270| 09 41 75 67 75 73 74 20 | 31 39 38 38 2e 0a 2f 2a |.August |1988../*|
|00005280| 20 20 41 55 54 48 4f 52 | 3a 09 09 52 69 63 68 61 | AUTHOR|:..Richa|
|00005290| 72 64 20 41 2e 20 43 75 | 6c 73 68 61 77 2e 0a 2f |rd A. Cu|lshaw../|
|000052a0| 2a 20 20 44 45 53 43 52 | 49 50 54 49 4f 4e 3a 09 |* DESCR|IPTION:.|
|000052b0| 43 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 63 6f 64 |Contains| the cod|
|000052c0| 65 20 74 6f 20 6d 61 6e | 69 70 75 6c 61 74 65 20 |e to man|ipulate |
|000052d0| 74 68 65 20 77 69 64 67 | 65 74 20 73 74 72 75 63 |the widg|et struc|
|000052e0| 74 75 72 65 73 0a 2f 2a | 09 09 09 61 6e 64 20 74 |tures./*|...and t|
|000052f0| 68 65 20 69 2f 6f 2e 20 | 49 74 20 66 6f 72 6d 73 |he i/o. |It forms|
|00005300| 20 61 20 73 69 6e 67 6c | 65 20 6c 69 62 72 61 72 | a singl|e librar|
|00005310| 79 20 74 68 61 74 20 73 | 68 6f 75 6c 64 0a 2f 2a |y that s|hould./*|
|00005320| 09 09 09 62 65 20 6c 69 | 6e 6b 65 64 20 69 6e 20 |...be li|nked in |
|00005330| 77 69 74 68 20 61 6c 6c | 20 63 6f 64 65 20 75 73 |with all| code us|
|00005340| 69 6e 67 20 74 68 65 73 | 65 20 77 69 64 67 65 74 |ing thes|e widget|
|00005350| 73 2e 0a 2f 2a 20 44 49 | 53 43 4c 41 49 4d 45 52 |s../* DI|SCLAIMER|
|00005360| 3a 09 09 54 68 69 73 20 | 66 69 6c 65 20 69 73 20 |:..This |file is |
|00005370| 64 65 65 6d 65 64 20 74 | 6f 20 62 65 20 70 75 62 |deemed t|o be pub|
|00005380| 6c 69 63 2d 64 6f 6d 61 | 69 6e 2c 20 6f 6e 20 74 |lic-doma|in, on t|
|00005390| 68 65 20 73 69 6d 70 6c | 65 0a 2f 2a 09 09 09 70 |he simpl|e./*...p|
|000053a0| 72 6f 76 69 73 6f 73 20 | 74 68 61 74 20 74 68 69 |rovisos |that thi|
|000053b0| 73 20 73 65 63 74 69 6f | 6e 20 72 65 6d 61 69 6e |s sectio|n remain|
|000053c0| 73 20 69 6e 20 74 68 69 | 73 20 66 69 6c 65 20 61 |s in thi|s file a|
|000053d0| 6e 64 0a 2f 2a 09 09 09 | 74 68 61 74 20 63 6f 64 |nd./*...|that cod|
|000053e0| 65 20 75 73 69 6e 67 20 | 69 74 20 64 6f 20 6e 6f |e using |it do no|
|000053f0| 74 20 64 6f 20 73 6f 20 | 66 6f 72 20 6d 6f 6e 65 |t do so |for mone|
|00005400| 74 61 72 79 20 67 61 69 | 6e 2e 0a 2f 2a 09 09 09 |tary gai|n../*...|
|00005410| 4e 65 69 74 68 65 72 20 | 74 68 65 20 61 75 74 68 |Neither |the auth|
|00005420| 6f 72 2c 20 6e 6f 72 20 | 74 68 65 20 61 75 74 68 |or, nor |the auth|
|00005430| 6f 72 73 20 65 6d 70 6c | 6f 79 65 65 73 20 61 74 |ors empl|oyees at|
|00005440| 20 74 68 65 0a 2f 2a 09 | 09 09 74 69 6d 65 20 6f | the./*.|..time o|
|00005450| 66 20 64 65 76 65 6c 6f | 70 69 6e 67 20 74 68 69 |f develo|ping thi|
|00005460| 73 20 63 6f 64 65 2c 20 | 61 63 63 65 70 74 20 61 |s code, |accept a|
|00005470| 6e 79 20 6c 69 61 62 69 | 6c 69 74 79 20 6f 72 0a |ny liabi|lity or.|
|00005480| 2f 2a 09 09 09 72 65 73 | 70 6f 6e 73 69 62 69 6c |/*...res|ponsibil|
|00005490| 69 74 79 20 66 6f 72 20 | 74 68 65 20 75 73 65 2c |ity for |the use,|
|000054a0| 20 61 62 75 73 65 20 6f | 72 20 6d 69 73 75 73 65 | abuse o|r misuse|
|000054b0| 20 6f 66 20 74 68 69 73 | 0a 2f 2a 09 09 09 63 6f | of this|./*...co|
|000054c0| 64 65 2e 0a 2f 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |de../***|********|
|000054d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000054e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000054f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005500| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005510| 2a 2a 2f 0a 0a 23 69 6e | 63 6c 75 64 65 20 3c 77 |**/..#in|clude <w|
|00005520| 69 64 67 65 74 2e 68 3e | 0a 0a 65 78 74 65 72 6e |idget.h>|..extern|
|00005530| 20 63 68 61 72 20 20 20 | 20 20 2a 6d 61 6c 6c 6f | char | *mallo|
|00005540| 63 28 29 3b 0a 69 6e 74 | 09 09 74 65 78 74 77 69 |c();.int|..textwi|
|00005550| 6e 64 6f 77 64 65 66 69 | 6e 65 64 20 3d 20 46 41 |ndowdefi|ned = FA|
|00005560| 4c 53 45 3b 0a 69 6e 74 | 20 20 20 20 09 09 77 69 |LSE;.int| ..wi|
|00005570| 64 78 2c 20 77 69 64 79 | 3b 09 0a 69 6e 74 09 09 |dx, widy|;..int..|
|00005580| 6d 61 78 77 69 64 79 3b | 0a 69 6e 74 20 20 20 20 |maxwidy;|.int |
|00005590| 09 09 73 63 72 79 3b 0a | 69 6e 74 20 20 20 20 09 |..scry;.|int .|
|000055a0| 09 63 75 72 69 64 3b 0a | 69 6e 74 09 09 73 69 7a |.curid;.|int..siz|
|000055b0| 65 73 63 72 65 67 3b 0a | 69 6e 74 09 09 73 63 72 |escreg;.|int..scr|
|000055c0| 65 65 6e 62 6f 72 64 65 | 72 20 3d 20 30 3b 0a 0a |eenborde|r = 0;..|
|000055d0| 57 49 4e 44 4f 57 20 20 | 20 20 2a 73 63 72 65 65 |WINDOW | *scree|
|000055e0| 6e 3b 0a 57 49 4e 44 4f | 57 20 20 20 20 2a 73 63 |n;.WINDO|W *sc|
|000055f0| 72 65 65 6e 62 6f 78 3b | 0a 57 49 4e 44 4f 57 20 |reenbox;|.WINDOW |
|00005600| 20 20 20 2a 65 64 67 65 | 31 3b 0a 57 49 4e 44 4f | *edge|1;.WINDO|
|00005610| 57 09 20 20 2a 65 64 67 | 65 32 3b 0a 0a 0a 69 6e |W. *edg|e2;...in|
|00005620| 69 74 69 61 6c 69 73 65 | 77 69 64 67 65 74 73 20 |itialise|widgets |
|00005630| 28 29 0a 2f 2a 20 73 65 | 74 73 20 75 70 20 73 63 |()./* se|ts up sc|
|00005640| 72 65 65 6e 20 61 6e 64 | 20 69 6e 69 74 69 61 6c |reen and| initial|
|00005650| 69 73 65 73 20 67 6c 6f | 62 61 6c 20 76 61 72 69 |ises glo|bal vari|
|00005660| 61 62 6c 65 73 20 2a 2f | 0a 7b 0a 20 20 20 20 69 |ables */|.{. i|
|00005670| 6e 74 20 69 2c 20 65 6e | 64 77 69 64 67 65 74 73 |nt i, en|dwidgets|
|00005680| 28 29 3b 0a 0a 20 20 20 | 20 77 69 64 78 20 3d 20 |();.. | widx = |
|00005690| 77 69 64 79 20 3d 20 73 | 63 72 79 20 3d 20 30 3b |widy = s|cry = 0;|
|000056a0| 0a 20 20 20 20 63 75 72 | 69 64 20 3d 20 31 3b 0a |. cur|id = 1;.|
|000056b0| 20 20 20 20 6d 61 78 77 | 69 64 79 20 3d 20 4c 49 | maxw|idy = LI|
|000056c0| 4e 45 53 20 2d 20 33 3b | 0a 20 20 20 20 69 6e 69 |NES - 3;|. ini|
|000056d0| 74 73 63 72 20 28 29 3b | 0a 20 20 20 20 63 72 6d |tscr ();|. crm|
|000056e0| 6f 64 65 20 28 29 3b 0a | 20 20 20 20 6e 6f 65 63 |ode ();.| noec|
|000056f0| 68 6f 20 28 29 3b 0a 20 | 20 20 20 63 6d 64 6c 69 |ho ();. | cmdli|
|00005700| 73 74 20 3d 20 4e 55 4c | 4c 43 4d 44 3b 0a 20 20 |st = NUL|LCMD;. |
|00005710| 20 20 6c 62 6c 6c 69 73 | 74 20 3d 20 4e 55 4c 4c | lbllis|t = NULL|
|00005720| 4c 42 4c 3b 0a 20 20 20 | 20 74 67 6c 6c 69 73 74 |LBL;. | tgllist|
|00005730| 20 3d 20 4e 55 4c 4c 54 | 47 4c 3b 0a 20 20 20 20 | = NULLT|GL;. |
|00005740| 69 6e 70 6c 69 73 74 20 | 3d 20 4e 55 4c 4c 49 4e |inplist |= NULLIN|
|00005750| 50 3b 0a 20 20 20 20 61 | 63 74 6c 69 73 74 20 3d |P;. a|ctlist =|
|00005760| 20 4e 55 4c 4c 43 48 3b | 0a 20 20 20 20 66 6f 72 | NULLCH;|. for|
|00005770| 20 28 69 3d 30 3b 20 69 | 3c 31 38 3b 20 69 2b 2b | (i=0; i|<18; i++|
|00005780| 29 0a 09 73 69 67 6e 61 | 6c 20 28 69 2c 20 65 6e |)..signa|l (i, en|
|00005790| 64 77 69 64 67 65 74 73 | 29 3b 0a 7d 0a 0a 64 72 |dwidgets|);.}..dr|
|000057a0| 61 77 74 65 78 74 77 69 | 6e 64 6f 77 20 28 79 29 |awtextwi|ndow (y)|
|000057b0| 0a 2f 2a 20 64 72 61 77 | 73 20 74 68 65 20 74 65 |./* draw|s the te|
|000057c0| 78 74 20 77 69 6e 64 6f | 77 20 61 6e 64 20 64 72 |xt windo|w and dr|
|000057d0| 61 77 73 20 61 20 62 6f | 78 20 61 72 6f 75 6e 64 |aws a bo|x around|
|000057e0| 20 69 74 20 2a 2f 0a 69 | 6e 74 20 79 3b 0a 7b 0a | it */.i|nt y;.{.|
|000057f0| 20 20 20 20 69 6e 74 20 | 69 3b 0a 0a 20 20 20 20 | int |i;.. |
|00005800| 69 66 20 28 28 73 63 72 | 65 65 6e 62 6f 72 64 65 |if ((scr|eenborde|
|00005810| 72 20 26 20 56 45 52 54 | 49 43 41 4c 29 20 26 26 |r & VERT|ICAL) &&|
|00005820| 20 28 73 63 72 65 65 6e | 62 6f 72 64 65 72 20 26 | (screen|border &|
|00005830| 20 48 4f 52 49 5a 4f 4e | 54 41 4c 29 29 20 7b 0a | HORIZON|TAL)) {.|
|00005840| 20 20 20 20 20 20 20 20 | 62 6f 78 20 28 73 63 72 | |box (scr|
|00005850| 65 65 6e 62 6f 78 2c 20 | 27 7c 27 2c 20 27 2d 27 |eenbox, |'|', '-'|
|00005860| 29 3b 0a 20 20 20 20 09 | 6d 76 77 61 64 64 63 68 |);. .|mvwaddch|
|00005870| 20 28 73 63 72 65 65 6e | 62 6f 78 2c 20 30 2c 20 | (screen|box, 0, |
|00005880| 30 2c 20 27 2e 27 29 3b | 0a 20 20 20 20 09 6d 76 |0, '.');|. .mv|
|00005890| 77 61 64 64 63 68 20 28 | 73 63 72 65 65 6e 62 6f |waddch (|screenbo|
|000058a0| 78 2c 20 30 2c 20 43 4f | 4c 53 2d 32 2c 20 27 2e |x, 0, CO|LS-2, '.|
|000058b0| 27 29 3b 0a 20 20 20 20 | 09 6d 76 77 61 64 64 63 |');. |.mvwaddc|
|000058c0| 68 20 28 73 63 72 65 65 | 6e 62 6f 78 2c 20 4c 49 |h (scree|nbox, LI|
|000058d0| 4e 45 53 2d 79 2d 31 2c | 20 30 2c 20 27 60 27 29 |NES-y-1,| 0, '`')|
|000058e0| 3b 0a 20 20 20 20 09 6d | 76 77 61 64 64 63 68 20 |;. .m|vwaddch |
|000058f0| 28 73 63 72 65 65 6e 62 | 6f 78 2c 20 4c 49 4e 45 |(screenb|ox, LINE|
|00005900| 53 2d 79 2d 31 2c 20 43 | 4f 4c 53 2d 32 2c 20 27 |S-y-1, C|OLS-2, '|
|00005910| 5c 27 27 29 3b 0a 20 20 | 20 20 09 74 6f 75 63 68 |\'');. | .touch|
|00005920| 77 69 6e 20 28 73 63 72 | 65 65 6e 62 6f 78 29 3b |win (scr|eenbox);|
|00005930| 0a 20 20 20 20 20 20 20 | 20 77 72 65 66 72 65 73 |. | wrefres|
|00005940| 68 20 28 73 63 72 65 65 | 6e 62 6f 78 29 3b 0a 20 |h (scree|nbox);. |
|00005950| 20 20 20 7d 0a 20 20 20 | 20 65 6c 73 65 20 69 66 | }. | else if|
|00005960| 20 28 73 63 72 65 65 6e | 62 6f 72 64 65 72 20 26 | (screen|border &|
|00005970| 20 48 4f 52 49 5a 4f 4e | 54 41 4c 29 20 7b 0a 09 | HORIZON|TAL) {..|
|00005980| 77 61 64 64 73 74 72 20 | 28 65 64 67 65 31 2c 20 |waddstr |(edge1, |
|00005990| 22 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |"-------|--------|
|000059a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000059b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000059c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000059d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000059e0| 22 29 3b 0a 20 20 20 20 | 20 20 20 20 77 61 64 64 |");. | wadd|
|000059f0| 73 74 72 20 28 65 64 67 | 65 32 2c 20 22 2d 2d 2d |str (edg|e2, "---|
|00005a00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005a10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005a20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005a30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005a40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 22 29 3b 0a |--------|----");.|
|00005a50| 09 77 72 65 66 72 65 73 | 68 20 28 65 64 67 65 31 |.wrefres|h (edge1|
|00005a60| 29 3b 0a 09 77 72 65 66 | 72 65 73 68 20 28 65 64 |);..wref|resh (ed|
|00005a70| 67 65 32 29 3b 0a 20 20 | 20 20 7d 0a 20 20 20 20 |ge2);. | }. |
|00005a80| 65 6c 73 65 20 69 66 20 | 28 73 63 72 65 65 6e 62 |else if |(screenb|
|00005a90| 6f 72 64 65 72 20 26 20 | 56 45 52 54 49 43 41 4c |order & |VERTICAL|
|00005aa0| 29 20 7b 0a 09 66 6f 72 | 20 28 69 3d 30 3b 20 69 |) {..for| (i=0; i|
|00005ab0| 3c 3d 73 69 7a 65 73 63 | 72 65 67 3b 20 69 2b 2b |<=sizesc|reg; i++|
|00005ac0| 29 20 7b 0a 09 20 20 20 | 20 6d 76 77 61 64 64 63 |) {.. | mvwaddc|
|00005ad0| 68 20 28 65 64 67 65 31 | 2c 20 69 2c 20 30 2c 20 |h (edge1|, i, 0, |
|00005ae0| 27 7c 27 29 3b 0a 09 20 | 20 20 20 6d 76 77 61 64 |'|');.. | mvwad|
|00005af0| 64 63 68 20 28 65 64 67 | 65 32 2c 20 69 2c 20 30 |dch (edg|e2, i, 0|
|00005b00| 2c 20 27 7c 27 29 3b 0a | 20 20 20 09 7d 0a 09 77 |, '|');.| .}..w|
|00005b10| 72 65 66 72 65 73 68 20 | 28 65 64 67 65 31 29 3b |refresh |(edge1);|
|00005b20| 0a 09 77 72 65 66 72 65 | 73 68 20 28 65 64 67 65 |..wrefre|sh (edge|
|00005b30| 32 29 3b 0a 20 20 20 20 | 7d 0a 20 20 20 20 74 6f |2);. |}. to|
|00005b40| 75 63 68 77 69 6e 20 28 | 73 63 72 65 65 6e 29 3b |uchwin (|screen);|
|00005b50| 0a 20 20 20 20 77 72 65 | 66 72 65 73 68 20 28 73 |. wre|fresh (s|
|00005b60| 63 72 65 65 6e 29 3b 0a | 7d 0a 0a 69 6e 74 20 6f |creen);.|}..int o|
|00005b70| 70 65 6e 74 65 78 74 77 | 69 6e 64 6f 77 20 28 70 |pentextw|indow (p|
|00005b80| 6f 73 69 74 69 6f 6e 2c | 20 62 6f 72 64 65 72 29 |osition,| border)|
|00005b90| 0a 2f 2a 20 64 65 66 69 | 6e 65 20 74 68 65 20 74 |./* defi|ne the t|
|00005ba0| 65 78 74 20 77 69 6e 64 | 6f 77 20 66 72 6f 6d 20 |ext wind|ow from |
|00005bb0| 63 75 72 72 65 6e 74 20 | 70 6f 73 69 74 69 6f 6e |current |position|
|00005bc0| 20 64 6f 77 6e 20 2b 20 | 70 6f 73 69 74 69 6f 6e | down + |position|
|00005bd0| 20 2a 20 77 69 64 67 65 | 74 20 64 65 70 74 68 2a | * widge|t depth*|
|00005be0| 2f 0a 69 6e 74 20 20 20 | 20 70 6f 73 69 74 69 6f |/.int | positio|
|00005bf0| 6e 3b 0a 69 6e 74 20 20 | 20 20 62 6f 72 64 65 72 |n;.int | border|
|00005c00| 3b 0a 7b 0a 20 20 20 20 | 69 66 20 28 28 70 6f 73 |;.{. |if ((pos|
|00005c10| 69 74 69 6f 6e 20 3e 3d | 20 30 29 20 26 26 20 28 |ition >=| 0) && (|
|00005c20| 21 74 65 78 74 77 69 6e | 64 6f 77 64 65 66 69 6e |!textwin|dowdefin|
|00005c30| 65 64 29 20 26 26 20 28 | 77 69 64 79 20 2b 20 33 |ed) && (|widy + 3|
|00005c40| 2a 70 6f 73 69 74 69 6f | 6e 20 3c 20 32 31 29 29 |*positio|n < 21))|
|00005c50| 20 7b 0a 20 20 20 20 09 | 6d 61 78 77 69 64 79 20 | {. .|maxwidy |
|00005c60| 3d 20 77 69 64 79 20 2b | 20 70 6f 73 69 74 69 6f |= widy +| positio|
|00005c70| 6e 20 2a 20 33 20 2b 20 | 33 3b 0a 09 69 66 20 28 |n * 3 + |3;..if (|
|00005c80| 28 62 6f 72 64 65 72 20 | 26 20 56 45 52 54 49 43 |(border |& VERTIC|
|00005c90| 41 4c 29 20 26 26 20 28 | 62 6f 72 64 65 72 20 26 |AL) && (|border &|
|00005ca0| 20 48 4f 52 49 5a 4f 4e | 54 41 4c 29 29 20 7b 0a | HORIZON|TAL)) {.|
|00005cb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 73 63 72 65 | | scre|
|00005cc0| 65 6e 62 6f 78 20 3d 20 | 6e 65 77 77 69 6e 20 28 |enbox = |newwin (|
|00005cd0| 4c 49 4e 45 53 2d 6d 61 | 78 77 69 64 79 2c 20 43 |LINES-ma|xwidy, C|
|00005ce0| 4f 4c 53 2d 31 2c 20 6d | 61 78 77 69 64 79 2c 20 |OLS-1, m|axwidy, |
|00005cf0| 30 29 3b 0a 09 20 20 20 | 20 73 63 72 65 65 6e 20 |0);.. | screen |
|00005d00| 3d 20 6e 65 77 77 69 6e | 20 28 4c 49 4e 45 53 2d |= newwin| (LINES-|
|00005d10| 32 2d 6d 61 78 77 69 64 | 79 2c 20 43 4f 4c 53 2d |2-maxwid|y, COLS-|
|00005d20| 33 2c 20 6d 61 78 77 69 | 64 79 2b 31 2c 20 31 29 |3, maxwi|dy+1, 1)|
|00005d30| 3b 0a 09 20 20 20 20 73 | 69 7a 65 73 63 72 65 67 |;.. s|izescreg|
|00005d40| 20 3d 20 4c 49 4e 45 53 | 2d 32 2d 6d 61 78 77 69 | = LINES|-2-maxwi|
|00005d50| 64 79 3b 0a 20 20 20 20 | 20 20 20 20 7d 0a 09 65 |dy;. | }..e|
|00005d60| 6c 73 65 20 69 66 20 28 | 62 6f 72 64 65 72 20 26 |lse if (|border &|
|00005d70| 20 48 4f 52 49 5a 4f 4e | 54 41 4c 29 20 7b 0a 09 | HORIZON|TAL) {..|
|00005d80| 20 20 20 20 73 63 72 65 | 65 6e 20 3d 20 6e 65 77 | scre|en = new|
|00005d90| 77 69 6e 20 28 4c 49 4e | 45 53 2d 32 2d 6d 61 78 |win (LIN|ES-2-max|
|00005da0| 77 69 64 79 2c 20 43 4f | 4c 53 2d 31 2c 20 6d 61 |widy, CO|LS-1, ma|
|00005db0| 78 77 69 64 79 2b 31 2c | 20 30 29 3b 0a 20 20 20 |xwidy+1,| 0);. |
|00005dc0| 20 09 20 20 20 20 65 64 | 67 65 31 20 3d 20 6e 65 | . ed|ge1 = ne|
|00005dd0| 77 77 69 6e 20 28 31 2c | 20 43 4f 4c 53 2d 31 2c |wwin (1,| COLS-1,|
|00005de0| 20 6d 61 78 77 69 64 79 | 2c 20 30 29 3b 0a 20 20 | maxwidy|, 0);. |
|00005df0| 20 20 20 20 20 20 20 20 | 20 20 65 64 67 65 32 20 | | edge2 |
|00005e00| 3d 20 6e 65 77 77 69 6e | 20 28 31 2c 20 43 4f 4c |= newwin| (1, COL|
|00005e10| 53 2d 31 2c 20 4c 49 4e | 45 53 2d 31 2c 20 30 29 |S-1, LIN|ES-1, 0)|
|00005e20| 3b 0a 09 20 20 20 20 73 | 69 7a 65 73 63 72 65 67 |;.. s|izescreg|
|00005e30| 20 3d 20 4c 49 4e 45 53 | 2d 32 2d 6d 61 78 77 69 | = LINES|-2-maxwi|
|00005e40| 64 79 3b 0a 20 20 20 20 | 20 20 20 20 7d 0a 09 65 |dy;. | }..e|
|00005e50| 6c 73 65 20 69 66 20 28 | 62 6f 72 64 65 72 20 26 |lse if (|border &|
|00005e60| 20 56 45 52 54 49 43 41 | 4c 29 20 7b 0a 09 20 20 | VERTICA|L) {.. |
|00005e70| 20 20 73 63 72 65 65 6e | 20 3d 20 6e 65 77 77 69 | screen| = newwi|
|00005e80| 6e 20 28 4c 49 4e 45 53 | 2d 6d 61 78 77 69 64 79 |n (LINES|-maxwidy|
|00005e90| 2c 20 43 4f 4c 53 2d 33 | 2c 20 6d 61 78 77 69 64 |, COLS-3|, maxwid|
|00005ea0| 79 2c 20 31 29 3b 0a 09 | 20 20 20 20 65 64 67 65 |y, 1);..| edge|
|00005eb0| 31 20 3d 20 6e 65 77 77 | 69 6e 20 28 4c 49 4e 45 |1 = neww|in (LINE|
|00005ec0| 53 2d 6d 61 78 77 69 64 | 79 2c 20 31 2c 20 6d 61 |S-maxwid|y, 1, ma|
|00005ed0| 78 77 69 64 79 2c 20 30 | 29 3b 0a 09 20 20 20 20 |xwidy, 0|);.. |
|00005ee0| 65 64 67 65 32 20 3d 20 | 6e 65 77 77 69 6e 20 28 |edge2 = |newwin (|
|00005ef0| 4c 49 4e 45 53 2d 6d 61 | 78 77 69 64 79 2c 20 31 |LINES-ma|xwidy, 1|
|00005f00| 2c 20 6d 61 78 77 69 64 | 79 2c 20 43 4f 4c 53 2d |, maxwid|y, COLS-|
|00005f10| 32 29 3b 0a 09 20 20 20 | 20 73 69 7a 65 73 63 72 |2);.. | sizescr|
|00005f20| 65 67 20 3d 20 4c 49 4e | 45 53 2d 6d 61 78 77 69 |eg = LIN|ES-maxwi|
|00005f30| 64 79 3b 0a 20 20 20 20 | 20 20 20 20 7d 0a 09 65 |dy;. | }..e|
|00005f40| 6c 73 65 20 7b 0a 09 20 | 20 20 20 73 63 72 65 65 |lse {.. | scree|
|00005f50| 6e 20 3d 20 6e 65 77 77 | 69 6e 20 28 4c 49 4e 45 |n = neww|in (LINE|
|00005f60| 53 2d 6d 61 78 77 69 64 | 79 2c 20 43 4f 4c 53 2d |S-maxwid|y, COLS-|
|00005f70| 31 2c 20 6d 61 78 77 69 | 64 79 2c 20 30 29 3b 0a |1, maxwi|dy, 0);.|
|00005f80| 09 20 20 20 20 73 69 7a | 65 73 63 72 65 67 20 3d |. siz|escreg =|
|00005f90| 20 4c 49 4e 45 53 2d 6d | 61 78 77 69 64 79 3b 0a | LINES-m|axwidy;.|
|00005fa0| 20 20 20 20 20 20 20 20 | 7d 0a 20 20 20 20 20 20 | |}. |
|00005fb0| 20 20 73 63 72 65 65 6e | 62 6f 72 64 65 72 20 3d | screen|border =|
|00005fc0| 20 62 6f 72 64 65 72 3b | 0a 20 20 20 20 20 20 20 | border;|. |
|00005fd0| 20 73 63 72 6f 6c 6c 6f | 6b 20 28 73 63 72 65 65 | scrollo|k (scree|
|00005fe0| 6e 2c 20 54 52 55 45 29 | 3b 0a 09 64 72 61 77 74 |n, TRUE)|;..drawt|
|00005ff0| 65 78 74 77 69 6e 64 6f | 77 20 28 6d 61 78 77 69 |extwindo|w (maxwi|
|00006000| 64 79 29 3b 0a 20 20 20 | 20 20 20 20 20 77 6d 6f |dy);. | wmo|
|00006010| 76 65 20 28 73 63 72 65 | 65 6e 2c 20 73 63 72 79 |ve (scre|en, scry|
|00006020| 2c 20 30 29 3b 0a 09 77 | 72 65 66 72 65 73 68 20 |, 0);..w|refresh |
|00006030| 28 73 63 72 65 65 6e 29 | 3b 0a 09 74 65 78 74 77 |(screen)|;..textw|
|00006040| 69 6e 64 6f 77 64 65 66 | 69 6e 65 64 20 3d 20 31 |indowdef|ined = 1|
|00006050| 3b 0a 09 72 65 74 75 72 | 6e 20 73 69 7a 65 73 63 |;..retur|n sizesc|
|00006060| 72 65 67 3b 0a 20 20 20 | 20 7d 0a 7d 0a 0a 69 6e |reg;. | }.}..in|
|00006070| 74 20 61 64 64 74 6f 63 | 68 6c 69 73 74 20 28 63 |t addtoc|hlist (c|
|00006080| 68 2c 20 69 64 2c 20 74 | 79 70 65 29 0a 2f 2a 20 |h, id, t|ype)./* |
|00006090| 61 64 64 20 61 20 6e 65 | 77 20 63 68 61 72 61 63 |add a ne|w charac|
|000060a0| 74 65 72 20 74 6f 20 61 | 72 72 61 79 20 6f 66 20 |ter to a|rray of |
|000060b0| 61 63 74 69 76 61 74 69 | 6f 6e 20 63 68 61 72 73 |activati|on chars|
|000060c0| 2e 0a 20 2a 20 72 65 74 | 75 72 6e 73 20 54 52 55 |.. * ret|urns TRU|
|000060d0| 45 20 69 66 20 73 75 63 | 63 65 73 73 66 75 6c 20 |E if suc|cessful |
|000060e0| 28 63 68 61 72 20 6e 6f | 74 20 61 6c 72 65 61 64 |(char no|t alread|
|000060f0| 79 20 69 6e 20 6c 69 73 | 74 29 20 65 6c 73 65 20 |y in lis|t) else |
|00006100| 46 41 4c 53 45 0a 20 2a | 2f 0a 63 68 61 72 20 20 |FALSE. *|/.char |
|00006110| 20 09 20 20 20 20 63 68 | 3b 0a 69 6e 74 20 20 20 | . ch|;.int |
|00006120| 20 09 20 20 20 20 69 64 | 3b 0a 57 49 44 47 45 54 | . id|;.WIDGET|
|00006130| 54 59 50 45 20 20 74 79 | 70 65 3b 09 0a 7b 0a 20 |TYPE ty|pe;..{. |
|00006140| 20 20 20 73 74 72 75 63 | 74 20 63 68 65 6e 74 72 | struc|t chentr|
|00006150| 79 20 20 2a 63 68 6c 69 | 73 74 3b 0a 20 20 20 20 |y *chli|st;. |
|00006160| 73 74 72 75 63 74 20 63 | 68 65 6e 74 72 79 20 20 |struct c|hentry |
|00006170| 2a 6e 65 77 65 6e 74 72 | 79 3b 0a 20 20 20 20 2f |*newentr|y;. /|
|00006180| 2a 20 73 65 61 72 63 68 | 20 6c 69 73 74 20 74 6f |* search| list to|
|00006190| 20 73 65 65 20 63 68 61 | 72 20 61 6c 72 65 61 64 | see cha|r alread|
|000061a0| 79 20 65 6e 74 65 72 65 | 64 20 69 6e 20 74 68 65 |y entere|d in the|
|000061b0| 20 6c 69 73 74 20 2a 2f | 09 0a 20 20 20 20 63 68 | list */|.. ch|
|000061c0| 6c 69 73 74 20 3d 20 61 | 63 74 6c 69 73 74 3b 0a |list = a|ctlist;.|
|000061d0| 20 20 20 20 69 66 20 28 | 63 68 6c 69 73 74 20 21 | if (|chlist !|
|000061e0| 3d 20 4e 55 4c 4c 43 48 | 29 20 7b 0a 09 77 68 69 |= NULLCH|) {..whi|
|000061f0| 6c 65 20 28 63 68 6c 69 | 73 74 20 2d 3e 20 6e 65 |le (chli|st -> ne|
|00006200| 78 74 20 21 3d 20 4e 55 | 4c 4c 43 48 29 20 0a 09 |xt != NU|LLCH) ..|
|00006210| 20 20 20 69 66 20 28 63 | 68 6c 69 73 74 20 2d 3e | if (c|hlist ->|
|00006220| 20 63 68 20 3d 3d 20 63 | 68 29 0a 09 09 72 65 74 | ch == c|h)...ret|
|00006230| 75 72 6e 20 46 41 4c 53 | 45 3b 20 20 20 20 20 20 |urn FALS|E; |
|00006240| 20 20 20 20 20 2f 2a 20 | 63 68 61 72 20 65 78 69 | /* |char exi|
|00006250| 73 74 73 20 3d 3e 20 65 | 72 72 6f 72 20 2a 2f 0a |sts => e|rror */.|
|00006260| 09 20 20 20 20 65 6c 73 | 65 0a 09 09 63 68 6c 69 |. els|e...chli|
|00006270| 73 74 20 3d 20 63 68 6c | 69 73 74 20 2d 3e 20 6e |st = chl|ist -> n|
|00006280| 65 78 74 3b 0a 20 20 20 | 20 09 6e 65 77 65 6e 74 |ext;. | .newent|
|00006290| 72 79 20 3d 20 28 73 74 | 72 75 63 74 20 63 68 65 |ry = (st|ruct che|
|000062a0| 6e 74 72 79 2a 29 6d 61 | 6c 6c 6f 63 28 28 75 6e |ntry*)ma|lloc((un|
|000062b0| 73 69 67 6e 65 64 29 73 | 69 7a 65 6f 66 28 73 74 |signed)s|izeof(st|
|000062c0| 72 75 63 74 20 63 68 65 | 6e 74 72 79 29 29 3b 0a |ruct che|ntry));.|
|000062d0| 09 63 68 6c 69 73 74 20 | 2d 3e 20 6e 65 78 74 20 |.chlist |-> next |
|000062e0| 3d 20 6e 65 77 65 6e 74 | 72 79 3b 0a 20 20 20 20 |= newent|ry;. |
|000062f0| 7d 0a 20 20 20 20 65 6c | 73 65 20 7b 0a 20 20 20 |}. el|se {. |
|00006300| 20 09 6e 65 77 65 6e 74 | 72 79 20 3d 20 28 73 74 | .newent|ry = (st|
|00006310| 72 75 63 74 20 63 68 65 | 6e 74 72 79 2a 29 6d 61 |ruct che|ntry*)ma|
|00006320| 6c 6c 6f 63 28 28 75 6e | 73 69 67 6e 65 64 29 73 |lloc((un|signed)s|
|00006330| 69 7a 65 6f 66 28 73 74 | 72 75 63 74 20 63 68 65 |izeof(st|ruct che|
|00006340| 6e 74 72 79 29 29 3b 0a | 09 61 63 74 6c 69 73 74 |ntry));.|.actlist|
|00006350| 20 3d 20 6e 65 77 65 6e | 74 72 79 3b 0a 20 20 20 | = newen|try;. |
|00006360| 20 7d 0a 20 20 20 20 2f | 2a 20 63 68 61 72 20 6e | }. /|* char n|
|00006370| 6f 74 20 74 68 65 72 65 | 20 73 6f 20 61 64 64 20 |ot there| so add |
|00006380| 74 6f 20 6c 69 73 74 20 | 2a 2f 0a 20 20 20 20 6e |to list |*/. n|
|00006390| 65 77 65 6e 74 72 79 20 | 2d 3e 20 63 68 20 3d 20 |ewentry |-> ch = |
|000063a0| 63 68 3b 0a 20 20 20 20 | 6e 65 77 65 6e 74 72 79 |ch;. |newentry|
|000063b0| 20 2d 3e 20 69 64 20 3d | 20 69 64 3b 0a 20 20 20 | -> id =| id;. |
|000063c0| 20 6e 65 77 65 6e 74 72 | 79 20 2d 3e 20 74 79 70 | newentr|y -> typ|
|000063d0| 65 20 3d 20 74 79 70 65 | 3b 0a 20 20 20 20 6e 65 |e = type|;. ne|
|000063e0| 77 65 6e 74 72 79 20 2d | 3e 20 6e 65 78 74 20 3d |wentry -|> next =|
|000063f0| 20 4e 55 4c 4c 43 48 3b | 0a 20 20 20 20 72 65 74 | NULLCH;|. ret|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.