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: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: 4095
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 50 61 |.sources|.misc.Pa|
|00000020| 74 68 3a 20 73 70 61 72 | 6b 79 21 6b 65 6e 74 0a |th: spar|ky!kent.|
|00000030| 46 72 6f 6d 3a 20 4d 2e | 48 65 73 73 6c 69 6e 67 |From: M.|Hessling|
|00000040| 40 67 75 2e 65 64 75 2e | 61 75 20 28 4d 61 72 6b |@gu.edu.|au (Mark|
|00000050| 20 48 65 73 73 6c 69 6e | 67 29 0a 53 75 62 6a 65 | Hesslin|g).Subje|
|00000060| 63 74 3a 20 20 76 33 33 | 69 30 39 30 3a 20 20 70 |ct: v33|i090: p|
|00000070| 64 63 75 72 73 65 73 20 | 2d 20 50 75 62 6c 69 63 |dcurses |- Public|
|00000080| 20 44 6f 6d 61 69 6e 20 | 63 75 72 73 65 73 20 6c | Domain |curses l|
|00000090| 69 62 72 61 72 79 20 66 | 6f 72 20 44 4f 53 20 61 |ibrary f|or DOS a|
|000000a0| 6e 64 20 4f 53 2f 32 20 | 76 32 2e 30 2c 20 50 61 |nd OS/2 |v2.0, Pa|
|000000b0| 72 74 31 30 2f 31 31 0a | 4d 65 73 73 61 67 65 2d |rt10/11.|Message-|
|000000c0| 49 44 3a 20 3c 31 39 39 | 32 4e 6f 76 31 39 2e 30 |ID: <199|2Nov19.0|
|000000d0| 34 30 38 35 34 2e 38 33 | 38 33 40 73 70 61 72 6b |40854.83|83@spark|
|000000e0| 79 2e 69 6d 64 2e 73 74 | 65 72 6c 69 6e 67 2e 63 |y.imd.st|erling.c|
|000000f0| 6f 6d 3e 0a 46 6f 6c 6c | 6f 77 75 70 2d 54 6f 3a |om>.Foll|owup-To:|
|00000100| 20 63 6f 6d 70 2e 73 6f | 75 72 63 65 73 2e 64 0a | comp.so|urces.d.|
|00000110| 58 2d 4d 64 34 2d 53 69 | 67 6e 61 74 75 72 65 3a |X-Md4-Si|gnature:|
|00000120| 20 34 35 62 32 62 64 61 | 39 63 65 30 32 38 61 30 | 45b2bda|9ce028a0|
|00000130| 63 32 37 36 65 64 35 61 | 39 66 64 62 36 34 62 64 |c276ed5a|9fdb64bd|
|00000140| 63 0a 53 65 6e 64 65 72 | 3a 20 6b 65 6e 74 40 73 |c.Sender|: kent@s|
|00000150| 70 61 72 6b 79 2e 69 6d | 64 2e 73 74 65 72 6c 69 |parky.im|d.sterli|
|00000160| 6e 67 2e 63 6f 6d 20 28 | 4b 65 6e 74 20 4c 61 6e |ng.com (|Kent Lan|
|00000170| 64 66 69 65 6c 64 29 0a | 4f 72 67 61 6e 69 7a 61 |dfield).|Organiza|
|00000180| 74 69 6f 6e 3a 20 53 74 | 65 72 6c 69 6e 67 20 53 |tion: St|erling S|
|00000190| 6f 66 74 77 61 72 65 0a | 52 65 66 65 72 65 6e 63 |oftware.|Referenc|
|000001a0| 65 73 3a 20 3c 63 73 6d | 2d 76 33 33 69 30 38 31 |es: <csm|-v33i081|
|000001b0| 3d 70 64 63 75 72 73 65 | 73 2e 32 31 35 35 35 31 |=pdcurse|s.215551|
|000001c0| 40 73 70 61 72 6b 79 2e | 49 4d 44 2e 53 74 65 72 |@sparky.|IMD.Ster|
|000001d0| 6c 69 6e 67 2e 43 4f 4d | 3e 0a 44 61 74 65 3a 20 |ling.COM|>.Date: |
|000001e0| 54 68 75 2c 20 31 39 20 | 4e 6f 76 20 31 39 39 32 |Thu, 19 |Nov 1992|
|000001f0| 20 30 34 3a 30 38 3a 35 | 34 20 47 4d 54 0a 41 70 | 04:08:5|4 GMT.Ap|
|00000200| 70 72 6f 76 65 64 3a 20 | 6b 65 6e 74 40 73 70 61 |proved: |kent@spa|
|00000210| 72 6b 79 2e 69 6d 64 2e | 73 74 65 72 6c 69 6e 67 |rky.imd.|sterling|
|00000220| 2e 63 6f 6d 0a 4c 69 6e | 65 73 3a 20 31 39 32 32 |.com.Lin|es: 1922|
|00000230| 0a 0a 53 75 62 6d 69 74 | 74 65 64 2d 62 79 3a 20 |..Submit|ted-by: |
|00000240| 4d 2e 48 65 73 73 6c 69 | 6e 67 40 67 75 2e 65 64 |M.Hessli|ng@gu.ed|
|00000250| 75 2e 61 75 20 28 4d 61 | 72 6b 20 48 65 73 73 6c |u.au (Ma|rk Hessl|
|00000260| 69 6e 67 29 0a 50 6f 73 | 74 69 6e 67 2d 6e 75 6d |ing).Pos|ting-num|
|00000270| 62 65 72 3a 20 56 6f 6c | 75 6d 65 20 33 33 2c 20 |ber: Vol|ume 33, |
|00000280| 49 73 73 75 65 20 39 30 | 0a 41 72 63 68 69 76 65 |Issue 90|.Archive|
|00000290| 2d 6e 61 6d 65 3a 20 70 | 64 63 75 72 73 65 73 2f |-name: p|dcurses/|
|000002a0| 70 61 72 74 31 30 0a 45 | 6e 76 69 72 6f 6e 6d 65 |part10.E|nvironme|
|000002b0| 6e 74 3a 20 44 4f 53 2c | 4f 53 2f 32 2c 41 4e 53 |nt: DOS,|OS/2,ANS|
|000002c0| 49 2d 43 0a 0a 23 21 20 | 2f 62 69 6e 2f 73 68 0a |I-C..#! |/bin/sh.|
|000002d0| 23 20 54 68 69 73 20 69 | 73 20 61 20 73 68 65 6c |# This i|s a shel|
|000002e0| 6c 20 61 72 63 68 69 76 | 65 2e 20 20 52 65 6d 6f |l archiv|e. Remo|
|000002f0| 76 65 20 61 6e 79 74 68 | 69 6e 67 20 62 65 66 6f |ve anyth|ing befo|
|00000300| 72 65 20 74 68 69 73 20 | 6c 69 6e 65 2c 20 74 68 |re this |line, th|
|00000310| 65 6e 20 66 65 65 64 20 | 69 74 0a 23 20 69 6e 74 |en feed |it.# int|
|00000320| 6f 20 61 20 73 68 65 6c | 6c 20 76 69 61 20 22 73 |o a shel|l via "s|
|00000330| 68 20 66 69 6c 65 22 20 | 6f 72 20 73 69 6d 69 6c |h file" |or simil|
|00000340| 61 72 2e 20 20 54 6f 20 | 6f 76 65 72 77 72 69 74 |ar. To |overwrit|
|00000350| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 73 |e existi|ng files|
|00000360| 2c 0a 23 20 74 79 70 65 | 20 22 73 68 20 66 69 6c |,.# type| "sh fil|
|00000370| 65 20 2d 63 22 2e 0a 23 | 20 43 6f 6e 74 65 6e 74 |e -c"..#| Content|
|00000380| 73 3a 20 20 66 6c 65 78 | 6f 73 2f 5f 31 36 62 69 |s: flex|os/_16bi|
|00000390| 74 6d 6f 2e 63 20 66 6c | 65 78 6f 73 2f 5f 38 62 |tmo.c fl|exos/_8b|
|000003a0| 69 74 6d 6f 64 2e 63 20 | 6e 6f 6e 70 6f 72 74 2f |itmod.c |nonport/|
|000003b0| 77 62 6f 72 64 65 72 2e | 63 0a 23 20 20 20 70 64 |wborder.|c.# pd|
|000003c0| 63 75 72 73 65 73 2e 63 | 66 67 20 70 6f 72 74 61 |curses.c|fg porta|
|000003d0| 62 6c 65 2f 62 61 75 64 | 72 61 74 65 2e 63 20 70 |ble/baud|rate.c p|
|000003e0| 6f 72 74 61 62 6c 65 2f | 62 65 65 70 2e 63 20 70 |ortable/|beep.c p|
|000003f0| 6f 72 74 61 62 6c 65 2f | 62 6f 78 2e 63 0a 23 20 |ortable/|box.c.# |
|00000400| 20 20 70 6f 72 74 61 62 | 6c 65 2f 63 62 72 65 61 | portab|le/cbrea|
|00000410| 6b 2e 63 20 70 6f 72 74 | 61 62 6c 65 2f 64 65 6c |k.c port|able/del|
|00000420| 61 79 5f 6f 75 2e 63 20 | 70 6f 72 74 61 62 6c 65 |ay_ou.c |portable|
|00000430| 2f 67 65 74 79 78 2e 63 | 0a 23 20 20 20 70 6f 72 |/getyx.c|.# por|
|00000440| 74 61 62 6c 65 2f 68 61 | 73 5f 69 63 2e 63 20 70 |table/ha|s_ic.c p|
|00000450| 6f 72 74 61 62 6c 65 2f | 69 6e 69 74 63 6f 6c 6f |ortable/|initcolo|
|00000460| 2e 63 20 70 6f 72 74 61 | 62 6c 65 2f 6d 65 74 61 |.c porta|ble/meta|
|00000470| 2e 63 0a 23 20 20 20 70 | 6f 72 74 61 62 6c 65 2f |.c.# p|ortable/|
|00000480| 6d 76 63 75 72 2e 63 20 | 70 6f 72 74 61 62 6c 65 |mvcur.c |portable|
|00000490| 2f 6d 76 77 69 6e 2e 63 | 20 70 6f 72 74 61 62 6c |/mvwin.c| portabl|
|000004a0| 65 2f 6e 6c 2e 63 0a 23 | 20 20 20 70 6f 72 74 61 |e/nl.c.#| porta|
|000004b0| 62 6c 65 2f 6e 6f 63 62 | 72 65 61 6b 2e 63 20 70 |ble/nocb|reak.c p|
|000004c0| 6f 72 74 61 62 6c 65 2f | 72 65 66 72 65 73 68 2e |ortable/|refresh.|
|000004d0| 63 20 70 6f 72 74 61 62 | 6c 65 2f 73 63 72 6f 6c |c portab|le/scrol|
|000004e0| 6c 6f 6b 2e 63 0a 23 20 | 20 20 70 6f 72 74 61 62 |lok.c.# | portab|
|000004f0| 6c 65 2f 73 74 61 72 74 | 63 6f 6c 2e 63 20 70 6f |le/start|col.c po|
|00000500| 72 74 61 62 6c 65 2f 74 | 6f 75 63 68 6c 69 6e 2e |rtable/t|ouchlin.|
|00000510| 63 20 70 6f 72 74 61 62 | 6c 65 2f 77 63 6c 65 61 |c portab|le/wclea|
|00000520| 72 2e 63 0a 23 20 20 20 | 70 6f 72 74 61 62 6c 65 |r.c.# |portable|
|00000530| 2f 77 65 72 61 73 65 2e | 63 20 70 6f 72 74 61 62 |/werase.|c portab|
|00000540| 6c 65 2f 77 69 6e 73 63 | 68 2e 63 20 70 72 69 76 |le/winsc|h.c priv|
|00000550| 61 74 65 2f 5f 61 64 64 | 74 61 69 6c 2e 63 0a 23 |ate/_add|tail.c.#|
|00000560| 20 20 20 70 72 69 76 61 | 74 65 2f 5f 63 6b 62 69 | priva|te/_ckbi|
|00000570| 6f 73 6b 2e 63 20 70 72 | 69 76 61 74 65 2f 5f 67 |osk.c pr|ivate/_g|
|00000580| 63 72 73 70 6f 73 2e 63 | 20 70 72 69 76 61 74 65 |crspos.c| private|
|00000590| 2f 5f 67 63 75 72 63 6f | 6c 2e 63 0a 23 20 20 20 |/_gcurco|l.c.# |
|000005a0| 70 72 69 76 61 74 65 2f | 5f 67 63 75 72 72 6f 77 |private/|_gcurrow|
|000005b0| 2e 63 20 70 72 69 76 61 | 74 65 2f 5f 67 65 74 61 |.c priva|te/_geta|
|000005c0| 74 74 72 2e 63 20 70 72 | 69 76 61 74 65 2f 5f 73 |ttr.c pr|ivate/_s|
|000005d0| 63 72 6e 6d 6f 64 2e 63 | 0a 23 20 57 72 61 70 70 |crnmod.c|.# Wrapp|
|000005e0| 65 64 20 62 79 20 6b 65 | 6e 74 40 73 70 61 72 6b |ed by ke|nt@spark|
|000005f0| 79 20 6f 6e 20 57 65 64 | 20 4e 6f 76 20 31 38 20 |y on Wed| Nov 18 |
|00000600| 32 31 3a 34 34 3a 31 30 | 20 31 39 39 32 0a 50 41 |21:44:10| 1992.PA|
|00000610| 54 48 3d 2f 62 69 6e 3a | 2f 75 73 72 2f 62 69 6e |TH=/bin:|/usr/bin|
|00000620| 3a 2f 75 73 72 2f 75 63 | 62 3a 2f 75 73 72 2f 6c |:/usr/uc|b:/usr/l|
|00000630| 6f 63 61 6c 2f 62 69 6e | 3a 2f 75 73 72 2f 6c 62 |ocal/bin|:/usr/lb|
|00000640| 69 6e 20 3b 20 65 78 70 | 6f 72 74 20 50 41 54 48 |in ; exp|ort PATH|
|00000650| 0a 65 63 68 6f 20 49 66 | 20 74 68 69 73 20 61 72 |.echo If| this ar|
|00000660| 63 68 69 76 65 20 69 73 | 20 63 6f 6d 70 6c 65 74 |chive is| complet|
|00000670| 65 2c 20 79 6f 75 20 77 | 69 6c 6c 20 73 65 65 20 |e, you w|ill see |
|00000680| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 65 |the foll|owing me|
|00000690| 73 73 61 67 65 3a 0a 65 | 63 68 6f 20 27 20 20 20 |ssage:.e|cho ' |
|000006a0| 20 20 20 20 20 20 20 22 | 73 68 61 72 3a 20 45 6e | "|shar: En|
|000006b0| 64 20 6f 66 20 61 72 63 | 68 69 76 65 20 31 30 20 |d of arc|hive 10 |
|000006c0| 28 6f 66 20 31 31 29 2e | 22 27 0a 69 66 20 74 65 |(of 11).|"'.if te|
|000006d0| 73 74 20 2d 66 20 27 66 | 6c 65 78 6f 73 2f 5f 31 |st -f 'f|lexos/_1|
|000006e0| 36 62 69 74 6d 6f 2e 63 | 27 20 2d 61 20 22 24 7b |6bitmo.c|' -a "${|
|000006f0| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00000700| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00000710| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00000720| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00000730| 5c 22 27 66 6c 65 78 6f | 73 2f 5f 31 36 62 69 74 |\"'flexo|s/_16bit|
|00000740| 6d 6f 2e 63 27 5c 22 0a | 65 6c 73 65 0a 20 20 65 |mo.c'\".|else. e|
|00000750| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00000760| 74 69 6e 67 20 5c 22 27 | 66 6c 65 78 6f 73 2f 5f |ting \"'|flexos/_|
|00000770| 31 36 62 69 74 6d 6f 2e | 63 27 5c 22 20 5c 28 31 |16bitmo.|c'\" \(1|
|00000780| 33 37 30 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |370 char|acters\)|
|00000790| 0a 20 20 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |. sed "|s/^X//" |
|000007a0| 3e 27 66 6c 65 78 6f 73 | 2f 5f 31 36 62 69 74 6d |>'flexos|/_16bitm|
|000007b0| 6f 2e 63 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |o.c' <<'|END_OF_F|
|000007c0| 49 4c 45 27 0a 58 23 64 | 65 66 69 6e 65 09 43 55 |ILE'.X#d|efine.CU|
|000007d0| 52 53 45 53 5f 4c 49 42 | 52 41 52 59 09 31 0a 58 |RSES_LIB|RARY.1.X|
|000007e0| 23 69 6e 63 6c 75 64 65 | 20 3c 63 75 72 73 65 73 |#include| <curses|
|000007f0| 2e 68 3e 0a 58 0a 58 23 | 69 66 6e 64 65 66 09 4e |.h>.X.X#|ifndef.N|
|00000800| 44 45 42 55 47 0a 58 63 | 68 61 72 20 2a 72 63 73 |DEBUG.Xc|har *rcs|
|00000810| 69 64 5f 5f 31 36 62 69 | 74 6d 6f 20 3d 20 22 24 |id__16bi|tmo = "$|
|00000820| 48 65 61 64 65 72 3a 20 | 63 3a 2f 63 75 72 73 65 |Header: |c:/curse|
|00000830| 73 2f 66 6c 65 78 6f 73 | 2f 52 43 53 2f 5f 31 36 |s/flexos|/RCS/_16|
|00000840| 62 69 74 6d 6f 64 2e 63 | 25 76 20 32 2e 30 20 31 |bitmod.c|%v 2.0 1|
|00000850| 39 39 32 2f 31 31 2f 31 | 35 20 30 32 3a 34 32 3a |992/11/1|5 02:42:|
|00000860| 30 34 20 6d 68 20 52 65 | 6c 20 24 22 3b 0a 58 23 |04 mh Re|l $";.X#|
|00000870| 65 6e 64 69 66 0a 58 0a | 58 0a 58 0a 58 0a 58 23 |endif.X.|X.X.X.X#|
|00000880| 69 66 64 65 66 09 46 4c | 45 58 4f 53 0a 58 2f 2a |ifdef.FL|EXOS.X/*|
|00000890| 6d 61 6e 2d 73 74 61 72 | 74 2a 2a 2a 2a 2a 2a 2a |man-star|t*******|
|000008a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000008b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000008c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000008d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0a 58 |********|******.X|
|000008e0| 0a 58 20 20 5f 66 6c 65 | 78 6f 73 5f 31 36 62 69 |.X _fle|xos_16bi|
|000008f0| 74 6d 6f 64 65 28 29 09 | 2d 20 50 75 74 73 20 63 |tmode().|- Puts c|
|00000900| 6f 6e 73 6f 6c 65 20 31 | 36 20 62 69 74 20 6d 6f |onsole 1|6 bit mo|
|00000910| 64 65 2e 0a 58 0a 58 20 | 20 50 44 43 75 72 73 65 |de..X.X | PDCurse|
|00000920| 73 20 44 65 73 63 72 69 | 70 74 69 6f 6e 3a 0a 58 |s Descri|ption:.X|
|00000930| 20 09 54 68 69 73 20 72 | 6f 75 74 69 6e 65 20 73 | .This r|outine s|
|00000940| 65 74 73 20 31 36 20 62 | 69 74 20 6d 6f 64 65 20 |ets 16 b|it mode |
|00000950| 28 38 20 62 69 74 20 63 | 68 61 72 61 63 74 65 72 |(8 bit c|haracter|
|00000960| 20 2b 0a 58 20 09 38 20 | 62 69 74 20 61 74 74 72 | +.X .8 |bit attr|
|00000970| 69 62 75 74 65 29 20 66 | 6f 72 20 46 6c 65 78 6f |ibute) f|or Flexo|
|00000980| 73 2e 0a 58 0a 58 20 20 | 50 44 43 75 72 73 65 73 |s..X.X |PDCurses|
|00000990| 20 52 65 74 75 72 6e 20 | 56 61 6c 75 65 3a 0a 58 | Return |Value:.X|
|000009a0| 20 09 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 | .This f|unction |
|000009b0| 72 65 74 75 72 6e 73 20 | 4f 4b 20 6f 6e 20 73 75 |returns |OK on su|
|000009c0| 63 63 65 73 73 20 61 6e | 64 20 45 52 52 20 6f 6e |ccess an|d ERR on|
|000009d0| 20 65 72 72 6f 72 2e 0a | 58 0a 58 20 20 50 44 43 | error..|X.X PDC|
|000009e0| 75 72 73 65 73 20 45 72 | 72 6f 72 73 3a 0a 58 20 |urses Er|rors:.X |
|000009f0| 09 55 6e 64 65 72 20 46 | 4c 45 58 4f 53 2c 20 61 |.Under F|LEXOS, a|
|00000a00| 6e 20 45 52 52 20 77 69 | 6c 6c 20 62 65 20 72 65 |n ERR wi|ll be re|
|00000a10| 74 75 72 6e 65 64 20 69 | 66 20 74 68 65 20 73 5f |turned i|f the s_|
|00000a20| 67 65 74 28 29 20 63 61 | 6c 6c 0a 58 20 09 66 61 |get() ca|ll.X .fa|
|00000a30| 69 6c 73 2c 20 6f 72 20 | 69 66 20 74 68 65 20 73 |ils, or |if the s|
|00000a40| 5f 73 65 74 28 29 20 63 | 61 6c 6c 20 66 61 69 6c |_set() c|all fail|
|00000a50| 73 2e 20 20 59 6f 75 20 | 61 72 65 20 72 65 66 65 |s. You |are refe|
|00000a60| 72 72 65 64 20 74 6f 0a | 58 20 09 74 68 65 20 46 |rred to.|X .the F|
|00000a70| 6c 65 78 6f 73 20 50 72 | 6f 67 72 61 6d 6d 65 72 |lexos Pr|ogrammer|
|00000a80| 27 73 20 52 65 66 65 72 | 65 6e 63 65 20 47 75 69 |'s Refer|ence Gui|
|00000a90| 64 65 20 66 6f 72 20 64 | 65 74 61 69 6c 73 20 6f |de for d|etails o|
|00000aa0| 6e 20 74 68 65 0a 58 20 | 09 61 63 74 75 61 6c 20 |n the.X |.actual |
|00000ab0| 65 72 72 6f 72 2e 0a 58 | 0a 58 20 20 50 6f 72 74 |error..X|.X Port|
|00000ac0| 61 62 69 6c 69 74 79 3a | 0a 58 20 09 50 44 43 75 |ability:|.X .PDCu|
|00000ad0| 72 73 65 73 09 69 6e 74 | 20 5f 66 6c 65 78 6f 73 |rses.int| _flexos|
|00000ae0| 5f 31 36 62 69 74 6d 6f | 64 65 28 20 76 6f 69 64 |_16bitmo|de( void|
|00000af0| 20 29 3b 0a 58 0a 58 2a | 2a 6d 61 6e 2d 65 6e 64 | );.X.X*|*man-end|
|00000b00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000b10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000b20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000b30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000b40| 2a 2a 2a 2a 2a 2a 2f 0a | 58 0a 58 69 6e 74 09 5f |******/.|X.Xint._|
|00000b50| 66 6c 65 78 6f 73 5f 31 | 36 62 69 74 6d 6f 64 65 |flexos_1|6bitmode|
|00000b60| 28 76 6f 69 64 29 0a 58 | 7b 0a 58 65 78 74 65 72 |(void).X|{.Xexter|
|00000b70| 6e 09 56 49 52 43 4f 4e | 09 76 69 72 3b 09 09 2f |n.VIRCON|.vir;../|
|00000b80| 2a 20 41 6c 6c 6f 63 61 | 74 65 20 61 20 56 69 72 |* Alloca|te a Vir|
|00000b90| 74 75 61 6c 20 43 6f 6e | 73 6f 6c 65 20 53 74 72 |tual Con|sole Str|
|00000ba0| 75 63 74 75 72 65 20 2a | 2f 0a 58 0a 58 09 72 65 |ucture *|/.X.X.re|
|00000bb0| 74 63 6f 64 65 20 3d 20 | 73 5f 67 65 74 28 54 5f |tcode = |s_get(T_|
|00000bc0| 56 49 52 43 4f 4e 2c 20 | 30 4c 2c 20 28 63 68 61 |VIRCON, |0L, (cha|
|00000bd0| 72 20 2a 29 20 26 76 69 | 72 2c 20 28 6c 6f 6e 67 |r *) &vi|r, (long|
|00000be0| 29 20 73 69 7a 65 6f 66 | 28 76 69 72 29 29 3b 0a |) sizeof|(vir));.|
|00000bf0| 58 09 69 66 20 28 72 65 | 74 63 6f 64 65 20 3c 20 |X.if (re|tcode < |
|00000c00| 30 4c 29 0a 58 09 09 72 | 65 74 75 72 6e 28 20 45 |0L).X..r|eturn( E|
|00000c10| 52 52 20 29 3b 0a 58 0a | 58 09 76 69 72 2e 76 63 |RR );.X.|X.vir.vc|
|00000c20| 5f 6b 62 6d 6f 64 65 20 | 3d 20 76 69 72 2e 76 63 |_kbmode |= vir.vc|
|00000c30| 5f 6b 62 6d 6f 64 65 20 | 7c 20 28 56 43 4b 4d 5f |_kbmode || (VCKM_|
|00000c40| 4e 41 42 4f 52 54 20 7c | 20 56 43 4b 4d 5f 4e 53 |NABORT || VCKM_NS|
|00000c50| 54 4f 50 20 7c 0a 58 09 | 09 09 09 09 20 56 43 4b |TOP |.X.|.... VCK|
|00000c60| 4d 5f 4e 58 4c 41 54 20 | 20 7c 20 56 43 4b 4d 5f |M_NXLAT | | VCKM_|
|00000c70| 4e 45 53 43 20 20 7c 0a | 58 09 09 09 09 09 20 56 |NESC |.|X..... V|
|00000c80| 43 4b 4d 5f 31 36 42 49 | 54 20 20 7c 20 56 43 4b |CKM_16BI|T | VCK|
|00000c90| 4d 5f 4e 45 43 48 4f 20 | 7c 0a 58 09 09 09 09 09 |M_NECHO ||.X.....|
|00000ca0| 20 56 43 4b 4d 5f 4e 45 | 4f 46 29 3b 0a 58 0a 58 | VCKM_NE|OF);.X.X|
|00000cb0| 09 76 69 72 2e 76 63 5f | 73 6d 6f 64 65 20 3d 20 |.vir.vc_|smode = |
|00000cc0| 76 69 72 2e 76 63 5f 73 | 6d 6f 64 65 20 7c 20 56 |vir.vc_s|mode | V|
|00000cd0| 43 53 4d 5f 31 36 42 49 | 54 3b 0a 58 0a 58 09 72 |CSM_16BI|T;.X.X.r|
|00000ce0| 65 74 63 6f 64 65 20 3d | 20 73 5f 73 65 74 28 54 |etcode =| s_set(T|
|00000cf0| 5f 56 49 52 43 4f 4e 2c | 20 30 4c 2c 20 28 63 68 |_VIRCON,| 0L, (ch|
|00000d00| 61 72 20 2a 29 20 26 76 | 69 72 2c 20 28 6c 6f 6e |ar *) &v|ir, (lon|
|00000d10| 67 29 20 73 69 7a 65 6f | 66 28 76 69 72 29 29 3b |g) sizeo|f(vir));|
|00000d20| 0a 58 09 72 65 74 75 72 | 6e 28 20 28 72 65 74 63 |.X.retur|n( (retc|
|00000d30| 6f 64 65 20 3c 20 30 4c | 29 20 3f 20 45 52 52 20 |ode < 0L|) ? ERR |
|00000d40| 3a 20 4f 4b 20 29 3b 0a | 58 7d 0a 58 23 65 6e 64 |: OK );.|X}.X#end|
|00000d50| 69 66 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 20 |if.END_O|F_FILE. |
|00000d60| 20 69 66 20 74 65 73 74 | 20 31 33 37 30 20 2d 6e | if test| 1370 -n|
|00000d70| 65 20 60 77 63 20 2d 63 | 20 3c 27 66 6c 65 78 6f |e `wc -c| <'flexo|
|00000d80| 73 2f 5f 31 36 62 69 74 | 6d 6f 2e 63 27 60 3b 20 |s/_16bit|mo.c'`; |
|00000d90| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00000da0| 61 72 3a 20 5c 22 27 66 | 6c 65 78 6f 73 2f 5f 31 |ar: \"'f|lexos/_1|
|00000db0| 36 62 69 74 6d 6f 2e 63 | 27 5c 22 20 75 6e 70 61 |6bitmo.c|'\" unpa|
|00000dc0| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00000dd0| 73 69 7a 65 21 0a 20 20 | 66 69 0a 20 20 23 20 65 |size!. |fi. # e|
|00000de0| 6e 64 20 6f 66 20 27 66 | 6c 65 78 6f 73 2f 5f 31 |nd of 'f|lexos/_1|
|00000df0| 36 62 69 74 6d 6f 2e 63 | 27 0a 66 69 0a 69 66 20 |6bitmo.c|'.fi.if |
|00000e00| 74 65 73 74 20 2d 66 20 | 27 66 6c 65 78 6f 73 2f |test -f |'flexos/|
|00000e10| 5f 38 62 69 74 6d 6f 64 | 2e 63 27 20 2d 61 20 22 |_8bitmod|.c' -a "|
|00000e20| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00000e30| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00000e40| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00000e50| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00000e60| 65 20 5c 22 27 66 6c 65 | 78 6f 73 2f 5f 38 62 69 |e \"'fle|xos/_8bi|
|00000e70| 74 6d 6f 64 2e 63 27 5c | 22 0a 65 6c 73 65 0a 20 |tmod.c'\|".else. |
|00000e80| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 | echo sh|ar: Extr|
|00000e90| 61 63 74 69 6e 67 20 5c | 22 27 66 6c 65 78 6f 73 |acting \|"'flexos|
|00000ea0| 2f 5f 38 62 69 74 6d 6f | 64 2e 63 27 5c 22 20 5c |/_8bitmo|d.c'\" \|
|00000eb0| 28 31 32 35 34 20 63 68 | 61 72 61 63 74 65 72 73 |(1254 ch|aracters|
|00000ec0| 5c 29 0a 20 20 73 65 64 | 20 22 73 2f 5e 58 2f 2f |\). sed| "s/^X//|
|00000ed0| 22 20 3e 27 66 6c 65 78 | 6f 73 2f 5f 38 62 69 74 |" >'flex|os/_8bit|
|00000ee0| 6d 6f 64 2e 63 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |mod.c' <|<'END_OF|
|00000ef0| 5f 46 49 4c 45 27 0a 58 | 23 64 65 66 69 6e 65 09 |_FILE'.X|#define.|
|00000f00| 43 55 52 53 45 53 5f 4c | 49 42 52 41 52 59 09 31 |CURSES_L|IBRARY.1|
|00000f10| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 63 75 72 73 |.X#inclu|de <curs|
|00000f20| 65 73 2e 68 3e 0a 58 0a | 58 23 69 66 6e 64 65 66 |es.h>.X.|X#ifndef|
|00000f30| 09 4e 44 45 42 55 47 0a | 58 63 68 61 72 20 2a 72 |.NDEBUG.|Xchar *r|
|00000f40| 63 73 69 64 5f 5f 38 62 | 69 74 6d 6f 64 20 3d 20 |csid__8b|itmod = |
|00000f50| 22 24 48 65 61 64 65 72 | 3a 20 63 3a 2f 63 75 72 |"$Header|: c:/cur|
|00000f60| 73 65 73 2f 66 6c 65 78 | 6f 73 2f 52 43 53 2f 5f |ses/flex|os/RCS/_|
|00000f70| 38 62 69 74 6d 6f 64 2e | 63 25 76 20 32 2e 30 20 |8bitmod.|c%v 2.0 |
|00000f80| 31 39 39 32 2f 31 31 2f | 31 35 20 30 32 3a 34 32 |1992/11/|15 02:42|
|00000f90| 3a 31 30 20 6d 68 20 52 | 65 6c 20 24 22 3b 0a 58 |:10 mh R|el $";.X|
|00000fa0| 23 65 6e 64 69 66 0a 58 | 0a 58 0a 58 0a 58 0a 58 |#endif.X|.X.X.X.X|
|00000fb0| 23 69 66 64 65 66 09 46 | 4c 45 58 4f 53 0a 58 2f |#ifdef.F|LEXOS.X/|
|00000fc0| 2a 6d 61 6e 2d 73 74 61 | 72 74 2a 2a 2a 2a 2a 2a |*man-sta|rt******|
|00000fd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000fe0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000ff0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001000| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0a |********|*******.|
|00001010| 58 0a 58 20 20 5f 66 6c | 65 78 6f 73 5f 38 62 69 |X.X _fl|exos_8bi|
|00001020| 74 6d 6f 64 65 28 29 09 | 2d 20 50 75 74 73 20 63 |tmode().|- Puts c|
|00001030| 6f 6e 73 6f 6c 65 20 69 | 6e 74 6f 20 38 20 62 69 |onsole i|nto 8 bi|
|00001040| 74 20 6d 6f 64 65 2e 0a | 58 0a 58 20 20 50 44 43 |t mode..|X.X PDC|
|00001050| 75 72 73 65 73 20 44 65 | 73 63 72 69 70 74 69 6f |urses De|scriptio|
|00001060| 6e 3a 0a 58 20 09 54 68 | 69 73 20 72 6f 75 74 69 |n:.X .Th|is routi|
|00001070| 6e 65 20 73 65 74 73 20 | 38 20 62 69 74 20 6d 6f |ne sets |8 bit mo|
|00001080| 64 65 20 28 6e 6f 20 38 | 20 62 69 74 20 61 74 74 |de (no 8| bit att|
|00001090| 72 69 62 75 74 65 29 20 | 66 6f 72 20 46 6c 65 78 |ribute) |for Flex|
|000010a0| 6f 73 2e 0a 58 0a 58 20 | 20 50 44 43 75 72 73 65 |os..X.X | PDCurse|
|000010b0| 73 20 52 65 74 75 72 6e | 20 56 61 6c 75 65 3a 0a |s Return| Value:.|
|000010c0| 58 20 09 54 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |X .This |function|
|000010d0| 20 72 65 74 75 72 6e 73 | 20 4f 4b 20 6f 6e 20 73 | returns| OK on s|
|000010e0| 75 63 63 65 73 73 20 61 | 6e 64 20 45 52 52 20 6f |uccess a|nd ERR o|
|000010f0| 6e 20 65 72 72 6f 72 2e | 0a 58 0a 58 20 20 50 44 |n error.|.X.X PD|
|00001100| 43 75 72 73 65 73 20 45 | 72 72 6f 72 73 3a 0a 58 |Curses E|rrors:.X|
|00001110| 20 09 55 6e 64 65 72 20 | 46 4c 45 58 4f 53 2c 20 | .Under |FLEXOS, |
|00001120| 61 6e 20 45 52 52 20 77 | 69 6c 6c 20 62 65 20 72 |an ERR w|ill be r|
|00001130| 65 74 75 72 6e 65 64 20 | 69 66 20 74 68 65 20 73 |eturned |if the s|
|00001140| 5f 67 65 74 28 29 20 63 | 61 6c 6c 0a 58 20 09 66 |_get() c|all.X .f|
|00001150| 61 69 6c 73 2c 20 6f 72 | 20 69 66 20 74 68 65 20 |ails, or| if the |
|00001160| 73 5f 73 65 74 28 29 20 | 63 61 6c 6c 20 66 61 69 |s_set() |call fai|
|00001170| 6c 73 2e 20 20 59 6f 75 | 20 61 72 65 20 72 65 66 |ls. You| are ref|
|00001180| 65 72 72 65 64 20 74 6f | 0a 58 20 09 74 68 65 20 |erred to|.X .the |
|00001190| 46 6c 65 78 6f 73 20 50 | 72 6f 67 72 61 6d 6d 65 |Flexos P|rogramme|
|000011a0| 72 27 73 20 52 65 66 65 | 72 65 6e 63 65 20 47 75 |r's Refe|rence Gu|
|000011b0| 69 64 65 20 66 6f 72 20 | 64 65 74 61 69 6c 73 20 |ide for |details |
|000011c0| 6f 6e 20 74 68 65 0a 58 | 20 09 61 63 74 75 61 6c |on the.X| .actual|
|000011d0| 20 65 72 72 6f 72 2e 0a | 58 0a 58 20 20 50 6f 72 | error..|X.X Por|
|000011e0| 74 61 62 69 6c 69 74 79 | 3a 0a 58 20 09 50 44 43 |tability|:.X .PDC|
|000011f0| 75 72 73 65 73 09 69 6e | 74 20 5f 66 6c 65 78 6f |urses.in|t _flexo|
|00001200| 73 5f 31 36 62 69 74 6d | 6f 64 65 28 20 76 6f 69 |s_16bitm|ode( voi|
|00001210| 64 20 29 3b 0a 58 0a 58 | 2a 2a 6d 61 6e 2d 65 6e |d );.X.X|**man-en|
|00001220| 64 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |d*******|********|
|00001230| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001240| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001250| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001260| 2a 2a 2a 2a 2a 2a 2a 2f | 0a 58 0a 58 69 6e 74 09 |*******/|.X.Xint.|
|00001270| 5f 66 6c 65 78 6f 73 5f | 38 62 69 74 6d 6f 64 65 |_flexos_|8bitmode|
|00001280| 28 76 6f 69 64 29 0a 58 | 7b 0a 58 65 78 74 65 72 |(void).X|{.Xexter|
|00001290| 6e 09 56 49 52 43 4f 4e | 09 76 69 72 3b 09 09 2f |n.VIRCON|.vir;../|
|000012a0| 2a 20 41 6c 6c 6f 63 61 | 74 65 20 61 20 56 69 72 |* Alloca|te a Vir|
|000012b0| 74 75 61 6c 20 43 6f 6e | 73 6f 6c 65 20 53 74 72 |tual Con|sole Str|
|000012c0| 75 63 74 75 72 65 20 2a | 2f 0a 58 0a 58 09 72 65 |ucture *|/.X.X.re|
|000012d0| 74 63 6f 64 65 20 3d 20 | 73 5f 67 65 74 28 54 5f |tcode = |s_get(T_|
|000012e0| 56 49 52 43 4f 4e 2c 20 | 30 4c 2c 20 28 63 68 61 |VIRCON, |0L, (cha|
|000012f0| 72 20 2a 29 20 26 76 69 | 72 2c 20 28 6c 6f 6e 67 |r *) &vi|r, (long|
|00001300| 29 20 73 69 7a 65 6f 66 | 28 76 69 72 29 29 3b 0a |) sizeof|(vir));.|
|00001310| 58 09 69 66 20 28 72 65 | 74 63 6f 64 65 20 3c 20 |X.if (re|tcode < |
|00001320| 30 4c 29 0a 58 09 09 72 | 65 74 75 72 6e 28 20 45 |0L).X..r|eturn( E|
|00001330| 52 52 20 29 3b 0a 58 0a | 58 09 76 69 72 2e 76 63 |RR );.X.|X.vir.vc|
|00001340| 5f 6b 62 6d 6f 64 65 20 | 3d 20 76 69 72 2e 76 63 |_kbmode |= vir.vc|
|00001350| 5f 6b 62 6d 6f 64 65 20 | 26 20 7e 56 43 4b 4d 5f |_kbmode |& ~VCKM_|
|00001360| 31 36 42 49 54 3b 0a 58 | 09 76 69 72 2e 76 63 5f |16BIT;.X|.vir.vc_|
|00001370| 73 6d 6f 64 65 20 3d 20 | 76 69 72 2e 76 63 5f 73 |smode = |vir.vc_s|
|00001380| 6d 6f 64 65 20 26 20 7e | 56 43 4b 4d 5f 31 36 42 |mode & ~|VCKM_16B|
|00001390| 49 54 3b 0a 58 0a 58 09 | 72 65 74 63 6f 64 65 20 |IT;.X.X.|retcode |
|000013a0| 3d 20 73 5f 73 65 74 28 | 54 5f 56 49 52 43 4f 4e |= s_set(|T_VIRCON|
|000013b0| 2c 20 30 4c 2c 20 28 63 | 68 61 72 20 2a 29 20 26 |, 0L, (c|har *) &|
|000013c0| 76 69 72 2c 20 28 6c 6f | 6e 67 29 20 73 69 7a 65 |vir, (lo|ng) size|
|000013d0| 6f 66 28 76 69 72 29 29 | 3b 0a 58 09 72 65 74 75 |of(vir))|;.X.retu|
|000013e0| 72 6e 28 20 28 72 65 74 | 63 6f 64 65 20 3c 20 30 |rn( (ret|code < 0|
|000013f0| 4c 29 20 3f 20 45 52 52 | 20 3a 20 4f 4b 20 29 3b |L) ? ERR| : OK );|
|00001400| 0a 58 7d 0a 58 23 65 6e | 64 69 66 0a 45 4e 44 5f |.X}.X#en|dif.END_|
|00001410| 4f 46 5f 46 49 4c 45 0a | 20 20 69 66 20 74 65 73 |OF_FILE.| if tes|
|00001420| 74 20 31 32 35 34 20 2d | 6e 65 20 60 77 63 20 2d |t 1254 -|ne `wc -|
|00001430| 63 20 3c 27 66 6c 65 78 | 6f 73 2f 5f 38 62 69 74 |c <'flex|os/_8bit|
|00001440| 6d 6f 64 2e 63 27 60 3b | 20 74 68 65 6e 0a 20 20 |mod.c'`;| then. |
|00001450| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00001460| 66 6c 65 78 6f 73 2f 5f | 38 62 69 74 6d 6f 64 2e |flexos/_|8bitmod.|
|00001470| 63 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |c'\" unp|acked wi|
|00001480| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 20 |th wrong| size!. |
|00001490| 20 66 69 0a 20 20 23 20 | 65 6e 64 20 6f 66 20 27 | fi. # |end of '|
|000014a0| 66 6c 65 78 6f 73 2f 5f | 38 62 69 74 6d 6f 64 2e |flexos/_|8bitmod.|
|000014b0| 63 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |c'.fi.if| test -f|
|000014c0| 20 27 6e 6f 6e 70 6f 72 | 74 2f 77 62 6f 72 64 65 | 'nonpor|t/wborde|
|000014d0| 72 2e 63 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |r.c' -a |"${1}" !|
|000014e0| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|000014f0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00001500| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|00001510| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 6e 6f |sting fi|le \"'no|
|00001520| 6e 70 6f 72 74 2f 77 62 | 6f 72 64 65 72 2e 63 27 |nport/wb|order.c'|
|00001530| 5c 22 0a 65 6c 73 65 0a | 20 20 65 63 68 6f 20 73 |\".else.| echo s|
|00001540| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00001550| 5c 22 27 6e 6f 6e 70 6f | 72 74 2f 77 62 6f 72 64 |\"'nonpo|rt/wbord|
|00001560| 65 72 2e 63 27 5c 22 20 | 5c 28 31 31 39 33 20 63 |er.c'\" |\(1193 c|
|00001570| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 20 20 73 65 |haracter|s\). se|
|00001580| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 27 6e 6f 6e |d "s/^X/|/" >'non|
|00001590| 70 6f 72 74 2f 77 62 6f | 72 64 65 72 2e 63 27 20 |port/wbo|rder.c' |
|000015a0| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|000015b0| 58 23 64 65 66 69 6e 65 | 09 43 55 52 53 45 53 5f |X#define|.CURSES_|
|000015c0| 4c 49 42 52 41 52 59 09 | 31 0a 58 23 69 6e 63 6c |LIBRARY.|1.X#incl|
|000015d0| 75 64 65 20 3c 63 75 72 | 73 65 73 2e 68 3e 0a 58 |ude <cur|ses.h>.X|
|000015e0| 23 75 6e 64 65 66 09 77 | 62 6f 72 64 65 72 0a 58 |#undef.w|border.X|
|000015f0| 0a 58 23 69 66 6e 64 65 | 66 09 4e 44 45 42 55 47 |.X#ifnde|f.NDEBUG|
|00001600| 0a 58 63 68 61 72 20 2a | 72 63 73 69 64 5f 77 62 |.Xchar *|rcsid_wb|
|00001610| 6f 72 64 65 72 20 3d 20 | 22 24 48 65 61 64 65 72 |order = |"$Header|
|00001620| 3a 20 63 3a 2f 63 75 72 | 73 65 73 2f 6e 6f 6e 70 |: c:/cur|ses/nonp|
|00001630| 6f 72 74 2f 52 43 53 2f | 77 62 6f 72 64 65 72 2e |ort/RCS/|wborder.|
|00001640| 63 25 76 20 32 2e 30 20 | 31 39 39 32 2f 31 31 2f |c%v 2.0 |1992/11/|
|00001650| 31 35 20 30 33 3a 31 38 | 3a 32 39 20 4d 48 20 52 |15 03:18|:29 MH R|
|00001660| 65 6c 20 24 22 3b 0a 58 | 23 65 6e 64 69 66 0a 58 |el $";.X|#endif.X|
|00001670| 0a 58 0a 58 0a 58 0a 58 | 2f 2a 6d 61 6e 2d 73 74 |.X.X.X.X|/*man-st|
|00001680| 61 72 74 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |art*****|********|
|00001690| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000016a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000016b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000016c0| 2a 2a 2a 2a 2a 2a 2a 2a | 0a 58 0a 58 20 20 77 62 |********|.X.X wb|
|000016d0| 6f 72 64 65 72 28 29 09 | 2d 20 73 65 74 73 20 74 |order().|- sets t|
|000016e0| 68 65 20 62 6f 72 64 65 | 72 20 63 68 61 72 61 63 |he borde|r charac|
|000016f0| 74 65 72 73 20 69 6e 20 | 74 68 65 20 70 61 73 73 |ters in |the pass|
|00001700| 65 64 20 77 69 6e 64 6f | 77 2e 0a 58 0a 58 20 20 |ed windo|w..X.X |
|00001710| 50 44 43 75 72 73 65 73 | 20 44 65 73 63 72 69 70 |PDCurses| Descrip|
|00001720| 74 69 6f 6e 3a 0a 58 20 | 09 54 68 69 73 20 72 6f |tion:.X |.This ro|
|00001730| 75 74 69 6e 65 20 73 65 | 74 73 20 74 68 65 20 62 |utine se|ts the b|
|00001740| 6f 72 64 65 72 20 63 68 | 61 72 61 63 74 65 72 73 |order ch|aracters|
|00001750| 20 66 6f 72 20 74 68 65 | 20 70 61 73 73 65 64 20 | for the| passed |
|00001760| 77 69 6e 64 6f 77 2e 0a | 58 0a 58 20 20 50 44 43 |window..|X.X PDC|
|00001770| 75 72 73 65 73 20 52 65 | 74 75 72 6e 20 56 61 6c |urses Re|turn Val|
|00001780| 75 65 3a 0a 58 20 09 54 | 68 69 73 20 66 75 6e 63 |ue:.X .T|his func|
|00001790| 74 69 6f 6e 20 72 65 74 | 75 72 6e 73 20 4f 4b 20 |tion ret|urns OK |
|000017a0| 75 70 6f 6e 20 73 75 63 | 63 65 73 73 20 6f 74 68 |upon suc|cess oth|
|000017b0| 65 72 77 69 73 65 20 45 | 52 52 20 69 73 20 72 65 |erwise E|RR is re|
|000017c0| 74 75 72 6e 65 64 2e 0a | 58 0a 58 20 20 50 44 43 |turned..|X.X PDC|
|000017d0| 75 72 73 65 73 20 45 72 | 72 6f 72 73 3a 0a 58 20 |urses Er|rors:.X |
|000017e0| 09 49 74 20 69 73 20 61 | 6e 20 65 72 72 6f 72 20 |.It is a|n error |
|000017f0| 66 6f 72 20 73 74 64 73 | 63 72 20 74 6f 20 62 65 |for stds|cr to be|
|00001800| 20 61 20 4e 55 4c 4c 20 | 70 6f 69 6e 74 65 72 2e | a NULL |pointer.|
|00001810| 0a 58 0a 58 20 20 50 6f | 72 74 61 62 69 6c 69 74 |.X.X Po|rtabilit|
|00001820| 79 3a 0a 58 20 09 50 44 | 43 75 72 73 65 73 09 69 |y:.X .PD|Curses.i|
|00001830| 6e 74 20 77 62 6f 72 64 | 65 72 28 20 63 68 74 79 |nt wbord|er( chty|
|00001840| 70 65 20 6c 2c 20 20 63 | 68 74 79 70 65 20 72 2c |pe l, c|htype r,|
|00001850| 20 20 63 68 74 79 70 65 | 20 74 2c 20 20 63 68 74 | chtype| t, cht|
|00001860| 79 70 65 20 62 2c 0a 58 | 20 09 09 09 09 20 20 20 |ype b,.X| .... |
|00001870| 20 63 68 74 79 70 65 20 | 74 6c 2c 20 63 68 74 79 | chtype |tl, chty|
|00001880| 70 65 20 74 72 20 20 63 | 68 74 79 70 65 20 62 6c |pe tr c|htype bl|
|00001890| 2c 20 63 68 74 79 70 65 | 20 62 72 20 29 3b 0a 58 |, chtype| br );.X|
|000018a0| 0a 58 2a 2a 6d 61 6e 2d | 65 6e 64 2a 2a 2a 2a 2a |.X**man-|end*****|
|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 2f 0a 58 0a 58 69 6e | 74 09 77 62 6f 72 64 65 |*/.X.Xin|t.wborde|
|00001900| 72 28 57 49 4e 44 4f 57 | 20 2a 77 69 6e 2c 63 68 |r(WINDOW| *win,ch|
|00001910| 74 79 70 65 20 6c 2c 63 | 68 74 79 70 65 20 72 2c |type l,c|htype r,|
|00001920| 63 68 74 79 70 65 20 74 | 2c 63 68 74 79 70 65 20 |chtype t|,chtype |
|00001930| 62 2c 63 68 74 79 70 65 | 20 74 6c 2c 63 68 74 79 |b,chtype| tl,chty|
|00001940| 70 65 20 74 72 2c 63 68 | 74 79 70 65 20 62 6c 2c |pe tr,ch|type bl,|
|00001950| 63 68 74 79 70 65 20 62 | 72 29 0a 58 7b 0a 58 09 |chtype b|r).X{.X.|
|00001960| 69 66 20 28 77 69 6e 20 | 3d 3d 20 28 57 49 4e 44 |if (win |== (WIND|
|00001970| 4f 57 20 2a 29 4e 55 4c | 4c 29 0a 58 09 09 72 65 |OW *)NUL|L).X..re|
|00001980| 74 75 72 6e 28 20 45 52 | 52 20 29 3b 0a 58 0a 58 |turn( ER|R );.X.X|
|00001990| 09 77 69 6e 2d 3e 5f 62 | 6f 72 64 65 72 63 68 61 |.win->_b|ordercha|
|000019a0| 72 73 5b 30 5d 20 3d 20 | 6c 3b 0a 58 09 77 69 6e |rs[0] = |l;.X.win|
|000019b0| 2d 3e 5f 62 6f 72 64 65 | 72 63 68 61 72 73 5b 31 |->_borde|rchars[1|
|000019c0| 5d 20 3d 20 72 3b 0a 58 | 09 77 69 6e 2d 3e 5f 62 |] = r;.X|.win->_b|
|000019d0| 6f 72 64 65 72 63 68 61 | 72 73 5b 32 5d 20 3d 20 |ordercha|rs[2] = |
|000019e0| 74 3b 0a 58 09 77 69 6e | 2d 3e 5f 62 6f 72 64 65 |t;.X.win|->_borde|
|000019f0| 72 63 68 61 72 73 5b 33 | 5d 20 3d 20 62 3b 0a 58 |rchars[3|] = b;.X|
|00001a00| 09 77 69 6e 2d 3e 5f 62 | 6f 72 64 65 72 63 68 61 |.win->_b|ordercha|
|00001a10| 72 73 5b 34 5d 20 3d 20 | 74 6c 3b 0a 58 09 77 69 |rs[4] = |tl;.X.wi|
|00001a20| 6e 2d 3e 5f 62 6f 72 64 | 65 72 63 68 61 72 73 5b |n->_bord|erchars[|
|00001a30| 35 5d 20 3d 20 74 72 3b | 0a 58 09 77 69 6e 2d 3e |5] = tr;|.X.win->|
|00001a40| 5f 62 6f 72 64 65 72 63 | 68 61 72 73 5b 36 5d 20 |_borderc|hars[6] |
|00001a50| 3d 20 62 6c 3b 0a 58 09 | 77 69 6e 2d 3e 5f 62 6f |= bl;.X.|win->_bo|
|00001a60| 72 64 65 72 63 68 61 72 | 73 5b 37 5d 20 3d 20 62 |rderchar|s[7] = b|
|00001a70| 72 3b 0a 58 09 72 65 74 | 75 72 6e 28 20 4f 4b 20 |r;.X.ret|urn( OK |
|00001a80| 29 3b 0a 58 7d 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |);.X}.EN|D_OF_FIL|
|00001a90| 45 0a 20 20 69 66 20 74 | 65 73 74 20 31 31 39 33 |E. if t|est 1193|
|00001aa0| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 6e 6f | -ne `wc| -c <'no|
|00001ab0| 6e 70 6f 72 74 2f 77 62 | 6f 72 64 65 72 2e 63 27 |nport/wb|order.c'|
|00001ac0| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00001ad0| 20 73 68 61 72 3a 20 5c | 22 27 6e 6f 6e 70 6f 72 | shar: \|"'nonpor|
|00001ae0| 74 2f 77 62 6f 72 64 65 | 72 2e 63 27 5c 22 20 75 |t/wborde|r.c'\" u|
|00001af0| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00001b00| 6e 67 20 73 69 7a 65 21 | 0a 20 20 66 69 0a 20 20 |ng size!|. fi. |
|00001b10| 23 20 65 6e 64 20 6f 66 | 20 27 6e 6f 6e 70 6f 72 |# end of| 'nonpor|
|00001b20| 74 2f 77 62 6f 72 64 65 | 72 2e 63 27 0a 66 69 0a |t/wborde|r.c'.fi.|
|00001b30| 69 66 20 74 65 73 74 20 | 2d 66 20 27 70 64 63 75 |if test |-f 'pdcu|
|00001b40| 72 73 65 73 2e 63 66 67 | 27 20 2d 61 20 22 24 7b |rses.cfg|' -a "${|
|00001b50| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00001b60| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00001b70| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00001b80| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00001b90| 5c 22 27 70 64 63 75 72 | 73 65 73 2e 63 66 67 27 |\"'pdcur|ses.cfg'|
|00001ba0| 5c 22 0a 65 6c 73 65 0a | 20 20 65 63 68 6f 20 73 |\".else.| echo s|
|00001bb0| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00001bc0| 5c 22 27 70 64 63 75 72 | 73 65 73 2e 63 66 67 27 |\"'pdcur|ses.cfg'|
|00001bd0| 5c 22 20 5c 28 34 33 20 | 63 68 61 72 61 63 74 65 |\" \(43 |characte|
|00001be0| 72 73 5c 29 0a 20 20 73 | 65 64 20 22 73 2f 5e 58 |rs\). s|ed "s/^X|
|00001bf0| 2f 2f 22 20 3e 27 70 64 | 63 75 72 73 65 73 2e 63 |//" >'pd|curses.c|
|00001c00| 66 67 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |fg' <<'E|ND_OF_FI|
|00001c10| 4c 45 27 0a 58 2d 31 2d | 0a 58 2d 32 2d 0a 58 2d |LE'.X-1-|.X-2-.X-|
|00001c20| 4b 0a 58 2d 47 0a 58 2d | 72 64 0a 58 2d 64 0a 58 |K.X-G.X-|rd.X-d.X|
|00001c30| 2d 56 0a 58 2d 77 2d 65 | 66 66 0a 58 2d 6a 30 0a |-V.X-w-e|ff.X-j0.|
|00001c40| 58 2d 63 20 0a 58 2d 50 | 2d 0a 45 4e 44 5f 4f 46 |X-c .X-P|-.END_OF|
|00001c50| 5f 46 49 4c 45 0a 20 20 | 69 66 20 74 65 73 74 20 |_FILE. |if test |
|00001c60| 34 33 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |43 -ne `|wc -c <'|
|00001c70| 70 64 63 75 72 73 65 73 | 2e 63 66 67 27 60 3b 20 |pdcurses|.cfg'`; |
|00001c80| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00001c90| 61 72 3a 20 5c 22 27 70 | 64 63 75 72 73 65 73 2e |ar: \"'p|dcurses.|
|00001ca0| 63 66 67 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |cfg'\" u|npacked |
|00001cb0| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|00001cc0| 0a 20 20 66 69 0a 20 20 | 23 20 65 6e 64 20 6f 66 |. fi. |# end of|
|00001cd0| 20 27 70 64 63 75 72 73 | 65 73 2e 63 66 67 27 0a | 'pdcurs|es.cfg'.|
|00001ce0| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 70 |fi.if te|st -f 'p|
|00001cf0| 6f 72 74 61 62 6c 65 2f | 62 61 75 64 72 61 74 65 |ortable/|baudrate|
|00001d00| 2e 63 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |.c' -a "|${1}" !=|
|00001d10| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00001d20| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00001d30| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00001d40| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 70 6f 72 |ting fil|e \"'por|
|00001d50| 74 61 62 6c 65 2f 62 61 | 75 64 72 61 74 65 2e 63 |table/ba|udrate.c|
|00001d60| 27 5c 22 0a 65 6c 73 65 | 0a 20 20 65 63 68 6f 20 |'\".else|. echo |
|00001d70| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00001d80| 20 5c 22 27 70 6f 72 74 | 61 62 6c 65 2f 62 61 75 | \"'port|able/bau|
|00001d90| 64 72 61 74 65 2e 63 27 | 5c 22 20 5c 28 31 33 35 |drate.c'|\" \(135|
|00001da0| 38 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 20 |8 charac|ters\). |
|00001db0| 20 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 | sed "s/|^X//" >'|
|00001dc0| 70 6f 72 74 61 62 6c 65 | 2f 62 61 75 64 72 61 74 |portable|/baudrat|
|00001dd0| 65 2e 63 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |e.c' <<'|END_OF_F|
|00001de0| 49 4c 45 27 0a 58 23 69 | 6e 63 6c 75 64 65 20 3c |ILE'.X#i|nclude <|
|00001df0| 6c 69 6d 69 74 73 2e 68 | 3e 0a 58 23 64 65 66 69 |limits.h|>.X#defi|
|00001e00| 6e 65 20 43 55 52 53 45 | 53 5f 4c 49 42 52 41 52 |ne CURSE|S_LIBRAR|
|00001e10| 59 09 31 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 63 |Y.1.X#in|clude <c|
|00001e20| 75 72 73 65 73 2e 68 3e | 0a 58 23 75 6e 64 65 66 |urses.h>|.X#undef|
|00001e30| 20 62 61 75 64 72 61 74 | 65 0a 58 0a 58 23 69 66 | baudrat|e.X.X#if|
|00001e40| 6e 64 65 66 09 4e 44 45 | 42 55 47 0a 58 63 68 61 |ndef.NDE|BUG.Xcha|
|00001e50| 72 20 2a 72 63 73 69 64 | 5f 62 61 75 64 72 61 74 |r *rcsid|_baudrat|
|00001e60| 65 20 3d 20 22 24 48 65 | 61 64 65 72 3a 20 63 3a |e = "$He|ader: c:|
|00001e70| 2f 63 75 72 73 65 73 2f | 70 6f 72 74 61 62 6c 65 |/curses/|portable|
|00001e80| 2f 52 43 53 2f 62 61 75 | 64 72 61 74 65 2e 63 25 |/RCS/bau|drate.c%|
|00001e90| 76 20 32 2e 30 20 31 39 | 39 32 2f 31 31 2f 31 35 |v 2.0 19|92/11/15|
|00001ea0| 20 30 33 3a 32 38 3a 34 | 35 20 4d 48 20 52 65 6c | 03:28:4|5 MH Rel|
|00001eb0| 20 24 22 3b 0a 58 23 65 | 6e 64 69 66 0a 58 0a 58 | $";.X#e|ndif.X.X|
|00001ec0| 0a 58 0a 58 0a 58 2f 2a | 6d 61 6e 2d 73 74 61 72 |.X.X.X/*|man-star|
|00001ed0| 74 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |t*******|********|
|00001ee0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001ef0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001f00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001f10| 2a 2a 2a 2a 2a 2a 0a 58 | 0a 58 20 20 62 61 75 64 |******.X|.X baud|
|00001f20| 72 61 74 65 28 29 09 2d | 20 52 65 74 75 72 6e 20 |rate().-| Return |
|00001f30| 74 65 72 6d 69 6e 61 6c | 20 62 61 75 64 20 72 61 |terminal| baud ra|
|00001f40| 74 65 0a 58 0a 58 20 20 | 58 2f 4f 70 65 6e 20 44 |te.X.X |X/Open D|
|00001f50| 65 73 63 72 69 70 74 69 | 6f 6e 3a 0a 58 20 09 52 |escripti|on:.X .R|
|00001f60| 65 74 75 72 6e 73 20 74 | 68 65 20 6f 75 74 70 75 |eturns t|he outpu|
|00001f70| 74 20 73 70 65 65 64 20 | 6f 66 20 74 68 65 20 74 |t speed |of the t|
|00001f80| 65 72 6d 69 6e 61 6c 2e | 20 20 54 68 65 20 6e 75 |erminal.| The nu|
|00001f90| 6d 62 65 72 20 72 65 74 | 75 72 6e 65 64 0a 58 20 |mber ret|urned.X |
|00001fa0| 09 69 73 20 62 69 74 73 | 20 70 65 72 20 73 65 63 |.is bits| per sec|
|00001fb0| 6f 6e 64 2c 20 66 6f 72 | 20 65 78 61 6d 70 6c 65 |ond, for| example|
|00001fc0| 20 39 36 30 30 2c 20 61 | 6e 64 20 69 73 20 61 6e | 9600, a|nd is an|
|00001fd0| 20 69 6e 74 65 67 65 72 | 2e 0a 58 0a 58 20 20 50 | integer|..X.X P|
|00001fe0| 44 43 75 72 73 65 73 20 | 44 65 73 63 72 69 70 74 |DCurses |Descript|
|00001ff0| 69 6f 6e 3a 0a 58 20 09 | 49 66 20 46 41 53 54 5f |ion:.X .|If FAST_|
|00002000| 56 49 44 45 4f 20 69 73 | 20 74 72 75 65 2c 20 74 |VIDEO is| true, t|
|00002010| 68 65 6e 20 74 68 69 73 | 20 69 73 20 74 68 65 20 |hen this| is the |
|00002020| 6c 61 72 67 65 73 74 20 | 70 6f 73 73 69 62 6c 65 |largest |possible|
|00002030| 0a 58 20 09 28 70 6f 72 | 74 61 62 6c 65 29 20 69 |.X .(por|table) i|
|00002040| 6e 74 20 76 61 6c 75 65 | 20 28 49 4e 54 5f 4d 41 |nt value| (INT_MA|
|00002050| 58 20 66 72 6f 6d 20 6c | 69 6d 69 74 73 2e 68 29 |X from l|imits.h)|
|00002060| 20 49 46 20 64 69 72 65 | 63 74 0a 58 20 09 76 69 | IF dire|ct.X .vi|
|00002070| 64 65 6f 20 69 73 20 70 | 6f 73 73 69 62 6c 65 2c |deo is p|ossible,|
|00002080| 20 4f 52 20 74 68 65 20 | 61 70 70 72 6f 78 69 6d | OR the |approxim|
|00002090| 61 74 65 20 67 75 65 73 | 73 20 61 74 20 42 49 4f |ate gues|s at BIO|
|000020a0| 53 20 73 70 65 65 64 73 | 2c 0a 58 20 09 31 39 32 |S speeds|,.X .192|
|000020b0| 30 30 2e 0a 58 0a 58 20 | 09 49 66 20 46 41 53 54 |00..X.X |.If FAST|
|000020c0| 5f 56 49 44 45 4f 20 69 | 73 20 66 61 6c 73 65 2c |_VIDEO i|s false,|
|000020d0| 20 74 68 69 73 20 69 73 | 20 61 6e 20 61 70 70 72 | this is| an appr|
|000020e0| 6f 78 69 6d 61 74 65 20 | 67 75 65 73 73 20 61 74 |oximate |guess at|
|000020f0| 20 42 49 4f 53 0a 58 20 | 09 73 70 65 65 64 73 2c | BIOS.X |.speeds,|
|00002100| 20 31 39 32 30 30 2e 0a | 58 0a 58 20 20 58 2f 4f | 19200..|X.X X/O|
|00002110| 70 65 6e 20 52 65 74 75 | 72 6e 20 56 61 6c 75 65 |pen Retu|rn Value|
|00002120| 3a 0a 58 20 09 54 68 65 | 20 62 61 75 64 72 61 74 |:.X .The| baudrat|
|00002130| 65 28 29 20 66 75 6e 63 | 74 69 6f 6e 20 72 65 74 |e() func|tion ret|
|00002140| 75 72 6e 73 20 61 20 70 | 6f 69 6e 74 65 72 20 74 |urns a p|ointer t|
|00002150| 6f 20 61 20 76 65 72 62 | 6f 73 65 20 64 65 73 63 |o a verb|ose desc|
|00002160| 72 69 70 74 69 6f 6e 0a | 58 20 09 6f 66 20 74 68 |ription.|X .of th|
|00002170| 65 20 63 75 72 72 65 6e | 74 20 74 65 72 6d 69 6e |e curren|t termin|
|00002180| 61 6c 20 6f 6e 20 73 75 | 63 63 65 73 73 20 61 6e |al on su|ccess an|
|00002190| 64 20 74 68 65 20 6e 75 | 6c 6c 20 70 6f 69 6e 74 |d the nu|ll point|
|000021a0| 65 72 20 6f 6e 20 65 72 | 72 6f 72 2e 0a 58 0a 58 |er on er|ror..X.X|
|000021b0| 20 20 58 2f 4f 70 65 6e | 20 45 72 72 6f 72 73 3a | X/Open| Errors:|
|000021c0| 0a 58 20 09 4e 6f 20 65 | 72 72 6f 72 73 20 61 72 |.X .No e|rrors ar|
|000021d0| 65 20 64 65 66 69 6e 65 | 64 20 66 6f 72 20 74 68 |e define|d for th|
|000021e0| 69 73 20 66 75 6e 63 74 | 69 6f 6e 2e 0a 58 0a 58 |is funct|ion..X.X|
|000021f0| 20 20 50 6f 72 74 61 62 | 69 6c 69 74 79 3a 0a 58 | Portab|ility:.X|
|00002200| 20 09 50 44 43 75 72 73 | 65 73 09 09 69 6e 74 20 | .PDCurs|es..int |
|00002210| 62 61 75 64 72 61 74 65 | 28 20 76 6f 69 64 20 29 |baudrate|( void )|
|00002220| 3b 0a 58 20 09 58 2f 4f | 70 65 6e 20 44 65 63 20 |;.X .X/O|pen Dec |
|00002230| 27 38 38 09 09 69 6e 74 | 20 62 61 75 64 72 61 74 |'88..int| baudrat|
|00002240| 65 28 20 76 6f 69 64 20 | 29 3b 0a 58 20 09 42 53 |e( void |);.X .BS|
|00002250| 44 20 43 75 72 73 65 73 | 0a 58 20 09 53 59 53 20 |D Curses|.X .SYS |
|00002260| 56 20 43 75 72 73 65 73 | 0a 58 0a 58 2a 2a 6d 61 |V Curses|.X.X**ma|
|00002270| 6e 2d 65 6e 64 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |n-end***|********|
|00002280| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002290| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000022a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000022b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2f 0a 58 0a 58 |********|***/.X.X|
|000022c0| 69 6e 74 09 62 61 75 64 | 72 61 74 65 28 76 6f 69 |int.baud|rate(voi|
|000022d0| 64 29 0a 58 7b 0a 58 23 | 69 66 64 65 66 20 46 41 |d).X{.X#|ifdef FA|
|000022e0| 53 54 5f 56 49 44 45 4f | 0a 58 09 72 65 74 75 72 |ST_VIDEO|.X.retur|
|000022f0| 6e 20 28 5f 63 75 72 73 | 76 61 72 2e 64 69 72 65 |n (_curs|var.dire|
|00002300| 63 74 5f 76 69 64 65 6f | 20 3f 20 49 4e 54 5f 4d |ct_video| ? INT_M|
|00002310| 41 58 20 3a 20 31 39 32 | 30 30 20 29 3b 0a 58 23 |AX : 192|00 );.X#|
|00002320| 65 6c 73 65 0a 58 09 72 | 65 74 75 72 6e 20 28 31 |else.X.r|eturn (1|
|00002330| 39 32 30 30 29 3b 09 09 | 09 2f 2a 20 41 70 70 72 |9200);..|./* Appr|
|00002340| 6f 78 2e 20 67 75 65 73 | 73 20 61 74 20 42 49 4f |ox. gues|s at BIO|
|00002350| 53 20 73 70 65 65 64 73 | 2e 2a 2f 0a 58 23 65 6e |S speeds|.*/.X#en|
|00002360| 64 69 66 0a 58 7d 0a 45 | 4e 44 5f 4f 46 5f 46 49 |dif.X}.E|ND_OF_FI|
|00002370| 4c 45 0a 20 20 69 66 20 | 74 65 73 74 20 31 33 35 |LE. if |test 135|
|00002380| 38 20 2d 6e 65 20 60 77 | 63 20 2d 63 20 3c 27 70 |8 -ne `w|c -c <'p|
|00002390| 6f 72 74 61 62 6c 65 2f | 62 61 75 64 72 61 74 65 |ortable/|baudrate|
|000023a0| 2e 63 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |.c'`; th|en. e|
|000023b0| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 70 6f 72 |cho shar|: \"'por|
|000023c0| 74 61 62 6c 65 2f 62 61 | 75 64 72 61 74 65 2e 63 |table/ba|udrate.c|
|000023d0| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|000023e0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 20 20 |h wrong |size!. |
|000023f0| 66 69 0a 20 20 23 20 65 | 6e 64 20 6f 66 20 27 70 |fi. # e|nd of 'p|
|00002400| 6f 72 74 61 62 6c 65 2f | 62 61 75 64 72 61 74 65 |ortable/|baudrate|
|00002410| 2e 63 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |.c'.fi.i|f test -|
|00002420| 66 20 27 70 6f 72 74 61 | 62 6c 65 2f 62 65 65 70 |f 'porta|ble/beep|
|00002430| 2e 63 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |.c' -a "|${1}" !=|
|00002440| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00002450| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00002460| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00002470| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 70 6f 72 |ting fil|e \"'por|
|00002480| 74 61 62 6c 65 2f 62 65 | 65 70 2e 63 27 5c 22 0a |table/be|ep.c'\".|
|00002490| 65 6c 73 65 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |else. e|cho shar|
|000024a0| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|000024b0| 70 6f 72 74 61 62 6c 65 | 2f 62 65 65 70 2e 63 27 |portable|/beep.c'|
|000024c0| 5c 22 20 5c 28 31 33 32 | 34 20 63 68 61 72 61 63 |\" \(132|4 charac|
|000024d0| 74 65 72 73 5c 29 0a 20 | 20 73 65 64 20 22 73 2f |ters\). | sed "s/|
|000024e0| 5e 58 2f 2f 22 20 3e 27 | 70 6f 72 74 61 62 6c 65 |^X//" >'|portable|
|000024f0| 2f 62 65 65 70 2e 63 27 | 20 3c 3c 27 45 4e 44 5f |/beep.c'| <<'END_|
|00002500| 4f 46 5f 46 49 4c 45 27 | 0a 58 23 64 65 66 69 6e |OF_FILE'|.X#defin|
|00002510| 65 09 43 55 52 53 45 53 | 5f 4c 49 42 52 41 52 59 |e.CURSES|_LIBRARY|
|00002520| 09 31 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 63 75 |.1.X#inc|lude <cu|
|00002530| 72 73 65 73 2e 68 3e 0a | 58 23 75 6e 64 65 66 20 |rses.h>.|X#undef |
|00002540| 62 65 65 70 0a 58 0a 58 | 23 69 66 6e 64 65 66 09 |beep.X.X|#ifndef.|
|00002550| 4e 44 45 42 55 47 0a 58 | 63 68 61 72 20 2a 72 63 |NDEBUG.X|char *rc|
|00002560| 73 69 64 5f 62 65 65 70 | 20 3d 20 22 24 48 65 61 |sid_beep| = "$Hea|
|00002570| 64 65 72 3a 20 63 3a 2f | 63 75 72 73 65 73 2f 70 |der: c:/|curses/p|
|00002580| 6f 72 74 61 62 6c 65 2f | 52 43 53 2f 62 65 65 70 |ortable/|RCS/beep|
|00002590| 2e 63 25 76 20 32 2e 30 | 20 31 39 39 32 2f 31 31 |.c%v 2.0| 1992/11|
|000025a0| 2f 31 35 20 30 33 3a 32 | 39 3a 33 34 20 4d 48 20 |/15 03:2|9:34 MH |
|000025b0| 52 65 6c 20 24 22 3b 0a | 58 23 65 6e 64 69 66 0a |Rel $";.|X#endif.|
|000025c0| 58 0a 58 0a 58 0a 58 0a | 58 2f 2a 6d 61 6e 2d 73 |X.X.X.X.|X/*man-s|
|000025d0| 74 61 72 74 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |tart****|********|
|000025e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000025f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002600| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002610| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0a 58 0a 58 20 20 62 |********|*.X.X b|
|00002620| 65 65 70 28 29 09 2d 20 | 67 65 6e 65 72 61 74 65 |eep().- |generate|
|00002630| 20 61 75 64 69 6f 2d 76 | 69 73 75 61 6c 20 61 6c | audio-v|isual al|
|00002640| 61 72 6d 2e 0a 58 0a 58 | 20 20 58 2f 4f 70 65 6e |arm..X.X| X/Open|
|00002650| 20 44 65 73 63 72 69 70 | 74 69 6f 6e 3a 0a 58 20 | Descrip|tion:.X |
|00002660| 09 54 68 69 73 20 72 6f | 75 74 69 6e 65 20 69 73 |.This ro|utine is|
|00002670| 20 75 73 65 64 20 74 6f | 20 73 69 67 6e 61 6c 20 | used to| signal |
|00002680| 74 68 65 20 74 65 72 6d | 69 6e 61 6c 20 75 73 65 |the term|inal use|
|00002690| 72 2e 20 20 54 68 65 20 | 62 65 65 70 28 29 0a 58 |r. The |beep().X|
|000026a0| 20 09 66 75 6e 63 74 69 | 6f 6e 20 77 69 6c 6c 20 | .functi|on will |
|000026b0| 73 6f 75 6e 64 20 74 68 | 65 20 61 75 64 69 62 6c |sound th|e audibl|
|000026c0| 65 20 62 65 6c 6c 20 6f | 6e 20 74 68 65 20 74 65 |e bell o|n the te|
|000026d0| 72 6d 69 6e 61 6c 2c 20 | 69 66 20 70 6f 73 73 69 |rminal, |if possi|
|000026e0| 62 6c 65 0a 58 20 09 61 | 6e 64 20 69 66 20 6e 6f |ble.X .a|nd if no|
|000026f0| 74 2c 20 77 69 6c 6c 20 | 66 6c 61 73 68 20 74 68 |t, will |flash th|
|00002700| 65 20 73 63 72 65 65 6e | 20 28 76 69 73 69 62 6c |e screen| (visibl|
|00002710| 65 20 62 65 6c 6c 29 2c | 20 69 66 20 70 6f 73 73 |e bell),| if poss|
|00002720| 69 62 6c 65 2e 0a 58 20 | 09 54 68 65 20 66 6c 61 |ible..X |.The fla|
|00002730| 73 68 28 29 20 66 75 6e | 63 74 69 6f 6e 20 77 69 |sh() fun|ction wi|
|00002740| 6c 6c 20 66 6c 61 73 68 | 20 74 68 65 20 73 63 72 |ll flash| the scr|
|00002750| 65 65 6e 2c 20 61 6e 64 | 20 69 66 20 74 68 61 74 |een, and| if that|
|00002760| 20 69 73 20 6e 6f 74 0a | 58 20 09 70 6f 73 73 69 | is not.|X .possi|
|00002770| 62 6c 65 2c 20 77 69 6c | 6c 20 73 6f 75 6e 64 20 |ble, wil|l sound |
|00002780| 74 68 65 20 61 75 64 69 | 62 6c 65 20 73 69 67 6e |the audi|ble sign|
|00002790| 61 6c 2e 20 20 49 66 20 | 6e 65 69 74 68 65 72 20 |al. If |neither |
|000027a0| 73 69 67 6e 61 6c 20 69 | 73 0a 58 20 09 70 6f 73 |signal i|s.X .pos|
|000027b0| 73 69 62 6c 65 2c 20 6e | 6f 74 68 69 6e 67 20 77 |sible, n|othing w|
|000027c0| 69 6c 6c 20 68 61 70 70 | 65 6e 2e 20 20 4e 65 61 |ill happ|en. Nea|
|000027d0| 72 6c 79 20 61 6c 6c 20 | 74 65 72 6d 69 6e 61 6c |rly all |terminal|
|000027e0| 73 20 68 61 76 65 20 61 | 6e 0a 58 20 09 61 75 64 |s have a|n.X .aud|
|000027f0| 69 62 6c 65 20 73 69 67 | 6e 61 6c 20 28 62 65 6c |ible sig|nal (bel|
|00002800| 6c 20 6f 72 20 62 65 65 | 70 29 2c 20 62 75 74 20 |l or bee|p), but |
|00002810| 6f 6e 6c 79 20 73 6f 6d | 65 20 63 61 6e 20 66 6c |only som|e can fl|
|00002820| 61 73 68 20 74 68 65 20 | 73 63 72 65 65 6e 2e 0a |ash the |screen..|
|00002830| 58 0a 58 20 20 58 2f 4f | 70 65 6e 20 52 65 74 75 |X.X X/O|pen Retu|
|00002840| 72 6e 20 56 61 6c 75 65 | 3a 0a 58 20 09 54 68 65 |rn Value|:.X .The|
|00002850| 20 62 65 65 70 28 29 20 | 61 6e 64 20 66 6c 61 73 | beep() |and flas|
|00002860| 68 28 29 20 66 75 6e 63 | 74 69 6f 6e 73 20 72 65 |h() func|tions re|
|00002870| 74 75 72 6e 20 4f 4b 20 | 6f 6e 20 73 75 63 63 65 |turn OK |on succe|
|00002880| 73 73 20 61 6e 64 20 45 | 52 52 20 6f 6e 0a 58 20 |ss and E|RR on.X |
|00002890| 09 65 72 72 6f 72 2e 0a | 58 0a 58 20 20 58 2f 4f |.error..|X.X X/O|
|000028a0| 70 65 6e 20 45 72 72 6f | 72 73 3a 0a 58 20 09 4e |pen Erro|rs:.X .N|
|000028b0| 6f 20 65 72 72 6f 72 73 | 20 61 72 65 20 64 65 66 |o errors| are def|
|000028c0| 69 6e 65 64 20 66 6f 72 | 20 74 68 69 73 20 66 75 |ined for| this fu|
|000028d0| 6e 63 74 69 6f 6e 2e 0a | 58 0a 58 20 20 50 6f 72 |nction..|X.X Por|
|000028e0| 74 61 62 69 6c 69 74 79 | 3a 0a 58 20 09 50 44 43 |tability|:.X .PDC|
|000028f0| 75 72 73 65 73 09 69 6e | 74 20 62 65 65 70 28 20 |urses.in|t beep( |
|00002900| 76 6f 69 64 20 29 3b 0a | 58 20 09 58 2f 4f 70 65 |void );.|X .X/Ope|
|00002910| 6e 20 44 65 63 20 27 38 | 38 09 69 6e 74 20 62 65 |n Dec '8|8.int be|
|00002920| 65 70 28 20 76 6f 69 64 | 20 29 3b 0a 58 20 09 42 |ep( void| );.X .B|
|00002930| 53 44 20 43 75 72 73 65 | 73 09 69 6e 74 20 62 65 |SD Curse|s.int be|
|00002940| 65 70 28 20 76 6f 69 64 | 20 29 3b 0a 58 20 09 53 |ep( void| );.X .S|
|00002950| 59 53 20 56 20 43 75 72 | 73 65 73 09 69 6e 74 20 |YS V Cur|ses.int |
|00002960| 62 65 65 70 28 20 76 6f | 69 64 20 29 3b 0a 58 0a |beep( vo|id );.X.|
|00002970| 58 2a 2a 6d 61 6e 2d 65 | 6e 64 2a 2a 2a 2a 2a 2a |X**man-e|nd******|
|00002980| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002990| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000029a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000029b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000029c0| 2f 0a 58 0a 58 69 6e 74 | 09 62 65 65 70 28 76 6f |/.X.Xint|.beep(vo|
|000029d0| 69 64 29 0a 58 7b 0a 58 | 09 69 66 20 28 21 5f 63 |id).X{.X|.if (!_c|
|000029e0| 75 72 73 76 61 72 2e 61 | 75 64 69 62 6c 65 29 0a |ursvar.a|udible).|
|000029f0| 58 09 7b 0a 58 09 09 66 | 6c 61 73 68 28 29 3b 0a |X.{.X..f|lash();.|
|00002a00| 58 09 09 72 65 74 75 72 | 6e 28 20 45 52 52 20 29 |X..retur|n( ERR )|
|00002a10| 3b 09 09 2f 2a 20 57 65 | 20 74 72 79 20 74 6f 20 |;../* We| try to |
|00002a20| 66 6c 61 73 68 20 69 6e | 73 74 65 61 64 2e 2e 2e |flash in|stead...|
|00002a30| 2a 2f 0a 58 09 7d 0a 58 | 09 50 44 43 5f 70 75 74 |*/.X.}.X|.PDC_put|
|00002a40| 63 74 74 79 28 20 27 5c | 30 30 37 27 2c 20 30 20 |ctty( '\|007', 0 |
|00002a50| 29 3b 0a 58 09 72 65 74 | 75 72 6e 28 20 4f 4b 20 |);.X.ret|urn( OK |
|00002a60| 29 3b 0a 58 7d 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |);.X}.EN|D_OF_FIL|
|00002a70| 45 0a 20 20 69 66 20 74 | 65 73 74 20 31 33 32 34 |E. if t|est 1324|
|00002a80| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 70 6f | -ne `wc| -c <'po|
|00002a90| 72 74 61 62 6c 65 2f 62 | 65 65 70 2e 63 27 60 3b |rtable/b|eep.c'`;|
|00002aa0| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00002ab0| 68 61 72 3a 20 5c 22 27 | 70 6f 72 74 61 62 6c 65 |har: \"'|portable|
|00002ac0| 2f 62 65 65 70 2e 63 27 | 5c 22 20 75 6e 70 61 63 |/beep.c'|\" unpac|
|00002ad0| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|00002ae0| 69 7a 65 21 0a 20 20 66 | 69 0a 20 20 23 20 65 6e |ize!. f|i. # en|
|00002af0| 64 20 6f 66 20 27 70 6f | 72 74 61 62 6c 65 2f 62 |d of 'po|rtable/b|
|00002b00| 65 65 70 2e 63 27 0a 66 | 69 0a 69 66 20 74 65 73 |eep.c'.f|i.if tes|
|00002b10| 74 20 2d 66 20 27 70 6f | 72 74 61 62 6c 65 2f 62 |t -f 'po|rtable/b|
|00002b20| 6f 78 2e 63 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |ox.c' -a| "${1}" |
|00002b30| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00002b40| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00002b50| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00002b60| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 70 |isting f|ile \"'p|
|00002b70| 6f 72 74 61 62 6c 65 2f | 62 6f 78 2e 63 27 5c 22 |ortable/|box.c'\"|
|00002b80| 0a 65 6c 73 65 0a 20 20 | 65 63 68 6f 20 73 68 61 |.else. |echo sha|
|00002b90| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00002ba0| 27 70 6f 72 74 61 62 6c | 65 2f 62 6f 78 2e 63 27 |'portabl|e/box.c'|
|00002bb0| 5c 22 20 5c 28 31 33 35 | 39 20 63 68 61 72 61 63 |\" \(135|9 charac|
|00002bc0| 74 65 72 73 5c 29 0a 20 | 20 73 65 64 20 22 73 2f |ters\). | sed "s/|
|00002bd0| 5e 58 2f 2f 22 20 3e 27 | 70 6f 72 74 61 62 6c 65 |^X//" >'|portable|
|00002be0| 2f 62 6f 78 2e 63 27 20 | 3c 3c 27 45 4e 44 5f 4f |/box.c' |<<'END_O|
|00002bf0| 46 5f 46 49 4c 45 27 0a | 58 23 64 65 66 69 6e 65 |F_FILE'.|X#define|
|00002c00| 09 43 55 52 53 45 53 5f | 4c 49 42 52 41 52 59 09 |.CURSES_|LIBRARY.|
|00002c10| 31 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 63 75 72 |1.X#incl|ude <cur|
|00002c20| 73 65 73 2e 68 3e 0a 58 | 23 75 6e 64 65 66 09 62 |ses.h>.X|#undef.b|
|00002c30| 6f 78 0a 58 0a 58 23 69 | 66 6e 64 65 66 09 4e 44 |ox.X.X#i|fndef.ND|
|00002c40| 45 42 55 47 0a 58 63 68 | 61 72 20 2a 72 63 73 69 |EBUG.Xch|ar *rcsi|
|00002c50| 64 5f 62 6f 78 20 3d 20 | 22 24 48 65 61 64 65 72 |d_box = |"$Header|
|00002c60| 3a 20 63 3a 2f 63 75 72 | 73 65 73 2f 70 6f 72 74 |: c:/cur|ses/port|
|00002c70| 61 62 6c 65 2f 52 43 53 | 2f 62 6f 78 2e 63 25 76 |able/RCS|/box.c%v|
|00002c80| 20 32 2e 30 20 31 39 39 | 32 2f 31 31 2f 31 35 20 | 2.0 199|2/11/15 |
|00002c90| 30 33 3a 32 38 3a 35 31 | 20 4d 48 20 52 65 6c 20 |03:28:51| MH Rel |
|00002ca0| 24 22 3b 0a 58 23 65 6e | 64 69 66 0a 58 0a 58 0a |$";.X#en|dif.X.X.|
|00002cb0| 58 0a 58 0a 58 2f 2a 6d | 61 6e 2d 73 74 61 72 74 |X.X.X/*m|an-start|
|00002cc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002cd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002ce0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002cf0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002d00| 2a 2a 2a 2a 2a 0a 58 0a | 58 20 20 62 6f 78 28 29 |*****.X.|X box()|
|00002d10| 09 2d 20 64 72 61 77 20 | 62 6f 78 0a 58 0a 58 20 |.- draw |box.X.X |
|00002d20| 20 58 2f 4f 70 65 6e 20 | 44 65 73 63 72 69 70 74 | X/Open |Descript|
|00002d30| 69 6f 6e 3a 09 0a 58 20 | 09 41 20 62 6f 78 20 69 |ion:..X |.A box i|
|00002d40| 73 20 64 72 61 77 6e 20 | 61 72 6f 75 6e 64 20 74 |s drawn |around t|
|00002d50| 68 65 20 65 64 67 65 20 | 6f 66 20 74 68 65 20 77 |he edge |of the w|
|00002d60| 69 6e 64 6f 77 2e 20 20 | 54 68 65 20 63 68 61 72 |indow. |The char|
|00002d70| 61 63 74 65 72 73 0a 58 | 20 09 76 65 72 74 20 61 |acters.X| .vert a|
|00002d80| 6e 64 20 68 6f 72 20 61 | 72 65 20 74 68 65 20 63 |nd hor a|re the c|
|00002d90| 68 61 72 61 63 74 65 72 | 73 20 75 73 65 64 20 74 |haracter|s used t|
|00002da0| 6f 20 64 72 61 77 20 74 | 68 65 20 62 6f 78 2e 20 |o draw t|he box. |
|00002db0| 20 49 66 20 76 65 72 74 | 20 6f 72 0a 58 20 09 68 | If vert| or.X .h|
|00002dc0| 6f 72 20 61 72 65 20 7a | 65 72 6f 2c 20 74 68 65 |or are z|ero, the|
|00002dd0| 6e 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 64 65 |n approp|riate de|
|00002de0| 66 61 75 6c 74 20 63 68 | 61 72 61 63 74 65 72 73 |fault ch|aracters|
|00002df0| 20 77 69 6c 6c 20 62 65 | 20 75 73 65 64 2e 0a 58 | will be| used..X|
|00002e00| 0a 58 20 20 50 44 43 75 | 72 73 65 73 20 44 65 73 |.X PDCu|rses Des|
|00002e10| 63 72 69 70 74 69 6f 6e | 3a 0a 58 20 09 53 65 65 |cription|:.X .See|
|00002e20| 20 62 6f 72 64 65 72 28 | 29 20 66 6f 72 20 61 64 | border(|) for ad|
|00002e30| 64 69 74 69 6f 6e 61 6c | 20 63 6f 6e 74 72 6f 6c |ditional| control|
|00002e40| 20 6f 76 65 72 20 74 68 | 65 20 73 69 64 65 73 20 | over th|e sides |
|00002e50| 61 6e 64 20 63 6f 72 6e | 65 72 73 0a 58 20 09 6f |and corn|ers.X .o|
|00002e60| 66 20 74 68 65 20 62 6f | 78 20 64 72 61 77 6e 2e |f the bo|x drawn.|
|00002e70| 0a 58 0a 58 20 20 58 2f | 4f 70 65 6e 20 52 65 74 |.X.X X/|Open Ret|
|00002e80| 75 72 6e 20 56 61 6c 75 | 65 3a 0a 58 20 09 54 68 |urn Valu|e:.X .Th|
|00002e90| 65 20 62 6f 78 28 29 20 | 66 75 6e 63 74 69 6f 6e |e box() |function|
|00002ea0| 20 72 65 74 75 72 6e 73 | 20 4f 4b 20 6f 6e 20 73 | returns| OK on s|
|00002eb0| 75 63 63 65 73 73 20 61 | 6e 64 20 45 52 52 20 6f |uccess a|nd ERR o|
|00002ec0| 6e 20 65 72 72 6f 72 2e | 0a 58 0a 58 20 20 50 44 |n error.|.X.X PD|
|00002ed0| 43 75 72 73 65 73 20 45 | 72 72 6f 72 73 3a 0a 58 |Curses E|rrors:.X|
|00002ee0| 20 09 4e 6f 20 65 72 72 | 6f 72 73 20 61 72 65 20 | .No err|ors are |
|00002ef0| 64 65 66 69 6e 65 64 20 | 66 6f 72 20 74 68 65 73 |defined |for thes|
|00002f00| 65 20 66 75 6e 63 74 69 | 6f 6e 73 2e 0a 58 0a 58 |e functi|ons..X.X|
|00002f10| 20 20 50 6f 72 74 61 62 | 69 6c 69 74 79 3a 0a 58 | Portab|ility:.X|
|00002f20| 20 09 50 44 43 75 72 73 | 65 73 09 69 6e 74 20 62 | .PDCurs|es.int b|
|00002f30| 6f 78 28 20 57 49 4e 44 | 4f 57 2a 20 77 69 6e 2c |ox( WIND|OW* win,|
|00002f40| 20 63 68 74 79 70 65 20 | 76 65 72 74 2c 20 63 68 | chtype |vert, ch|
|00002f50| 74 79 70 65 20 68 6f 72 | 20 29 3b 0a 58 20 09 58 |type hor| );.X .X|
|00002f60| 2f 4f 70 65 6e 20 44 65 | 63 20 27 38 38 09 69 6e |/Open De|c '88.in|
|00002f70| 74 20 62 6f 78 28 20 57 | 49 4e 44 4f 57 2a 20 77 |t box( W|INDOW* w|
|00002f80| 69 6e 2c 20 63 68 74 79 | 70 65 20 76 65 72 74 2c |in, chty|pe vert,|
|00002f90| 20 63 68 74 79 70 65 20 | 68 6f 72 20 29 3b 0a 58 | chtype |hor );.X|
|00002fa0| 20 09 42 53 44 20 43 75 | 72 73 65 73 09 69 6e 74 | .BSD Cu|rses.int|
|00002fb0| 20 62 6f 78 28 20 57 49 | 4e 44 4f 57 2a 20 77 69 | box( WI|NDOW* wi|
|00002fc0| 6e 2c 20 63 68 74 79 70 | 65 20 76 65 72 74 2c 20 |n, chtyp|e vert, |
|00002fd0| 63 68 74 79 70 65 20 68 | 6f 72 20 29 3b 0a 58 20 |chtype h|or );.X |
|00002fe0| 09 53 59 53 20 56 20 43 | 75 72 73 65 73 09 69 6e |.SYS V C|urses.in|
|00002ff0| 74 20 62 6f 78 28 20 57 | 49 4e 44 4f 57 2a 20 77 |t box( W|INDOW* w|
|00003000| 69 6e 2c 20 63 68 74 79 | 70 65 20 76 65 72 74 2c |in, chty|pe vert,|
|00003010| 20 63 68 74 79 70 65 20 | 68 6f 72 20 29 3b 0a 58 | chtype |hor );.X|
|00003020| 0a 58 2a 2a 6d 61 6e 2d | 65 6e 64 2a 2a 2a 2a 2a |.X**man-|end*****|
|00003030| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003040| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003050| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003060| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003070| 2a 2f 0a 58 0a 58 69 6e | 74 09 62 6f 78 28 20 57 |*/.X.Xin|t.box( W|
|00003080| 49 4e 44 4f 57 20 2a 77 | 69 6e 2c 20 63 68 74 79 |INDOW *w|in, chty|
|00003090| 70 65 20 76 65 72 74 2c | 20 63 68 74 79 70 65 20 |pe vert,| chtype |
|000030a0| 68 6f 72 20 29 0a 58 7b | 0a 58 09 69 66 20 20 28 |hor ).X{|.X.if (|
|000030b0| 21 76 65 72 74 20 7c 7c | 20 21 68 6f 72 29 09 2f |!vert ||| !hor)./|
|000030c0| 2a 0a 58 09 7b 09 09 09 | 2a 20 53 59 53 56 20 46 |*.X.{...|* SYSV F|
|000030d0| 69 78 20 43 6f 75 72 74 | 65 73 79 20 6f 66 20 41 |ix Court|esy of A|
|000030e0| 75 67 75 73 74 69 6e 65 | 20 43 61 6e 6f 0a 58 09 |ugustine| Cano.X.|
|000030f0| 09 76 65 72 74 3d 20 41 | 43 53 5f 56 4c 49 4e 45 |.vert= A|CS_VLINE|
|00003100| 3b 2a 20 61 66 63 40 73 | 68 69 62 61 79 61 2e 6c |;* afc@s|hibaya.l|
|00003110| 6f 6e 65 73 74 61 72 2e | 6f 72 67 0a 58 09 09 68 |onestar.|org.X..h|
|00003120| 6f 72 20 3d 20 41 43 53 | 5f 48 4c 49 4e 45 3b 2a |or = ACS|_HLINE;*|
|00003130| 20 31 39 39 32 30 35 32 | 30 0a 58 09 7d 09 09 09 | 1992052|0.X.}...|
|00003140| 2a 2f 0a 58 09 72 65 74 | 75 72 6e 28 20 77 62 6f |*/.X.ret|urn( wbo|
|00003150| 78 28 20 77 69 6e 2c 20 | 30 2c 20 30 2c 20 30 2c |x( win, |0, 0, 0,|
|00003160| 20 30 2c 20 76 65 72 74 | 2c 20 68 6f 72 20 29 20 | 0, vert|, hor ) |
|00003170| 29 3b 0a 58 7d 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |);.X}.EN|D_OF_FIL|
|00003180| 45 0a 20 20 69 66 20 74 | 65 73 74 20 31 33 35 39 |E. if t|est 1359|
|00003190| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 70 6f | -ne `wc| -c <'po|
|000031a0| 72 74 61 62 6c 65 2f 62 | 6f 78 2e 63 27 60 3b 20 |rtable/b|ox.c'`; |
|000031b0| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|000031c0| 61 72 3a 20 5c 22 27 70 | 6f 72 74 61 62 6c 65 2f |ar: \"'p|ortable/|
|000031d0| 62 6f 78 2e 63 27 5c 22 | 20 75 6e 70 61 63 6b 65 |box.c'\"| unpacke|
|000031e0| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|000031f0| 65 21 0a 20 20 66 69 0a | 20 20 23 20 65 6e 64 20 |e!. fi.| # end |
|00003200| 6f 66 20 27 70 6f 72 74 | 61 62 6c 65 2f 62 6f 78 |of 'port|able/box|
|00003210| 2e 63 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |.c'.fi.i|f test -|
|00003220| 66 20 27 70 6f 72 74 61 | 62 6c 65 2f 63 62 72 65 |f 'porta|ble/cbre|
|00003230| 61 6b 2e 63 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |ak.c' -a| "${1}" |
|00003240| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00003250| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00003260| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00003270| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 70 |isting f|ile \"'p|
|00003280| 6f 72 74 61 62 6c 65 2f | 63 62 72 65 61 6b 2e 63 |ortable/|cbreak.c|
|00003290| 27 5c 22 0a 65 6c 73 65 | 0a 20 20 65 63 68 6f 20 |'\".else|. echo |
|000032a0| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|000032b0| 20 5c 22 27 70 6f 72 74 | 61 62 6c 65 2f 63 62 72 | \"'port|able/cbr|
|000032c0| 65 61 6b 2e 63 27 5c 22 | 20 5c 28 31 33 34 35 20 |eak.c'\"| \(1345 |
|000032d0| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 20 20 73 |characte|rs\). s|
|000032e0| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 70 6f |ed "s/^X|//" >'po|
|000032f0| 72 74 61 62 6c 65 2f 63 | 62 72 65 61 6b 2e 63 27 |rtable/c|break.c'|
|00003300| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|00003310| 0a 58 23 64 65 66 69 6e | 65 09 43 55 52 53 45 53 |.X#defin|e.CURSES|
|00003320| 5f 4c 49 42 52 41 52 59 | 09 31 0a 58 23 69 6e 63 |_LIBRARY|.1.X#inc|
|00003330| 6c 75 64 65 20 3c 63 75 | 72 73 65 73 2e 68 3e 0a |lude <cu|rses.h>.|
|00003340| 58 23 75 6e 64 65 66 09 | 63 62 72 65 61 6b 0a 58 |X#undef.|cbreak.X|
|00003350| 0a 58 23 69 66 6e 64 65 | 66 09 4e 44 45 42 55 47 |.X#ifnde|f.NDEBUG|
|00003360| 0a 58 63 68 61 72 20 2a | 72 63 73 69 64 5f 63 62 |.Xchar *|rcsid_cb|
|00003370| 72 65 61 6b 20 3d 20 22 | 24 48 65 61 64 65 72 3a |reak = "|$Header:|
|00003380| 20 63 3a 2f 63 75 72 73 | 65 73 2f 70 6f 72 74 61 | c:/curs|es/porta|
|00003390| 62 6c 65 2f 52 43 53 2f | 63 62 72 65 61 6b 2e 63 |ble/RCS/|cbreak.c|
|000033a0| 25 76 20 32 2e 30 20 31 | 39 39 32 2f 31 31 2f 31 |%v 2.0 1|992/11/1|
|000033b0| 35 20 30 33 3a 32 38 3a | 34 37 20 4d 48 20 52 65 |5 03:28:|47 MH Re|
|000033c0| 6c 20 24 22 3b 0a 58 23 | 65 6e 64 69 66 0a 58 0a |l $";.X#|endif.X.|
|000033d0| 58 0a 58 0a 58 0a 58 2f | 2a 6d 61 6e 2d 73 74 61 |X.X.X.X/|*man-sta|
|000033e0| 72 74 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |rt******|********|
|000033f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003400| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003410| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003420| 2a 2a 2a 2a 2a 2a 2a 0a | 58 0a 58 20 20 63 62 72 |*******.|X.X cbr|
|00003430| 65 61 6b 28 29 09 2d 20 | 73 65 74 2f 63 6c 65 61 |eak().- |set/clea|
|00003440| 72 20 63 62 72 65 61 6b | 20 6d 6f 64 65 0a 58 0a |r cbreak| mode.X.|
|00003450| 58 20 20 58 2f 4f 70 65 | 6e 20 44 65 73 63 72 69 |X X/Ope|n Descri|
|00003460| 70 74 69 6f 6e 3a 09 63 | 62 72 65 61 6b 28 29 20 |ption:.c|break() |
|00003470| 61 6e 64 20 6e 6f 63 62 | 72 65 61 6b 28 29 0a 58 |and nocb|reak().X|
|00003480| 20 09 54 68 65 73 65 20 | 74 77 6f 20 72 6f 75 74 | .These |two rout|
|00003490| 69 6e 65 73 20 70 75 74 | 20 74 68 65 20 74 65 72 |ines put| the ter|
|000034a0| 6d 69 6e 61 6c 20 69 6e | 74 6f 20 61 6e 64 20 6f |minal in|to and o|
|000034b0| 75 74 20 6f 66 20 63 62 | 72 65 61 6b 20 6d 6f 64 |ut of cb|reak mod|
|000034c0| 65 2e 0a 58 20 09 49 6e | 20 63 62 72 65 61 6b 20 |e..X .In| cbreak |
|000034d0| 6d 6f 64 65 2c 20 63 68 | 61 72 61 63 74 65 72 73 |mode, ch|aracters|
|000034e0| 20 74 79 70 65 64 20 62 | 79 20 74 68 65 20 75 73 | typed b|y the us|
|000034f0| 65 72 20 61 72 65 20 69 | 6d 6d 65 64 69 61 74 65 |er are i|mmediate|
|00003500| 6c 79 0a 58 20 09 61 76 | 61 69 6c 61 62 6c 65 20 |ly.X .av|ailable |
|00003510| 74 6f 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 61 |to the p|rogram a|
|00003520| 6e 64 20 65 72 61 73 65 | 2f 6b 69 6c 6c 20 63 68 |nd erase|/kill ch|
|00003530| 61 72 61 63 74 65 72 20 | 70 72 6f 63 65 73 73 69 |aracter |processi|
|00003540| 6e 67 20 69 73 0a 58 20 | 09 6e 6f 74 20 70 65 72 |ng is.X |.not per|
|00003550| 66 6f 72 6d 65 64 2e 20 | 20 57 68 65 6e 20 6f 75 |formed. | When ou|
|00003560| 74 20 6f 66 20 63 62 72 | 65 61 6b 20 6d 6f 64 65 |t of cbr|eak mode|
|00003570| 2c 20 74 68 65 20 74 65 | 72 6d 69 6e 61 6c 20 64 |, the te|rminal d|
|00003580| 72 69 76 65 72 0a 58 20 | 09 77 69 6c 6c 20 62 75 |river.X |.will bu|
|00003590| 66 66 65 72 20 63 68 61 | 72 61 63 74 65 72 73 20 |ffer cha|racters |
|000035a0| 74 79 70 65 64 20 75 6e | 74 69 6c 20 61 20 6e 65 |typed un|til a ne|
|000035b0| 77 6c 69 6e 65 20 6f 72 | 20 63 61 72 72 69 61 67 |wline or| carriag|
|000035c0| 65 20 72 65 74 75 72 6e | 0a 58 20 09 69 73 20 74 |e return|.X .is t|
|000035d0| 79 70 65 64 2e 20 20 49 | 6e 74 65 72 72 75 70 74 |yped. I|nterrupt|
|000035e0| 20 61 6e 64 20 66 6c 6f | 77 20 63 6f 6e 74 72 6f | and flo|w contro|
|000035f0| 6c 20 63 68 61 72 61 63 | 74 65 72 73 20 61 72 65 |l charac|ters are|
|00003600| 20 75 6e 61 66 66 65 63 | 74 65 64 0a 58 20 09 62 | unaffec|ted.X .b|
|00003610| 79 20 74 68 69 73 20 6d | 6f 64 65 2e 20 20 49 6e |y this m|ode. In|
|00003620| 69 74 69 61 6c 6c 79 20 | 74 68 65 20 74 65 72 6d |itially |the term|
|00003630| 69 6e 61 6c 20 6d 61 79 | 20 6f 72 20 6d 61 79 20 |inal may| or may |
|00003640| 6e 6f 74 20 6e 65 65 64 | 20 62 65 0a 58 20 09 69 |not need| be.X .i|
|00003650| 6e 20 63 62 72 65 61 6b | 20 6d 6f 64 65 2e 0a 58 |n cbreak| mode..X|
|00003660| 0a 58 20 20 50 44 43 75 | 72 73 65 73 20 44 65 73 |.X PDCu|rses Des|
|00003670| 63 72 69 70 74 69 6f 6e | 3a 0a 58 20 09 54 68 65 |cription|:.X .The|
|00003680| 72 65 20 69 73 20 6e 6f | 20 61 64 64 69 74 69 6f |re is no| additio|
|00003690| 6e 61 6c 20 50 44 43 75 | 72 73 65 73 20 66 75 6e |nal PDCu|rses fun|
|000036a0| 63 74 69 6f 6e 61 6c 69 | 74 79 2e 0a 58 0a 58 20 |ctionali|ty..X.X |
|000036b0| 20 58 2f 4f 70 65 6e 20 | 52 65 74 75 72 6e 20 56 | X/Open |Return V|
|000036c0| 61 6c 75 65 3a 0a 58 20 | 09 54 68 65 20 63 62 72 |alue:.X |.The cbr|
|000036d0| 65 61 6b 28 29 20 66 75 | 6e 63 74 69 6f 6e 20 72 |eak() fu|nction r|
|000036e0| 65 74 75 72 6e 73 20 4f | 4b 20 6f 6e 20 73 75 63 |eturns O|K on suc|
|000036f0| 63 65 73 73 20 61 6e 64 | 20 45 52 52 20 6f 6e 20 |cess and| ERR on |
|00003700| 65 72 72 6f 72 2e 0a 58 | 0a 58 20 20 50 44 43 75 |error..X|.X PDCu|
|00003710| 72 73 65 73 20 45 72 72 | 6f 72 73 3a 0a 58 20 09 |rses Err|ors:.X .|
|00003720| 4e 6f 20 65 72 72 6f 72 | 73 20 61 72 65 20 64 65 |No error|s are de|
|00003730| 66 69 6e 65 64 20 66 6f | 72 20 74 68 65 73 65 20 |fined fo|r these |
|00003740| 66 75 6e 63 74 69 6f 6e | 73 2e 0a 58 0a 58 20 20 |function|s..X.X |
|00003750| 50 6f 72 74 61 62 69 6c | 69 74 79 3a 0a 58 20 09 |Portabil|ity:.X .|
|00003760| 50 44 43 75 72 73 65 73 | 09 69 6e 74 20 63 62 72 |PDCurses|.int cbr|
|00003770| 65 61 6b 28 20 76 6f 69 | 64 20 29 3b 0a 58 20 09 |eak( voi|d );.X .|
|00003780| 58 2f 4f 70 65 6e 20 44 | 65 63 20 27 38 38 09 69 |X/Open D|ec '88.i|
|00003790| 6e 74 20 63 62 72 65 61 | 6b 28 20 76 6f 69 64 20 |nt cbrea|k( void |
|000037a0| 29 3b 0a 58 20 09 42 53 | 44 20 43 75 72 73 65 73 |);.X .BS|D Curses|
|000037b0| 09 69 6e 74 20 63 62 72 | 65 61 6b 28 20 76 6f 69 |.int cbr|eak( voi|
|000037c0| 64 20 29 3b 0a 58 20 09 | 53 59 53 20 56 20 43 75 |d );.X .|SYS V Cu|
|000037d0| 72 73 65 73 09 69 6e 74 | 20 63 62 72 65 61 6b 28 |rses.int| cbreak(|
|000037e0| 20 76 6f 69 64 20 29 3b | 0a 58 0a 58 2a 2a 6d 61 | void );|.X.X**ma|
|000037f0| 6e 2d 65 6e 64 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |n-end***|********|
|00003800| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003810| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003820| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003830| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2f 0a 58 0a 58 |********|***/.X.X|
|00003840| 69 6e 74 09 63 62 72 65 | 61 6b 28 76 6f 69 64 29 |int.cbre|ak(void)|
|00003850| 0a 58 7b 0a 58 09 5f 63 | 75 72 73 76 61 72 2e 63 |.X{.X._c|ursvar.c|
|00003860| 62 72 65 61 6b 20 3d 20 | 54 52 55 45 3b 0a 58 09 |break = |TRUE;.X.|
|00003870| 72 65 74 75 72 6e 28 20 | 4f 4b 20 29 3b 0a 58 7d |return( |OK );.X}|
|00003880| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 20 20 69 |.END_OF_|FILE. i|
|00003890| 66 20 74 65 73 74 20 31 | 33 34 35 20 2d 6e 65 20 |f test 1|345 -ne |
|000038a0| 60 77 63 20 2d 63 20 3c | 27 70 6f 72 74 61 62 6c |`wc -c <|'portabl|
|000038b0| 65 2f 63 62 72 65 61 6b | 2e 63 27 60 3b 20 74 68 |e/cbreak|.c'`; th|
|000038c0| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|000038d0| 3a 20 5c 22 27 70 6f 72 | 74 61 62 6c 65 2f 63 62 |: \"'por|table/cb|
|000038e0| 72 65 61 6b 2e 63 27 5c | 22 20 75 6e 70 61 63 6b |reak.c'\|" unpack|
|000038f0| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00003900| 7a 65 21 0a 20 20 66 69 | 0a 20 20 23 20 65 6e 64 |ze!. fi|. # end|
|00003910| 20 6f 66 20 27 70 6f 72 | 74 61 62 6c 65 2f 63 62 | of 'por|table/cb|
|00003920| 72 65 61 6b 2e 63 27 0a | 66 69 0a 69 66 20 74 65 |reak.c'.|fi.if te|
|00003930| 73 74 20 2d 66 20 27 70 | 6f 72 74 61 62 6c 65 2f |st -f 'p|ortable/|
|00003940| 64 65 6c 61 79 5f 6f 75 | 2e 63 27 20 2d 61 20 22 |delay_ou|.c' -a "|
|00003950| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00003960| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00003970| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00003980| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00003990| 65 20 5c 22 27 70 6f 72 | 74 61 62 6c 65 2f 64 65 |e \"'por|table/de|
|000039a0| 6c 61 79 5f 6f 75 2e 63 | 27 5c 22 0a 65 6c 73 65 |lay_ou.c|'\".else|
|000039b0| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |. echo |shar: Ex|
|000039c0| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 70 6f 72 74 |tracting| \"'port|
|000039d0| 61 62 6c 65 2f 64 65 6c | 61 79 5f 6f 75 2e 63 27 |able/del|ay_ou.c'|
|000039e0| 5c 22 20 5c 28 31 33 32 | 38 20 63 68 61 72 61 63 |\" \(132|8 charac|
|000039f0| 74 65 72 73 5c 29 0a 20 | 20 73 65 64 20 22 73 2f |ters\). | sed "s/|
|00003a00| 5e 58 2f 2f 22 20 3e 27 | 70 6f 72 74 61 62 6c 65 |^X//" >'|portable|
|00003a10| 2f 64 65 6c 61 79 5f 6f | 75 2e 63 27 20 3c 3c 27 |/delay_o|u.c' <<'|
|00003a20| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 23 64 |END_OF_F|ILE'.X#d|
|00003a30| 65 66 69 6e 65 09 43 55 | 52 53 45 53 5f 4c 49 42 |efine.CU|RSES_LIB|
|00003a40| 52 41 52 59 09 31 0a 58 | 2f 2a 23 64 65 66 69 6e |RARY.1.X|/*#defin|
|00003a50| 65 20 4e 45 45 44 53 5f | 4f 53 32 20 20 20 20 20 |e NEEDS_|OS2 |
|00003a60| 20 20 31 2a 2f 0a 58 23 | 69 6e 63 6c 75 64 65 20 | 1*/.X#|include |
|00003a70| 3c 63 75 72 73 65 73 2e | 68 3e 0a 58 23 75 6e 64 |<curses.|h>.X#und|
|00003a80| 65 66 09 64 65 6c 61 79 | 5f 6f 75 74 70 75 74 0a |ef.delay|_output.|
|00003a90| 58 0a 58 23 69 66 20 64 | 65 66 69 6e 65 64 28 44 |X.X#if d|efined(D|
|00003aa0| 4f 53 29 20 26 26 20 64 | 65 66 69 6e 65 64 28 4d |OS) && d|efined(M|
|00003ab0| 53 43 29 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 74 |SC).X#in|clude <t|
|00003ac0| 69 6d 65 2e 68 3e 0a 58 | 23 65 6e 64 69 66 0a 58 |ime.h>.X|#endif.X|
|00003ad0| 0a 58 23 69 66 6e 64 65 | 66 09 4e 44 45 42 55 47 |.X#ifnde|f.NDEBUG|
|00003ae0| 0a 58 63 68 61 72 20 2a | 72 63 73 69 64 5f 64 65 |.Xchar *|rcsid_de|
|00003af0| 6c 61 79 5f 6f 75 20 3d | 20 22 24 48 65 61 64 65 |lay_ou =| "$Heade|
|00003b00| 72 3a 20 63 3a 2f 63 75 | 72 73 65 73 2f 70 6f 72 |r: c:/cu|rses/por|
|00003b10| 74 61 62 6c 65 2f 52 43 | 53 2f 64 65 6c 61 79 5f |table/RC|S/delay_|
|00003b20| 6f 75 2e 63 25 76 20 32 | 2e 30 20 31 39 39 32 2f |ou.c%v 2|.0 1992/|
|00003b30| 31 31 2f 31 35 20 30 33 | 3a 32 38 3a 34 36 20 4d |11/15 03|:28:46 M|
|00003b40| 48 20 52 65 6c 20 24 22 | 3b 0a 58 23 65 6e 64 69 |H Rel $"|;.X#endi|
|00003b50| 66 0a 58 0a 58 23 69 66 | 64 65 66 20 4f 53 32 0a |f.X.X#if|def OS2.|
|00003b60| 58 09 41 50 49 52 45 54 | 20 41 50 49 45 4e 54 52 |X.APIRET| APIENTR|
|00003b70| 59 20 44 6f 73 53 6c 65 | 65 70 28 55 4c 4f 4e 47 |Y DosSle|ep(ULONG|
|00003b80| 20 75 6c 54 69 6d 65 29 | 3b 0a 58 23 65 6e 64 69 | ulTime)|;.X#endi|
|00003b90| 66 0a 58 0a 58 0a 58 2f | 2a 6d 61 6e 2d 73 74 61 |f.X.X.X/|*man-sta|
|00003ba0| 72 74 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |rt******|********|
|00003bb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003bc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003bd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003be0| 2a 2a 2a 2a 2a 2a 2a 0a | 58 0a 58 20 20 64 65 6c |*******.|X.X del|
|00003bf0| 61 79 5f 6f 75 74 70 75 | 74 28 29 09 2d 20 63 61 |ay_outpu|t().- ca|
|00003c00| 75 73 65 20 73 68 6f 72 | 74 20 64 65 6c 61 79 0a |use shor|t delay.|
|00003c10| 58 0a 58 20 20 58 2f 4f | 70 65 6e 20 44 65 73 63 |X.X X/O|pen Desc|
|00003c20| 72 69 70 74 69 6f 6e 3a | 0a 58 20 09 49 6e 73 65 |ription:|.X .Inse|
|00003c30| 72 74 20 6d 73 20 6d 69 | 6c 6c 69 73 65 63 6f 6e |rt ms mi|llisecon|
|00003c40| 64 20 70 61 75 73 65 20 | 69 6e 20 6f 75 74 70 75 |d pause |in outpu|
|00003c50| 74 2e 20 20 4f 6e 20 73 | 6f 6d 65 20 73 79 73 74 |t. On s|ome syst|
|00003c60| 65 6d 73 2c 20 74 68 69 | 73 0a 58 20 09 68 61 73 |ems, thi|s.X .has|
|00003c70| 20 6e 6f 20 65 66 66 65 | 63 74 2e 0a 58 0a 58 20 | no effe|ct..X.X |
|00003c80| 20 50 44 43 75 72 73 65 | 73 20 44 65 73 63 72 69 | PDCurse|s Descri|
|00003c90| 70 74 69 6f 6e 3a 0a 58 | 20 09 54 68 69 73 20 72 |ption:.X| .This r|
|00003ca0| 6f 75 74 69 6e 65 20 72 | 65 6c 69 65 73 20 6f 6e |outine r|elies on|
|00003cb0| 20 74 68 65 20 63 6f 6d | 70 69 6c 65 72 27 73 20 | the com|piler's |
|00003cc0| 64 65 6c 61 79 28 29 20 | 72 6f 75 74 69 6e 65 20 |delay() |routine |
|00003cd0| 61 6e 64 0a 58 20 09 70 | 72 6f 76 69 64 65 73 20 |and.X .p|rovides |
|00003ce0| 74 68 69 73 20 78 20 6d | 69 6c 6c 69 73 65 63 6f |this x m|illiseco|
|00003cf0| 6e 64 20 67 72 61 6e 75 | 6c 61 72 69 74 79 20 74 |nd granu|larity t|
|00003d00| 6f 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |o the ap|plicatio|
|00003d10| 6e 2e 0a 58 0a 58 20 20 | 58 2f 4f 70 65 6e 20 52 |n..X.X |X/Open R|
|00003d20| 65 74 75 72 6e 20 56 61 | 6c 75 65 3a 0a 58 20 09 |eturn Va|lue:.X .|
|00003d30| 54 68 65 20 64 65 6c 61 | 79 5f 6f 75 74 70 75 74 |The dela|y_output|
|00003d40| 28 29 20 66 75 6e 63 74 | 69 6f 6e 20 72 65 74 75 |() funct|ion retu|
|00003d50| 72 6e 73 20 4f 4b 20 6f | 6e 20 73 75 63 63 65 73 |rns OK o|n succes|
|00003d60| 73 20 61 6e 64 20 45 52 | 52 20 6f 6e 20 65 72 72 |s and ER|R on err|
|00003d70| 6f 72 2e 0a 58 0a 58 20 | 20 50 44 43 75 72 73 65 |or..X.X | PDCurse|
|00003d80| 73 20 45 72 72 6f 72 73 | 3a 0a 58 20 09 49 66 20 |s Errors|:.X .If |
|00003d90| 74 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |this fun|ction is|
|00003da0| 20 61 20 6e 6f 70 2c 20 | 74 68 65 6e 20 61 6e 20 | a nop, |then an |
|00003db0| 45 52 52 20 69 73 20 72 | 65 74 75 72 6e 65 64 2e |ERR is r|eturned.|
|00003dc0| 0a 58 0a 58 20 20 50 6f | 72 74 61 62 69 6c 69 74 |.X.X Po|rtabilit|
|00003dd0| 79 3a 0a 58 20 09 50 44 | 43 75 72 73 65 73 09 69 |y:.X .PD|Curses.i|
|00003de0| 6e 74 20 64 65 6c 61 79 | 5f 6f 75 74 70 75 74 28 |nt delay|_output(|
|00003df0| 20 69 6e 74 20 6d 73 20 | 29 3b 0a 58 20 09 58 2f | int ms |);.X .X/|
|00003e00| 4f 70 65 6e 20 44 65 63 | 20 27 38 38 09 69 6e 74 |Open Dec| '88.int|
|00003e10| 20 64 65 6c 61 79 5f 6f | 75 74 70 75 74 28 20 69 | delay_o|utput( i|
|00003e20| 6e 74 20 6d 73 20 29 3b | 0a 58 20 09 42 53 44 20 |nt ms );|.X .BSD |
|00003e30| 43 75 72 73 65 73 09 0a | 58 20 09 53 59 53 20 56 |Curses..|X .SYS V|
|00003e40| 20 43 75 72 73 65 73 09 | 0a 58 0a 58 2a 2a 6d 61 | Curses.|.X.X**ma|
|00003e50| 6e 2d 65 6e 64 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |n-end***|********|
|00003e60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003e70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003e80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003e90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2f 0a 58 0a 58 |********|***/.X.X|
|00003ea0| 69 6e 74 09 64 65 6c 61 | 79 5f 6f 75 74 70 75 74 |int.dela|y_output|
|00003eb0| 28 20 69 6e 74 20 6d 73 | 20 29 0a 58 7b 0a 58 23 |( int ms| ).X{.X#|
|00003ec0| 69 66 20 64 65 66 69 6e | 65 64 28 54 43 29 20 26 |if defin|ed(TC) &|
|00003ed0| 26 20 64 65 66 69 6e 65 | 64 28 44 4f 53 29 0a 58 |& define|d(DOS).X|
|00003ee0| 09 64 65 6c 61 79 28 20 | 6d 73 20 29 3b 0a 58 09 |.delay( |ms );.X.|
|00003ef0| 72 65 74 75 72 6e 28 20 | 4f 4b 20 29 3b 0a 58 23 |return( |OK );.X#|
|00003f00| 65 6e 64 69 66 0a 58 23 | 69 66 09 64 65 66 69 6e |endif.X#|if.defin|
|00003f10| 65 64 28 4f 53 32 29 0a | 58 09 44 6f 73 53 6c 65 |ed(OS2).|X.DosSle|
|00003f20| 65 70 28 6d 73 29 3b 0a | 58 09 72 65 74 75 72 6e |ep(ms);.|X.return|
|00003f30| 28 20 4f 4b 20 29 3b 0a | 58 23 65 6e 64 69 66 0a |( OK );.|X#endif.|
|00003f40| 58 23 69 66 09 64 65 66 | 69 6e 65 64 28 44 4f 53 |X#if.def|ined(DOS|
|00003f50| 29 20 26 26 20 64 65 66 | 69 6e 65 64 28 4d 53 43 |) && def|ined(MSC|
|00003f60| 29 0a 58 09 50 44 43 5f | 75 73 6c 65 65 70 28 28 |).X.PDC_|usleep((|
|00003f70| 63 6c 6f 63 6b 5f 74 29 | 6d 73 29 3b 0a 58 09 72 |clock_t)|ms);.X.r|
|00003f80| 65 74 75 72 6e 28 20 4f | 4b 20 29 3b 0a 58 23 65 |eturn( O|K );.X#e|
|00003f90| 6e 64 69 66 0a 58 7d 0a | 45 4e 44 5f 4f 46 5f 46 |ndif.X}.|END_OF_F|
|00003fa0| 49 4c 45 0a 20 20 69 66 | 20 74 65 73 74 20 31 33 |ILE. if| test 13|
|00003fb0| 32 38 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |28 -ne `|wc -c <'|
|00003fc0| 70 6f 72 74 61 62 6c 65 | 2f 64 65 6c 61 79 5f 6f |portable|/delay_o|
|00003fd0| 75 2e 63 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |u.c'`; t|hen. |
|00003fe0| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 70 6f |echo sha|r: \"'po|
|00003ff0| 72 74 61 62 6c 65 2f 64 | 65 6c 61 79 5f 6f 75 2e |rtable/d|elay_ou.|
|00004000| 63 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |c'\" unp|acked wi|
|00004010| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 20 |th wrong| size!. |
|00004020| 20 66 69 0a 20 20 23 20 | 65 6e 64 20 6f 66 20 27 | fi. # |end of '|
|00004030| 70 6f 72 74 61 62 6c 65 | 2f 64 65 6c 61 79 5f 6f |portable|/delay_o|
|00004040| 75 2e 63 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |u.c'.fi.|if test |
|00004050| 2d 66 20 27 70 6f 72 74 | 61 62 6c 65 2f 67 65 74 |-f 'port|able/get|
|00004060| 79 78 2e 63 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |yx.c' -a| "${1}" |
|00004070| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00004080| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00004090| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|000040a0| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 70 |isting f|ile \"'p|
|000040b0| 6f 72 74 61 62 6c 65 2f | 67 65 74 79 78 2e 63 27 |ortable/|getyx.c'|
|000040c0| 5c 22 0a 65 6c 73 65 0a | 20 20 65 63 68 6f 20 73 |\".else.| echo s|
|000040d0| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|000040e0| 5c 22 27 70 6f 72 74 61 | 62 6c 65 2f 67 65 74 79 |\"'porta|ble/gety|
|000040f0| 78 2e 63 27 5c 22 20 5c | 28 31 33 32 36 20 63 68 |x.c'\" \|(1326 ch|
|00004100| 61 72 61 63 74 65 72 73 | 5c 29 0a 20 20 73 65 64 |aracters|\). sed|
|00004110| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 70 6f 72 74 | "s/^X//|" >'port|
|00004120| 61 62 6c 65 2f 67 65 74 | 79 78 2e 63 27 20 3c 3c |able/get|yx.c' <<|
|00004130| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 23 |'END_OF_|FILE'.X#|
|00004140| 64 65 66 69 6e 65 09 43 | 55 52 53 45 53 5f 4c 49 |define.C|URSES_LI|
|00004150| 42 52 41 52 59 09 31 0a | 58 23 69 6e 63 6c 75 64 |BRARY.1.|X#includ|
|00004160| 65 20 3c 63 75 72 73 65 | 73 2e 68 3e 0a 58 23 75 |e <curse|s.h>.X#u|
|00004170| 6e 64 65 66 09 67 65 74 | 79 78 0a 58 0a 58 23 69 |ndef.get|yx.X.X#i|
|00004180| 66 6e 64 65 66 09 4e 44 | 45 42 55 47 0a 58 63 68 |fndef.ND|EBUG.Xch|
|00004190| 61 72 20 2a 72 63 73 69 | 64 5f 67 65 74 79 78 20 |ar *rcsi|d_getyx |
|000041a0| 3d 20 22 24 48 65 61 64 | 65 72 3a 20 63 3a 2f 63 |= "$Head|er: c:/c|
|000041b0| 75 72 73 65 73 2f 70 6f | 72 74 61 62 6c 65 2f 52 |urses/po|rtable/R|
|000041c0| 43 53 2f 67 65 74 79 78 | 2e 63 25 76 20 32 2e 30 |CS/getyx|.c%v 2.0|
|000041d0| 20 31 39 39 32 2f 31 31 | 2f 31 35 20 30 33 3a 32 | 1992/11|/15 03:2|
|000041e0| 38 3a 35 33 20 4d 48 20 | 52 65 6c 20 24 22 3b 0a |8:53 MH |Rel $";.|
|000041f0| 58 23 65 6e 64 69 66 0a | 58 0a 58 0a 58 0a 58 0a |X#endif.|X.X.X.X.|
|00004200| 58 2f 2a 6d 61 6e 2d 73 | 74 61 72 74 2a 2a 2a 2a |X/*man-s|tart****|
|00004210| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004220| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004230| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004240| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004250| 2a 0a 58 0a 58 20 20 67 | 65 74 79 78 28 29 09 2d |*.X.X g|etyx().-|
|00004260| 20 67 65 74 20 63 75 72 | 73 6f 72 20 70 6f 73 69 | get cur|sor posi|
|00004270| 74 69 6f 6e 0a 58 0a 58 | 20 20 58 2f 4f 70 65 6e |tion.X.X| X/Open|
|00004280| 20 44 65 73 63 72 69 70 | 74 69 6f 6e 3a 0a 58 20 | Descrip|tion:.X |
|00004290| 09 54 68 65 20 63 75 72 | 73 6f 72 20 70 6f 73 69 |.The cur|sor posi|
|000042a0| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 77 69 6e 64 |tion of |the wind|
|000042b0| 6f 77 20 69 73 20 70 6c | 61 63 65 64 20 69 6e 20 |ow is pl|aced in |
|000042c0| 74 68 65 20 74 77 6f 20 | 69 6e 74 65 67 65 72 0a |the two |integer.|
|000042d0| 58 20 09 76 61 72 69 61 | 62 6c 65 73 20 79 20 61 |X .varia|bles y a|
|000042e0| 6e 64 20 78 2e 20 20 54 | 68 69 73 20 69 73 20 69 |nd x. T|his is i|
|000042f0| 6d 70 6c 65 6d 65 6e 74 | 65 64 20 61 73 20 61 20 |mplement|ed as a |
|00004300| 6d 61 63 72 6f 2c 20 73 | 6f 20 6e 6f 20 26 20 69 |macro, s|o no & i|
|00004310| 73 0a 58 20 09 6e 65 63 | 65 73 73 61 72 79 20 62 |s.X .nec|essary b|
|00004320| 65 66 6f 72 65 20 74 68 | 65 20 76 61 72 69 61 62 |efore th|e variab|
|00004330| 6c 65 73 2e 0a 58 0a 58 | 20 09 4e 4f 54 45 3a 20 |les..X.X| .NOTE: |
|00004340| 67 65 74 79 78 28 29 20 | 69 73 20 61 20 6d 61 63 |getyx() |is a mac|
|00004350| 72 6f 2e 0a 58 0a 58 20 | 20 50 44 43 75 72 73 65 |ro..X.X | PDCurse|
|00004360| 73 20 44 65 73 63 72 69 | 70 74 69 6f 6e 3a 0a 58 |s Descri|ption:.X|
|00004370| 20 09 54 68 69 73 20 72 | 6f 75 74 69 6e 65 20 69 | .This r|outine i|
|00004380| 73 20 68 65 72 65 20 74 | 6f 20 61 73 20 61 20 64 |s here t|o as a d|
|00004390| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 70 6c 61 |ocumenta|tion pla|
|000043a0| 63 65 20 68 6f 6c 64 65 | 72 2e 20 20 54 68 65 0a |ce holde|r. The.|
|000043b0| 58 20 09 63 6f 64 65 20 | 69 6e 20 74 68 69 73 20 |X .code |in this |
|000043c0| 6d 6f 64 75 6c 65 20 77 | 69 6c 6c 20 6e 65 76 65 |module w|ill neve|
|000043d0| 72 20 62 65 20 65 78 65 | 63 75 74 65 64 20 75 6e |r be exe|cuted un|
|000043e0| 6c 65 73 73 20 79 6f 75 | 20 23 75 6e 64 65 66 0a |less you| #undef.|
|000043f0| 58 20 09 67 65 74 79 78 | 28 29 2c 20 69 6e 20 77 |X .getyx|(), in w|
|00004400| 68 69 63 68 20 63 61 73 | 65 2c 20 79 6f 75 20 77 |hich cas|e, you w|
|00004410| 69 6c 6c 20 6e 65 65 64 | 20 74 68 65 20 26 20 6f |ill need| the & o|
|00004420| 70 65 72 61 74 6f 72 2e | 0a 58 0a 58 20 20 58 2f |perator.|.X.X X/|
|00004430| 4f 70 65 6e 20 52 65 74 | 75 72 6e 20 56 61 6c 75 |Open Ret|urn Valu|
|00004440| 65 3a 0a 58 20 09 54 68 | 69 73 20 66 75 6e 63 74 |e:.X .Th|is funct|
|00004450| 69 6f 6e 20 72 65 74 75 | 72 6e 73 20 4f 4b 20 6f |ion retu|rns OK o|
|00004460| 6e 20 73 75 63 63 65 73 | 73 20 61 6e 64 20 45 52 |n succes|s and ER|
|00004470| 52 20 6f 6e 20 65 72 72 | 6f 72 2e 0a 58 0a 58 20 |R on err|or..X.X |
|00004480| 20 58 2f 4f 70 65 6e 20 | 45 72 72 6f 72 73 3a 0a | X/Open |Errors:.|
|00004490| 58 20 09 4e 6f 20 65 72 | 72 6f 72 73 20 61 72 65 |X .No er|rors are|
|000044a0| 20 64 65 66 69 6e 65 64 | 20 66 6f 72 20 74 68 69 | defined| for thi|
|000044b0| 73 20 66 75 6e 63 74 69 | 6f 6e 2e 0a 58 0a 58 20 |s functi|on..X.X |
|000044c0| 20 50 6f 72 74 61 62 69 | 6c 69 74 79 3a 0a 58 20 | Portabi|lity:.X |
|000044d0| 09 50 44 43 75 72 73 65 | 73 09 69 6e 74 20 67 65 |.PDCurse|s.int ge|
|000044e0| 74 79 78 28 20 57 49 4e | 44 4f 57 2a 20 77 69 6e |tyx( WIN|DOW* win|
|000044f0| 2c 20 69 6e 74 2a 20 79 | 2c 20 69 6e 74 2a 20 78 |, int* y|, int* x|
|00004500| 20 29 3b 0a 58 20 09 20 | 20 20 20 6f 72 20 09 09 | );.X . | or ..|
|00004510| 69 6e 74 20 67 65 74 79 | 78 28 20 57 49 4e 44 4f |int gety|x( WINDO|
|00004520| 57 2a 20 77 69 6e 2c 20 | 69 6e 74 20 79 2c 20 69 |W* win, |int y, i|
|00004530| 6e 74 20 78 20 29 3b 0a | 58 20 09 58 2f 4f 70 65 |nt x );.|X .X/Ope|
|00004540| 6e 20 44 65 63 20 27 38 | 38 09 69 6e 74 20 67 65 |n Dec '8|8.int ge|
|00004550| 74 79 78 28 20 57 49 4e | 44 4f 57 2a 20 77 69 6e |tyx( WIN|DOW* win|
|00004560| 2c 20 69 6e 74 20 79 2c | 20 69 6e 74 20 78 20 29 |, int y,| int x )|
|00004570| 3b 0a 58 20 09 42 53 44 | 20 43 75 72 73 65 73 09 |;.X .BSD| Curses.|
|00004580| 69 6e 74 20 67 65 74 79 | 78 28 20 57 49 4e 44 4f |int gety|x( WINDO|
|00004590| 57 2a 20 77 69 6e 2c 20 | 69 6e 74 20 79 2c 20 69 |W* win, |int y, i|
|000045a0| 6e 74 20 78 20 29 3b 0a | 58 20 09 53 59 53 20 56 |nt x );.|X .SYS V|
|000045b0| 20 43 75 72 73 65 73 09 | 69 6e 74 20 67 65 74 79 | Curses.|int gety|
|000045c0| 78 28 20 57 49 4e 44 4f | 57 2a 20 77 69 6e 2c 20 |x( WINDO|W* win, |
|000045d0| 69 6e 74 20 79 2c 20 69 | 6e 74 20 78 20 29 3b 0a |int y, i|nt x );.|
|000045e0| 58 0a 58 2a 2a 6d 61 6e | 2d 65 6e 64 2a 2a 2a 2a |X.X**man|-end****|
|000045f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004600| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004610| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004620| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004630| 2a 2a 2f 0a 58 0a 58 69 | 6e 74 09 67 65 74 79 78 |**/.X.Xi|nt.getyx|
|00004640| 28 20 57 49 4e 44 4f 57 | 20 2a 77 69 6e 2c 20 69 |( WINDOW| *win, i|
|00004650| 6e 74 20 2a 79 2c 20 69 | 6e 74 20 2a 78 20 29 0a |nt *y, i|nt *x ).|
|00004660| 58 7b 0a 58 09 2a 79 20 | 3d 20 77 69 6e 2d 3e 5f |X{.X.*y |= win->_|
|00004670| 63 75 72 79 3b 0a 58 09 | 2a 78 20 3d 20 77 69 6e |cury;.X.|*x = win|
|00004680| 2d 3e 5f 63 75 72 78 3b | 0a 58 09 72 65 74 75 72 |->_curx;|.X.retur|
|00004690| 6e 28 20 4f 4b 20 29 3b | 0a 58 7d 0a 45 4e 44 5f |n( OK );|.X}.END_|
|000046a0| 4f 46 5f 46 49 4c 45 0a | 20 20 69 66 20 74 65 73 |OF_FILE.| if tes|
|000046b0| 74 20 31 33 32 36 20 2d | 6e 65 20 60 77 63 20 2d |t 1326 -|ne `wc -|
|000046c0| 63 20 3c 27 70 6f 72 74 | 61 62 6c 65 2f 67 65 74 |c <'port|able/get|
|000046d0| 79 78 2e 63 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |yx.c'`; |then. |
|000046e0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 70 | echo sh|ar: \"'p|
|000046f0| 6f 72 74 61 62 6c 65 2f | 67 65 74 79 78 2e 63 27 |ortable/|getyx.c'|
|00004700| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00004710| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 20 20 66 | wrong s|ize!. f|
|00004720| 69 0a 20 20 23 20 65 6e | 64 20 6f 66 20 27 70 6f |i. # en|d of 'po|
|00004730| 72 74 61 62 6c 65 2f 67 | 65 74 79 78 2e 63 27 0a |rtable/g|etyx.c'.|
|00004740| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 70 |fi.if te|st -f 'p|
|00004750| 6f 72 74 61 62 6c 65 2f | 68 61 73 5f 69 63 2e 63 |ortable/|has_ic.c|
|00004760| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00004770| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00004780| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00004790| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|000047a0| 6e 67 20 66 69 6c 65 20 | 5c 22 27 70 6f 72 74 61 |ng file |\"'porta|
|000047b0| 62 6c 65 2f 68 61 73 5f | 69 63 2e 63 27 5c 22 0a |ble/has_|ic.c'\".|
|000047c0| 65 6c 73 65 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |else. e|cho shar|
|000047d0| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|000047e0| 70 6f 72 74 61 62 6c 65 | 2f 68 61 73 5f 69 63 2e |portable|/has_ic.|
|000047f0| 63 27 5c 22 20 5c 28 31 | 32 30 35 20 63 68 61 72 |c'\" \(1|205 char|
|00004800| 61 63 74 65 72 73 5c 29 | 0a 20 20 73 65 64 20 22 |acters\)|. sed "|
|00004810| 73 2f 5e 58 2f 2f 22 20 | 3e 27 70 6f 72 74 61 62 |s/^X//" |>'portab|
|00004820| 6c 65 2f 68 61 73 5f 69 | 63 2e 63 27 20 3c 3c 27 |le/has_i|c.c' <<'|
|00004830| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 23 64 |END_OF_F|ILE'.X#d|
|00004840| 65 66 69 6e 65 09 43 55 | 52 53 45 53 5f 4c 49 42 |efine.CU|RSES_LIB|
|00004850| 52 41 52 59 09 31 0a 58 | 23 69 6e 63 6c 75 64 65 |RARY.1.X|#include|
|00004860| 20 3c 63 75 72 73 65 73 | 2e 68 3e 0a 58 23 75 6e | <curses|.h>.X#un|
|00004870| 64 65 66 09 68 61 73 5f | 69 63 0a 58 0a 58 23 69 |def.has_|ic.X.X#i|
|00004880| 66 6e 64 65 66 09 4e 44 | 45 42 55 47 0a 58 63 68 |fndef.ND|EBUG.Xch|
|00004890| 61 72 20 2a 72 63 73 69 | 64 5f 68 61 73 5f 69 63 |ar *rcsi|d_has_ic|
|000048a0| 20 3d 20 22 24 48 65 61 | 64 65 72 3a 20 63 3a 2f | = "$Hea|der: c:/|
|000048b0| 63 75 72 73 65 73 2f 70 | 6f 72 74 61 62 6c 65 2f |curses/p|ortable/|
|000048c0| 52 43 53 2f 68 61 73 5f | 69 63 2e 63 25 76 20 32 |RCS/has_|ic.c%v 2|
|000048d0| 2e 30 20 31 39 39 32 2f | 31 31 2f 31 35 20 30 33 |.0 1992/|11/15 03|
|000048e0| 3a 32 38 3a 35 34 20 4d | 48 20 52 65 6c 20 24 22 |:28:54 M|H Rel $"|
|000048f0| 3b 0a 58 23 65 6e 64 69 | 66 0a 58 0a 58 0a 58 0a |;.X#endi|f.X.X.X.|
|00004900| 58 0a 58 2f 2a 6d 61 6e | 2d 73 74 61 72 74 2a 2a |X.X/*man|-start**|
|00004910| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004920| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004930| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004940| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004950| 2a 2a 2a 0a 58 0a 58 20 | 20 68 61 73 5f 69 63 28 |***.X.X | has_ic(|
|00004960| 29 09 2d 20 64 65 74 65 | 72 6d 69 6e 65 20 77 68 |).- dete|rmine wh|
|00004970| 65 74 68 65 72 20 69 6e | 73 65 72 74 2f 64 65 6c |ether in|sert/del|
|00004980| 65 74 65 20 63 68 61 72 | 61 63 74 65 72 20 61 76 |ete char|acter av|
|00004990| 61 69 6c 61 62 6c 65 0a | 58 0a 58 20 20 58 2f 4f |ailable.|X.X X/O|
|000049a0| 70 65 6e 20 44 65 73 63 | 72 69 70 74 69 6f 6e 3a |pen Desc|ription:|
|000049b0| 0a 58 20 09 54 68 69 73 | 20 66 75 6e 63 74 69 6f |.X .This| functio|
|000049c0| 6e 20 77 69 6c 6c 20 72 | 65 74 75 72 6e 20 54 52 |n will r|eturn TR|
|000049d0| 55 45 20 69 66 20 74 68 | 65 20 74 65 72 6d 69 6e |UE if th|e termin|
|000049e0| 61 6c 20 68 61 73 20 69 | 6e 73 65 72 74 20 63 68 |al has i|nsert ch|
|000049f0| 61 72 61 63 74 65 72 0a | 58 20 09 61 6e 64 20 64 |aracter.|X .and d|
|00004a00| 65 6c 65 74 65 20 63 68 | 61 72 61 63 74 65 72 20 |elete ch|aracter |
|00004a10| 63 61 70 61 62 69 6c 69 | 74 69 65 73 2e 0a 58 0a |capabili|ties..X.|
|00004a20| 58 20 20 50 44 43 75 72 | 73 65 73 20 44 65 73 63 |X PDCur|ses Desc|
|00004a30| 72 69 70 74 69 6f 6e 3a | 0a 58 20 09 46 6f 72 20 |ription:|.X .For |
|00004a40| 44 4f 53 2c 20 74 68 69 | 73 20 69 73 20 69 72 72 |DOS, thi|s is irr|
|00004a50| 65 6c 65 76 61 6e 74 20 | 28 61 6e 64 20 41 4c 57 |elevant |(and ALW|
|00004a60| 41 59 53 20 54 52 55 45 | 29 2c 20 61 73 20 74 68 |AYS TRUE|), as th|
|00004a70| 65 20 73 70 65 65 64 20 | 6f 66 0a 58 20 09 74 68 |e speed |of.X .th|
|00004a80| 65 20 44 49 52 45 43 54 | 20 56 49 44 45 4f 20 6f |e DIRECT| VIDEO o|
|00004a90| 72 20 65 76 65 6e 20 42 | 49 4f 53 20 77 72 69 74 |r even B|IOS writ|
|00004aa0| 65 73 20 69 73 20 71 75 | 69 63 6b 65 72 20 74 68 |es is qu|icker th|
|00004ab0| 61 6e 20 6f 6e 20 61 0a | 58 20 09 73 65 72 69 61 |an on a.|X .seria|
|00004ac0| 6c 20 74 65 72 6d 69 6e | 61 6c 2e 0a 58 0a 58 20 |l termin|al..X.X |
|00004ad0| 09 46 6f 72 20 46 4c 45 | 58 4f 53 2c 20 74 68 69 |.For FLE|XOS, thi|
|00004ae0| 73 20 76 61 6c 75 65 20 | 68 61 73 20 6d 65 61 6e |s value |has mean|
|00004af0| 69 6e 67 20 61 6e 64 20 | 64 65 70 65 6e 64 73 20 |ing and |depends |
|00004b00| 6f 6e 20 74 68 65 20 74 | 65 72 6d 69 6e 61 6c 2c |on the t|erminal,|
|00004b10| 0a 58 20 09 74 68 6f 75 | 67 68 20 61 74 20 74 68 |.X .thou|gh at th|
|00004b20| 69 73 20 74 69 6d 65 2c | 20 69 74 20 69 73 20 61 |is time,| it is a|
|00004b30| 20 63 6f 6e 73 74 61 6e | 74 20 54 52 55 45 2e 0a | constan|t TRUE..|
|00004b40| 58 0a 58 20 20 58 2f 4f | 70 65 6e 20 52 65 74 75 |X.X X/O|pen Retu|
|00004b50| 72 6e 20 56 61 6c 75 65 | 3a 0a 58 20 09 54 68 65 |rn Value|:.X .The|
|00004b60| 20 68 61 73 5f 69 63 28 | 29 20 66 75 6e 63 74 69 | has_ic(|) functi|
|00004b70| 6f 6e 20 72 65 74 75 72 | 6e 73 20 54 52 55 45 20 |on retur|ns TRUE |
|00004b80| 69 66 20 74 68 65 20 74 | 65 72 6d 69 6e 61 6c 20 |if the t|erminal |
|00004b90| 68 61 73 20 69 6e 73 65 | 72 74 0a 58 20 09 63 68 |has inse|rt.X .ch|
|00004ba0| 61 72 61 63 74 65 72 20 | 61 6e 64 20 64 65 6c 65 |aracter |and dele|
|00004bb0| 74 65 20 63 68 61 72 61 | 63 74 65 72 20 63 61 70 |te chara|cter cap|
|00004bc0| 61 62 69 6c 69 74 69 65 | 73 2c 20 6f 74 68 65 72 |abilitie|s, other|
|00004bd0| 77 69 73 65 20 69 74 20 | 72 65 74 75 72 6e 73 0a |wise it |returns.|
|00004be0| 58 20 09 46 41 4c 53 45 | 2e 0a 58 0a 58 20 20 58 |X .FALSE|..X.X X|
|00004bf0| 2f 4f 70 65 6e 20 45 72 | 72 6f 72 73 3a 0a 58 20 |/Open Er|rors:.X |
|00004c00| 09 4e 6f 20 65 72 72 6f | 72 73 20 61 72 65 20 64 |.No erro|rs are d|
|00004c10| 65 66 69 6e 65 64 20 66 | 6f 72 20 74 68 69 73 20 |efined f|or this |
|00004c20| 66 75 6e 63 74 69 6f 6e | 2e 0a 58 0a 58 20 20 50 |function|..X.X P|
|00004c30| 6f 72 74 61 62 69 6c 69 | 74 79 3a 0a 58 20 09 50 |ortabili|ty:.X .P|
|00004c40| 44 43 75 72 73 65 73 09 | 62 6f 6f 6c 20 68 61 73 |DCurses.|bool has|
|00004c50| 5f 69 63 28 76 6f 69 64 | 29 3b 0a 58 20 09 58 2f |_ic(void|);.X .X/|
|00004c60| 4f 70 65 6e 20 44 65 63 | 20 27 38 38 09 62 6f 6f |Open Dec| '88.boo|
|00004c70| 6c 20 68 61 73 5f 69 63 | 28 76 6f 69 64 29 3b 0a |l has_ic|(void);.|
|00004c80| 58 20 09 42 53 44 20 43 | 75 72 73 65 73 09 0a 58 |X .BSD C|urses..X|
|00004c90| 20 09 53 59 53 20 56 20 | 43 75 72 73 65 73 09 0a | .SYS V |Curses..|
|00004ca0| 58 0a 58 2a 2a 6d 61 6e | 2d 65 6e 64 2a 2a 2a 2a |X.X**man|-end****|
|00004cb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004cc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004cd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004ce0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004cf0| 2a 2a 2f 0a 58 0a 58 62 | 6f 6f 6c 09 68 61 73 5f |**/.X.Xb|ool.has_|
|00004d00| 69 63 28 76 6f 69 64 29 | 0a 58 7b 0a 58 09 72 65 |ic(void)|.X{.X.re|
|00004d10| 74 75 72 6e 28 20 54 52 | 55 45 20 29 3b 0a 58 7d |turn( TR|UE );.X}|
|00004d20| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 20 20 69 |.END_OF_|FILE. i|
|00004d30| 66 20 74 65 73 74 20 31 | 32 30 35 20 2d 6e 65 20 |f test 1|205 -ne |
|00004d40| 60 77 63 20 2d 63 20 3c | 27 70 6f 72 74 61 62 6c |`wc -c <|'portabl|
|00004d50| 65 2f 68 61 73 5f 69 63 | 2e 63 27 60 3b 20 74 68 |e/has_ic|.c'`; th|
|00004d60| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00004d70| 3a 20 5c 22 27 70 6f 72 | 74 61 62 6c 65 2f 68 61 |: \"'por|table/ha|
|00004d80| 73 5f 69 63 2e 63 27 5c | 22 20 75 6e 70 61 63 6b |s_ic.c'\|" unpack|
|00004d90| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00004da0| 7a 65 21 0a 20 20 66 69 | 0a 20 20 23 20 65 6e 64 |ze!. fi|. # end|
|00004db0| 20 6f 66 20 27 70 6f 72 | 74 61 62 6c 65 2f 68 61 | of 'por|table/ha|
|00004dc0| 73 5f 69 63 2e 63 27 0a | 66 69 0a 69 66 20 74 65 |s_ic.c'.|fi.if te|
|00004dd0| 73 74 20 2d 66 20 27 70 | 6f 72 74 61 62 6c 65 2f |st -f 'p|ortable/|
|00004de0| 69 6e 69 74 63 6f 6c 6f | 2e 63 27 20 2d 61 20 22 |initcolo|.c' -a "|
|00004df0| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00004e00| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00004e10| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00004e20| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00004e30| 65 20 5c 22 27 70 6f 72 | 74 61 62 6c 65 2f 69 6e |e \"'por|table/in|
|00004e40| 69 74 63 6f 6c 6f 2e 63 | 27 5c 22 0a 65 6c 73 65 |itcolo.c|'\".else|
|00004e50| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |. echo |shar: Ex|
|00004e60| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 70 6f 72 74 |tracting| \"'port|
|00004e70| 61 62 6c 65 2f 69 6e 69 | 74 63 6f 6c 6f 2e 63 27 |able/ini|tcolo.c'|
|00004e80| 5c 22 20 5c 28 31 33 31 | 39 20 63 68 61 72 61 63 |\" \(131|9 charac|
|00004e90| 74 65 72 73 5c 29 0a 20 | 20 73 65 64 20 22 73 2f |ters\). | sed "s/|
|00004ea0| 5e 58 2f 2f 22 20 3e 27 | 70 6f 72 74 61 62 6c 65 |^X//" >'|portable|
|00004eb0| 2f 69 6e 69 74 63 6f 6c | 6f 2e 63 27 20 3c 3c 27 |/initcol|o.c' <<'|
|00004ec0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 23 64 |END_OF_F|ILE'.X#d|
|00004ed0| 65 66 69 6e 65 09 43 55 | 52 53 45 53 5f 4c 49 42 |efine.CU|RSES_LIB|
|00004ee0| 52 41 52 59 09 31 0a 58 | 23 69 6e 63 6c 75 64 65 |RARY.1.X|#include|
|00004ef0| 20 3c 63 75 72 73 65 73 | 2e 68 3e 0a 58 0a 58 23 | <curses|.h>.X.X#|
|00004f00| 69 66 6e 64 65 66 09 4e | 44 45 42 55 47 0a 58 63 |ifndef.N|DEBUG.Xc|
|00004f10| 68 61 72 20 2a 72 63 73 | 69 64 5f 69 6e 69 74 63 |har *rcs|id_initc|
|00004f20| 6f 6c 6f 20 3d 20 22 24 | 48 65 61 64 65 72 3a 20 |olo = "$|Header: |
|00004f30| 63 3a 2f 63 75 72 73 65 | 73 2f 70 6f 72 74 61 62 |c:/curse|s/portab|
|00004f40| 6c 65 2f 52 43 53 2f 69 | 6e 69 74 63 6f 6c 6f 2e |le/RCS/i|nitcolo.|
|00004f50| 63 25 76 20 32 2e 30 20 | 31 39 39 32 2f 31 31 2f |c%v 2.0 |1992/11/|
|00004f60| 31 35 20 30 33 3a 32 38 | 3a 35 35 20 4d 48 20 52 |15 03:28|:55 MH R|
|00004f70| 65 6c 20 24 22 3b 0a 58 | 23 65 6e 64 69 66 0a 58 |el $";.X|#endif.X|
|00004f80| 0a 58 0a 58 0a 58 0a 58 | 2f 2a 6d 61 6e 2d 73 74 |.X.X.X.X|/*man-st|
|00004f90| 61 72 74 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |art*****|********|
|00004fa0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004fb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004fc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004fd0| 2a 2a 2a 2a 2a 2a 2a 2a | 0a 58 0a 58 20 20 69 6e |********|.X.X in|
|00004fe0| 69 74 5f 63 6f 6c 6f 72 | 28 29 09 2d 20 43 68 61 |it_color|().- Cha|
|00004ff0| 6e 67 65 20 74 68 65 20 | 64 65 66 69 6e 69 74 69 |nge the |definiti|
|00005000| 6f 6e 20 6f 66 20 61 20 | 63 6f 6c 6f 72 2e 0a 58 |on of a |color..X|
|00005010| 0a 58 20 20 50 44 43 75 | 72 73 65 73 20 44 65 73 |.X PDCu|rses Des|
|00005020| 63 72 69 70 74 69 6f 6e | 3a 0a 58 0a 58 20 09 54 |cription|:.X.X .T|
|00005030| 68 69 73 20 72 6f 75 74 | 69 6e 65 20 69 73 20 75 |his rout|ine is u|
|00005040| 73 65 64 20 74 6f 20 63 | 68 61 6e 67 65 20 74 68 |sed to c|hange th|
|00005050| 65 20 64 65 66 69 6e 69 | 74 69 6f 6e 20 6f 66 20 |e defini|tion of |
|00005060| 61 20 63 6f 6c 6f 72 2e | 0a 58 20 09 54 68 65 20 |a color.|.X .The |
|00005070| 72 6f 75 74 69 6e 65 20 | 74 61 6b 65 73 20 66 6f |routine |takes fo|
|00005080| 75 72 20 61 72 67 75 6d | 65 6e 74 73 3a 20 74 68 |ur argum|ents: th|
|00005090| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 74 68 65 20 |e number| of the |
|000050a0| 63 6f 6c 6f 72 20 74 6f | 20 62 65 0a 58 20 09 72 |color to| be.X .r|
|000050b0| 65 64 65 66 69 6e 65 64 | 2c 20 61 6e 64 20 74 68 |edefined|, and th|
|000050c0| 65 20 6e 65 77 20 76 61 | 6c 75 65 73 20 6f 66 20 |e new va|lues of |
|000050d0| 74 68 65 20 72 65 64 2c | 20 67 72 65 65 6e 20 61 |the red,| green a|
|000050e0| 6e 64 20 62 6c 75 65 0a | 58 20 09 63 6f 6d 70 6f |nd blue.|X .compo|
|000050f0| 6e 65 6e 74 73 20 6f 66 | 20 74 68 65 20 63 6f 6c |nents of| the col|
|00005100| 6f 72 2e 0a 58 0a 58 20 | 09 54 68 65 20 76 61 6c |or..X.X |.The val|
|00005110| 75 65 20 6f 66 20 63 6f | 6c 6f 72 20 6d 75 73 74 |ue of co|lor must|
|00005120| 20 62 65 20 62 65 74 77 | 65 65 6e 20 30 20 61 6e | be betw|een 0 an|
|00005130| 64 20 43 4f 4c 4f 52 53 | 2d 31 2e 0a 58 20 09 54 |d COLORS|-1..X .T|
|00005140| 68 65 20 76 61 6c 75 65 | 73 20 6f 66 20 72 65 64 |he value|s of red|
|00005150| 2c 20 67 72 65 65 6e 20 | 61 6e 64 20 62 6c 75 65 |, green |and blue|
|00005160| 20 6d 75 73 74 20 65 61 | 63 68 20 66 61 6c 6c 20 | must ea|ch fall |
|00005170| 62 65 74 77 65 65 6e 20 | 30 20 61 6e 64 0a 58 20 |between |0 and.X |
|00005180| 09 31 30 30 30 3b 0a 58 | 0a 58 20 09 2a 2a 2a 2a |.1000;.X|.X .****|
|00005190| 2a 20 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |* This f|unction |
|000051a0| 64 6f 65 73 6e 27 74 20 | 64 6f 20 61 6e 79 74 68 |doesn't |do anyth|
|000051b0| 69 6e 67 20 79 65 74 20 | 2a 2a 2a 2a 2a 0a 58 0a |ing yet |*****.X.|
|000051c0| 58 20 20 50 44 43 75 72 | 73 65 73 20 52 65 74 75 |X PDCur|ses Retu|
|000051d0| 72 6e 20 56 61 6c 75 65 | 3a 0a 58 20 09 54 68 69 |rn Value|:.X .Thi|
|000051e0| 73 20 66 75 6e 63 74 69 | 6f 6e 20 72 65 74 75 72 |s functi|on retur|
|000051f0| 6e 73 20 4f 4b 20 69 66 | 20 74 68 65 20 63 6f 6c |ns OK if| the col|
|00005200| 6f 72 20 63 68 61 6e 67 | 65 20 77 61 73 20 70 6f |or chang|e was po|
|00005210| 73 73 69 62 6c 65 20 6f | 72 0a 58 20 09 45 52 52 |ssible o|r.X .ERR|
|00005220| 20 6f 6e 20 65 72 72 6f | 72 2e 0a 58 0a 58 20 20 | on erro|r..X.X |
|00005230| 50 44 43 75 72 73 65 73 | 20 45 72 72 6f 72 73 3a |PDCurses| Errors:|
|00005240| 0a 58 20 09 4e 2f 41 0a | 58 0a 58 20 20 50 6f 72 |.X .N/A.|X.X Por|
|00005250| 74 61 62 69 6c 69 74 79 | 3a 0a 58 20 09 50 44 43 |tability|:.X .PDC|
|00005260| 75 72 73 65 73 09 69 6e | 74 20 69 6e 69 74 5f 63 |urses.in|t init_c|
|00005270| 6f 6c 6f 72 28 20 69 6e | 74 20 63 6f 6c 6f 72 2c |olor( in|t color,|
|00005280| 20 73 68 6f 72 74 20 72 | 65 64 2c 20 73 68 6f 72 | short r|ed, shor|
|00005290| 74 20 67 72 65 65 6e 2c | 20 73 68 6f 72 74 20 62 |t green,| short b|
|000052a0| 6c 75 65 29 3b 0a 58 20 | 09 53 59 53 20 56 20 63 |lue);.X |.SYS V c|
|000052b0| 75 72 73 65 73 09 69 6e | 74 20 69 6e 69 74 5f 63 |urses.in|t init_c|
|000052c0| 6f 6c 6f 72 28 20 69 6e | 74 20 63 6f 6c 6f 72 2c |olor( in|t color,|
|000052d0| 20 73 68 6f 72 74 20 72 | 65 64 2c 20 73 68 6f 72 | short r|ed, shor|
|000052e0| 74 20 67 72 65 65 6e 2c | 20 73 68 6f 72 74 20 62 |t green,| short b|
|000052f0| 6c 75 65 29 3b 0a 58 0a | 58 2a 2a 6d 61 6e 2d 65 |lue);.X.|X**man-e|
|00005300| 6e 64 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |nd******|********|
|00005310| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005320| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005330| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005340| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 0a 58 0a 58 0a 58 69 |********|/.X.X.Xi|
|00005350| 6e 74 20 69 6e 69 74 5f | 63 6f 6c 6f 72 28 69 6e |nt init_|color(in|
|00005360| 74 20 63 6f 6c 6f 72 2c | 20 73 68 6f 72 74 20 72 |t color,| short r|
|00005370| 65 64 2c 20 73 68 6f 72 | 74 20 67 72 65 65 6e 2c |ed, shor|t green,|
|00005380| 20 73 68 6f 72 74 20 62 | 6c 75 65 29 0a 58 7b 0a | short b|lue).X{.|
|00005390| 58 20 65 78 74 65 72 6e | 20 69 6e 74 20 43 4f 4c |X extern| int COL|
|000053a0| 4f 52 53 3b 0a 58 0a 58 | 20 69 66 20 28 63 6f 6c |ORS;.X.X| if (col|
|000053b0| 6f 72 20 3e 3d 20 43 4f | 4c 4f 52 53 20 2d 31 20 |or >= CO|LORS -1 |
|000053c0| 7c 7c 20 63 6f 6c 6f 72 | 20 3c 20 31 29 0a 58 20 ||| color| < 1).X |
|000053d0| 20 20 20 72 65 74 75 72 | 6e 28 45 52 52 29 3b 0a | retur|n(ERR);.|
|000053e0| 58 2f 2a 0a 58 20 2a 20 | 54 68 69 73 20 66 75 6e |X/*.X * |This fun|
|000053f0| 63 74 69 6f 6e 20 64 6f | 65 73 6e 27 74 20 64 6f |ction do|esn't do|
|00005400| 20 61 6e 79 74 68 69 6e | 67 20 79 65 74 2e 2e 2e | anythin|g yet...|
|00005410| 0a 58 20 2a 2f 0a 58 20 | 72 65 74 75 72 6e 28 45 |.X */.X |return(E|
|00005420| 52 52 29 3b 0a 58 7d 0a | 45 4e 44 5f 4f 46 5f 46 |RR);.X}.|END_OF_F|
|00005430| 49 4c 45 0a 20 20 69 66 | 20 74 65 73 74 20 31 33 |ILE. if| test 13|
|00005440| 31 39 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |19 -ne `|wc -c <'|
|00005450| 70 6f 72 74 61 62 6c 65 | 2f 69 6e 69 74 63 6f 6c |portable|/initcol|
|00005460| 6f 2e 63 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |o.c'`; t|hen. |
|00005470| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 70 6f |echo sha|r: \"'po|
|00005480| 72 74 61 62 6c 65 2f 69 | 6e 69 74 63 6f 6c 6f 2e |rtable/i|nitcolo.|
|00005490| 63 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |c'\" unp|acked wi|
|000054a0| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 20 |th wrong| size!. |
|000054b0| 20 66 69 0a 20 20 23 20 | 65 6e 64 20 6f 66 20 27 | fi. # |end of '|
|000054c0| 70 6f 72 74 61 62 6c 65 | 2f 69 6e 69 74 63 6f 6c |portable|/initcol|
|000054d0| 6f 2e 63 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |o.c'.fi.|if test |
|000054e0| 2d 66 20 27 70 6f 72 74 | 61 62 6c 65 2f 6d 65 74 |-f 'port|able/met|
|000054f0| 61 2e 63 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |a.c' -a |"${1}" !|
|00005500| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|00005510| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00005520| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|00005530| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 70 6f |sting fi|le \"'po|
|00005540| 72 74 61 62 6c 65 2f 6d | 65 74 61 2e 63 27 5c 22 |rtable/m|eta.c'\"|
|00005550| 0a 65 6c 73 65 0a 20 20 | 65 63 68 6f 20 73 68 61 |.else. |echo sha|
|00005560| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00005570| 27 70 6f 72 74 61 62 6c | 65 2f 6d 65 74 61 2e 63 |'portabl|e/meta.c|
|00005580| 27 5c 22 20 5c 28 31 33 | 30 32 20 63 68 61 72 61 |'\" \(13|02 chara|
|00005590| 63 74 65 72 73 5c 29 0a | 20 20 73 65 64 20 22 73 |cters\).| sed "s|
|000055a0| 2f 5e 58 2f 2f 22 20 3e | 27 70 6f 72 74 61 62 6c |/^X//" >|'portabl|
|000055b0| 65 2f 6d 65 74 61 2e 63 | 27 20 3c 3c 27 45 4e 44 |e/meta.c|' <<'END|
|000055c0| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 23 64 65 66 69 |_OF_FILE|'.X#defi|
|000055d0| 6e 65 09 43 55 52 53 45 | 53 5f 4c 49 42 52 41 52 |ne.CURSE|S_LIBRAR|
|000055e0| 59 09 31 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 63 |Y.1.X#in|clude <c|
|000055f0| 75 72 73 65 73 2e 68 3e | 0a 58 23 75 6e 64 65 66 |urses.h>|.X#undef|
|00005600| 09 6d 65 74 61 0a 58 0a | 58 23 69 66 6e 64 65 66 |.meta.X.|X#ifndef|
|00005610| 09 4e 44 45 42 55 47 0a | 58 63 68 61 72 20 2a 72 |.NDEBUG.|Xchar *r|
|00005620| 63 73 69 64 5f 6d 65 74 | 61 20 3d 20 22 24 48 65 |csid_met|a = "$He|
|00005630| 61 64 65 72 3a 20 63 3a | 2f 63 75 72 73 65 73 2f |ader: c:|/curses/|
|00005640| 70 6f 72 74 61 62 6c 65 | 2f 52 43 53 2f 6d 65 74 |portable|/RCS/met|
|00005650| 61 2e 63 25 76 20 32 2e | 30 20 31 39 39 32 2f 31 |a.c%v 2.|0 1992/1|
|00005660| 31 2f 31 35 20 30 33 3a | 32 39 3a 30 30 20 4d 48 |1/15 03:|29:00 MH|
|00005670| 20 52 65 6c 20 24 22 3b | 0a 58 23 65 6e 64 69 66 | Rel $";|.X#endif|
|00005680| 0a 58 0a 58 0a 58 0a 58 | 0a 58 2f 2a 6d 61 6e 2d |.X.X.X.X|.X/*man-|
|00005690| 73 74 61 72 74 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |start***|********|
|000056a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000056b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000056c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000056d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0a 58 0a 58 20 20 |********|**.X.X |
|000056e0| 6d 65 74 61 28 29 09 2d | 20 46 6f 72 63 65 20 74 |meta().-| Force t|
|000056f0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 73 69 67 |he numbe|r of sig|
|00005700| 6e 69 66 69 63 61 6e 74 | 20 62 69 74 73 20 6f 6e |nificant| bits on|
|00005710| 20 69 6e 70 75 74 2e 0a | 58 0a 58 20 20 55 6c 74 | input..|X.X Ult|
|00005720| 72 69 78 20 34 2e 31 20 | 44 65 73 63 72 69 70 74 |rix 4.1 |Descript|
|00005730| 69 6f 6e 3a 0a 58 20 09 | 54 68 69 73 20 66 75 6e |ion:.X .|This fun|
|00005740| 63 74 69 6f 6e 20 66 6f | 72 63 65 73 20 74 68 65 |ction fo|rces the|
|00005750| 20 75 73 65 72 27 73 20 | 74 65 72 6d 69 6e 61 6c | user's |terminal|
|00005760| 20 74 6f 20 72 65 74 75 | 72 6e 20 37 20 6f 72 20 | to retu|rn 7 or |
|00005770| 38 0a 58 20 09 73 69 67 | 6e 69 66 69 63 61 6e 74 |8.X .sig|nificant|
|00005780| 20 62 69 74 73 20 6f 6e | 20 69 6e 70 75 74 2e 20 | bits on| input. |
|00005790| 20 54 6f 20 66 6f 72 63 | 65 20 38 20 62 69 74 73 | To forc|e 8 bits|
|000057a0| 20 74 6f 20 62 65 20 72 | 65 74 75 72 6e 65 64 2c | to be r|eturned,|
|000057b0| 0a 58 20 09 69 6e 76 6f | 6b 65 20 6d 65 74 61 28 |.X .invo|ke meta(|
|000057c0| 29 20 77 69 74 68 20 62 | 66 20 61 73 20 54 52 55 |) with b|f as TRU|
|000057d0| 45 2e 20 20 54 6f 20 66 | 6f 72 63 65 20 37 20 62 |E. To f|orce 7 b|
|000057e0| 69 74 73 20 74 6f 20 62 | 65 20 72 65 74 75 72 6e |its to b|e return|
|000057f0| 65 64 2c 0a 58 20 09 69 | 6e 76 6f 6b 65 20 6d 65 |ed,.X .i|nvoke me|
|00005800| 74 61 28 29 20 77 69 74 | 68 20 62 66 20 61 73 20 |ta() wit|h bf as |
|00005810| 46 41 4c 53 45 2e 0a 58 | 0a 58 20 09 54 68 65 20 |FALSE..X|.X .The |
|00005820| 77 69 6e 64 6f 77 20 61 | 72 67 75 6d 65 6e 74 20 |window a|rgument |
|00005830| 69 73 20 61 6c 77 61 79 | 73 20 69 67 6e 6f 72 65 |is alway|s ignore|
|00005840| 64 2c 20 62 75 74 20 69 | 74 20 6d 75 73 74 20 73 |d, but i|t must s|
|00005850| 74 69 6c 6c 20 62 65 20 | 61 0a 58 20 09 76 61 6c |till be |a.X .val|
|00005860| 69 64 20 77 69 6e 64 6f | 77 20 74 6f 20 61 76 6f |id windo|w to avo|
|00005870| 69 64 20 63 6f 6d 70 69 | 6c 65 72 20 65 72 72 6f |id compi|ler erro|
|00005880| 72 73 2e 0a 58 0a 58 20 | 20 50 44 43 75 72 73 65 |rs..X.X | PDCurse|
|00005890| 73 20 44 65 73 63 72 69 | 70 74 69 6f 6e 3a 0a 58 |s Descri|ption:.X|
|000058a0| 20 09 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 | .This f|unction |
|000058b0| 69 73 20 70 72 6f 76 69 | 64 65 64 20 66 6f 72 20 |is provi|ded for |
|000058c0| 70 6f 72 74 61 62 69 6c | 69 74 79 2e 20 20 42 79 |portabil|ity. By|
|000058d0| 20 64 65 66 61 75 6c 74 | 2c 20 38 20 62 69 74 73 | default|, 8 bits|
|000058e0| 0a 58 20 09 61 72 65 20 | 72 65 74 75 72 6e 65 64 |.X .are |returned|
|000058f0| 2e 0a 58 0a 58 20 09 46 | 59 49 3a 20 20 54 68 65 |..X.X .F|YI: The|
|00005900| 20 55 6c 74 72 69 78 20 | 44 4f 43 20 6e 65 65 64 | Ultrix |DOC need|
|00005910| 73 20 63 6f 6e 66 69 72 | 6d 61 74 69 6f 6e 2e 2e |s confir|mation..|
|00005920| 2e 0a 58 0a 58 20 20 50 | 44 43 75 72 73 65 73 20 |..X.X P|DCurses |
|00005930| 52 65 74 75 72 6e 20 56 | 61 6c 75 65 3a 0a 58 20 |Return V|alue:.X |
|00005940| 09 54 68 65 20 6d 65 74 | 61 28 29 20 66 75 6e 63 |.The met|a() func|
|00005950| 74 69 6f 6e 20 72 65 74 | 75 72 6e 73 20 4f 4b 2e |tion ret|urns OK.|
|00005960| 0a 58 0a 58 20 20 50 44 | 43 75 72 73 65 73 20 45 |.X.X PD|Curses E|
|00005970| 72 72 6f 72 73 3a 0a 58 | 20 09 4e 6f 20 65 72 72 |rrors:.X| .No err|
|00005980| 6f 72 73 20 61 72 65 20 | 64 65 66 69 6e 65 64 20 |ors are |defined |
|00005990| 66 6f 72 20 74 68 69 73 | 20 66 75 6e 63 74 69 6f |for this| functio|
|000059a0| 6e 2e 0a 58 0a 58 20 20 | 50 6f 72 74 61 62 69 6c |n..X.X |Portabil|
|000059b0| 69 74 79 3a 0a 58 20 09 | 50 44 43 75 72 73 65 73 |ity:.X .|PDCurses|
|000059c0| 09 69 6e 74 20 6d 65 74 | 61 28 20 57 49 4e 44 4f |.int met|a( WINDO|
|000059d0| 57 2a 20 77 69 6e 2c 20 | 62 6f 6f 6c 20 62 66 20 |W* win, |bool bf |
|000059e0| 29 3b 0a 58 20 09 42 53 | 44 20 43 75 72 73 65 73 |);.X .BS|D Curses|
|000059f0| 09 69 6e 74 20 6d 65 74 | 61 28 20 57 49 4e 44 4f |.int met|a( WINDO|
|00005a00| 57 2a 20 77 69 6e 2c 20 | 62 6f 6f 6c 20 62 66 20 |W* win, |bool bf |
|00005a10| 29 3b 0a 58 20 09 53 59 | 53 20 56 20 43 75 72 73 |);.X .SY|S V Curs|
|00005a20| 65 73 09 69 6e 74 20 6d | 65 74 61 28 20 57 49 4e |es.int m|eta( WIN|
|00005a30| 44 4f 57 2a 20 77 69 6e | 2c 20 62 6f 6f 6c 20 62 |DOW* win|, bool b|
|00005a40| 66 20 29 3b 0a 58 0a 58 | 2a 2a 6d 61 6e 2d 65 6e |f );.X.X|**man-en|
|00005a50| 64 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |d*******|********|
|00005a60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005a70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005a80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005a90| 2a 2a 2a 2a 2a 2a 2a 2f | 0a 58 0a 58 69 6e 74 09 |*******/|.X.Xint.|
|00005aa0| 6d 65 74 61 28 20 57 49 | 4e 44 4f 57 20 2a 77 69 |meta( WI|NDOW *wi|
|00005ab0| 6e 2c 20 62 6f 6f 6c 20 | 62 66 20 29 0a 58 7b 0a |n, bool |bf ).X{.|
|00005ac0| 58 23 69 66 64 65 66 09 | 54 43 0a 58 23 20 70 72 |X#ifdef.|TC.X# pr|
|00005ad0| 61 67 6d 61 20 61 72 67 | 73 75 73 65 64 3b 0a 58 |agma arg|sused;.X|
|00005ae0| 23 65 6e 64 69 66 0a 58 | 09 5f 63 75 72 73 76 61 |#endif.X|._cursva|
|00005af0| 72 2e 72 61 77 5f 69 6e | 70 20 3d 20 62 66 3b 0a |r.raw_in|p = bf;.|
|00005b00| 58 09 72 65 74 75 72 6e | 28 20 4f 4b 20 29 3b 0a |X.return|( OK );.|
|00005b10| 58 7d 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 20 |X}.END_O|F_FILE. |
|00005b20| 20 69 66 20 74 65 73 74 | 20 31 33 30 32 20 2d 6e | if test| 1302 -n|
|00005b30| 65 20 60 77 63 20 2d 63 | 20 3c 27 70 6f 72 74 61 |e `wc -c| <'porta|
|00005b40| 62 6c 65 2f 6d 65 74 61 | 2e 63 27 60 3b 20 74 68 |ble/meta|.c'`; th|
|00005b50| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00005b60| 3a 20 5c 22 27 70 6f 72 | 74 61 62 6c 65 2f 6d 65 |: \"'por|table/me|
|00005b70| 74 61 2e 63 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |ta.c'\" |unpacked|
|00005b80| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|00005b90| 21 0a 20 20 66 69 0a 20 | 20 23 20 65 6e 64 20 6f |!. fi. | # end o|
|00005ba0| 66 20 27 70 6f 72 74 61 | 62 6c 65 2f 6d 65 74 61 |f 'porta|ble/meta|
|00005bb0| 2e 63 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |.c'.fi.i|f test -|
|00005bc0| 66 20 27 70 6f 72 74 61 | 62 6c 65 2f 6d 76 63 75 |f 'porta|ble/mvcu|
|00005bd0| 72 2e 63 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |r.c' -a |"${1}" !|
|00005be0| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|00005bf0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00005c00| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|00005c10| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 70 6f |sting fi|le \"'po|
|00005c20| 72 74 61 62 6c 65 2f 6d | 76 63 75 72 2e 63 27 5c |rtable/m|vcur.c'\|
|00005c30| 22 0a 65 6c 73 65 0a 20 | 20 65 63 68 6f 20 73 68 |".else. | echo sh|
|00005c40| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00005c50| 22 27 70 6f 72 74 61 62 | 6c 65 2f 6d 76 63 75 72 |"'portab|le/mvcur|
|00005c60| 2e 63 27 5c 22 20 5c 28 | 31 33 38 32 20 63 68 61 |.c'\" \(|1382 cha|
|00005c70| 72 61 63 74 65 72 73 5c | 29 0a 20 20 73 65 64 20 |racters\|). sed |
|00005c80| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 70 6f 72 74 61 |"s/^X//"| >'porta|
|00005c90| 62 6c 65 2f 6d 76 63 75 | 72 2e 63 27 20 3c 3c 27 |ble/mvcu|r.c' <<'|
|00005ca0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 23 64 |END_OF_F|ILE'.X#d|
|00005cb0| 65 66 69 6e 65 09 43 55 | 52 53 45 53 5f 4c 49 42 |efine.CU|RSES_LIB|
|00005cc0| 52 41 52 59 09 31 0a 58 | 23 69 6e 63 6c 75 64 65 |RARY.1.X|#include|
|00005cd0| 20 3c 63 75 72 73 65 73 | 2e 68 3e 0a 58 23 75 6e | <curses|.h>.X#un|
|00005ce0| 64 65 66 09 6d 76 63 75 | 72 0a 58 0a 58 23 69 66 |def.mvcu|r.X.X#if|
|00005cf0| 6e 64 65 66 09 4e 44 45 | 42 55 47 0a 58 63 68 61 |ndef.NDE|BUG.Xcha|
|00005d00| 72 20 2a 72 63 73 69 64 | 5f 6d 76 63 75 72 20 3d |r *rcsid|_mvcur =|
|00005d10| 20 22 24 48 65 61 64 65 | 72 3a 20 63 3a 2f 63 75 | "$Heade|r: c:/cu|
|00005d20| 72 73 65 73 2f 70 6f 72 | 74 61 62 6c 65 2f 52 43 |rses/por|table/RC|
|00005d30| 53 2f 6d 76 63 75 72 2e | 63 25 76 20 32 2e 30 20 |S/mvcur.|c%v 2.0 |
|00005d40| 31 39 39 32 2f 31 31 2f | 31 35 20 30 33 3a 32 39 |1992/11/|15 03:29|
|00005d50| 3a 30 30 20 4d 48 20 52 | 65 6c 20 24 22 3b 0a 58 |:00 MH R|el $";.X|
|00005d60| 23 65 6e 64 69 66 0a 58 | 0a 58 0a 58 0a 58 0a 58 |#endif.X|.X.X.X.X|
|00005d70| 2f 2a 6d 61 6e 2d 73 74 | 61 72 74 2a 2a 2a 2a 2a |/*man-st|art*****|
|00005d80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005d90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005da0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005db0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005dc0| 0a 58 0a 58 20 20 6d 76 | 63 75 72 28 29 09 2d 20 |.X.X mv|cur().- |
|00005dd0| 6c 6f 77 2d 6c 65 76 65 | 6c 20 63 75 72 73 6f 72 |low-leve|l cursor|
|00005de0| 20 6d 6f 76 65 6d 65 6e | 74 0a 58 0a 58 20 20 55 | movemen|t.X.X U|
|00005df0| 6c 74 72 69 78 20 34 2e | 31 20 44 65 73 63 72 69 |ltrix 4.|1 Descri|
|00005e00| 70 74 69 6f 6e 3a 0a 58 | 20 09 54 68 69 73 20 66 |ption:.X| .This f|
|00005e10| 75 6e 63 74 69 6f 6e 20 | 63 6f 6e 74 72 6f 6c 73 |unction |controls|
|00005e20| 20 6c 6f 77 2d 6c 65 76 | 65 6c 20 63 75 72 73 6f | low-lev|el curso|
|00005e30| 72 20 6d 6f 74 69 6f 6e | 20 77 69 74 68 20 6f 70 |r motion| with op|
|00005e40| 74 69 6d 69 7a 61 74 69 | 6f 6e 2e 0a 58 0a 58 20 |timizati|on..X.X |
|00005e50| 20 50 44 43 75 72 73 65 | 73 20 44 65 73 63 72 69 | PDCurse|s Descri|
|00005e60| 70 74 69 6f 6e 3a 0a 58 | 20 09 54 68 65 72 65 20 |ption:.X| .There |
|00005e70| 69 73 20 6e 6f 20 6f 70 | 74 69 6d 69 7a 61 74 69 |is no op|timizati|
|00005e80| 6f 6e 20 68 65 72 65 20 | 73 69 6e 63 65 20 74 68 |on here |since th|
|00005e90| 65 20 50 43 20 68 61 73 | 20 6d 65 6d 6f 72 79 20 |e PC has| memory |
|00005ea0| 6d 61 70 70 65 64 0a 58 | 20 09 76 69 64 65 6f 20 |mapped.X| .video |
|00005eb0| 61 6e 64 20 77 65 20 73 | 75 70 70 6f 72 74 2c 20 |and we s|upport, |
|00005ec0| 75 6e 64 65 72 20 63 65 | 72 74 61 69 6e 20 63 6f |under ce|rtain co|
|00005ed0| 6d 70 69 6c 61 74 69 6f | 6e 20 6f 70 74 69 6f 6e |mpilatio|n option|
|00005ee0| 73 2c 20 64 69 72 65 63 | 74 0a 58 20 09 76 69 64 |s, direc|t.X .vid|
|00005ef0| 65 6f 20 77 72 69 74 65 | 73 2e 0a 58 0a 58 20 20 |eo write|s..X.X |
|00005f00| 50 44 43 75 72 73 65 73 | 20 52 65 74 75 72 6e 20 |PDCurses| Return |
|00005f10| 56 61 6c 75 65 3a 0a 58 | 20 09 54 68 65 20 6d 76 |Value:.X| .The mv|
|00005f20| 63 75 72 28 29 20 66 75 | 6e 63 74 69 6f 6e 20 72 |cur() fu|nction r|
|00005f30| 65 74 75 72 6e 73 20 4f | 4b 20 6f 6e 20 73 75 63 |eturns O|K on suc|
|00005f40| 63 65 73 73 20 61 6e 64 | 20 45 52 52 20 6f 6e 20 |cess and| ERR on |
|00005f50| 65 72 72 6f 72 2e 0a 58 | 0a 58 20 20 50 44 43 75 |error..X|.X PDCu|
|00005f60| 72 73 65 73 20 45 72 72 | 6f 72 73 3a 0a 58 20 09 |rses Err|ors:.X .|
|00005f70| 49 66 20 74 68 65 20 6e | 65 77 20 63 75 72 73 6f |If the n|ew curso|
|00005f80| 72 20 70 6f 73 69 74 69 | 6f 6e 20 69 73 20 6f 75 |r positi|on is ou|
|00005f90| 74 73 69 64 65 20 74 68 | 65 20 70 68 79 73 69 63 |tside th|e physic|
|00005fa0| 61 6c 20 73 63 72 65 65 | 6e 20 73 69 7a 65 2c 0a |al scree|n size,.|
|00005fb0| 58 20 09 61 6e 20 65 72 | 72 6f 72 20 6f 63 63 75 |X .an er|ror occu|
|00005fc0| 72 73 2e 0a 58 0a 58 20 | 20 50 6f 72 74 61 62 69 |rs..X.X | Portabi|
|00005fd0| 6c 69 74 79 3a 0a 58 20 | 09 50 44 43 75 72 73 65 |lity:.X |.PDCurse|
|00005fe0| 73 09 69 6e 74 20 6d 76 | 63 75 72 28 69 6e 74 20 |s.int mv|cur(int |
|00005ff0| 6f 6c 64 72 6f 77 2c 69 | 6e 74 20 6f 6c 64 63 6f |oldrow,i|nt oldco|
|00006000| 6c 2c 69 6e 74 20 6e 65 | 77 72 6f 77 2c 69 6e 74 |l,int ne|wrow,int|
|00006010| 20 6e 65 77 63 6f 6c 29 | 3b 0a 58 20 09 42 53 44 | newcol)|;.X .BSD|
|00006020| 20 43 75 72 73 65 73 09 | 69 6e 74 20 6d 76 63 75 | Curses.|int mvcu|
|00006030| 72 28 69 6e 74 20 6f 6c | 64 72 6f 77 2c 69 6e 74 |r(int ol|drow,int|
|00006040| 20 6f 6c 64 63 6f 6c 2c | 69 6e 74 20 6e 65 77 72 | oldcol,|int newr|
|00006050| 6f 77 2c 69 6e 74 20 6e | 65 77 63 6f 6c 29 3b 0a |ow,int n|ewcol);.|
|00006060| 58 20 09 53 59 53 20 56 | 20 43 75 72 73 65 73 09 |X .SYS V| Curses.|
|00006070| 69 6e 74 20 6d 76 63 75 | 72 28 69 6e 74 20 6f 6c |int mvcu|r(int ol|
|00006080| 64 72 6f 77 2c 69 6e 74 | 20 6f 6c 64 63 6f 6c 2c |drow,int| oldcol,|
|00006090| 69 6e 74 20 6e 65 77 72 | 6f 77 2c 69 6e 74 20 6e |int newr|ow,int n|
|000060a0| 65 77 63 6f 6c 29 3b 0a | 58 0a 58 2a 2a 6d 61 6e |ewcol);.|X.X**man|
|000060b0| 2d 65 6e 64 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |-end****|********|
|000060c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000060d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000060e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000060f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 0a 58 0a 58 69 |********|**/.X.Xi|
|00006100| 6e 74 09 6d 76 63 75 72 | 28 69 6e 74 20 6f 6c 64 |nt.mvcur|(int old|
|00006110| 72 6f 77 2c 20 69 6e 74 | 20 6f 6c 64 63 6f 6c 2c |row, int| oldcol,|
|00006120| 20 69 6e 74 20 6e 65 77 | 72 6f 77 2c 20 69 6e 74 | int new|row, int|
|00006130| 20 6e 65 77 63 6f 6c 29 | 0a 58 7b 0a 58 23 69 66 | newcol)|.X{.X#if|
|00006140| 64 65 66 09 54 43 0a 58 | 23 20 20 70 72 61 67 6d |def.TC.X|# pragm|
|00006150| 61 20 61 72 67 73 75 73 | 65 64 0a 58 23 65 6e 64 |a argsus|ed.X#end|
|00006160| 69 66 0a 58 09 69 66 20 | 28 28 6e 65 77 72 6f 77 |if.X.if |((newrow|
|00006170| 20 3e 3d 20 4c 49 4e 45 | 53 29 09 7c 7c 0a 58 09 | >= LINE|S).||.X.|
|00006180| 20 20 20 20 28 6e 65 77 | 63 6f 6c 20 3e 3d 20 43 | (new|col >= C|
|00006190| 4f 4c 53 29 09 7c 7c 0a | 58 09 20 20 20 20 28 6e |OLS).||.|X. (n|
|000061a0| 65 77 72 6f 77 20 3c 20 | 30 29 09 7c 7c 0a 58 09 |ewrow < |0).||.X.|
|000061b0| 20 20 20 20 28 6e 65 77 | 63 6f 6c 20 3c 20 30 29 | (new|col < 0)|
|000061c0| 29 0a 58 09 7b 0a 58 09 | 09 72 65 74 75 72 6e 28 |).X.{.X.|.return(|
|000061d0| 20 45 52 52 20 29 3b 0a | 58 09 7d 0a 58 09 50 44 | ERR );.|X.}.X.PD|
|000061e0| 43 5f 67 6f 74 6f 78 79 | 28 20 6e 65 77 72 6f 77 |C_gotoxy|( newrow|
|000061f0| 2c 20 6e 65 77 63 6f 6c | 20 29 3b 0a 58 09 5f 63 |, newcol| );.X._c|
|00006200| 75 72 73 76 61 72 2e 63 | 75 72 73 72 6f 77 20 3d |ursvar.c|ursrow =|
|00006210| 20 6e 65 77 72 6f 77 3b | 0a 58 09 5f 63 75 72 73 | newrow;|.X._curs|
|00006220| 76 61 72 2e 63 75 72 73 | 63 6f 6c 20 3d 20 6e 65 |var.curs|col = ne|
|00006230| 77 63 6f 6c 3b 0a 58 09 | 72 65 74 75 72 6e 28 20 |wcol;.X.|return( |
|00006240| 4f 4b 20 29 3b 0a 58 7d | 0a 45 4e 44 5f 4f 46 5f |OK );.X}|.END_OF_|
|00006250| 46 49 4c 45 0a 20 20 69 | 66 20 74 65 73 74 20 31 |FILE. i|f test 1|
|00006260| 33 38 32 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |382 -ne |`wc -c <|
|00006270| 27 70 6f 72 74 61 62 6c | 65 2f 6d 76 63 75 72 2e |'portabl|e/mvcur.|
|00006280| 63 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |c'`; the|n. ec|
|00006290| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 70 6f 72 74 |ho shar:| \"'port|
|000062a0| 61 62 6c 65 2f 6d 76 63 | 75 72 2e 63 27 5c 22 20 |able/mvc|ur.c'\" |
|000062b0| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|000062c0| 6f 6e 67 20 73 69 7a 65 | 21 0a 20 20 66 69 0a 20 |ong size|!. fi. |
|000062d0| 20 23 20 65 6e 64 20 6f | 66 20 27 70 6f 72 74 61 | # end o|f 'porta|
|000062e0| 62 6c 65 2f 6d 76 63 75 | 72 2e 63 27 0a 66 69 0a |ble/mvcu|r.c'.fi.|
|000062f0| 69 66 20 74 65 73 74 20 | 2d 66 20 27 70 6f 72 74 |if test |-f 'port|
|00006300| 61 62 6c 65 2f 6d 76 77 | 69 6e 2e 63 27 20 2d 61 |able/mvw|in.c' -a|
|00006310| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00006320| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00006330| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00006340| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|00006350| 69 6c 65 20 5c 22 27 70 | 6f 72 74 61 62 6c 65 2f |ile \"'p|ortable/|
|00006360| 6d 76 77 69 6e 2e 63 27 | 5c 22 0a 65 6c 73 65 0a |mvwin.c'|\".else.|
|00006370| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 | echo s|har: Ext|
|00006380| 72 61 63 74 69 6e 67 20 | 5c 22 27 70 6f 72 74 61 |racting |\"'porta|
|00006390| 62 6c 65 2f 6d 76 77 69 | 6e 2e 63 27 5c 22 20 5c |ble/mvwi|n.c'\" \|
|000063a0| 28 31 32 35 33 20 63 68 | 61 72 61 63 74 65 72 73 |(1253 ch|aracters|
|000063b0| 5c 29 0a 20 20 73 65 64 | 20 22 73 2f 5e 58 2f 2f |\). sed| "s/^X//|
|000063c0| 22 20 3e 27 70 6f 72 74 | 61 62 6c 65 2f 6d 76 77 |" >'port|able/mvw|
|000063d0| 69 6e 2e 63 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |in.c' <<|'END_OF_|
|000063e0| 46 49 4c 45 27 0a 58 23 | 64 65 66 69 6e 65 09 43 |FILE'.X#|define.C|
|000063f0| 55 52 53 45 53 5f 4c 49 | 42 52 41 52 59 09 31 0a |URSES_LI|BRARY.1.|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.