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

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 46 72 |.sources|.misc.Fr|
|00000020| 6f 6d 3a 20 4d 2e 48 65 | 73 73 6c 69 6e 67 40 67 |om: M.He|ssling@g|
|00000030| 75 2e 65 64 75 2e 61 75 | 20 28 4d 61 72 6b 20 48 |u.edu.au| (Mark H|
|00000040| 65 73 73 6c 69 6e 67 29 | 0a 53 75 62 6a 65 63 74 |essling)|.Subject|
|00000050| 3a 20 20 76 33 33 69 30 | 39 30 3a 20 20 70 64 63 |: v33i0|90: pdc|
|00000060| 75 72 73 65 73 20 2d 20 | 50 75 62 6c 69 63 20 44 |urses - |Public D|
|00000070| 6f 6d 61 69 6e 20 63 75 | 72 73 65 73 20 6c 69 62 |omain cu|rses lib|
|00000080| 72 61 72 79 20 66 6f 72 | 20 44 4f 53 20 61 6e 64 |rary for| DOS and|
|00000090| 20 4f 53 2f 32 20 76 32 | 2e 30 2c 20 50 61 72 74 | OS/2 v2|.0, Part|
|000000a0| 31 30 2f 31 31 0a 4d 65 | 73 73 61 67 65 2d 49 44 |10/11.Me|ssage-ID|
|000000b0| 3a 20 3c 31 39 39 32 4e | 6f 76 31 39 2e 30 34 30 |: <1992N|ov19.040|
|000000c0| 38 35 34 2e 38 33 38 33 | 40 73 70 61 72 6b 79 2e |854.8383|@sparky.|
|000000d0| 69 6d 64 2e 73 74 65 72 | 6c 69 6e 67 2e 63 6f 6d |imd.ster|ling.com|
|000000e0| 3e 0a 58 2d 4d 64 34 2d | 53 69 67 6e 61 74 75 72 |>.X-Md4-|Signatur|
|000000f0| 65 3a 20 34 35 62 32 62 | 64 61 39 63 65 30 32 38 |e: 45b2b|da9ce028|
|00000100| 61 30 63 32 37 36 65 64 | 35 61 39 66 64 62 36 34 |a0c276ed|5a9fdb64|
|00000110| 62 64 63 0a 44 61 74 65 | 3a 20 54 68 75 2c 20 31 |bdc.Date|: Thu, 1|
|00000120| 39 20 4e 6f 76 20 31 39 | 39 32 20 30 34 3a 30 38 |9 Nov 19|92 04:08|
|00000130| 3a 35 34 20 47 4d 54 0a | 41 70 70 72 6f 76 65 64 |:54 GMT.|Approved|
|00000140| 3a 20 6b 65 6e 74 40 73 | 70 61 72 6b 79 2e 69 6d |: kent@s|parky.im|
|00000150| 64 2e 73 74 65 72 6c 69 | 6e 67 2e 63 6f 6d 0a 0a |d.sterli|ng.com..|
|00000160| 53 75 62 6d 69 74 74 65 | 64 2d 62 79 3a 20 4d 2e |Submitte|d-by: M.|
|00000170| 48 65 73 73 6c 69 6e 67 | 40 67 75 2e 65 64 75 2e |Hessling|@gu.edu.|
|00000180| 61 75 20 28 4d 61 72 6b | 20 48 65 73 73 6c 69 6e |au (Mark| Hesslin|
|00000190| 67 29 0a 50 6f 73 74 69 | 6e 67 2d 6e 75 6d 62 65 |g).Posti|ng-numbe|
|000001a0| 72 3a 20 56 6f 6c 75 6d | 65 20 33 33 2c 20 49 73 |r: Volum|e 33, Is|
|000001b0| 73 75 65 20 39 30 0a 41 | 72 63 68 69 76 65 2d 6e |sue 90.A|rchive-n|
|000001c0| 61 6d 65 3a 20 70 64 63 | 75 72 73 65 73 2f 70 61 |ame: pdc|urses/pa|
|000001d0| 72 74 31 30 0a 45 6e 76 | 69 72 6f 6e 6d 65 6e 74 |rt10.Env|ironment|
|000001e0| 3a 20 44 4f 53 2c 4f 53 | 2f 32 2c 41 4e 53 49 2d |: DOS,OS|/2,ANSI-|
|000001f0| 43 0a 0a 23 21 20 2f 62 | 69 6e 2f 73 68 0a 23 20 |C..#! /b|in/sh.# |
|00000200| 54 68 69 73 20 69 73 20 | 61 20 73 68 65 6c 6c 20 |This is |a shell |
|00000210| 61 72 63 68 69 76 65 2e | 20 20 52 65 6d 6f 76 65 |archive.| Remove|
|00000220| 20 61 6e 79 74 68 69 6e | 67 20 62 65 66 6f 72 65 | anythin|g before|
|00000230| 20 74 68 69 73 20 6c 69 | 6e 65 2c 20 74 68 65 6e | this li|ne, then|
|00000240| 20 66 65 65 64 20 69 74 | 0a 23 20 69 6e 74 6f 20 | feed it|.# into |
|00000250| 61 20 73 68 65 6c 6c 20 | 76 69 61 20 22 73 68 20 |a shell |via "sh |
|00000260| 66 69 6c 65 22 20 6f 72 | 20 73 69 6d 69 6c 61 72 |file" or| similar|
|00000270| 2e 20 20 54 6f 20 6f 76 | 65 72 77 72 69 74 65 20 |. To ov|erwrite |
|00000280| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 73 2c 0a |existing| files,.|
|00000290| 23 20 74 79 70 65 20 22 | 73 68 20 66 69 6c 65 20 |# type "|sh file |
|000002a0| 2d 63 22 2e 0a 23 20 43 | 6f 6e 74 65 6e 74 73 3a |-c"..# C|ontents:|
|000002b0| 20 20 66 6c 65 78 6f 73 | 2f 5f 31 36 62 69 74 6d | flexos|/_16bitm|
|000002c0| 6f 2e 63 20 66 6c 65 78 | 6f 73 2f 5f 38 62 69 74 |o.c flex|os/_8bit|
|000002d0| 6d 6f 64 2e 63 20 6e 6f | 6e 70 6f 72 74 2f 77 62 |mod.c no|nport/wb|
|000002e0| 6f 72 64 65 72 2e 63 0a | 23 20 20 20 70 64 63 75 |order.c.|# pdcu|
|000002f0| 72 73 65 73 2e 63 66 67 | 20 70 6f 72 74 61 62 6c |rses.cfg| portabl|
|00000300| 65 2f 62 61 75 64 72 61 | 74 65 2e 63 20 70 6f 72 |e/baudra|te.c por|
|00000310| 74 61 62 6c 65 2f 62 65 | 65 70 2e 63 20 70 6f 72 |table/be|ep.c por|
|00000320| 74 61 62 6c 65 2f 62 6f | 78 2e 63 0a 23 20 20 20 |table/bo|x.c.# |
|00000330| 70 6f 72 74 61 62 6c 65 | 2f 63 62 72 65 61 6b 2e |portable|/cbreak.|
|00000340| 63 20 70 6f 72 74 61 62 | 6c 65 2f 64 65 6c 61 79 |c portab|le/delay|
|00000350| 5f 6f 75 2e 63 20 70 6f | 72 74 61 62 6c 65 2f 67 |_ou.c po|rtable/g|
|00000360| 65 74 79 78 2e 63 0a 23 | 20 20 20 70 6f 72 74 61 |etyx.c.#| porta|
|00000370| 62 6c 65 2f 68 61 73 5f | 69 63 2e 63 20 70 6f 72 |ble/has_|ic.c por|
|00000380| 74 61 62 6c 65 2f 69 6e | 69 74 63 6f 6c 6f 2e 63 |table/in|itcolo.c|
|00000390| 20 70 6f 72 74 61 62 6c | 65 2f 6d 65 74 61 2e 63 | portabl|e/meta.c|
|000003a0| 0a 23 20 20 20 70 6f 72 | 74 61 62 6c 65 2f 6d 76 |.# por|table/mv|
|000003b0| 63 75 72 2e 63 20 70 6f | 72 74 61 62 6c 65 2f 6d |cur.c po|rtable/m|
|000003c0| 76 77 69 6e 2e 63 20 70 | 6f 72 74 61 62 6c 65 2f |vwin.c p|ortable/|
|000003d0| 6e 6c 2e 63 0a 23 20 20 | 20 70 6f 72 74 61 62 6c |nl.c.# | portabl|
|000003e0| 65 2f 6e 6f 63 62 72 65 | 61 6b 2e 63 20 70 6f 72 |e/nocbre|ak.c por|
|000003f0| 74 61 62 6c 65 2f 72 65 | 66 72 65 73 68 2e 63 20 |table/re|fresh.c |
|00000400| 70 6f 72 74 61 62 6c 65 | 2f 73 63 72 6f 6c 6c 6f |portable|/scrollo|
|00000410| 6b 2e 63 0a 23 20 20 20 | 70 6f 72 74 61 62 6c 65 |k.c.# |portable|
|00000420| 2f 73 74 61 72 74 63 6f | 6c 2e 63 20 70 6f 72 74 |/startco|l.c port|
|00000430| 61 62 6c 65 2f 74 6f 75 | 63 68 6c 69 6e 2e 63 20 |able/tou|chlin.c |
|00000440| 70 6f 72 74 61 62 6c 65 | 2f 77 63 6c 65 61 72 2e |portable|/wclear.|
|00000450| 63 0a 23 20 20 20 70 6f | 72 74 61 62 6c 65 2f 77 |c.# po|rtable/w|
|00000460| 65 72 61 73 65 2e 63 20 | 70 6f 72 74 61 62 6c 65 |erase.c |portable|
|00000470| 2f 77 69 6e 73 63 68 2e | 63 20 70 72 69 76 61 74 |/winsch.|c privat|
|00000480| 65 2f 5f 61 64 64 74 61 | 69 6c 2e 63 0a 23 20 20 |e/_addta|il.c.# |
|00000490| 20 70 72 69 76 61 74 65 | 2f 5f 63 6b 62 69 6f 73 | private|/_ckbios|
|000004a0| 6b 2e 63 20 70 72 69 76 | 61 74 65 2f 5f 67 63 72 |k.c priv|ate/_gcr|
|000004b0| 73 70 6f 73 2e 63 20 70 | 72 69 76 61 74 65 2f 5f |spos.c p|rivate/_|
|000004c0| 67 63 75 72 63 6f 6c 2e | 63 0a 23 20 20 20 70 72 |gcurcol.|c.# pr|
|000004d0| 69 76 61 74 65 2f 5f 67 | 63 75 72 72 6f 77 2e 63 |ivate/_g|currow.c|
|000004e0| 20 70 72 69 76 61 74 65 | 2f 5f 67 65 74 61 74 74 | private|/_getatt|
|000004f0| 72 2e 63 20 70 72 69 76 | 61 74 65 2f 5f 73 63 72 |r.c priv|ate/_scr|
|00000500| 6e 6d 6f 64 2e 63 0a 23 | 20 57 72 61 70 70 65 64 |nmod.c.#| Wrapped|
|00000510| 20 62 79 20 6b 65 6e 74 | 40 73 70 61 72 6b 79 20 | by kent|@sparky |
|00000520| 6f 6e 20 57 65 64 20 4e | 6f 76 20 31 38 20 32 31 |on Wed N|ov 18 21|
|00000530| 3a 34 34 3a 31 30 20 31 | 39 39 32 0a 50 41 54 48 |:44:10 1|992.PATH|
|00000540| 3d 2f 62 69 6e 3a 2f 75 | 73 72 2f 62 69 6e 3a 2f |=/bin:/u|sr/bin:/|
|00000550| 75 73 72 2f 75 63 62 3a | 2f 75 73 72 2f 6c 6f 63 |usr/ucb:|/usr/loc|
|00000560| 61 6c 2f 62 69 6e 3a 2f | 75 73 72 2f 6c 62 69 6e |al/bin:/|usr/lbin|
|00000570| 20 3b 20 65 78 70 6f 72 | 74 20 50 41 54 48 0a 65 | ; expor|t PATH.e|
|00000580| 63 68 6f 20 49 66 20 74 | 68 69 73 20 61 72 63 68 |cho If t|his arch|
|00000590| 69 76 65 20 69 73 20 63 | 6f 6d 70 6c 65 74 65 2c |ive is c|omplete,|
|000005a0| 20 79 6f 75 20 77 69 6c | 6c 20 73 65 65 20 74 68 | you wil|l see th|
|000005b0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 6d 65 73 73 |e follow|ing mess|
|000005c0| 61 67 65 3a 0a 65 63 68 | 6f 20 27 20 20 20 20 20 |age:.ech|o ' |
|000005d0| 20 20 20 20 20 22 73 68 | 61 72 3a 20 45 6e 64 20 | "sh|ar: End |
|000005e0| 6f 66 20 61 72 63 68 69 | 76 65 20 31 30 20 28 6f |of archi|ve 10 (o|
|000005f0| 66 20 31 31 29 2e 22 27 | 0a 69 66 20 74 65 73 74 |f 11)."'|.if test|
|00000600| 20 2d 66 20 27 66 6c 65 | 78 6f 73 2f 5f 31 36 62 | -f 'fle|xos/_16b|
|00000610| 69 74 6d 6f 2e 63 27 20 | 2d 61 20 22 24 7b 31 7d |itmo.c' |-a "${1}|
|00000620| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00000630| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00000640| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00000650| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00000660| 27 66 6c 65 78 6f 73 2f | 5f 31 36 62 69 74 6d 6f |'flexos/|_16bitmo|
|00000670| 2e 63 27 5c 22 0a 65 6c | 73 65 0a 20 20 65 63 68 |.c'\".el|se. ech|
|00000680| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00000690| 6e 67 20 5c 22 27 66 6c | 65 78 6f 73 2f 5f 31 36 |ng \"'fl|exos/_16|
|000006a0| 62 69 74 6d 6f 2e 63 27 | 5c 22 20 5c 28 31 33 37 |bitmo.c'|\" \(137|
|000006b0| 30 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 20 |0 charac|ters\). |
|000006c0| 20 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 | sed "s/|^X//" >'|
|000006d0| 66 6c 65 78 6f 73 2f 5f | 31 36 62 69 74 6d 6f 2e |flexos/_|16bitmo.|
|000006e0| 63 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |c' <<'EN|D_OF_FIL|
|000006f0| 45 27 0a 58 23 64 65 66 | 69 6e 65 09 43 55 52 53 |E'.X#def|ine.CURS|
|00000700| 45 53 5f 4c 49 42 52 41 | 52 59 09 31 0a 58 23 69 |ES_LIBRA|RY.1.X#i|
|00000710| 6e 63 6c 75 64 65 20 3c | 63 75 72 73 65 73 2e 68 |nclude <|curses.h|
|00000720| 3e 0a 58 0a 58 23 69 66 | 6e 64 65 66 09 4e 44 45 |>.X.X#if|ndef.NDE|
|00000730| 42 55 47 0a 58 63 68 61 | 72 20 2a 72 63 73 69 64 |BUG.Xcha|r *rcsid|
|00000740| 5f 5f 31 36 62 69 74 6d | 6f 20 3d 20 22 24 48 65 |__16bitm|o = "$He|
|00000750| 61 64 65 72 3a 20 63 3a | 2f 63 75 72 73 65 73 2f |ader: c:|/curses/|
|00000760| 66 6c 65 78 6f 73 2f 52 | 43 53 2f 5f 31 36 62 69 |flexos/R|CS/_16bi|
|00000770| 74 6d 6f 64 2e 63 25 76 | 20 32 2e 30 20 31 39 39 |tmod.c%v| 2.0 199|
|00000780| 32 2f 31 31 2f 31 35 20 | 30 32 3a 34 32 3a 30 34 |2/11/15 |02:42:04|
|00000790| 20 6d 68 20 52 65 6c 20 | 24 22 3b 0a 58 23 65 6e | mh Rel |$";.X#en|
|000007a0| 64 69 66 0a 58 0a 58 0a | 58 0a 58 0a 58 23 69 66 |dif.X.X.|X.X.X#if|
|000007b0| 64 65 66 09 46 4c 45 58 | 4f 53 0a 58 2f 2a 6d 61 |def.FLEX|OS.X/*ma|
|000007c0| 6e 2d 73 74 61 72 74 2a | 2a 2a 2a 2a 2a 2a 2a 2a |n-start*|********|
|000007d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000007e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000007f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000800| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0a 58 0a 58 |********|****.X.X|
|00000810| 20 20 5f 66 6c 65 78 6f | 73 5f 31 36 62 69 74 6d | _flexo|s_16bitm|
|00000820| 6f 64 65 28 29 09 2d 20 | 50 75 74 73 20 63 6f 6e |ode().- |Puts con|
|00000830| 73 6f 6c 65 20 31 36 20 | 62 69 74 20 6d 6f 64 65 |sole 16 |bit mode|
|00000840| 2e 0a 58 0a 58 20 20 50 | 44 43 75 72 73 65 73 20 |..X.X P|DCurses |
|00000850| 44 65 73 63 72 69 70 74 | 69 6f 6e 3a 0a 58 20 09 |Descript|ion:.X .|
|00000860| 54 68 69 73 20 72 6f 75 | 74 69 6e 65 20 73 65 74 |This rou|tine set|
|00000870| 73 20 31 36 20 62 69 74 | 20 6d 6f 64 65 20 28 38 |s 16 bit| mode (8|
|00000880| 20 62 69 74 20 63 68 61 | 72 61 63 74 65 72 20 2b | bit cha|racter +|
|00000890| 0a 58 20 09 38 20 62 69 | 74 20 61 74 74 72 69 62 |.X .8 bi|t attrib|
|000008a0| 75 74 65 29 20 66 6f 72 | 20 46 6c 65 78 6f 73 2e |ute) for| Flexos.|
|000008b0| 0a 58 0a 58 20 20 50 44 | 43 75 72 73 65 73 20 52 |.X.X PD|Curses R|
|000008c0| 65 74 75 72 6e 20 56 61 | 6c 75 65 3a 0a 58 20 09 |eturn Va|lue:.X .|
|000008d0| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 72 65 |This fun|ction re|
|000008e0| 74 75 72 6e 73 20 4f 4b | 20 6f 6e 20 73 75 63 63 |turns OK| on succ|
|000008f0| 65 73 73 20 61 6e 64 20 | 45 52 52 20 6f 6e 20 65 |ess and |ERR on e|
|00000900| 72 72 6f 72 2e 0a 58 0a | 58 20 20 50 44 43 75 72 |rror..X.|X PDCur|
|00000910| 73 65 73 20 45 72 72 6f | 72 73 3a 0a 58 20 09 55 |ses Erro|rs:.X .U|
|00000920| 6e 64 65 72 20 46 4c 45 | 58 4f 53 2c 20 61 6e 20 |nder FLE|XOS, an |
|00000930| 45 52 52 20 77 69 6c 6c | 20 62 65 20 72 65 74 75 |ERR will| be retu|
|00000940| 72 6e 65 64 20 69 66 20 | 74 68 65 20 73 5f 67 65 |rned if |the s_ge|
|00000950| 74 28 29 20 63 61 6c 6c | 0a 58 20 09 66 61 69 6c |t() call|.X .fail|
|00000960| 73 2c 20 6f 72 20 69 66 | 20 74 68 65 20 73 5f 73 |s, or if| the s_s|
|00000970| 65 74 28 29 20 63 61 6c | 6c 20 66 61 69 6c 73 2e |et() cal|l fails.|
|00000980| 20 20 59 6f 75 20 61 72 | 65 20 72 65 66 65 72 72 | You ar|e referr|
|00000990| 65 64 20 74 6f 0a 58 20 | 09 74 68 65 20 46 6c 65 |ed to.X |.the Fle|
|000009a0| 78 6f 73 20 50 72 6f 67 | 72 61 6d 6d 65 72 27 73 |xos Prog|rammer's|
|000009b0| 20 52 65 66 65 72 65 6e | 63 65 20 47 75 69 64 65 | Referen|ce Guide|
|000009c0| 20 66 6f 72 20 64 65 74 | 61 69 6c 73 20 6f 6e 20 | for det|ails on |
|000009d0| 74 68 65 0a 58 20 09 61 | 63 74 75 61 6c 20 65 72 |the.X .a|ctual er|
|000009e0| 72 6f 72 2e 0a 58 0a 58 | 20 20 50 6f 72 74 61 62 |ror..X.X| Portab|
|000009f0| 69 6c 69 74 79 3a 0a 58 | 20 09 50 44 43 75 72 73 |ility:.X| .PDCurs|
|00000a00| 65 73 09 69 6e 74 20 5f | 66 6c 65 78 6f 73 5f 31 |es.int _|flexos_1|
|00000a10| 36 62 69 74 6d 6f 64 65 | 28 20 76 6f 69 64 20 29 |6bitmode|( void )|
|00000a20| 3b 0a 58 0a 58 2a 2a 6d | 61 6e 2d 65 6e 64 2a 2a |;.X.X**m|an-end**|
|00000a30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000a40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000a50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000a60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000a70| 2a 2a 2a 2a 2f 0a 58 0a | 58 69 6e 74 09 5f 66 6c |****/.X.|Xint._fl|
|00000a80| 65 78 6f 73 5f 31 36 62 | 69 74 6d 6f 64 65 28 76 |exos_16b|itmode(v|
|00000a90| 6f 69 64 29 0a 58 7b 0a | 58 65 78 74 65 72 6e 09 |oid).X{.|Xextern.|
|00000aa0| 56 49 52 43 4f 4e 09 76 | 69 72 3b 09 09 2f 2a 20 |VIRCON.v|ir;../* |
|00000ab0| 41 6c 6c 6f 63 61 74 65 | 20 61 20 56 69 72 74 75 |Allocate| a Virtu|
|00000ac0| 61 6c 20 43 6f 6e 73 6f | 6c 65 20 53 74 72 75 63 |al Conso|le Struc|
|00000ad0| 74 75 72 65 20 2a 2f 0a | 58 0a 58 09 72 65 74 63 |ture */.|X.X.retc|
|00000ae0| 6f 64 65 20 3d 20 73 5f | 67 65 74 28 54 5f 56 49 |ode = s_|get(T_VI|
|00000af0| 52 43 4f 4e 2c 20 30 4c | 2c 20 28 63 68 61 72 20 |RCON, 0L|, (char |
|00000b00| 2a 29 20 26 76 69 72 2c | 20 28 6c 6f 6e 67 29 20 |*) &vir,| (long) |
|00000b10| 73 69 7a 65 6f 66 28 76 | 69 72 29 29 3b 0a 58 09 |sizeof(v|ir));.X.|
|00000b20| 69 66 20 28 72 65 74 63 | 6f 64 65 20 3c 20 30 4c |if (retc|ode < 0L|
|00000b30| 29 0a 58 09 09 72 65 74 | 75 72 6e 28 20 45 52 52 |).X..ret|urn( ERR|
|00000b40| 20 29 3b 0a 58 0a 58 09 | 76 69 72 2e 76 63 5f 6b | );.X.X.|vir.vc_k|
|00000b50| 62 6d 6f 64 65 20 3d 20 | 76 69 72 2e 76 63 5f 6b |bmode = |vir.vc_k|
|00000b60| 62 6d 6f 64 65 20 7c 20 | 28 56 43 4b 4d 5f 4e 41 |bmode | |(VCKM_NA|
|00000b70| 42 4f 52 54 20 7c 20 56 | 43 4b 4d 5f 4e 53 54 4f |BORT | V|CKM_NSTO|
|00000b80| 50 20 7c 0a 58 09 09 09 | 09 09 20 56 43 4b 4d 5f |P |.X...|.. VCKM_|
|00000b90| 4e 58 4c 41 54 20 20 7c | 20 56 43 4b 4d 5f 4e 45 |NXLAT || VCKM_NE|
|00000ba0| 53 43 20 20 7c 0a 58 09 | 09 09 09 09 20 56 43 4b |SC |.X.|.... VCK|
|00000bb0| 4d 5f 31 36 42 49 54 20 | 20 7c 20 56 43 4b 4d 5f |M_16BIT | | VCKM_|
|00000bc0| 4e 45 43 48 4f 20 7c 0a | 58 09 09 09 09 09 20 56 |NECHO |.|X..... V|
|00000bd0| 43 4b 4d 5f 4e 45 4f 46 | 29 3b 0a 58 0a 58 09 76 |CKM_NEOF|);.X.X.v|
|00000be0| 69 72 2e 76 63 5f 73 6d | 6f 64 65 20 3d 20 76 69 |ir.vc_sm|ode = vi|
|00000bf0| 72 2e 76 63 5f 73 6d 6f | 64 65 20 7c 20 56 43 53 |r.vc_smo|de | VCS|
|00000c00| 4d 5f 31 36 42 49 54 3b | 0a 58 0a 58 09 72 65 74 |M_16BIT;|.X.X.ret|
|00000c10| 63 6f 64 65 20 3d 20 73 | 5f 73 65 74 28 54 5f 56 |code = s|_set(T_V|
|00000c20| 49 52 43 4f 4e 2c 20 30 | 4c 2c 20 28 63 68 61 72 |IRCON, 0|L, (char|
|00000c30| 20 2a 29 20 26 76 69 72 | 2c 20 28 6c 6f 6e 67 29 | *) &vir|, (long)|
|00000c40| 20 73 69 7a 65 6f 66 28 | 76 69 72 29 29 3b 0a 58 | sizeof(|vir));.X|
|00000c50| 09 72 65 74 75 72 6e 28 | 20 28 72 65 74 63 6f 64 |.return(| (retcod|
|00000c60| 65 20 3c 20 30 4c 29 20 | 3f 20 45 52 52 20 3a 20 |e < 0L) |? ERR : |
|00000c70| 4f 4b 20 29 3b 0a 58 7d | 0a 58 23 65 6e 64 69 66 |OK );.X}|.X#endif|
|00000c80| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 20 20 69 |.END_OF_|FILE. i|
|00000c90| 66 20 74 65 73 74 20 31 | 33 37 30 20 2d 6e 65 20 |f test 1|370 -ne |
|00000ca0| 60 77 63 20 2d 63 20 3c | 27 66 6c 65 78 6f 73 2f |`wc -c <|'flexos/|
|00000cb0| 5f 31 36 62 69 74 6d 6f | 2e 63 27 60 3b 20 74 68 |_16bitmo|.c'`; th|
|00000cc0| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00000cd0| 3a 20 5c 22 27 66 6c 65 | 78 6f 73 2f 5f 31 36 62 |: \"'fle|xos/_16b|
|00000ce0| 69 74 6d 6f 2e 63 27 5c | 22 20 75 6e 70 61 63 6b |itmo.c'\|" unpack|
|00000cf0| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00000d00| 7a 65 21 0a 20 20 66 69 | 0a 20 20 23 20 65 6e 64 |ze!. fi|. # end|
|00000d10| 20 6f 66 20 27 66 6c 65 | 78 6f 73 2f 5f 31 36 62 | of 'fle|xos/_16b|
|00000d20| 69 74 6d 6f 2e 63 27 0a | 66 69 0a 69 66 20 74 65 |itmo.c'.|fi.if te|
|00000d30| 73 74 20 2d 66 20 27 66 | 6c 65 78 6f 73 2f 5f 38 |st -f 'f|lexos/_8|
|00000d40| 62 69 74 6d 6f 64 2e 63 | 27 20 2d 61 20 22 24 7b |bitmod.c|' -a "${|
|00000d50| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00000d60| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00000d70| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00000d80| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00000d90| 5c 22 27 66 6c 65 78 6f | 73 2f 5f 38 62 69 74 6d |\"'flexo|s/_8bitm|
|00000da0| 6f 64 2e 63 27 5c 22 0a | 65 6c 73 65 0a 20 20 65 |od.c'\".|else. e|
|00000db0| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00000dc0| 74 69 6e 67 20 5c 22 27 | 66 6c 65 78 6f 73 2f 5f |ting \"'|flexos/_|
|00000dd0| 38 62 69 74 6d 6f 64 2e | 63 27 5c 22 20 5c 28 31 |8bitmod.|c'\" \(1|
|00000de0| 32 35 34 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |254 char|acters\)|
|00000df0| 0a 20 20 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |. sed "|s/^X//" |
|00000e00| 3e 27 66 6c 65 78 6f 73 | 2f 5f 38 62 69 74 6d 6f |>'flexos|/_8bitmo|
|00000e10| 64 2e 63 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |d.c' <<'|END_OF_F|
|00000e20| 49 4c 45 27 0a 58 23 64 | 65 66 69 6e 65 09 43 55 |ILE'.X#d|efine.CU|
|00000e30| 52 53 45 53 5f 4c 49 42 | 52 41 52 59 09 31 0a 58 |RSES_LIB|RARY.1.X|
|00000e40| 23 69 6e 63 6c 75 64 65 | 20 3c 63 75 72 73 65 73 |#include| <curses|
|00000e50| 2e 68 3e 0a 58 0a 58 23 | 69 66 6e 64 65 66 09 4e |.h>.X.X#|ifndef.N|
|00000e60| 44 45 42 55 47 0a 58 63 | 68 61 72 20 2a 72 63 73 |DEBUG.Xc|har *rcs|
|00000e70| 69 64 5f 5f 38 62 69 74 | 6d 6f 64 20 3d 20 22 24 |id__8bit|mod = "$|
|00000e80| 48 65 61 64 65 72 3a 20 | 63 3a 2f 63 75 72 73 65 |Header: |c:/curse|
|00000e90| 73 2f 66 6c 65 78 6f 73 | 2f 52 43 53 2f 5f 38 62 |s/flexos|/RCS/_8b|
|00000ea0| 69 74 6d 6f 64 2e 63 25 | 76 20 32 2e 30 20 31 39 |itmod.c%|v 2.0 19|
|00000eb0| 39 32 2f 31 31 2f 31 35 | 20 30 32 3a 34 32 3a 31 |92/11/15| 02:42:1|
|00000ec0| 30 20 6d 68 20 52 65 6c | 20 24 22 3b 0a 58 23 65 |0 mh Rel| $";.X#e|
|00000ed0| 6e 64 69 66 0a 58 0a 58 | 0a 58 0a 58 0a 58 23 69 |ndif.X.X|.X.X.X#i|
|00000ee0| 66 64 65 66 09 46 4c 45 | 58 4f 53 0a 58 2f 2a 6d |fdef.FLE|XOS.X/*m|
|00000ef0| 61 6e 2d 73 74 61 72 74 | 2a 2a 2a 2a 2a 2a 2a 2a |an-start|********|
|00000f00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000f10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000f20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000f30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0a 58 0a |********|*****.X.|
|00000f40| 58 20 20 5f 66 6c 65 78 | 6f 73 5f 38 62 69 74 6d |X _flex|os_8bitm|
|00000f50| 6f 64 65 28 29 09 2d 20 | 50 75 74 73 20 63 6f 6e |ode().- |Puts con|
|00000f60| 73 6f 6c 65 20 69 6e 74 | 6f 20 38 20 62 69 74 20 |sole int|o 8 bit |
|00000f70| 6d 6f 64 65 2e 0a 58 0a | 58 20 20 50 44 43 75 72 |mode..X.|X PDCur|
|00000f80| 73 65 73 20 44 65 73 63 | 72 69 70 74 69 6f 6e 3a |ses Desc|ription:|
|00000f90| 0a 58 20 09 54 68 69 73 | 20 72 6f 75 74 69 6e 65 |.X .This| routine|
|00000fa0| 20 73 65 74 73 20 38 20 | 62 69 74 20 6d 6f 64 65 | sets 8 |bit mode|
|00000fb0| 20 28 6e 6f 20 38 20 62 | 69 74 20 61 74 74 72 69 | (no 8 b|it attri|
|00000fc0| 62 75 74 65 29 20 66 6f | 72 20 46 6c 65 78 6f 73 |bute) fo|r Flexos|
|00000fd0| 2e 0a 58 0a 58 20 20 50 | 44 43 75 72 73 65 73 20 |..X.X P|DCurses |
|00000fe0| 52 65 74 75 72 6e 20 56 | 61 6c 75 65 3a 0a 58 20 |Return V|alue:.X |
|00000ff0| 09 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 72 |.This fu|nction r|
|00001000| 65 74 75 72 6e 73 20 4f | 4b 20 6f 6e 20 73 75 63 |eturns O|K on suc|
|00001010| 63 65 73 73 20 61 6e 64 | 20 45 52 52 20 6f 6e 20 |cess and| ERR on |
|00001020| 65 72 72 6f 72 2e 0a 58 | 0a 58 20 20 50 44 43 75 |error..X|.X PDCu|
|00001030| 72 73 65 73 20 45 72 72 | 6f 72 73 3a 0a 58 20 09 |rses Err|ors:.X .|
|00001040| 55 6e 64 65 72 20 46 4c | 45 58 4f 53 2c 20 61 6e |Under FL|EXOS, an|
|00001050| 20 45 52 52 20 77 69 6c | 6c 20 62 65 20 72 65 74 | ERR wil|l be ret|
|00001060| 75 72 6e 65 64 20 69 66 | 20 74 68 65 20 73 5f 67 |urned if| the s_g|
|00001070| 65 74 28 29 20 63 61 6c | 6c 0a 58 20 09 66 61 69 |et() cal|l.X .fai|
|00001080| 6c 73 2c 20 6f 72 20 69 | 66 20 74 68 65 20 73 5f |ls, or i|f the s_|
|00001090| 73 65 74 28 29 20 63 61 | 6c 6c 20 66 61 69 6c 73 |set() ca|ll fails|
|000010a0| 2e 20 20 59 6f 75 20 61 | 72 65 20 72 65 66 65 72 |. You a|re refer|
|000010b0| 72 65 64 20 74 6f 0a 58 | 20 09 74 68 65 20 46 6c |red to.X| .the Fl|
|000010c0| 65 78 6f 73 20 50 72 6f | 67 72 61 6d 6d 65 72 27 |exos Pro|grammer'|
|000010d0| 73 20 52 65 66 65 72 65 | 6e 63 65 20 47 75 69 64 |s Refere|nce Guid|
|000010e0| 65 20 66 6f 72 20 64 65 | 74 61 69 6c 73 20 6f 6e |e for de|tails on|
|000010f0| 20 74 68 65 0a 58 20 09 | 61 63 74 75 61 6c 20 65 | the.X .|actual e|
|00001100| 72 72 6f 72 2e 0a 58 0a | 58 20 20 50 6f 72 74 61 |rror..X.|X Porta|
|00001110| 62 69 6c 69 74 79 3a 0a | 58 20 09 50 44 43 75 72 |bility:.|X .PDCur|
|00001120| 73 65 73 09 69 6e 74 20 | 5f 66 6c 65 78 6f 73 5f |ses.int |_flexos_|
|00001130| 31 36 62 69 74 6d 6f 64 | 65 28 20 76 6f 69 64 20 |16bitmod|e( void |
|00001140| 29 3b 0a 58 0a 58 2a 2a | 6d 61 6e 2d 65 6e 64 2a |);.X.X**|man-end*|
|00001150| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001160| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001170| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001180| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001190| 2a 2a 2a 2a 2a 2f 0a 58 | 0a 58 69 6e 74 09 5f 66 |*****/.X|.Xint._f|
|000011a0| 6c 65 78 6f 73 5f 38 62 | 69 74 6d 6f 64 65 28 76 |lexos_8b|itmode(v|
|000011b0| 6f 69 64 29 0a 58 7b 0a | 58 65 78 74 65 72 6e 09 |oid).X{.|Xextern.|
|000011c0| 56 49 52 43 4f 4e 09 76 | 69 72 3b 09 09 2f 2a 20 |VIRCON.v|ir;../* |
|000011d0| 41 6c 6c 6f 63 61 74 65 | 20 61 20 56 69 72 74 75 |Allocate| a Virtu|
|000011e0| 61 6c 20 43 6f 6e 73 6f | 6c 65 20 53 74 72 75 63 |al Conso|le Struc|
|000011f0| 74 75 72 65 20 2a 2f 0a | 58 0a 58 09 72 65 74 63 |ture */.|X.X.retc|
|00001200| 6f 64 65 20 3d 20 73 5f | 67 65 74 28 54 5f 56 49 |ode = s_|get(T_VI|
|00001210| 52 43 4f 4e 2c 20 30 4c | 2c 20 28 63 68 61 72 20 |RCON, 0L|, (char |
|00001220| 2a 29 20 26 76 69 72 2c | 20 28 6c 6f 6e 67 29 20 |*) &vir,| (long) |
|00001230| 73 69 7a 65 6f 66 28 76 | 69 72 29 29 3b 0a 58 09 |sizeof(v|ir));.X.|
|00001240| 69 66 20 28 72 65 74 63 | 6f 64 65 20 3c 20 30 4c |if (retc|ode < 0L|
|00001250| 29 0a 58 09 09 72 65 74 | 75 72 6e 28 20 45 52 52 |).X..ret|urn( ERR|
|00001260| 20 29 3b 0a 58 0a 58 09 | 76 69 72 2e 76 63 5f 6b | );.X.X.|vir.vc_k|
|00001270| 62 6d 6f 64 65 20 3d 20 | 76 69 72 2e 76 63 5f 6b |bmode = |vir.vc_k|
|00001280| 62 6d 6f 64 65 20 26 20 | 7e 56 43 4b 4d 5f 31 36 |bmode & |~VCKM_16|
|00001290| 42 49 54 3b 0a 58 09 76 | 69 72 2e 76 63 5f 73 6d |BIT;.X.v|ir.vc_sm|
|000012a0| 6f 64 65 20 3d 20 76 69 | 72 2e 76 63 5f 73 6d 6f |ode = vi|r.vc_smo|
|000012b0| 64 65 20 26 20 7e 56 43 | 4b 4d 5f 31 36 42 49 54 |de & ~VC|KM_16BIT|
|000012c0| 3b 0a 58 0a 58 09 72 65 | 74 63 6f 64 65 20 3d 20 |;.X.X.re|tcode = |
|000012d0| 73 5f 73 65 74 28 54 5f | 56 49 52 43 4f 4e 2c 20 |s_set(T_|VIRCON, |
|000012e0| 30 4c 2c 20 28 63 68 61 | 72 20 2a 29 20 26 76 69 |0L, (cha|r *) &vi|
|000012f0| 72 2c 20 28 6c 6f 6e 67 | 29 20 73 69 7a 65 6f 66 |r, (long|) sizeof|
|00001300| 28 76 69 72 29 29 3b 0a | 58 09 72 65 74 75 72 6e |(vir));.|X.return|
|00001310| 28 20 28 72 65 74 63 6f | 64 65 20 3c 20 30 4c 29 |( (retco|de < 0L)|
|00001320| 20 3f 20 45 52 52 20 3a | 20 4f 4b 20 29 3b 0a 58 | ? ERR :| OK );.X|
|00001330| 7d 0a 58 23 65 6e 64 69 | 66 0a 45 4e 44 5f 4f 46 |}.X#endi|f.END_OF|
|00001340| 5f 46 49 4c 45 0a 20 20 | 69 66 20 74 65 73 74 20 |_FILE. |if test |
|00001350| 31 32 35 34 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 |1254 -ne| `wc -c |
|00001360| 3c 27 66 6c 65 78 6f 73 | 2f 5f 38 62 69 74 6d 6f |<'flexos|/_8bitmo|
|00001370| 64 2e 63 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |d.c'`; t|hen. |
|00001380| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 66 6c |echo sha|r: \"'fl|
|00001390| 65 78 6f 73 2f 5f 38 62 | 69 74 6d 6f 64 2e 63 27 |exos/_8b|itmod.c'|
|000013a0| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|000013b0| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 20 20 66 | wrong s|ize!. f|
|000013c0| 69 0a 20 20 23 20 65 6e | 64 20 6f 66 20 27 66 6c |i. # en|d of 'fl|
|000013d0| 65 78 6f 73 2f 5f 38 62 | 69 74 6d 6f 64 2e 63 27 |exos/_8b|itmod.c'|
|000013e0| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|000013f0| 6e 6f 6e 70 6f 72 74 2f | 77 62 6f 72 64 65 72 2e |nonport/|wborder.|
|00001400| 63 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |c' -a "$|{1}" != |
|00001410| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00001420| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00001430| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00001440| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 6e 6f 6e 70 |ing file| \"'nonp|
|00001450| 6f 72 74 2f 77 62 6f 72 | 64 65 72 2e 63 27 5c 22 |ort/wbor|der.c'\"|
|00001460| 0a 65 6c 73 65 0a 20 20 | 65 63 68 6f 20 73 68 61 |.else. |echo sha|
|00001470| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00001480| 27 6e 6f 6e 70 6f 72 74 | 2f 77 62 6f 72 64 65 72 |'nonport|/wborder|
|00001490| 2e 63 27 5c 22 20 5c 28 | 31 31 39 33 20 63 68 61 |.c'\" \(|1193 cha|
|000014a0| 72 61 63 74 65 72 73 5c | 29 0a 20 20 73 65 64 20 |racters\|). sed |
|000014b0| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 6e 6f 6e 70 6f |"s/^X//"| >'nonpo|
|000014c0| 72 74 2f 77 62 6f 72 64 | 65 72 2e 63 27 20 3c 3c |rt/wbord|er.c' <<|
|000014d0| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 23 |'END_OF_|FILE'.X#|
|000014e0| 64 65 66 69 6e 65 09 43 | 55 52 53 45 53 5f 4c 49 |define.C|URSES_LI|
|000014f0| 42 52 41 52 59 09 31 0a | 58 23 69 6e 63 6c 75 64 |BRARY.1.|X#includ|
|00001500| 65 20 3c 63 75 72 73 65 | 73 2e 68 3e 0a 58 23 75 |e <curse|s.h>.X#u|
|00001510| 6e 64 65 66 09 77 62 6f | 72 64 65 72 0a 58 0a 58 |ndef.wbo|rder.X.X|
|00001520| 23 69 66 6e 64 65 66 09 | 4e 44 45 42 55 47 0a 58 |#ifndef.|NDEBUG.X|
|00001530| 63 68 61 72 20 2a 72 63 | 73 69 64 5f 77 62 6f 72 |char *rc|sid_wbor|
|00001540| 64 65 72 20 3d 20 22 24 | 48 65 61 64 65 72 3a 20 |der = "$|Header: |
|00001550| 63 3a 2f 63 75 72 73 65 | 73 2f 6e 6f 6e 70 6f 72 |c:/curse|s/nonpor|
|00001560| 74 2f 52 43 53 2f 77 62 | 6f 72 64 65 72 2e 63 25 |t/RCS/wb|order.c%|
|00001570| 76 20 32 2e 30 20 31 39 | 39 32 2f 31 31 2f 31 35 |v 2.0 19|92/11/15|
|00001580| 20 30 33 3a 31 38 3a 32 | 39 20 4d 48 20 52 65 6c | 03:18:2|9 MH Rel|
|00001590| 20 24 22 3b 0a 58 23 65 | 6e 64 69 66 0a 58 0a 58 | $";.X#e|ndif.X.X|
|000015a0| 0a 58 0a 58 0a 58 2f 2a | 6d 61 6e 2d 73 74 61 72 |.X.X.X/*|man-star|
|000015b0| 74 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |t*******|********|
|000015c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000015d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000015e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000015f0| 2a 2a 2a 2a 2a 2a 0a 58 | 0a 58 20 20 77 62 6f 72 |******.X|.X wbor|
|00001600| 64 65 72 28 29 09 2d 20 | 73 65 74 73 20 74 68 65 |der().- |sets the|
|00001610| 20 62 6f 72 64 65 72 20 | 63 68 61 72 61 63 74 65 | border |characte|
|00001620| 72 73 20 69 6e 20 74 68 | 65 20 70 61 73 73 65 64 |rs in th|e passed|
|00001630| 20 77 69 6e 64 6f 77 2e | 0a 58 0a 58 20 20 50 44 | window.|.X.X PD|
|00001640| 43 75 72 73 65 73 20 44 | 65 73 63 72 69 70 74 69 |Curses D|escripti|
|00001650| 6f 6e 3a 0a 58 20 09 54 | 68 69 73 20 72 6f 75 74 |on:.X .T|his rout|
|00001660| 69 6e 65 20 73 65 74 73 | 20 74 68 65 20 62 6f 72 |ine sets| the bor|
|00001670| 64 65 72 20 63 68 61 72 | 61 63 74 65 72 73 20 66 |der char|acters f|
|00001680| 6f 72 20 74 68 65 20 70 | 61 73 73 65 64 20 77 69 |or the p|assed wi|
|00001690| 6e 64 6f 77 2e 0a 58 0a | 58 20 20 50 44 43 75 72 |ndow..X.|X PDCur|
|000016a0| 73 65 73 20 52 65 74 75 | 72 6e 20 56 61 6c 75 65 |ses Retu|rn Value|
|000016b0| 3a 0a 58 20 09 54 68 69 | 73 20 66 75 6e 63 74 69 |:.X .Thi|s functi|
|000016c0| 6f 6e 20 72 65 74 75 72 | 6e 73 20 4f 4b 20 75 70 |on retur|ns OK up|
|000016d0| 6f 6e 20 73 75 63 63 65 | 73 73 20 6f 74 68 65 72 |on succe|ss other|
|000016e0| 77 69 73 65 20 45 52 52 | 20 69 73 20 72 65 74 75 |wise ERR| is retu|
|000016f0| 72 6e 65 64 2e 0a 58 0a | 58 20 20 50 44 43 75 72 |rned..X.|X PDCur|
|00001700| 73 65 73 20 45 72 72 6f | 72 73 3a 0a 58 20 09 49 |ses Erro|rs:.X .I|
|00001710| 74 20 69 73 20 61 6e 20 | 65 72 72 6f 72 20 66 6f |t is an |error fo|
|00001720| 72 20 73 74 64 73 63 72 | 20 74 6f 20 62 65 20 61 |r stdscr| to be a|
|00001730| 20 4e 55 4c 4c 20 70 6f | 69 6e 74 65 72 2e 0a 58 | NULL po|inter..X|
|00001740| 0a 58 20 20 50 6f 72 74 | 61 62 69 6c 69 74 79 3a |.X Port|ability:|
|00001750| 0a 58 20 09 50 44 43 75 | 72 73 65 73 09 69 6e 74 |.X .PDCu|rses.int|
|00001760| 20 77 62 6f 72 64 65 72 | 28 20 63 68 74 79 70 65 | wborder|( chtype|
|00001770| 20 6c 2c 20 20 63 68 74 | 79 70 65 20 72 2c 20 20 | l, cht|ype r, |
|00001780| 63 68 74 79 70 65 20 74 | 2c 20 20 63 68 74 79 70 |chtype t|, chtyp|
|00001790| 65 20 62 2c 0a 58 20 09 | 09 09 09 20 20 20 20 63 |e b,.X .|... c|
|000017a0| 68 74 79 70 65 20 74 6c | 2c 20 63 68 74 79 70 65 |htype tl|, chtype|
|000017b0| 20 74 72 20 20 63 68 74 | 79 70 65 20 62 6c 2c 20 | tr cht|ype bl, |
|000017c0| 63 68 74 79 70 65 20 62 | 72 20 29 3b 0a 58 0a 58 |chtype b|r );.X.X|
|000017d0| 2a 2a 6d 61 6e 2d 65 6e | 64 2a 2a 2a 2a 2a 2a 2a |**man-en|d*******|
|000017e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000017f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001800| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001810| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2f |********|*******/|
|00001820| 0a 58 0a 58 69 6e 74 09 | 77 62 6f 72 64 65 72 28 |.X.Xint.|wborder(|
|00001830| 57 49 4e 44 4f 57 20 2a | 77 69 6e 2c 63 68 74 79 |WINDOW *|win,chty|
|00001840| 70 65 20 6c 2c 63 68 74 | 79 70 65 20 72 2c 63 68 |pe l,cht|ype r,ch|
|00001850| 74 79 70 65 20 74 2c 63 | 68 74 79 70 65 20 62 2c |type t,c|htype b,|
|00001860| 63 68 74 79 70 65 20 74 | 6c 2c 63 68 74 79 70 65 |chtype t|l,chtype|
|00001870| 20 74 72 2c 63 68 74 79 | 70 65 20 62 6c 2c 63 68 | tr,chty|pe bl,ch|
|00001880| 74 79 70 65 20 62 72 29 | 0a 58 7b 0a 58 09 69 66 |type br)|.X{.X.if|
|00001890| 20 28 77 69 6e 20 3d 3d | 20 28 57 49 4e 44 4f 57 | (win ==| (WINDOW|
|000018a0| 20 2a 29 4e 55 4c 4c 29 | 0a 58 09 09 72 65 74 75 | *)NULL)|.X..retu|
|000018b0| 72 6e 28 20 45 52 52 20 | 29 3b 0a 58 0a 58 09 77 |rn( ERR |);.X.X.w|
|000018c0| 69 6e 2d 3e 5f 62 6f 72 | 64 65 72 63 68 61 72 73 |in->_bor|derchars|
|000018d0| 5b 30 5d 20 3d 20 6c 3b | 0a 58 09 77 69 6e 2d 3e |[0] = l;|.X.win->|
|000018e0| 5f 62 6f 72 64 65 72 63 | 68 61 72 73 5b 31 5d 20 |_borderc|hars[1] |
|000018f0| 3d 20 72 3b 0a 58 09 77 | 69 6e 2d 3e 5f 62 6f 72 |= r;.X.w|in->_bor|
|00001900| 64 65 72 63 68 61 72 73 | 5b 32 5d 20 3d 20 74 3b |derchars|[2] = t;|
|00001910| 0a 58 09 77 69 6e 2d 3e | 5f 62 6f 72 64 65 72 63 |.X.win->|_borderc|
|00001920| 68 61 72 73 5b 33 5d 20 | 3d 20 62 3b 0a 58 09 77 |hars[3] |= b;.X.w|
|00001930| 69 6e 2d 3e 5f 62 6f 72 | 64 65 72 63 68 61 72 73 |in->_bor|derchars|
|00001940| 5b 34 5d 20 3d 20 74 6c | 3b 0a 58 09 77 69 6e 2d |[4] = tl|;.X.win-|
|00001950| 3e 5f 62 6f 72 64 65 72 | 63 68 61 72 73 5b 35 5d |>_border|chars[5]|
|00001960| 20 3d 20 74 72 3b 0a 58 | 09 77 69 6e 2d 3e 5f 62 | = tr;.X|.win->_b|
|00001970| 6f 72 64 65 72 63 68 61 | 72 73 5b 36 5d 20 3d 20 |ordercha|rs[6] = |
|00001980| 62 6c 3b 0a 58 09 77 69 | 6e 2d 3e 5f 62 6f 72 64 |bl;.X.wi|n->_bord|
|00001990| 65 72 63 68 61 72 73 5b | 37 5d 20 3d 20 62 72 3b |erchars[|7] = br;|
|000019a0| 0a 58 09 72 65 74 75 72 | 6e 28 20 4f 4b 20 29 3b |.X.retur|n( OK );|
|000019b0| 0a 58 7d 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |.X}.END_|OF_FILE.|
|000019c0| 20 20 69 66 20 74 65 73 | 74 20 31 31 39 33 20 2d | if tes|t 1193 -|
|000019d0| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 6e 6f 6e 70 |ne `wc -|c <'nonp|
|000019e0| 6f 72 74 2f 77 62 6f 72 | 64 65 72 2e 63 27 60 3b |ort/wbor|der.c'`;|
|000019f0| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00001a00| 68 61 72 3a 20 5c 22 27 | 6e 6f 6e 70 6f 72 74 2f |har: \"'|nonport/|
|00001a10| 77 62 6f 72 64 65 72 2e | 63 27 5c 22 20 75 6e 70 |wborder.|c'\" unp|
|00001a20| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00001a30| 20 73 69 7a 65 21 0a 20 | 20 66 69 0a 20 20 23 20 | size!. | fi. # |
|00001a40| 65 6e 64 20 6f 66 20 27 | 6e 6f 6e 70 6f 72 74 2f |end of '|nonport/|
|00001a50| 77 62 6f 72 64 65 72 2e | 63 27 0a 66 69 0a 69 66 |wborder.|c'.fi.if|
|00001a60| 20 74 65 73 74 20 2d 66 | 20 27 70 64 63 75 72 73 | test -f| 'pdcurs|
|00001a70| 65 73 2e 63 66 67 27 20 | 2d 61 20 22 24 7b 31 7d |es.cfg' |-a "${1}|
|00001a80| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00001a90| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00001aa0| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00001ab0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00001ac0| 27 70 64 63 75 72 73 65 | 73 2e 63 66 67 27 5c 22 |'pdcurse|s.cfg'\"|
|00001ad0| 0a 65 6c 73 65 0a 20 20 | 65 63 68 6f 20 73 68 61 |.else. |echo sha|
|00001ae0| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00001af0| 27 70 64 63 75 72 73 65 | 73 2e 63 66 67 27 5c 22 |'pdcurse|s.cfg'\"|
|00001b00| 20 5c 28 34 33 20 63 68 | 61 72 61 63 74 65 72 73 | \(43 ch|aracters|
|00001b10| 5c 29 0a 20 20 73 65 64 | 20 22 73 2f 5e 58 2f 2f |\). sed| "s/^X//|
|00001b20| 22 20 3e 27 70 64 63 75 | 72 73 65 73 2e 63 66 67 |" >'pdcu|rses.cfg|
|00001b30| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|00001b40| 27 0a 58 2d 31 2d 0a 58 | 2d 32 2d 0a 58 2d 4b 0a |'.X-1-.X|-2-.X-K.|
|00001b50| 58 2d 47 0a 58 2d 72 64 | 0a 58 2d 64 0a 58 2d 56 |X-G.X-rd|.X-d.X-V|
|00001b60| 0a 58 2d 77 2d 65 66 66 | 0a 58 2d 6a 30 0a 58 2d |.X-w-eff|.X-j0.X-|
|00001b70| 63 20 0a 58 2d 50 2d 0a | 45 4e 44 5f 4f 46 5f 46 |c .X-P-.|END_OF_F|
|00001b80| 49 4c 45 0a 20 20 69 66 | 20 74 65 73 74 20 34 33 |ILE. if| test 43|
|00001b90| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 70 64 | -ne `wc| -c <'pd|
|00001ba0| 63 75 72 73 65 73 2e 63 | 66 67 27 60 3b 20 74 68 |curses.c|fg'`; th|
|00001bb0| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00001bc0| 3a 20 5c 22 27 70 64 63 | 75 72 73 65 73 2e 63 66 |: \"'pdc|urses.cf|
|00001bd0| 67 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |g'\" unp|acked wi|
|00001be0| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 20 |th wrong| size!. |
|00001bf0| 20 66 69 0a 20 20 23 20 | 65 6e 64 20 6f 66 20 27 | fi. # |end of '|
|00001c00| 70 64 63 75 72 73 65 73 | 2e 63 66 67 27 0a 66 69 |pdcurses|.cfg'.fi|
|00001c10| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 70 6f 72 |.if test| -f 'por|
|00001c20| 74 61 62 6c 65 2f 62 61 | 75 64 72 61 74 65 2e 63 |table/ba|udrate.c|
|00001c30| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00001c40| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00001c50| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00001c60| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|00001c70| 6e 67 20 66 69 6c 65 20 | 5c 22 27 70 6f 72 74 61 |ng file |\"'porta|
|00001c80| 62 6c 65 2f 62 61 75 64 | 72 61 74 65 2e 63 27 5c |ble/baud|rate.c'\|
|00001c90| 22 0a 65 6c 73 65 0a 20 | 20 65 63 68 6f 20 73 68 |".else. | echo sh|
|00001ca0| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00001cb0| 22 27 70 6f 72 74 61 62 | 6c 65 2f 62 61 75 64 72 |"'portab|le/baudr|
|00001cc0| 61 74 65 2e 63 27 5c 22 | 20 5c 28 31 33 35 38 20 |ate.c'\"| \(1358 |
|00001cd0| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 20 20 73 |characte|rs\). s|
|00001ce0| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 70 6f |ed "s/^X|//" >'po|
|00001cf0| 72 74 61 62 6c 65 2f 62 | 61 75 64 72 61 74 65 2e |rtable/b|audrate.|
|00001d00| 63 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |c' <<'EN|D_OF_FIL|
|00001d10| 45 27 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 6c 69 |E'.X#inc|lude <li|
|00001d20| 6d 69 74 73 2e 68 3e 0a | 58 23 64 65 66 69 6e 65 |mits.h>.|X#define|
|00001d30| 20 43 55 52 53 45 53 5f | 4c 49 42 52 41 52 59 09 | CURSES_|LIBRARY.|
|00001d40| 31 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 63 75 72 |1.X#incl|ude <cur|
|00001d50| 73 65 73 2e 68 3e 0a 58 | 23 75 6e 64 65 66 20 62 |ses.h>.X|#undef b|
|00001d60| 61 75 64 72 61 74 65 0a | 58 0a 58 23 69 66 6e 64 |audrate.|X.X#ifnd|
|00001d70| 65 66 09 4e 44 45 42 55 | 47 0a 58 63 68 61 72 20 |ef.NDEBU|G.Xchar |
|00001d80| 2a 72 63 73 69 64 5f 62 | 61 75 64 72 61 74 65 20 |*rcsid_b|audrate |
|00001d90| 3d 20 22 24 48 65 61 64 | 65 72 3a 20 63 3a 2f 63 |= "$Head|er: c:/c|
|00001da0| 75 72 73 65 73 2f 70 6f | 72 74 61 62 6c 65 2f 52 |urses/po|rtable/R|
|00001db0| 43 53 2f 62 61 75 64 72 | 61 74 65 2e 63 25 76 20 |CS/baudr|ate.c%v |
|00001dc0| 32 2e 30 20 31 39 39 32 | 2f 31 31 2f 31 35 20 30 |2.0 1992|/11/15 0|
|00001dd0| 33 3a 32 38 3a 34 35 20 | 4d 48 20 52 65 6c 20 24 |3:28:45 |MH Rel $|
|00001de0| 22 3b 0a 58 23 65 6e 64 | 69 66 0a 58 0a 58 0a 58 |";.X#end|if.X.X.X|
|00001df0| 0a 58 0a 58 2f 2a 6d 61 | 6e 2d 73 74 61 72 74 2a |.X.X/*ma|n-start*|
|00001e00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001e10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001e20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001e30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001e40| 2a 2a 2a 2a 0a 58 0a 58 | 20 20 62 61 75 64 72 61 |****.X.X| baudra|
|00001e50| 74 65 28 29 09 2d 20 52 | 65 74 75 72 6e 20 74 65 |te().- R|eturn te|
|00001e60| 72 6d 69 6e 61 6c 20 62 | 61 75 64 20 72 61 74 65 |rminal b|aud rate|
|00001e70| 0a 58 0a 58 20 20 58 2f | 4f 70 65 6e 20 44 65 73 |.X.X X/|Open Des|
|00001e80| 63 72 69 70 74 69 6f 6e | 3a 0a 58 20 09 52 65 74 |cription|:.X .Ret|
|00001e90| 75 72 6e 73 20 74 68 65 | 20 6f 75 74 70 75 74 20 |urns the| output |
|00001ea0| 73 70 65 65 64 20 6f 66 | 20 74 68 65 20 74 65 72 |speed of| the ter|
|00001eb0| 6d 69 6e 61 6c 2e 20 20 | 54 68 65 20 6e 75 6d 62 |minal. |The numb|
|00001ec0| 65 72 20 72 65 74 75 72 | 6e 65 64 0a 58 20 09 69 |er retur|ned.X .i|
|00001ed0| 73 20 62 69 74 73 20 70 | 65 72 20 73 65 63 6f 6e |s bits p|er secon|
|00001ee0| 64 2c 20 66 6f 72 20 65 | 78 61 6d 70 6c 65 20 39 |d, for e|xample 9|
|00001ef0| 36 30 30 2c 20 61 6e 64 | 20 69 73 20 61 6e 20 69 |600, and| is an i|
|00001f00| 6e 74 65 67 65 72 2e 0a | 58 0a 58 20 20 50 44 43 |nteger..|X.X PDC|
|00001f10| 75 72 73 65 73 20 44 65 | 73 63 72 69 70 74 69 6f |urses De|scriptio|
|00001f20| 6e 3a 0a 58 20 09 49 66 | 20 46 41 53 54 5f 56 49 |n:.X .If| FAST_VI|
|00001f30| 44 45 4f 20 69 73 20 74 | 72 75 65 2c 20 74 68 65 |DEO is t|rue, the|
|00001f40| 6e 20 74 68 69 73 20 69 | 73 20 74 68 65 20 6c 61 |n this i|s the la|
|00001f50| 72 67 65 73 74 20 70 6f | 73 73 69 62 6c 65 0a 58 |rgest po|ssible.X|
|00001f60| 20 09 28 70 6f 72 74 61 | 62 6c 65 29 20 69 6e 74 | .(porta|ble) int|
|00001f70| 20 76 61 6c 75 65 20 28 | 49 4e 54 5f 4d 41 58 20 | value (|INT_MAX |
|00001f80| 66 72 6f 6d 20 6c 69 6d | 69 74 73 2e 68 29 20 49 |from lim|its.h) I|
|00001f90| 46 20 64 69 72 65 63 74 | 0a 58 20 09 76 69 64 65 |F direct|.X .vide|
|00001fa0| 6f 20 69 73 20 70 6f 73 | 73 69 62 6c 65 2c 20 4f |o is pos|sible, O|
|00001fb0| 52 20 74 68 65 20 61 70 | 70 72 6f 78 69 6d 61 74 |R the ap|proximat|
|00001fc0| 65 20 67 75 65 73 73 20 | 61 74 20 42 49 4f 53 20 |e guess |at BIOS |
|00001fd0| 73 70 65 65 64 73 2c 0a | 58 20 09 31 39 32 30 30 |speeds,.|X .19200|
|00001fe0| 2e 0a 58 0a 58 20 09 49 | 66 20 46 41 53 54 5f 56 |..X.X .I|f FAST_V|
|00001ff0| 49 44 45 4f 20 69 73 20 | 66 61 6c 73 65 2c 20 74 |IDEO is |false, t|
|00002000| 68 69 73 20 69 73 20 61 | 6e 20 61 70 70 72 6f 78 |his is a|n approx|
|00002010| 69 6d 61 74 65 20 67 75 | 65 73 73 20 61 74 20 42 |imate gu|ess at B|
|00002020| 49 4f 53 0a 58 20 09 73 | 70 65 65 64 73 2c 20 31 |IOS.X .s|peeds, 1|
|00002030| 39 32 30 30 2e 0a 58 0a | 58 20 20 58 2f 4f 70 65 |9200..X.|X X/Ope|
|00002040| 6e 20 52 65 74 75 72 6e | 20 56 61 6c 75 65 3a 0a |n Return| Value:.|
|00002050| 58 20 09 54 68 65 20 62 | 61 75 64 72 61 74 65 28 |X .The b|audrate(|
|00002060| 29 20 66 75 6e 63 74 69 | 6f 6e 20 72 65 74 75 72 |) functi|on retur|
|00002070| 6e 73 20 61 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |ns a poi|nter to |
|00002080| 61 20 76 65 72 62 6f 73 | 65 20 64 65 73 63 72 69 |a verbos|e descri|
|00002090| 70 74 69 6f 6e 0a 58 20 | 09 6f 66 20 74 68 65 20 |ption.X |.of the |
|000020a0| 63 75 72 72 65 6e 74 20 | 74 65 72 6d 69 6e 61 6c |current |terminal|
|000020b0| 20 6f 6e 20 73 75 63 63 | 65 73 73 20 61 6e 64 20 | on succ|ess and |
|000020c0| 74 68 65 20 6e 75 6c 6c | 20 70 6f 69 6e 74 65 72 |the null| pointer|
|000020d0| 20 6f 6e 20 65 72 72 6f | 72 2e 0a 58 0a 58 20 20 | on erro|r..X.X |
|000020e0| 58 2f 4f 70 65 6e 20 45 | 72 72 6f 72 73 3a 0a 58 |X/Open E|rrors:.X|
|000020f0| 20 09 4e 6f 20 65 72 72 | 6f 72 73 20 61 72 65 20 | .No err|ors are |
|00002100| 64 65 66 69 6e 65 64 20 | 66 6f 72 20 74 68 69 73 |defined |for this|
|00002110| 20 66 75 6e 63 74 69 6f | 6e 2e 0a 58 0a 58 20 20 | functio|n..X.X |
|00002120| 50 6f 72 74 61 62 69 6c | 69 74 79 3a 0a 58 20 09 |Portabil|ity:.X .|
|00002130| 50 44 43 75 72 73 65 73 | 09 09 69 6e 74 20 62 61 |PDCurses|..int ba|
|00002140| 75 64 72 61 74 65 28 20 | 76 6f 69 64 20 29 3b 0a |udrate( |void );.|
|00002150| 58 20 09 58 2f 4f 70 65 | 6e 20 44 65 63 20 27 38 |X .X/Ope|n Dec '8|
|00002160| 38 09 09 69 6e 74 20 62 | 61 75 64 72 61 74 65 28 |8..int b|audrate(|
|00002170| 20 76 6f 69 64 20 29 3b | 0a 58 20 09 42 53 44 20 | void );|.X .BSD |
|00002180| 43 75 72 73 65 73 0a 58 | 20 09 53 59 53 20 56 20 |Curses.X| .SYS V |
|00002190| 43 75 72 73 65 73 0a 58 | 0a 58 2a 2a 6d 61 6e 2d |Curses.X|.X**man-|
|000021a0| 65 6e 64 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |end*****|********|
|000021b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000021c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000021d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000021e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2f 0a 58 0a 58 69 6e |********|*/.X.Xin|
|000021f0| 74 09 62 61 75 64 72 61 | 74 65 28 76 6f 69 64 29 |t.baudra|te(void)|
|00002200| 0a 58 7b 0a 58 23 69 66 | 64 65 66 20 46 41 53 54 |.X{.X#if|def FAST|
|00002210| 5f 56 49 44 45 4f 0a 58 | 09 72 65 74 75 72 6e 20 |_VIDEO.X|.return |
|00002220| 28 5f 63 75 72 73 76 61 | 72 2e 64 69 72 65 63 74 |(_cursva|r.direct|
|00002230| 5f 76 69 64 65 6f 20 3f | 20 49 4e 54 5f 4d 41 58 |_video ?| INT_MAX|
|00002240| 20 3a 20 31 39 32 30 30 | 20 29 3b 0a 58 23 65 6c | : 19200| );.X#el|
|00002250| 73 65 0a 58 09 72 65 74 | 75 72 6e 20 28 31 39 32 |se.X.ret|urn (192|
|00002260| 30 30 29 3b 09 09 09 2f | 2a 20 41 70 70 72 6f 78 |00);.../|* Approx|
|00002270| 2e 20 67 75 65 73 73 20 | 61 74 20 42 49 4f 53 20 |. guess |at BIOS |
|00002280| 73 70 65 65 64 73 2e 2a | 2f 0a 58 23 65 6e 64 69 |speeds.*|/.X#endi|
|00002290| 66 0a 58 7d 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |f.X}.END|_OF_FILE|
|000022a0| 0a 20 20 69 66 20 74 65 | 73 74 20 31 33 35 38 20 |. if te|st 1358 |
|000022b0| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 70 6f 72 |-ne `wc |-c <'por|
|000022c0| 74 61 62 6c 65 2f 62 61 | 75 64 72 61 74 65 2e 63 |table/ba|udrate.c|
|000022d0| 27 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |'`; then|. ech|
|000022e0| 6f 20 73 68 61 72 3a 20 | 5c 22 27 70 6f 72 74 61 |o shar: |\"'porta|
|000022f0| 62 6c 65 2f 62 61 75 64 | 72 61 74 65 2e 63 27 5c |ble/baud|rate.c'\|
|00002300| 22 20 75 6e 70 61 63 6b | 65 64 20 77 69 74 68 20 |" unpack|ed with |
|00002310| 77 72 6f 6e 67 20 73 69 | 7a 65 21 0a 20 20 66 69 |wrong si|ze!. fi|
|00002320| 0a 20 20 23 20 65 6e 64 | 20 6f 66 20 27 70 6f 72 |. # end| of 'por|
|00002330| 74 61 62 6c 65 2f 62 61 | 75 64 72 61 74 65 2e 63 |table/ba|udrate.c|
|00002340| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00002350| 27 70 6f 72 74 61 62 6c | 65 2f 62 65 65 70 2e 63 |'portabl|e/beep.c|
|00002360| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00002370| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00002380| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00002390| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|000023a0| 6e 67 20 66 69 6c 65 20 | 5c 22 27 70 6f 72 74 61 |ng file |\"'porta|
|000023b0| 62 6c 65 2f 62 65 65 70 | 2e 63 27 5c 22 0a 65 6c |ble/beep|.c'\".el|
|000023c0| 73 65 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |se. ech|o shar: |
|000023d0| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 70 6f |Extracti|ng \"'po|
|000023e0| 72 74 61 62 6c 65 2f 62 | 65 65 70 2e 63 27 5c 22 |rtable/b|eep.c'\"|
|000023f0| 20 5c 28 31 33 32 34 20 | 63 68 61 72 61 63 74 65 | \(1324 |characte|
|00002400| 72 73 5c 29 0a 20 20 73 | 65 64 20 22 73 2f 5e 58 |rs\). s|ed "s/^X|
|00002410| 2f 2f 22 20 3e 27 70 6f | 72 74 61 62 6c 65 2f 62 |//" >'po|rtable/b|
|00002420| 65 65 70 2e 63 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |eep.c' <|<'END_OF|
|00002430| 5f 46 49 4c 45 27 0a 58 | 23 64 65 66 69 6e 65 09 |_FILE'.X|#define.|
|00002440| 43 55 52 53 45 53 5f 4c | 49 42 52 41 52 59 09 31 |CURSES_L|IBRARY.1|
|00002450| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 63 75 72 73 |.X#inclu|de <curs|
|00002460| 65 73 2e 68 3e 0a 58 23 | 75 6e 64 65 66 20 62 65 |es.h>.X#|undef be|
|00002470| 65 70 0a 58 0a 58 23 69 | 66 6e 64 65 66 09 4e 44 |ep.X.X#i|fndef.ND|
|00002480| 45 42 55 47 0a 58 63 68 | 61 72 20 2a 72 63 73 69 |EBUG.Xch|ar *rcsi|
|00002490| 64 5f 62 65 65 70 20 3d | 20 22 24 48 65 61 64 65 |d_beep =| "$Heade|
|000024a0| 72 3a 20 63 3a 2f 63 75 | 72 73 65 73 2f 70 6f 72 |r: c:/cu|rses/por|
|000024b0| 74 61 62 6c 65 2f 52 43 | 53 2f 62 65 65 70 2e 63 |table/RC|S/beep.c|
|000024c0| 25 76 20 32 2e 30 20 31 | 39 39 32 2f 31 31 2f 31 |%v 2.0 1|992/11/1|
|000024d0| 35 20 30 33 3a 32 39 3a | 33 34 20 4d 48 20 52 65 |5 03:29:|34 MH Re|
|000024e0| 6c 20 24 22 3b 0a 58 23 | 65 6e 64 69 66 0a 58 0a |l $";.X#|endif.X.|
|000024f0| 58 0a 58 0a 58 0a 58 2f | 2a 6d 61 6e 2d 73 74 61 |X.X.X.X/|*man-sta|
|00002500| 72 74 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |rt******|********|
|00002510| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002520| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002530| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002540| 2a 2a 2a 2a 2a 2a 2a 0a | 58 0a 58 20 20 62 65 65 |*******.|X.X bee|
|00002550| 70 28 29 09 2d 20 67 65 | 6e 65 72 61 74 65 20 61 |p().- ge|nerate a|
|00002560| 75 64 69 6f 2d 76 69 73 | 75 61 6c 20 61 6c 61 72 |udio-vis|ual alar|
|00002570| 6d 2e 0a 58 0a 58 20 20 | 58 2f 4f 70 65 6e 20 44 |m..X.X |X/Open D|
|00002580| 65 73 63 72 69 70 74 69 | 6f 6e 3a 0a 58 20 09 54 |escripti|on:.X .T|
|00002590| 68 69 73 20 72 6f 75 74 | 69 6e 65 20 69 73 20 75 |his rout|ine is u|
|000025a0| 73 65 64 20 74 6f 20 73 | 69 67 6e 61 6c 20 74 68 |sed to s|ignal th|
|000025b0| 65 20 74 65 72 6d 69 6e | 61 6c 20 75 73 65 72 2e |e termin|al user.|
|000025c0| 20 20 54 68 65 20 62 65 | 65 70 28 29 0a 58 20 09 | The be|ep().X .|
|000025d0| 66 75 6e 63 74 69 6f 6e | 20 77 69 6c 6c 20 73 6f |function| will so|
|000025e0| 75 6e 64 20 74 68 65 20 | 61 75 64 69 62 6c 65 20 |und the |audible |
|000025f0| 62 65 6c 6c 20 6f 6e 20 | 74 68 65 20 74 65 72 6d |bell on |the term|
|00002600| 69 6e 61 6c 2c 20 69 66 | 20 70 6f 73 73 69 62 6c |inal, if| possibl|
|00002610| 65 0a 58 20 09 61 6e 64 | 20 69 66 20 6e 6f 74 2c |e.X .and| if not,|
|00002620| 20 77 69 6c 6c 20 66 6c | 61 73 68 20 74 68 65 20 | will fl|ash the |
|00002630| 73 63 72 65 65 6e 20 28 | 76 69 73 69 62 6c 65 20 |screen (|visible |
|00002640| 62 65 6c 6c 29 2c 20 69 | 66 20 70 6f 73 73 69 62 |bell), i|f possib|
|00002650| 6c 65 2e 0a 58 20 09 54 | 68 65 20 66 6c 61 73 68 |le..X .T|he flash|
|00002660| 28 29 20 66 75 6e 63 74 | 69 6f 6e 20 77 69 6c 6c |() funct|ion will|
|00002670| 20 66 6c 61 73 68 20 74 | 68 65 20 73 63 72 65 65 | flash t|he scree|
|00002680| 6e 2c 20 61 6e 64 20 69 | 66 20 74 68 61 74 20 69 |n, and i|f that i|
|00002690| 73 20 6e 6f 74 0a 58 20 | 09 70 6f 73 73 69 62 6c |s not.X |.possibl|
|000026a0| 65 2c 20 77 69 6c 6c 20 | 73 6f 75 6e 64 20 74 68 |e, will |sound th|
|000026b0| 65 20 61 75 64 69 62 6c | 65 20 73 69 67 6e 61 6c |e audibl|e signal|
|000026c0| 2e 20 20 49 66 20 6e 65 | 69 74 68 65 72 20 73 69 |. If ne|ither si|
|000026d0| 67 6e 61 6c 20 69 73 0a | 58 20 09 70 6f 73 73 69 |gnal is.|X .possi|
|000026e0| 62 6c 65 2c 20 6e 6f 74 | 68 69 6e 67 20 77 69 6c |ble, not|hing wil|
|000026f0| 6c 20 68 61 70 70 65 6e | 2e 20 20 4e 65 61 72 6c |l happen|. Nearl|
|00002700| 79 20 61 6c 6c 20 74 65 | 72 6d 69 6e 61 6c 73 20 |y all te|rminals |
|00002710| 68 61 76 65 20 61 6e 0a | 58 20 09 61 75 64 69 62 |have an.|X .audib|
|00002720| 6c 65 20 73 69 67 6e 61 | 6c 20 28 62 65 6c 6c 20 |le signa|l (bell |
|00002730| 6f 72 20 62 65 65 70 29 | 2c 20 62 75 74 20 6f 6e |or beep)|, but on|
|00002740| 6c 79 20 73 6f 6d 65 20 | 63 61 6e 20 66 6c 61 73 |ly some |can flas|
|00002750| 68 20 74 68 65 20 73 63 | 72 65 65 6e 2e 0a 58 0a |h the sc|reen..X.|
|00002760| 58 20 20 58 2f 4f 70 65 | 6e 20 52 65 74 75 72 6e |X X/Ope|n Return|
|00002770| 20 56 61 6c 75 65 3a 0a | 58 20 09 54 68 65 20 62 | Value:.|X .The b|
|00002780| 65 65 70 28 29 20 61 6e | 64 20 66 6c 61 73 68 28 |eep() an|d flash(|
|00002790| 29 20 66 75 6e 63 74 69 | 6f 6e 73 20 72 65 74 75 |) functi|ons retu|
|000027a0| 72 6e 20 4f 4b 20 6f 6e | 20 73 75 63 63 65 73 73 |rn OK on| success|
|000027b0| 20 61 6e 64 20 45 52 52 | 20 6f 6e 0a 58 20 09 65 | and ERR| on.X .e|
|000027c0| 72 72 6f 72 2e 0a 58 0a | 58 20 20 58 2f 4f 70 65 |rror..X.|X X/Ope|
|000027d0| 6e 20 45 72 72 6f 72 73 | 3a 0a 58 20 09 4e 6f 20 |n Errors|:.X .No |
|000027e0| 65 72 72 6f 72 73 20 61 | 72 65 20 64 65 66 69 6e |errors a|re defin|
|000027f0| 65 64 20 66 6f 72 20 74 | 68 69 73 20 66 75 6e 63 |ed for t|his func|
|00002800| 74 69 6f 6e 2e 0a 58 0a | 58 20 20 50 6f 72 74 61 |tion..X.|X Porta|
|00002810| 62 69 6c 69 74 79 3a 0a | 58 20 09 50 44 43 75 72 |bility:.|X .PDCur|
|00002820| 73 65 73 09 69 6e 74 20 | 62 65 65 70 28 20 76 6f |ses.int |beep( vo|
|00002830| 69 64 20 29 3b 0a 58 20 | 09 58 2f 4f 70 65 6e 20 |id );.X |.X/Open |
|00002840| 44 65 63 20 27 38 38 09 | 69 6e 74 20 62 65 65 70 |Dec '88.|int beep|
|00002850| 28 20 76 6f 69 64 20 29 | 3b 0a 58 20 09 42 53 44 |( void )|;.X .BSD|
|00002860| 20 43 75 72 73 65 73 09 | 69 6e 74 20 62 65 65 70 | Curses.|int beep|
|00002870| 28 20 76 6f 69 64 20 29 | 3b 0a 58 20 09 53 59 53 |( void )|;.X .SYS|
|00002880| 20 56 20 43 75 72 73 65 | 73 09 69 6e 74 20 62 65 | V Curse|s.int be|
|00002890| 65 70 28 20 76 6f 69 64 | 20 29 3b 0a 58 0a 58 2a |ep( void| );.X.X*|
|000028a0| 2a 6d 61 6e 2d 65 6e 64 | 2a 2a 2a 2a 2a 2a 2a 2a |*man-end|********|
|000028b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000028c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000028d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000028e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2f 0a |********|******/.|
|000028f0| 58 0a 58 69 6e 74 09 62 | 65 65 70 28 76 6f 69 64 |X.Xint.b|eep(void|
|00002900| 29 0a 58 7b 0a 58 09 69 | 66 20 28 21 5f 63 75 72 |).X{.X.i|f (!_cur|
|00002910| 73 76 61 72 2e 61 75 64 | 69 62 6c 65 29 0a 58 09 |svar.aud|ible).X.|
|00002920| 7b 0a 58 09 09 66 6c 61 | 73 68 28 29 3b 0a 58 09 |{.X..fla|sh();.X.|
|00002930| 09 72 65 74 75 72 6e 28 | 20 45 52 52 20 29 3b 09 |.return(| ERR );.|
|00002940| 09 2f 2a 20 57 65 20 74 | 72 79 20 74 6f 20 66 6c |./* We t|ry to fl|
|00002950| 61 73 68 20 69 6e 73 74 | 65 61 64 2e 2e 2e 2a 2f |ash inst|ead...*/|
|00002960| 0a 58 09 7d 0a 58 09 50 | 44 43 5f 70 75 74 63 74 |.X.}.X.P|DC_putct|
|00002970| 74 79 28 20 27 5c 30 30 | 37 27 2c 20 30 20 29 3b |ty( '\00|7', 0 );|
|00002980| 0a 58 09 72 65 74 75 72 | 6e 28 20 4f 4b 20 29 3b |.X.retur|n( OK );|
|00002990| 0a 58 7d 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |.X}.END_|OF_FILE.|
|000029a0| 20 20 69 66 20 74 65 73 | 74 20 31 33 32 34 20 2d | if tes|t 1324 -|
|000029b0| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 70 6f 72 74 |ne `wc -|c <'port|
|000029c0| 61 62 6c 65 2f 62 65 65 | 70 2e 63 27 60 3b 20 74 |able/bee|p.c'`; t|
|000029d0| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|000029e0| 72 3a 20 5c 22 27 70 6f | 72 74 61 62 6c 65 2f 62 |r: \"'po|rtable/b|
|000029f0| 65 65 70 2e 63 27 5c 22 | 20 75 6e 70 61 63 6b 65 |eep.c'\"| unpacke|
|00002a00| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00002a10| 65 21 0a 20 20 66 69 0a | 20 20 23 20 65 6e 64 20 |e!. fi.| # end |
|00002a20| 6f 66 20 27 70 6f 72 74 | 61 62 6c 65 2f 62 65 65 |of 'port|able/bee|
|00002a30| 70 2e 63 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |p.c'.fi.|if test |
|00002a40| 2d 66 20 27 70 6f 72 74 | 61 62 6c 65 2f 62 6f 78 |-f 'port|able/box|
|00002a50| 2e 63 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |.c' -a "|${1}" !=|
|00002a60| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00002a70| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00002a80| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00002a90| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 70 6f 72 |ting fil|e \"'por|
|00002aa0| 74 61 62 6c 65 2f 62 6f | 78 2e 63 27 5c 22 0a 65 |table/bo|x.c'\".e|
|00002ab0| 6c 73 65 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |lse. ec|ho shar:|
|00002ac0| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 70 | Extract|ing \"'p|
|00002ad0| 6f 72 74 61 62 6c 65 2f | 62 6f 78 2e 63 27 5c 22 |ortable/|box.c'\"|
|00002ae0| 20 5c 28 31 33 35 39 20 | 63 68 61 72 61 63 74 65 | \(1359 |characte|
|00002af0| 72 73 5c 29 0a 20 20 73 | 65 64 20 22 73 2f 5e 58 |rs\). s|ed "s/^X|
|00002b00| 2f 2f 22 20 3e 27 70 6f | 72 74 61 62 6c 65 2f 62 |//" >'po|rtable/b|
|00002b10| 6f 78 2e 63 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |ox.c' <<|'END_OF_|
|00002b20| 46 49 4c 45 27 0a 58 23 | 64 65 66 69 6e 65 09 43 |FILE'.X#|define.C|
|00002b30| 55 52 53 45 53 5f 4c 49 | 42 52 41 52 59 09 31 0a |URSES_LI|BRARY.1.|
|00002b40| 58 23 69 6e 63 6c 75 64 | 65 20 3c 63 75 72 73 65 |X#includ|e <curse|
|00002b50| 73 2e 68 3e 0a 58 23 75 | 6e 64 65 66 09 62 6f 78 |s.h>.X#u|ndef.box|
|00002b60| 0a 58 0a 58 23 69 66 6e | 64 65 66 09 4e 44 45 42 |.X.X#ifn|def.NDEB|
|00002b70| 55 47 0a 58 63 68 61 72 | 20 2a 72 63 73 69 64 5f |UG.Xchar| *rcsid_|
|00002b80| 62 6f 78 20 3d 20 22 24 | 48 65 61 64 65 72 3a 20 |box = "$|Header: |
|00002b90| 63 3a 2f 63 75 72 73 65 | 73 2f 70 6f 72 74 61 62 |c:/curse|s/portab|
|00002ba0| 6c 65 2f 52 43 53 2f 62 | 6f 78 2e 63 25 76 20 32 |le/RCS/b|ox.c%v 2|
|00002bb0| 2e 30 20 31 39 39 32 2f | 31 31 2f 31 35 20 30 33 |.0 1992/|11/15 03|
|00002bc0| 3a 32 38 3a 35 31 20 4d | 48 20 52 65 6c 20 24 22 |:28:51 M|H Rel $"|
|00002bd0| 3b 0a 58 23 65 6e 64 69 | 66 0a 58 0a 58 0a 58 0a |;.X#endi|f.X.X.X.|
|00002be0| 58 0a 58 2f 2a 6d 61 6e | 2d 73 74 61 72 74 2a 2a |X.X/*man|-start**|
|00002bf0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002c00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002c10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002c20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002c30| 2a 2a 2a 0a 58 0a 58 20 | 20 62 6f 78 28 29 09 2d |***.X.X | box().-|
|00002c40| 20 64 72 61 77 20 62 6f | 78 0a 58 0a 58 20 20 58 | draw bo|x.X.X X|
|00002c50| 2f 4f 70 65 6e 20 44 65 | 73 63 72 69 70 74 69 6f |/Open De|scriptio|
|00002c60| 6e 3a 09 0a 58 20 09 41 | 20 62 6f 78 20 69 73 20 |n:..X .A| box is |
|00002c70| 64 72 61 77 6e 20 61 72 | 6f 75 6e 64 20 74 68 65 |drawn ar|ound the|
|00002c80| 20 65 64 67 65 20 6f 66 | 20 74 68 65 20 77 69 6e | edge of| the win|
|00002c90| 64 6f 77 2e 20 20 54 68 | 65 20 63 68 61 72 61 63 |dow. Th|e charac|
|00002ca0| 74 65 72 73 0a 58 20 09 | 76 65 72 74 20 61 6e 64 |ters.X .|vert and|
|00002cb0| 20 68 6f 72 20 61 72 65 | 20 74 68 65 20 63 68 61 | hor are| the cha|
|00002cc0| 72 61 63 74 65 72 73 20 | 75 73 65 64 20 74 6f 20 |racters |used to |
|00002cd0| 64 72 61 77 20 74 68 65 | 20 62 6f 78 2e 20 20 49 |draw the| box. I|
|00002ce0| 66 20 76 65 72 74 20 6f | 72 0a 58 20 09 68 6f 72 |f vert o|r.X .hor|
|00002cf0| 20 61 72 65 20 7a 65 72 | 6f 2c 20 74 68 65 6e 20 | are zer|o, then |
|00002d00| 61 70 70 72 6f 70 72 69 | 61 74 65 20 64 65 66 61 |appropri|ate defa|
|00002d10| 75 6c 74 20 63 68 61 72 | 61 63 74 65 72 73 20 77 |ult char|acters w|
|00002d20| 69 6c 6c 20 62 65 20 75 | 73 65 64 2e 0a 58 0a 58 |ill be u|sed..X.X|
|00002d30| 20 20 50 44 43 75 72 73 | 65 73 20 44 65 73 63 72 | PDCurs|es Descr|
|00002d40| 69 70 74 69 6f 6e 3a 0a | 58 20 09 53 65 65 20 62 |iption:.|X .See b|
|00002d50| 6f 72 64 65 72 28 29 20 | 66 6f 72 20 61 64 64 69 |order() |for addi|
|00002d60| 74 69 6f 6e 61 6c 20 63 | 6f 6e 74 72 6f 6c 20 6f |tional c|ontrol o|
|00002d70| 76 65 72 20 74 68 65 20 | 73 69 64 65 73 20 61 6e |ver the |sides an|
|00002d80| 64 20 63 6f 72 6e 65 72 | 73 0a 58 20 09 6f 66 20 |d corner|s.X .of |
|00002d90| 74 68 65 20 62 6f 78 20 | 64 72 61 77 6e 2e 0a 58 |the box |drawn..X|
|00002da0| 0a 58 20 20 58 2f 4f 70 | 65 6e 20 52 65 74 75 72 |.X X/Op|en Retur|
|00002db0| 6e 20 56 61 6c 75 65 3a | 0a 58 20 09 54 68 65 20 |n Value:|.X .The |
|00002dc0| 62 6f 78 28 29 20 66 75 | 6e 63 74 69 6f 6e 20 72 |box() fu|nction r|
|00002dd0| 65 74 75 72 6e 73 20 4f | 4b 20 6f 6e 20 73 75 63 |eturns O|K on suc|
|00002de0| 63 65 73 73 20 61 6e 64 | 20 45 52 52 20 6f 6e 20 |cess and| ERR on |
|00002df0| 65 72 72 6f 72 2e 0a 58 | 0a 58 20 20 50 44 43 75 |error..X|.X PDCu|
|00002e00| 72 73 65 73 20 45 72 72 | 6f 72 73 3a 0a 58 20 09 |rses Err|ors:.X .|
|00002e10| 4e 6f 20 65 72 72 6f 72 | 73 20 61 72 65 20 64 65 |No error|s are de|
|00002e20| 66 69 6e 65 64 20 66 6f | 72 20 74 68 65 73 65 20 |fined fo|r these |
|00002e30| 66 75 6e 63 74 69 6f 6e | 73 2e 0a 58 0a 58 20 20 |function|s..X.X |
|00002e40| 50 6f 72 74 61 62 69 6c | 69 74 79 3a 0a 58 20 09 |Portabil|ity:.X .|
|00002e50| 50 44 43 75 72 73 65 73 | 09 69 6e 74 20 62 6f 78 |PDCurses|.int box|
|00002e60| 28 20 57 49 4e 44 4f 57 | 2a 20 77 69 6e 2c 20 63 |( WINDOW|* win, c|
|00002e70| 68 74 79 70 65 20 76 65 | 72 74 2c 20 63 68 74 79 |htype ve|rt, chty|
|00002e80| 70 65 20 68 6f 72 20 29 | 3b 0a 58 20 09 58 2f 4f |pe hor )|;.X .X/O|
|00002e90| 70 65 6e 20 44 65 63 20 | 27 38 38 09 69 6e 74 20 |pen Dec |'88.int |
|00002ea0| 62 6f 78 28 20 57 49 4e | 44 4f 57 2a 20 77 69 6e |box( WIN|DOW* win|
|00002eb0| 2c 20 63 68 74 79 70 65 | 20 76 65 72 74 2c 20 63 |, chtype| vert, c|
|00002ec0| 68 74 79 70 65 20 68 6f | 72 20 29 3b 0a 58 20 09 |htype ho|r );.X .|
|00002ed0| 42 53 44 20 43 75 72 73 | 65 73 09 69 6e 74 20 62 |BSD Curs|es.int b|
|00002ee0| 6f 78 28 20 57 49 4e 44 | 4f 57 2a 20 77 69 6e 2c |ox( WIND|OW* win,|
|00002ef0| 20 63 68 74 79 70 65 20 | 76 65 72 74 2c 20 63 68 | chtype |vert, ch|
|00002f00| 74 79 70 65 20 68 6f 72 | 20 29 3b 0a 58 20 09 53 |type hor| );.X .S|
|00002f10| 59 53 20 56 20 43 75 72 | 73 65 73 09 69 6e 74 20 |YS V Cur|ses.int |
|00002f20| 62 6f 78 28 20 57 49 4e | 44 4f 57 2a 20 77 69 6e |box( WIN|DOW* win|
|00002f30| 2c 20 63 68 74 79 70 65 | 20 76 65 72 74 2c 20 63 |, chtype| vert, c|
|00002f40| 68 74 79 70 65 20 68 6f | 72 20 29 3b 0a 58 0a 58 |htype ho|r );.X.X|
|00002f50| 2a 2a 6d 61 6e 2d 65 6e | 64 2a 2a 2a 2a 2a 2a 2a |**man-en|d*******|
|00002f60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002f70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002f80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002f90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2f |********|*******/|
|00002fa0| 0a 58 0a 58 69 6e 74 09 | 62 6f 78 28 20 57 49 4e |.X.Xint.|box( WIN|
|00002fb0| 44 4f 57 20 2a 77 69 6e | 2c 20 63 68 74 79 70 65 |DOW *win|, chtype|
|00002fc0| 20 76 65 72 74 2c 20 63 | 68 74 79 70 65 20 68 6f | vert, c|htype ho|
|00002fd0| 72 20 29 0a 58 7b 0a 58 | 09 69 66 20 20 28 21 76 |r ).X{.X|.if (!v|
|00002fe0| 65 72 74 20 7c 7c 20 21 | 68 6f 72 29 09 2f 2a 0a |ert || !|hor)./*.|
|00002ff0| 58 09 7b 09 09 09 2a 20 | 53 59 53 56 20 46 69 78 |X.{...* |SYSV Fix|
|00003000| 20 43 6f 75 72 74 65 73 | 79 20 6f 66 20 41 75 67 | Courtes|y of Aug|
|00003010| 75 73 74 69 6e 65 20 43 | 61 6e 6f 0a 58 09 09 76 |ustine C|ano.X..v|
|00003020| 65 72 74 3d 20 41 43 53 | 5f 56 4c 49 4e 45 3b 2a |ert= ACS|_VLINE;*|
|00003030| 20 61 66 63 40 73 68 69 | 62 61 79 61 2e 6c 6f 6e | afc@shi|baya.lon|
|00003040| 65 73 74 61 72 2e 6f 72 | 67 0a 58 09 09 68 6f 72 |estar.or|g.X..hor|
|00003050| 20 3d 20 41 43 53 5f 48 | 4c 49 4e 45 3b 2a 20 31 | = ACS_H|LINE;* 1|
|00003060| 39 39 32 30 35 32 30 0a | 58 09 7d 09 09 09 2a 2f |9920520.|X.}...*/|
|00003070| 0a 58 09 72 65 74 75 72 | 6e 28 20 77 62 6f 78 28 |.X.retur|n( wbox(|
|00003080| 20 77 69 6e 2c 20 30 2c | 20 30 2c 20 30 2c 20 30 | win, 0,| 0, 0, 0|
|00003090| 2c 20 76 65 72 74 2c 20 | 68 6f 72 20 29 20 29 3b |, vert, |hor ) );|
|000030a0| 0a 58 7d 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |.X}.END_|OF_FILE.|
|000030b0| 20 20 69 66 20 74 65 73 | 74 20 31 33 35 39 20 2d | if tes|t 1359 -|
|000030c0| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 70 6f 72 74 |ne `wc -|c <'port|
|000030d0| 61 62 6c 65 2f 62 6f 78 | 2e 63 27 60 3b 20 74 68 |able/box|.c'`; th|
|000030e0| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|000030f0| 3a 20 5c 22 27 70 6f 72 | 74 61 62 6c 65 2f 62 6f |: \"'por|table/bo|
|00003100| 78 2e 63 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |x.c'\" u|npacked |
|00003110| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|00003120| 0a 20 20 66 69 0a 20 20 | 23 20 65 6e 64 20 6f 66 |. fi. |# end of|
|00003130| 20 27 70 6f 72 74 61 62 | 6c 65 2f 62 6f 78 2e 63 | 'portab|le/box.c|
|00003140| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00003150| 27 70 6f 72 74 61 62 6c | 65 2f 63 62 72 65 61 6b |'portabl|e/cbreak|
|00003160| 2e 63 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |.c' -a "|${1}" !=|
|00003170| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00003180| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00003190| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|000031a0| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 70 6f 72 |ting fil|e \"'por|
|000031b0| 74 61 62 6c 65 2f 63 62 | 72 65 61 6b 2e 63 27 5c |table/cb|reak.c'\|
|000031c0| 22 0a 65 6c 73 65 0a 20 | 20 65 63 68 6f 20 73 68 |".else. | echo sh|
|000031d0| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|000031e0| 22 27 70 6f 72 74 61 62 | 6c 65 2f 63 62 72 65 61 |"'portab|le/cbrea|
|000031f0| 6b 2e 63 27 5c 22 20 5c | 28 31 33 34 35 20 63 68 |k.c'\" \|(1345 ch|
|00003200| 61 72 61 63 74 65 72 73 | 5c 29 0a 20 20 73 65 64 |aracters|\). sed|
|00003210| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 70 6f 72 74 | "s/^X//|" >'port|
|00003220| 61 62 6c 65 2f 63 62 72 | 65 61 6b 2e 63 27 20 3c |able/cbr|eak.c' <|
|00003230| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|00003240| 23 64 65 66 69 6e 65 09 | 43 55 52 53 45 53 5f 4c |#define.|CURSES_L|
|00003250| 49 42 52 41 52 59 09 31 | 0a 58 23 69 6e 63 6c 75 |IBRARY.1|.X#inclu|
|00003260| 64 65 20 3c 63 75 72 73 | 65 73 2e 68 3e 0a 58 23 |de <curs|es.h>.X#|
|00003270| 75 6e 64 65 66 09 63 62 | 72 65 61 6b 0a 58 0a 58 |undef.cb|reak.X.X|
|00003280| 23 69 66 6e 64 65 66 09 | 4e 44 45 42 55 47 0a 58 |#ifndef.|NDEBUG.X|
|00003290| 63 68 61 72 20 2a 72 63 | 73 69 64 5f 63 62 72 65 |char *rc|sid_cbre|
|000032a0| 61 6b 20 3d 20 22 24 48 | 65 61 64 65 72 3a 20 63 |ak = "$H|eader: c|
|000032b0| 3a 2f 63 75 72 73 65 73 | 2f 70 6f 72 74 61 62 6c |:/curses|/portabl|
|000032c0| 65 2f 52 43 53 2f 63 62 | 72 65 61 6b 2e 63 25 76 |e/RCS/cb|reak.c%v|
|000032d0| 20 32 2e 30 20 31 39 39 | 32 2f 31 31 2f 31 35 20 | 2.0 199|2/11/15 |
|000032e0| 30 33 3a 32 38 3a 34 37 | 20 4d 48 20 52 65 6c 20 |03:28:47| MH Rel |
|000032f0| 24 22 3b 0a 58 23 65 6e | 64 69 66 0a 58 0a 58 0a |$";.X#en|dif.X.X.|
|00003300| 58 0a 58 0a 58 2f 2a 6d | 61 6e 2d 73 74 61 72 74 |X.X.X/*m|an-start|
|00003310| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003320| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003330| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003340| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003350| 2a 2a 2a 2a 2a 0a 58 0a | 58 20 20 63 62 72 65 61 |*****.X.|X cbrea|
|00003360| 6b 28 29 09 2d 20 73 65 | 74 2f 63 6c 65 61 72 20 |k().- se|t/clear |
|00003370| 63 62 72 65 61 6b 20 6d | 6f 64 65 0a 58 0a 58 20 |cbreak m|ode.X.X |
|00003380| 20 58 2f 4f 70 65 6e 20 | 44 65 73 63 72 69 70 74 | X/Open |Descript|
|00003390| 69 6f 6e 3a 09 63 62 72 | 65 61 6b 28 29 20 61 6e |ion:.cbr|eak() an|
|000033a0| 64 20 6e 6f 63 62 72 65 | 61 6b 28 29 0a 58 20 09 |d nocbre|ak().X .|
|000033b0| 54 68 65 73 65 20 74 77 | 6f 20 72 6f 75 74 69 6e |These tw|o routin|
|000033c0| 65 73 20 70 75 74 20 74 | 68 65 20 74 65 72 6d 69 |es put t|he termi|
|000033d0| 6e 61 6c 20 69 6e 74 6f | 20 61 6e 64 20 6f 75 74 |nal into| and out|
|000033e0| 20 6f 66 20 63 62 72 65 | 61 6b 20 6d 6f 64 65 2e | of cbre|ak mode.|
|000033f0| 0a 58 20 09 49 6e 20 63 | 62 72 65 61 6b 20 6d 6f |.X .In c|break mo|
|00003400| 64 65 2c 20 63 68 61 72 | 61 63 74 65 72 73 20 74 |de, char|acters t|
|00003410| 79 70 65 64 20 62 79 20 | 74 68 65 20 75 73 65 72 |yped by |the user|
|00003420| 20 61 72 65 20 69 6d 6d | 65 64 69 61 74 65 6c 79 | are imm|ediately|
|00003430| 0a 58 20 09 61 76 61 69 | 6c 61 62 6c 65 20 74 6f |.X .avai|lable to|
|00003440| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 61 6e 64 | the pro|gram and|
|00003450| 20 65 72 61 73 65 2f 6b | 69 6c 6c 20 63 68 61 72 | erase/k|ill char|
|00003460| 61 63 74 65 72 20 70 72 | 6f 63 65 73 73 69 6e 67 |acter pr|ocessing|
|00003470| 20 69 73 0a 58 20 09 6e | 6f 74 20 70 65 72 66 6f | is.X .n|ot perfo|
|00003480| 72 6d 65 64 2e 20 20 57 | 68 65 6e 20 6f 75 74 20 |rmed. W|hen out |
|00003490| 6f 66 20 63 62 72 65 61 | 6b 20 6d 6f 64 65 2c 20 |of cbrea|k mode, |
|000034a0| 74 68 65 20 74 65 72 6d | 69 6e 61 6c 20 64 72 69 |the term|inal dri|
|000034b0| 76 65 72 0a 58 20 09 77 | 69 6c 6c 20 62 75 66 66 |ver.X .w|ill buff|
|000034c0| 65 72 20 63 68 61 72 61 | 63 74 65 72 73 20 74 79 |er chara|cters ty|
|000034d0| 70 65 64 20 75 6e 74 69 | 6c 20 61 20 6e 65 77 6c |ped unti|l a newl|
|000034e0| 69 6e 65 20 6f 72 20 63 | 61 72 72 69 61 67 65 20 |ine or c|arriage |
|000034f0| 72 65 74 75 72 6e 0a 58 | 20 09 69 73 20 74 79 70 |return.X| .is typ|
|00003500| 65 64 2e 20 20 49 6e 74 | 65 72 72 75 70 74 20 61 |ed. Int|errupt a|
|00003510| 6e 64 20 66 6c 6f 77 20 | 63 6f 6e 74 72 6f 6c 20 |nd flow |control |
|00003520| 63 68 61 72 61 63 74 65 | 72 73 20 61 72 65 20 75 |characte|rs are u|
|00003530| 6e 61 66 66 65 63 74 65 | 64 0a 58 20 09 62 79 20 |naffecte|d.X .by |
|00003540| 74 68 69 73 20 6d 6f 64 | 65 2e 20 20 49 6e 69 74 |this mod|e. Init|
|00003550| 69 61 6c 6c 79 20 74 68 | 65 20 74 65 72 6d 69 6e |ially th|e termin|
|00003560| 61 6c 20 6d 61 79 20 6f | 72 20 6d 61 79 20 6e 6f |al may o|r may no|
|00003570| 74 20 6e 65 65 64 20 62 | 65 0a 58 20 09 69 6e 20 |t need b|e.X .in |
|00003580| 63 62 72 65 61 6b 20 6d | 6f 64 65 2e 0a 58 0a 58 |cbreak m|ode..X.X|
|00003590| 20 20 50 44 43 75 72 73 | 65 73 20 44 65 73 63 72 | PDCurs|es Descr|
|000035a0| 69 70 74 69 6f 6e 3a 0a | 58 20 09 54 68 65 72 65 |iption:.|X .There|
|000035b0| 20 69 73 20 6e 6f 20 61 | 64 64 69 74 69 6f 6e 61 | is no a|dditiona|
|000035c0| 6c 20 50 44 43 75 72 73 | 65 73 20 66 75 6e 63 74 |l PDCurs|es funct|
|000035d0| 69 6f 6e 61 6c 69 74 79 | 2e 0a 58 0a 58 20 20 58 |ionality|..X.X X|
|000035e0| 2f 4f 70 65 6e 20 52 65 | 74 75 72 6e 20 56 61 6c |/Open Re|turn Val|
|000035f0| 75 65 3a 0a 58 20 09 54 | 68 65 20 63 62 72 65 61 |ue:.X .T|he cbrea|
|00003600| 6b 28 29 20 66 75 6e 63 | 74 69 6f 6e 20 72 65 74 |k() func|tion ret|
|00003610| 75 72 6e 73 20 4f 4b 20 | 6f 6e 20 73 75 63 63 65 |urns OK |on succe|
|00003620| 73 73 20 61 6e 64 20 45 | 52 52 20 6f 6e 20 65 72 |ss and E|RR on er|
|00003630| 72 6f 72 2e 0a 58 0a 58 | 20 20 50 44 43 75 72 73 |ror..X.X| PDCurs|
|00003640| 65 73 20 45 72 72 6f 72 | 73 3a 0a 58 20 09 4e 6f |es Error|s:.X .No|
|00003650| 20 65 72 72 6f 72 73 20 | 61 72 65 20 64 65 66 69 | errors |are defi|
|00003660| 6e 65 64 20 66 6f 72 20 | 74 68 65 73 65 20 66 75 |ned for |these fu|
|00003670| 6e 63 74 69 6f 6e 73 2e | 0a 58 0a 58 20 20 50 6f |nctions.|.X.X Po|
|00003680| 72 74 61 62 69 6c 69 74 | 79 3a 0a 58 20 09 50 44 |rtabilit|y:.X .PD|
|00003690| 43 75 72 73 65 73 09 69 | 6e 74 20 63 62 72 65 61 |Curses.i|nt cbrea|
|000036a0| 6b 28 20 76 6f 69 64 20 | 29 3b 0a 58 20 09 58 2f |k( void |);.X .X/|
|000036b0| 4f 70 65 6e 20 44 65 63 | 20 27 38 38 09 69 6e 74 |Open Dec| '88.int|
|000036c0| 20 63 62 72 65 61 6b 28 | 20 76 6f 69 64 20 29 3b | cbreak(| void );|
|000036d0| 0a 58 20 09 42 53 44 20 | 43 75 72 73 65 73 09 69 |.X .BSD |Curses.i|
|000036e0| 6e 74 20 63 62 72 65 61 | 6b 28 20 76 6f 69 64 20 |nt cbrea|k( void |
|000036f0| 29 3b 0a 58 20 09 53 59 | 53 20 56 20 43 75 72 73 |);.X .SY|S V Curs|
|00003700| 65 73 09 69 6e 74 20 63 | 62 72 65 61 6b 28 20 76 |es.int c|break( v|
|00003710| 6f 69 64 20 29 3b 0a 58 | 0a 58 2a 2a 6d 61 6e 2d |oid );.X|.X**man-|
|00003720| 65 6e 64 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |end*****|********|
|00003730| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003740| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003750| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003760| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2f 0a 58 0a 58 69 6e |********|*/.X.Xin|
|00003770| 74 09 63 62 72 65 61 6b | 28 76 6f 69 64 29 0a 58 |t.cbreak|(void).X|
|00003780| 7b 0a 58 09 5f 63 75 72 | 73 76 61 72 2e 63 62 72 |{.X._cur|svar.cbr|
|00003790| 65 61 6b 20 3d 20 54 52 | 55 45 3b 0a 58 09 72 65 |eak = TR|UE;.X.re|
|000037a0| 74 75 72 6e 28 20 4f 4b | 20 29 3b 0a 58 7d 0a 45 |turn( OK| );.X}.E|
|000037b0| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 20 20 69 66 20 |ND_OF_FI|LE. if |
|000037c0| 74 65 73 74 20 31 33 34 | 35 20 2d 6e 65 20 60 77 |test 134|5 -ne `w|
|000037d0| 63 20 2d 63 20 3c 27 70 | 6f 72 74 61 62 6c 65 2f |c -c <'p|ortable/|
|000037e0| 63 62 72 65 61 6b 2e 63 | 27 60 3b 20 74 68 65 6e |cbreak.c|'`; then|
|000037f0| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00003800| 5c 22 27 70 6f 72 74 61 | 62 6c 65 2f 63 62 72 65 |\"'porta|ble/cbre|
|00003810| 61 6b 2e 63 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |ak.c'\" |unpacked|
|00003820| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|00003830| 21 0a 20 20 66 69 0a 20 | 20 23 20 65 6e 64 20 6f |!. fi. | # end o|
|00003840| 66 20 27 70 6f 72 74 61 | 62 6c 65 2f 63 62 72 65 |f 'porta|ble/cbre|
|00003850| 61 6b 2e 63 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |ak.c'.fi|.if test|
|00003860| 20 2d 66 20 27 70 6f 72 | 74 61 62 6c 65 2f 64 65 | -f 'por|table/de|
|00003870| 6c 61 79 5f 6f 75 2e 63 | 27 20 2d 61 20 22 24 7b |lay_ou.c|' -a "${|
|00003880| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00003890| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|000038a0| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|000038b0| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|000038c0| 5c 22 27 70 6f 72 74 61 | 62 6c 65 2f 64 65 6c 61 |\"'porta|ble/dela|
|000038d0| 79 5f 6f 75 2e 63 27 5c | 22 0a 65 6c 73 65 0a 20 |y_ou.c'\|".else. |
|000038e0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 | echo sh|ar: Extr|
|000038f0| 61 63 74 69 6e 67 20 5c | 22 27 70 6f 72 74 61 62 |acting \|"'portab|
|00003900| 6c 65 2f 64 65 6c 61 79 | 5f 6f 75 2e 63 27 5c 22 |le/delay|_ou.c'\"|
|00003910| 20 5c 28 31 33 32 38 20 | 63 68 61 72 61 63 74 65 | \(1328 |characte|
|00003920| 72 73 5c 29 0a 20 20 73 | 65 64 20 22 73 2f 5e 58 |rs\). s|ed "s/^X|
|00003930| 2f 2f 22 20 3e 27 70 6f | 72 74 61 62 6c 65 2f 64 |//" >'po|rtable/d|
|00003940| 65 6c 61 79 5f 6f 75 2e | 63 27 20 3c 3c 27 45 4e |elay_ou.|c' <<'EN|
|00003950| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 23 64 65 66 |D_OF_FIL|E'.X#def|
|00003960| 69 6e 65 09 43 55 52 53 | 45 53 5f 4c 49 42 52 41 |ine.CURS|ES_LIBRA|
|00003970| 52 59 09 31 0a 58 2f 2a | 23 64 65 66 69 6e 65 20 |RY.1.X/*|#define |
|00003980| 4e 45 45 44 53 5f 4f 53 | 32 20 20 20 20 20 20 20 |NEEDS_OS|2 |
|00003990| 31 2a 2f 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 63 |1*/.X#in|clude <c|
|000039a0| 75 72 73 65 73 2e 68 3e | 0a 58 23 75 6e 64 65 66 |urses.h>|.X#undef|
|000039b0| 09 64 65 6c 61 79 5f 6f | 75 74 70 75 74 0a 58 0a |.delay_o|utput.X.|
|000039c0| 58 23 69 66 20 64 65 66 | 69 6e 65 64 28 44 4f 53 |X#if def|ined(DOS|
|000039d0| 29 20 26 26 20 64 65 66 | 69 6e 65 64 28 4d 53 43 |) && def|ined(MSC|
|000039e0| 29 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 74 69 6d |).X#incl|ude <tim|
|000039f0| 65 2e 68 3e 0a 58 23 65 | 6e 64 69 66 0a 58 0a 58 |e.h>.X#e|ndif.X.X|
|00003a00| 23 69 66 6e 64 65 66 09 | 4e 44 45 42 55 47 0a 58 |#ifndef.|NDEBUG.X|
|00003a10| 63 68 61 72 20 2a 72 63 | 73 69 64 5f 64 65 6c 61 |char *rc|sid_dela|
|00003a20| 79 5f 6f 75 20 3d 20 22 | 24 48 65 61 64 65 72 3a |y_ou = "|$Header:|
|00003a30| 20 63 3a 2f 63 75 72 73 | 65 73 2f 70 6f 72 74 61 | c:/curs|es/porta|
|00003a40| 62 6c 65 2f 52 43 53 2f | 64 65 6c 61 79 5f 6f 75 |ble/RCS/|delay_ou|
|00003a50| 2e 63 25 76 20 32 2e 30 | 20 31 39 39 32 2f 31 31 |.c%v 2.0| 1992/11|
|00003a60| 2f 31 35 20 30 33 3a 32 | 38 3a 34 36 20 4d 48 20 |/15 03:2|8:46 MH |
|00003a70| 52 65 6c 20 24 22 3b 0a | 58 23 65 6e 64 69 66 0a |Rel $";.|X#endif.|
|00003a80| 58 0a 58 23 69 66 64 65 | 66 20 4f 53 32 0a 58 09 |X.X#ifde|f OS2.X.|
|00003a90| 41 50 49 52 45 54 20 41 | 50 49 45 4e 54 52 59 20 |APIRET A|PIENTRY |
|00003aa0| 44 6f 73 53 6c 65 65 70 | 28 55 4c 4f 4e 47 20 75 |DosSleep|(ULONG u|
|00003ab0| 6c 54 69 6d 65 29 3b 0a | 58 23 65 6e 64 69 66 0a |lTime);.|X#endif.|
|00003ac0| 58 0a 58 0a 58 2f 2a 6d | 61 6e 2d 73 74 61 72 74 |X.X.X/*m|an-start|
|00003ad0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003ae0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003af0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003b00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003b10| 2a 2a 2a 2a 2a 0a 58 0a | 58 20 20 64 65 6c 61 79 |*****.X.|X delay|
|00003b20| 5f 6f 75 74 70 75 74 28 | 29 09 2d 20 63 61 75 73 |_output(|).- caus|
|00003b30| 65 20 73 68 6f 72 74 20 | 64 65 6c 61 79 0a 58 0a |e short |delay.X.|
|00003b40| 58 20 20 58 2f 4f 70 65 | 6e 20 44 65 73 63 72 69 |X X/Ope|n Descri|
|00003b50| 70 74 69 6f 6e 3a 0a 58 | 20 09 49 6e 73 65 72 74 |ption:.X| .Insert|
|00003b60| 20 6d 73 20 6d 69 6c 6c | 69 73 65 63 6f 6e 64 20 | ms mill|isecond |
|00003b70| 70 61 75 73 65 20 69 6e | 20 6f 75 74 70 75 74 2e |pause in| output.|
|00003b80| 20 20 4f 6e 20 73 6f 6d | 65 20 73 79 73 74 65 6d | On som|e system|
|00003b90| 73 2c 20 74 68 69 73 0a | 58 20 09 68 61 73 20 6e |s, this.|X .has n|
|00003ba0| 6f 20 65 66 66 65 63 74 | 2e 0a 58 0a 58 20 20 50 |o effect|..X.X P|
|00003bb0| 44 43 75 72 73 65 73 20 | 44 65 73 63 72 69 70 74 |DCurses |Descript|
|00003bc0| 69 6f 6e 3a 0a 58 20 09 | 54 68 69 73 20 72 6f 75 |ion:.X .|This rou|
|00003bd0| 74 69 6e 65 20 72 65 6c | 69 65 73 20 6f 6e 20 74 |tine rel|ies on t|
|00003be0| 68 65 20 63 6f 6d 70 69 | 6c 65 72 27 73 20 64 65 |he compi|ler's de|
|00003bf0| 6c 61 79 28 29 20 72 6f | 75 74 69 6e 65 20 61 6e |lay() ro|utine an|
|00003c00| 64 0a 58 20 09 70 72 6f | 76 69 64 65 73 20 74 68 |d.X .pro|vides th|
|00003c10| 69 73 20 78 20 6d 69 6c | 6c 69 73 65 63 6f 6e 64 |is x mil|lisecond|
|00003c20| 20 67 72 61 6e 75 6c 61 | 72 69 74 79 20 74 6f 20 | granula|rity to |
|00003c30| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e |the appl|ication.|
|00003c40| 0a 58 0a 58 20 20 58 2f | 4f 70 65 6e 20 52 65 74 |.X.X X/|Open Ret|
|00003c50| 75 72 6e 20 56 61 6c 75 | 65 3a 0a 58 20 09 54 68 |urn Valu|e:.X .Th|
|00003c60| 65 20 64 65 6c 61 79 5f | 6f 75 74 70 75 74 28 29 |e delay_|output()|
|00003c70| 20 66 75 6e 63 74 69 6f | 6e 20 72 65 74 75 72 6e | functio|n return|
|00003c80| 73 20 4f 4b 20 6f 6e 20 | 73 75 63 63 65 73 73 20 |s OK on |success |
|00003c90| 61 6e 64 20 45 52 52 20 | 6f 6e 20 65 72 72 6f 72 |and ERR |on error|
|00003ca0| 2e 0a 58 0a 58 20 20 50 | 44 43 75 72 73 65 73 20 |..X.X P|DCurses |
|00003cb0| 45 72 72 6f 72 73 3a 0a | 58 20 09 49 66 20 74 68 |Errors:.|X .If th|
|00003cc0| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 69 73 20 61 |is funct|ion is a|
|00003cd0| 20 6e 6f 70 2c 20 74 68 | 65 6e 20 61 6e 20 45 52 | nop, th|en an ER|
|00003ce0| 52 20 69 73 20 72 65 74 | 75 72 6e 65 64 2e 0a 58 |R is ret|urned..X|
|00003cf0| 0a 58 20 20 50 6f 72 74 | 61 62 69 6c 69 74 79 3a |.X Port|ability:|
|00003d00| 0a 58 20 09 50 44 43 75 | 72 73 65 73 09 69 6e 74 |.X .PDCu|rses.int|
|00003d10| 20 64 65 6c 61 79 5f 6f | 75 74 70 75 74 28 20 69 | delay_o|utput( i|
|00003d20| 6e 74 20 6d 73 20 29 3b | 0a 58 20 09 58 2f 4f 70 |nt ms );|.X .X/Op|
|00003d30| 65 6e 20 44 65 63 20 27 | 38 38 09 69 6e 74 20 64 |en Dec '|88.int d|
|00003d40| 65 6c 61 79 5f 6f 75 74 | 70 75 74 28 20 69 6e 74 |elay_out|put( int|
|00003d50| 20 6d 73 20 29 3b 0a 58 | 20 09 42 53 44 20 43 75 | ms );.X| .BSD Cu|
|00003d60| 72 73 65 73 09 0a 58 20 | 09 53 59 53 20 56 20 43 |rses..X |.SYS V C|
|00003d70| 75 72 73 65 73 09 0a 58 | 0a 58 2a 2a 6d 61 6e 2d |urses..X|.X**man-|
|00003d80| 65 6e 64 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |end*****|********|
|00003d90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003da0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003db0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003dc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2f 0a 58 0a 58 69 6e |********|*/.X.Xin|
|00003dd0| 74 09 64 65 6c 61 79 5f | 6f 75 74 70 75 74 28 20 |t.delay_|output( |
|00003de0| 69 6e 74 20 6d 73 20 29 | 0a 58 7b 0a 58 23 69 66 |int ms )|.X{.X#if|
|00003df0| 20 64 65 66 69 6e 65 64 | 28 54 43 29 20 26 26 20 | defined|(TC) && |
|00003e00| 64 65 66 69 6e 65 64 28 | 44 4f 53 29 0a 58 09 64 |defined(|DOS).X.d|
|00003e10| 65 6c 61 79 28 20 6d 73 | 20 29 3b 0a 58 09 72 65 |elay( ms| );.X.re|
|00003e20| 74 75 72 6e 28 20 4f 4b | 20 29 3b 0a 58 23 65 6e |turn( OK| );.X#en|
|00003e30| 64 69 66 0a 58 23 69 66 | 09 64 65 66 69 6e 65 64 |dif.X#if|.defined|
|00003e40| 28 4f 53 32 29 0a 58 09 | 44 6f 73 53 6c 65 65 70 |(OS2).X.|DosSleep|
|00003e50| 28 6d 73 29 3b 0a 58 09 | 72 65 74 75 72 6e 28 20 |(ms);.X.|return( |
|00003e60| 4f 4b 20 29 3b 0a 58 23 | 65 6e 64 69 66 0a 58 23 |OK );.X#|endif.X#|
|00003e70| 69 66 09 64 65 66 69 6e | 65 64 28 44 4f 53 29 20 |if.defin|ed(DOS) |
|00003e80| 26 26 20 64 65 66 69 6e | 65 64 28 4d 53 43 29 0a |&& defin|ed(MSC).|
|00003e90| 58 09 50 44 43 5f 75 73 | 6c 65 65 70 28 28 63 6c |X.PDC_us|leep((cl|
|00003ea0| 6f 63 6b 5f 74 29 6d 73 | 29 3b 0a 58 09 72 65 74 |ock_t)ms|);.X.ret|
|00003eb0| 75 72 6e 28 20 4f 4b 20 | 29 3b 0a 58 23 65 6e 64 |urn( OK |);.X#end|
|00003ec0| 69 66 0a 58 7d 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |if.X}.EN|D_OF_FIL|
|00003ed0| 45 0a 20 20 69 66 20 74 | 65 73 74 20 31 33 32 38 |E. if t|est 1328|
|00003ee0| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 70 6f | -ne `wc| -c <'po|
|00003ef0| 72 74 61 62 6c 65 2f 64 | 65 6c 61 79 5f 6f 75 2e |rtable/d|elay_ou.|
|00003f00| 63 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |c'`; the|n. ec|
|00003f10| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 70 6f 72 74 |ho shar:| \"'port|
|00003f20| 61 62 6c 65 2f 64 65 6c | 61 79 5f 6f 75 2e 63 27 |able/del|ay_ou.c'|
|00003f30| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00003f40| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 20 20 66 | wrong s|ize!. f|
|00003f50| 69 0a 20 20 23 20 65 6e | 64 20 6f 66 20 27 70 6f |i. # en|d of 'po|
|00003f60| 72 74 61 62 6c 65 2f 64 | 65 6c 61 79 5f 6f 75 2e |rtable/d|elay_ou.|
|00003f70| 63 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |c'.fi.if| test -f|
|00003f80| 20 27 70 6f 72 74 61 62 | 6c 65 2f 67 65 74 79 78 | 'portab|le/getyx|
|00003f90| 2e 63 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |.c' -a "|${1}" !=|
|00003fa0| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00003fb0| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00003fc0| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00003fd0| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 70 6f 72 |ting fil|e \"'por|
|00003fe0| 74 61 62 6c 65 2f 67 65 | 74 79 78 2e 63 27 5c 22 |table/ge|tyx.c'\"|
|00003ff0| 0a 65 6c 73 65 0a 20 20 | 65 63 68 6f 20 73 68 61 |.else. |echo sha|
|00004000| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00004010| 27 70 6f 72 74 61 62 6c | 65 2f 67 65 74 79 78 2e |'portabl|e/getyx.|
|00004020| 63 27 5c 22 20 5c 28 31 | 33 32 36 20 63 68 61 72 |c'\" \(1|326 char|
|00004030| 61 63 74 65 72 73 5c 29 | 0a 20 20 73 65 64 20 22 |acters\)|. sed "|
|00004040| 73 2f 5e 58 2f 2f 22 20 | 3e 27 70 6f 72 74 61 62 |s/^X//" |>'portab|
|00004050| 6c 65 2f 67 65 74 79 78 | 2e 63 27 20 3c 3c 27 45 |le/getyx|.c' <<'E|
|00004060| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 23 64 65 |ND_OF_FI|LE'.X#de|
|00004070| 66 69 6e 65 09 43 55 52 | 53 45 53 5f 4c 49 42 52 |fine.CUR|SES_LIBR|
|00004080| 41 52 59 09 31 0a 58 23 | 69 6e 63 6c 75 64 65 20 |ARY.1.X#|include |
|00004090| 3c 63 75 72 73 65 73 2e | 68 3e 0a 58 23 75 6e 64 |<curses.|h>.X#und|
|000040a0| 65 66 09 67 65 74 79 78 | 0a 58 0a 58 23 69 66 6e |ef.getyx|.X.X#ifn|
|000040b0| 64 65 66 09 4e 44 45 42 | 55 47 0a 58 63 68 61 72 |def.NDEB|UG.Xchar|
|000040c0| 20 2a 72 63 73 69 64 5f | 67 65 74 79 78 20 3d 20 | *rcsid_|getyx = |
|000040d0| 22 24 48 65 61 64 65 72 | 3a 20 63 3a 2f 63 75 72 |"$Header|: c:/cur|
|000040e0| 73 65 73 2f 70 6f 72 74 | 61 62 6c 65 2f 52 43 53 |ses/port|able/RCS|
|000040f0| 2f 67 65 74 79 78 2e 63 | 25 76 20 32 2e 30 20 31 |/getyx.c|%v 2.0 1|
|00004100| 39 39 32 2f 31 31 2f 31 | 35 20 30 33 3a 32 38 3a |992/11/1|5 03:28:|
|00004110| 35 33 20 4d 48 20 52 65 | 6c 20 24 22 3b 0a 58 23 |53 MH Re|l $";.X#|
|00004120| 65 6e 64 69 66 0a 58 0a | 58 0a 58 0a 58 0a 58 2f |endif.X.|X.X.X.X/|
|00004130| 2a 6d 61 6e 2d 73 74 61 | 72 74 2a 2a 2a 2a 2a 2a |*man-sta|rt******|
|00004140| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004150| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004160| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004170| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0a |********|*******.|
|00004180| 58 0a 58 20 20 67 65 74 | 79 78 28 29 09 2d 20 67 |X.X get|yx().- g|
|00004190| 65 74 20 63 75 72 73 6f | 72 20 70 6f 73 69 74 69 |et curso|r positi|
|000041a0| 6f 6e 0a 58 0a 58 20 20 | 58 2f 4f 70 65 6e 20 44 |on.X.X |X/Open D|
|000041b0| 65 73 63 72 69 70 74 69 | 6f 6e 3a 0a 58 20 09 54 |escripti|on:.X .T|
|000041c0| 68 65 20 63 75 72 73 6f | 72 20 70 6f 73 69 74 69 |he curso|r positi|
|000041d0| 6f 6e 20 6f 66 20 74 68 | 65 20 77 69 6e 64 6f 77 |on of th|e window|
|000041e0| 20 69 73 20 70 6c 61 63 | 65 64 20 69 6e 20 74 68 | is plac|ed in th|
|000041f0| 65 20 74 77 6f 20 69 6e | 74 65 67 65 72 0a 58 20 |e two in|teger.X |
|00004200| 09 76 61 72 69 61 62 6c | 65 73 20 79 20 61 6e 64 |.variabl|es y and|
|00004210| 20 78 2e 20 20 54 68 69 | 73 20 69 73 20 69 6d 70 | x. Thi|s is imp|
|00004220| 6c 65 6d 65 6e 74 65 64 | 20 61 73 20 61 20 6d 61 |lemented| as a ma|
|00004230| 63 72 6f 2c 20 73 6f 20 | 6e 6f 20 26 20 69 73 0a |cro, so |no & is.|
|00004240| 58 20 09 6e 65 63 65 73 | 73 61 72 79 20 62 65 66 |X .neces|sary bef|
|00004250| 6f 72 65 20 74 68 65 20 | 76 61 72 69 61 62 6c 65 |ore the |variable|
|00004260| 73 2e 0a 58 0a 58 20 09 | 4e 4f 54 45 3a 20 67 65 |s..X.X .|NOTE: ge|
|00004270| 74 79 78 28 29 20 69 73 | 20 61 20 6d 61 63 72 6f |tyx() is| a macro|
|00004280| 2e 0a 58 0a 58 20 20 50 | 44 43 75 72 73 65 73 20 |..X.X P|DCurses |
|00004290| 44 65 73 63 72 69 70 74 | 69 6f 6e 3a 0a 58 20 09 |Descript|ion:.X .|
|000042a0| 54 68 69 73 20 72 6f 75 | 74 69 6e 65 20 69 73 20 |This rou|tine is |
|000042b0| 68 65 72 65 20 74 6f 20 | 61 73 20 61 20 64 6f 63 |here to |as a doc|
|000042c0| 75 6d 65 6e 74 61 74 69 | 6f 6e 20 70 6c 61 63 65 |umentati|on place|
|000042d0| 20 68 6f 6c 64 65 72 2e | 20 20 54 68 65 0a 58 20 | holder.| The.X |
|000042e0| 09 63 6f 64 65 20 69 6e | 20 74 68 69 73 20 6d 6f |.code in| this mo|
|000042f0| 64 75 6c 65 20 77 69 6c | 6c 20 6e 65 76 65 72 20 |dule wil|l never |
|00004300| 62 65 20 65 78 65 63 75 | 74 65 64 20 75 6e 6c 65 |be execu|ted unle|
|00004310| 73 73 20 79 6f 75 20 23 | 75 6e 64 65 66 0a 58 20 |ss you #|undef.X |
|00004320| 09 67 65 74 79 78 28 29 | 2c 20 69 6e 20 77 68 69 |.getyx()|, in whi|
|00004330| 63 68 20 63 61 73 65 2c | 20 79 6f 75 20 77 69 6c |ch case,| you wil|
|00004340| 6c 20 6e 65 65 64 20 74 | 68 65 20 26 20 6f 70 65 |l need t|he & ope|
|00004350| 72 61 74 6f 72 2e 0a 58 | 0a 58 20 20 58 2f 4f 70 |rator..X|.X X/Op|
|00004360| 65 6e 20 52 65 74 75 72 | 6e 20 56 61 6c 75 65 3a |en Retur|n Value:|
|00004370| 0a 58 20 09 54 68 69 73 | 20 66 75 6e 63 74 69 6f |.X .This| functio|
|00004380| 6e 20 72 65 74 75 72 6e | 73 20 4f 4b 20 6f 6e 20 |n return|s OK on |
|00004390| 73 75 63 63 65 73 73 20 | 61 6e 64 20 45 52 52 20 |success |and ERR |
|000043a0| 6f 6e 20 65 72 72 6f 72 | 2e 0a 58 0a 58 20 20 58 |on error|..X.X X|
|000043b0| 2f 4f 70 65 6e 20 45 72 | 72 6f 72 73 3a 0a 58 20 |/Open Er|rors:.X |
|000043c0| 09 4e 6f 20 65 72 72 6f | 72 73 20 61 72 65 20 64 |.No erro|rs are d|
|000043d0| 65 66 69 6e 65 64 20 66 | 6f 72 20 74 68 69 73 20 |efined f|or this |
|000043e0| 66 75 6e 63 74 69 6f 6e | 2e 0a 58 0a 58 20 20 50 |function|..X.X P|
|000043f0| 6f 72 74 61 62 69 6c 69 | 74 79 3a 0a 58 20 09 50 |ortabili|ty:.X .P|
|00004400| 44 43 75 72 73 65 73 09 | 69 6e 74 20 67 65 74 79 |DCurses.|int gety|
|00004410| 78 28 20 57 49 4e 44 4f | 57 2a 20 77 69 6e 2c 20 |x( WINDO|W* win, |
|00004420| 69 6e 74 2a 20 79 2c 20 | 69 6e 74 2a 20 78 20 29 |int* y, |int* x )|
|00004430| 3b 0a 58 20 09 20 20 20 | 20 6f 72 20 09 09 69 6e |;.X . | or ..in|
|00004440| 74 20 67 65 74 79 78 28 | 20 57 49 4e 44 4f 57 2a |t getyx(| WINDOW*|
|00004450| 20 77 69 6e 2c 20 69 6e | 74 20 79 2c 20 69 6e 74 | win, in|t y, int|
|00004460| 20 78 20 29 3b 0a 58 20 | 09 58 2f 4f 70 65 6e 20 | x );.X |.X/Open |
|00004470| 44 65 63 20 27 38 38 09 | 69 6e 74 20 67 65 74 79 |Dec '88.|int gety|
|00004480| 78 28 20 57 49 4e 44 4f | 57 2a 20 77 69 6e 2c 20 |x( WINDO|W* win, |
|00004490| 69 6e 74 20 79 2c 20 69 | 6e 74 20 78 20 29 3b 0a |int y, i|nt x );.|
|000044a0| 58 20 09 42 53 44 20 43 | 75 72 73 65 73 09 69 6e |X .BSD C|urses.in|
|000044b0| 74 20 67 65 74 79 78 28 | 20 57 49 4e 44 4f 57 2a |t getyx(| WINDOW*|
|000044c0| 20 77 69 6e 2c 20 69 6e | 74 20 79 2c 20 69 6e 74 | win, in|t y, int|
|000044d0| 20 78 20 29 3b 0a 58 20 | 09 53 59 53 20 56 20 43 | x );.X |.SYS V C|
|000044e0| 75 72 73 65 73 09 69 6e | 74 20 67 65 74 79 78 28 |urses.in|t getyx(|
|000044f0| 20 57 49 4e 44 4f 57 2a | 20 77 69 6e 2c 20 69 6e | WINDOW*| win, in|
|00004500| 74 20 79 2c 20 69 6e 74 | 20 78 20 29 3b 0a 58 0a |t y, int| x );.X.|
|00004510| 58 2a 2a 6d 61 6e 2d 65 | 6e 64 2a 2a 2a 2a 2a 2a |X**man-e|nd******|
|00004520| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004530| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004540| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004550| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004560| 2f 0a 58 0a 58 69 6e 74 | 09 67 65 74 79 78 28 20 |/.X.Xint|.getyx( |
|00004570| 57 49 4e 44 4f 57 20 2a | 77 69 6e 2c 20 69 6e 74 |WINDOW *|win, int|
|00004580| 20 2a 79 2c 20 69 6e 74 | 20 2a 78 20 29 0a 58 7b | *y, int| *x ).X{|
|00004590| 0a 58 09 2a 79 20 3d 20 | 77 69 6e 2d 3e 5f 63 75 |.X.*y = |win->_cu|
|000045a0| 72 79 3b 0a 58 09 2a 78 | 20 3d 20 77 69 6e 2d 3e |ry;.X.*x| = win->|
|000045b0| 5f 63 75 72 78 3b 0a 58 | 09 72 65 74 75 72 6e 28 |_curx;.X|.return(|
|000045c0| 20 4f 4b 20 29 3b 0a 58 | 7d 0a 45 4e 44 5f 4f 46 | OK );.X|}.END_OF|
|000045d0| 5f 46 49 4c 45 0a 20 20 | 69 66 20 74 65 73 74 20 |_FILE. |if test |
|000045e0| 31 33 32 36 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 |1326 -ne| `wc -c |
|000045f0| 3c 27 70 6f 72 74 61 62 | 6c 65 2f 67 65 74 79 78 |<'portab|le/getyx|
|00004600| 2e 63 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |.c'`; th|en. e|
|00004610| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 70 6f 72 |cho shar|: \"'por|
|00004620| 74 61 62 6c 65 2f 67 65 | 74 79 78 2e 63 27 5c 22 |table/ge|tyx.c'\"|
|00004630| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00004640| 72 6f 6e 67 20 73 69 7a | 65 21 0a 20 20 66 69 0a |rong siz|e!. fi.|
|00004650| 20 20 23 20 65 6e 64 20 | 6f 66 20 27 70 6f 72 74 | # end |of 'port|
|00004660| 61 62 6c 65 2f 67 65 74 | 79 78 2e 63 27 0a 66 69 |able/get|yx.c'.fi|
|00004670| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 70 6f 72 |.if test| -f 'por|
|00004680| 74 61 62 6c 65 2f 68 61 | 73 5f 69 63 2e 63 27 20 |table/ha|s_ic.c' |
|00004690| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|000046a0| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|000046b0| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|000046c0| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|000046d0| 20 66 69 6c 65 20 5c 22 | 27 70 6f 72 74 61 62 6c | file \"|'portabl|
|000046e0| 65 2f 68 61 73 5f 69 63 | 2e 63 27 5c 22 0a 65 6c |e/has_ic|.c'\".el|
|000046f0| 73 65 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |se. ech|o shar: |
|00004700| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 70 6f |Extracti|ng \"'po|
|00004710| 72 74 61 62 6c 65 2f 68 | 61 73 5f 69 63 2e 63 27 |rtable/h|as_ic.c'|
|00004720| 5c 22 20 5c 28 31 32 30 | 35 20 63 68 61 72 61 63 |\" \(120|5 charac|
|00004730| 74 65 72 73 5c 29 0a 20 | 20 73 65 64 20 22 73 2f |ters\). | sed "s/|
|00004740| 5e 58 2f 2f 22 20 3e 27 | 70 6f 72 74 61 62 6c 65 |^X//" >'|portable|
|00004750| 2f 68 61 73 5f 69 63 2e | 63 27 20 3c 3c 27 45 4e |/has_ic.|c' <<'EN|
|00004760| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 23 64 65 66 |D_OF_FIL|E'.X#def|
|00004770| 69 6e 65 09 43 55 52 53 | 45 53 5f 4c 49 42 52 41 |ine.CURS|ES_LIBRA|
|00004780| 52 59 09 31 0a 58 23 69 | 6e 63 6c 75 64 65 20 3c |RY.1.X#i|nclude <|
|00004790| 63 75 72 73 65 73 2e 68 | 3e 0a 58 23 75 6e 64 65 |curses.h|>.X#unde|
|000047a0| 66 09 68 61 73 5f 69 63 | 0a 58 0a 58 23 69 66 6e |f.has_ic|.X.X#ifn|
|000047b0| 64 65 66 09 4e 44 45 42 | 55 47 0a 58 63 68 61 72 |def.NDEB|UG.Xchar|
|000047c0| 20 2a 72 63 73 69 64 5f | 68 61 73 5f 69 63 20 3d | *rcsid_|has_ic =|
|000047d0| 20 22 24 48 65 61 64 65 | 72 3a 20 63 3a 2f 63 75 | "$Heade|r: c:/cu|
|000047e0| 72 73 65 73 2f 70 6f 72 | 74 61 62 6c 65 2f 52 43 |rses/por|table/RC|
|000047f0| 53 2f 68 61 73 5f 69 63 | 2e 63 25 76 20 32 2e 30 |S/has_ic|.c%v 2.0|
|00004800| 20 31 39 39 32 2f 31 31 | 2f 31 35 20 30 33 3a 32 | 1992/11|/15 03:2|
|00004810| 38 3a 35 34 20 4d 48 20 | 52 65 6c 20 24 22 3b 0a |8:54 MH |Rel $";.|
|00004820| 58 23 65 6e 64 69 66 0a | 58 0a 58 0a 58 0a 58 0a |X#endif.|X.X.X.X.|
|00004830| 58 2f 2a 6d 61 6e 2d 73 | 74 61 72 74 2a 2a 2a 2a |X/*man-s|tart****|
|00004840| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004850| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004860| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004870| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004880| 2a 0a 58 0a 58 20 20 68 | 61 73 5f 69 63 28 29 09 |*.X.X h|as_ic().|
|00004890| 2d 20 64 65 74 65 72 6d | 69 6e 65 20 77 68 65 74 |- determ|ine whet|
|000048a0| 68 65 72 20 69 6e 73 65 | 72 74 2f 64 65 6c 65 74 |her inse|rt/delet|
|000048b0| 65 20 63 68 61 72 61 63 | 74 65 72 20 61 76 61 69 |e charac|ter avai|
|000048c0| 6c 61 62 6c 65 0a 58 0a | 58 20 20 58 2f 4f 70 65 |lable.X.|X X/Ope|
|000048d0| 6e 20 44 65 73 63 72 69 | 70 74 69 6f 6e 3a 0a 58 |n Descri|ption:.X|
|000048e0| 20 09 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 | .This f|unction |
|000048f0| 77 69 6c 6c 20 72 65 74 | 75 72 6e 20 54 52 55 45 |will ret|urn TRUE|
|00004900| 20 69 66 20 74 68 65 20 | 74 65 72 6d 69 6e 61 6c | if the |terminal|
|00004910| 20 68 61 73 20 69 6e 73 | 65 72 74 20 63 68 61 72 | has ins|ert char|
|00004920| 61 63 74 65 72 0a 58 20 | 09 61 6e 64 20 64 65 6c |acter.X |.and del|
|00004930| 65 74 65 20 63 68 61 72 | 61 63 74 65 72 20 63 61 |ete char|acter ca|
|00004940| 70 61 62 69 6c 69 74 69 | 65 73 2e 0a 58 0a 58 20 |pabiliti|es..X.X |
|00004950| 20 50 44 43 75 72 73 65 | 73 20 44 65 73 63 72 69 | PDCurse|s Descri|
|00004960| 70 74 69 6f 6e 3a 0a 58 | 20 09 46 6f 72 20 44 4f |ption:.X| .For DO|
|00004970| 53 2c 20 74 68 69 73 20 | 69 73 20 69 72 72 65 6c |S, this |is irrel|
|00004980| 65 76 61 6e 74 20 28 61 | 6e 64 20 41 4c 57 41 59 |evant (a|nd ALWAY|
|00004990| 53 20 54 52 55 45 29 2c | 20 61 73 20 74 68 65 20 |S TRUE),| as the |
|000049a0| 73 70 65 65 64 20 6f 66 | 0a 58 20 09 74 68 65 20 |speed of|.X .the |
|000049b0| 44 49 52 45 43 54 20 56 | 49 44 45 4f 20 6f 72 20 |DIRECT V|IDEO or |
|000049c0| 65 76 65 6e 20 42 49 4f | 53 20 77 72 69 74 65 73 |even BIO|S writes|
|000049d0| 20 69 73 20 71 75 69 63 | 6b 65 72 20 74 68 61 6e | is quic|ker than|
|000049e0| 20 6f 6e 20 61 0a 58 20 | 09 73 65 72 69 61 6c 20 | on a.X |.serial |
|000049f0| 74 65 72 6d 69 6e 61 6c | 2e 0a 58 0a 58 20 09 46 |terminal|..X.X .F|
|00004a00| 6f 72 20 46 4c 45 58 4f | 53 2c 20 74 68 69 73 20 |or FLEXO|S, this |
|00004a10| 76 61 6c 75 65 20 68 61 | 73 20 6d 65 61 6e 69 6e |value ha|s meanin|
|00004a20| 67 20 61 6e 64 20 64 65 | 70 65 6e 64 73 20 6f 6e |g and de|pends on|
|00004a30| 20 74 68 65 20 74 65 72 | 6d 69 6e 61 6c 2c 0a 58 | the ter|minal,.X|
|00004a40| 20 09 74 68 6f 75 67 68 | 20 61 74 20 74 68 69 73 | .though| at this|
|00004a50| 20 74 69 6d 65 2c 20 69 | 74 20 69 73 20 61 20 63 | time, i|t is a c|
|00004a60| 6f 6e 73 74 61 6e 74 20 | 54 52 55 45 2e 0a 58 0a |onstant |TRUE..X.|
|00004a70| 58 20 20 58 2f 4f 70 65 | 6e 20 52 65 74 75 72 6e |X X/Ope|n Return|
|00004a80| 20 56 61 6c 75 65 3a 0a | 58 20 09 54 68 65 20 68 | Value:.|X .The h|
|00004a90| 61 73 5f 69 63 28 29 20 | 66 75 6e 63 74 69 6f 6e |as_ic() |function|
|00004aa0| 20 72 65 74 75 72 6e 73 | 20 54 52 55 45 20 69 66 | returns| TRUE if|
|00004ab0| 20 74 68 65 20 74 65 72 | 6d 69 6e 61 6c 20 68 61 | the ter|minal ha|
|00004ac0| 73 20 69 6e 73 65 72 74 | 0a 58 20 09 63 68 61 72 |s insert|.X .char|
|00004ad0| 61 63 74 65 72 20 61 6e | 64 20 64 65 6c 65 74 65 |acter an|d delete|
|00004ae0| 20 63 68 61 72 61 63 74 | 65 72 20 63 61 70 61 62 | charact|er capab|
|00004af0| 69 6c 69 74 69 65 73 2c | 20 6f 74 68 65 72 77 69 |ilities,| otherwi|
|00004b00| 73 65 20 69 74 20 72 65 | 74 75 72 6e 73 0a 58 20 |se it re|turns.X |
|00004b10| 09 46 41 4c 53 45 2e 0a | 58 0a 58 20 20 58 2f 4f |.FALSE..|X.X X/O|
|00004b20| 70 65 6e 20 45 72 72 6f | 72 73 3a 0a 58 20 09 4e |pen Erro|rs:.X .N|
|00004b30| 6f 20 65 72 72 6f 72 73 | 20 61 72 65 20 64 65 66 |o errors| are def|
|00004b40| 69 6e 65 64 20 66 6f 72 | 20 74 68 69 73 20 66 75 |ined for| this fu|
|00004b50| 6e 63 74 69 6f 6e 2e 0a | 58 0a 58 20 20 50 6f 72 |nction..|X.X Por|
|00004b60| 74 61 62 69 6c 69 74 79 | 3a 0a 58 20 09 50 44 43 |tability|:.X .PDC|
|00004b70| 75 72 73 65 73 09 62 6f | 6f 6c 20 68 61 73 5f 69 |urses.bo|ol has_i|
|00004b80| 63 28 76 6f 69 64 29 3b | 0a 58 20 09 58 2f 4f 70 |c(void);|.X .X/Op|
|00004b90| 65 6e 20 44 65 63 20 27 | 38 38 09 62 6f 6f 6c 20 |en Dec '|88.bool |
|00004ba0| 68 61 73 5f 69 63 28 76 | 6f 69 64 29 3b 0a 58 20 |has_ic(v|oid);.X |
|00004bb0| 09 42 53 44 20 43 75 72 | 73 65 73 09 0a 58 20 09 |.BSD Cur|ses..X .|
|00004bc0| 53 59 53 20 56 20 43 75 | 72 73 65 73 09 0a 58 0a |SYS V Cu|rses..X.|
|00004bd0| 58 2a 2a 6d 61 6e 2d 65 | 6e 64 2a 2a 2a 2a 2a 2a |X**man-e|nd******|
|00004be0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004bf0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004c00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004c10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004c20| 2f 0a 58 0a 58 62 6f 6f | 6c 09 68 61 73 5f 69 63 |/.X.Xboo|l.has_ic|
|00004c30| 28 76 6f 69 64 29 0a 58 | 7b 0a 58 09 72 65 74 75 |(void).X|{.X.retu|
|00004c40| 72 6e 28 20 54 52 55 45 | 20 29 3b 0a 58 7d 0a 45 |rn( TRUE| );.X}.E|
|00004c50| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 20 20 69 66 20 |ND_OF_FI|LE. if |
|00004c60| 74 65 73 74 20 31 32 30 | 35 20 2d 6e 65 20 60 77 |test 120|5 -ne `w|
|00004c70| 63 20 2d 63 20 3c 27 70 | 6f 72 74 61 62 6c 65 2f |c -c <'p|ortable/|
|00004c80| 68 61 73 5f 69 63 2e 63 | 27 60 3b 20 74 68 65 6e |has_ic.c|'`; then|
|00004c90| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00004ca0| 5c 22 27 70 6f 72 74 61 | 62 6c 65 2f 68 61 73 5f |\"'porta|ble/has_|
|00004cb0| 69 63 2e 63 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |ic.c'\" |unpacked|
|00004cc0| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|00004cd0| 21 0a 20 20 66 69 0a 20 | 20 23 20 65 6e 64 20 6f |!. fi. | # end o|
|00004ce0| 66 20 27 70 6f 72 74 61 | 62 6c 65 2f 68 61 73 5f |f 'porta|ble/has_|
|00004cf0| 69 63 2e 63 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |ic.c'.fi|.if test|
|00004d00| 20 2d 66 20 27 70 6f 72 | 74 61 62 6c 65 2f 69 6e | -f 'por|table/in|
|00004d10| 69 74 63 6f 6c 6f 2e 63 | 27 20 2d 61 20 22 24 7b |itcolo.c|' -a "${|
|00004d20| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00004d30| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00004d40| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00004d50| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00004d60| 5c 22 27 70 6f 72 74 61 | 62 6c 65 2f 69 6e 69 74 |\"'porta|ble/init|
|00004d70| 63 6f 6c 6f 2e 63 27 5c | 22 0a 65 6c 73 65 0a 20 |colo.c'\|".else. |
|00004d80| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 | echo sh|ar: Extr|
|00004d90| 61 63 74 69 6e 67 20 5c | 22 27 70 6f 72 74 61 62 |acting \|"'portab|
|00004da0| 6c 65 2f 69 6e 69 74 63 | 6f 6c 6f 2e 63 27 5c 22 |le/initc|olo.c'\"|
|00004db0| 20 5c 28 31 33 31 39 20 | 63 68 61 72 61 63 74 65 | \(1319 |characte|
|00004dc0| 72 73 5c 29 0a 20 20 73 | 65 64 20 22 73 2f 5e 58 |rs\). s|ed "s/^X|
|00004dd0| 2f 2f 22 20 3e 27 70 6f | 72 74 61 62 6c 65 2f 69 |//" >'po|rtable/i|
|00004de0| 6e 69 74 63 6f 6c 6f 2e | 63 27 20 3c 3c 27 45 4e |nitcolo.|c' <<'EN|
|00004df0| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 23 64 65 66 |D_OF_FIL|E'.X#def|
|00004e00| 69 6e 65 09 43 55 52 53 | 45 53 5f 4c 49 42 52 41 |ine.CURS|ES_LIBRA|
|00004e10| 52 59 09 31 0a 58 23 69 | 6e 63 6c 75 64 65 20 3c |RY.1.X#i|nclude <|
|00004e20| 63 75 72 73 65 73 2e 68 | 3e 0a 58 0a 58 23 69 66 |curses.h|>.X.X#if|
|00004e30| 6e 64 65 66 09 4e 44 45 | 42 55 47 0a 58 63 68 61 |ndef.NDE|BUG.Xcha|
|00004e40| 72 20 2a 72 63 73 69 64 | 5f 69 6e 69 74 63 6f 6c |r *rcsid|_initcol|
|00004e50| 6f 20 3d 20 22 24 48 65 | 61 64 65 72 3a 20 63 3a |o = "$He|ader: c:|
|00004e60| 2f 63 75 72 73 65 73 2f | 70 6f 72 74 61 62 6c 65 |/curses/|portable|
|00004e70| 2f 52 43 53 2f 69 6e 69 | 74 63 6f 6c 6f 2e 63 25 |/RCS/ini|tcolo.c%|
|00004e80| 76 20 32 2e 30 20 31 39 | 39 32 2f 31 31 2f 31 35 |v 2.0 19|92/11/15|
|00004e90| 20 30 33 3a 32 38 3a 35 | 35 20 4d 48 20 52 65 6c | 03:28:5|5 MH Rel|
|00004ea0| 20 24 22 3b 0a 58 23 65 | 6e 64 69 66 0a 58 0a 58 | $";.X#e|ndif.X.X|
|00004eb0| 0a 58 0a 58 0a 58 2f 2a | 6d 61 6e 2d 73 74 61 72 |.X.X.X/*|man-star|
|00004ec0| 74 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |t*******|********|
|00004ed0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004ee0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004ef0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004f00| 2a 2a 2a 2a 2a 2a 0a 58 | 0a 58 20 20 69 6e 69 74 |******.X|.X init|
|00004f10| 5f 63 6f 6c 6f 72 28 29 | 09 2d 20 43 68 61 6e 67 |_color()|.- Chang|
|00004f20| 65 20 74 68 65 20 64 65 | 66 69 6e 69 74 69 6f 6e |e the de|finition|
|00004f30| 20 6f 66 20 61 20 63 6f | 6c 6f 72 2e 0a 58 0a 58 | of a co|lor..X.X|
|00004f40| 20 20 50 44 43 75 72 73 | 65 73 20 44 65 73 63 72 | PDCurs|es Descr|
|00004f50| 69 70 74 69 6f 6e 3a 0a | 58 0a 58 20 09 54 68 69 |iption:.|X.X .Thi|
|00004f60| 73 20 72 6f 75 74 69 6e | 65 20 69 73 20 75 73 65 |s routin|e is use|
|00004f70| 64 20 74 6f 20 63 68 61 | 6e 67 65 20 74 68 65 20 |d to cha|nge the |
|00004f80| 64 65 66 69 6e 69 74 69 | 6f 6e 20 6f 66 20 61 20 |definiti|on of a |
|00004f90| 63 6f 6c 6f 72 2e 0a 58 | 20 09 54 68 65 20 72 6f |color..X| .The ro|
|00004fa0| 75 74 69 6e 65 20 74 61 | 6b 65 73 20 66 6f 75 72 |utine ta|kes four|
|00004fb0| 20 61 72 67 75 6d 65 6e | 74 73 3a 20 74 68 65 20 | argumen|ts: the |
|00004fc0| 6e 75 6d 62 65 72 20 6f | 66 20 74 68 65 20 63 6f |number o|f the co|
|00004fd0| 6c 6f 72 20 74 6f 20 62 | 65 0a 58 20 09 72 65 64 |lor to b|e.X .red|
|00004fe0| 65 66 69 6e 65 64 2c 20 | 61 6e 64 20 74 68 65 20 |efined, |and the |
|00004ff0| 6e 65 77 20 76 61 6c 75 | 65 73 20 6f 66 20 74 68 |new valu|es of th|
|00005000| 65 20 72 65 64 2c 20 67 | 72 65 65 6e 20 61 6e 64 |e red, g|reen and|
|00005010| 20 62 6c 75 65 0a 58 20 | 09 63 6f 6d 70 6f 6e 65 | blue.X |.compone|
|00005020| 6e 74 73 20 6f 66 20 74 | 68 65 20 63 6f 6c 6f 72 |nts of t|he color|
|00005030| 2e 0a 58 0a 58 20 09 54 | 68 65 20 76 61 6c 75 65 |..X.X .T|he value|
|00005040| 20 6f 66 20 63 6f 6c 6f | 72 20 6d 75 73 74 20 62 | of colo|r must b|
|00005050| 65 20 62 65 74 77 65 65 | 6e 20 30 20 61 6e 64 20 |e betwee|n 0 and |
|00005060| 43 4f 4c 4f 52 53 2d 31 | 2e 0a 58 20 09 54 68 65 |COLORS-1|..X .The|
|00005070| 20 76 61 6c 75 65 73 20 | 6f 66 20 72 65 64 2c 20 | values |of red, |
|00005080| 67 72 65 65 6e 20 61 6e | 64 20 62 6c 75 65 20 6d |green an|d blue m|
|00005090| 75 73 74 20 65 61 63 68 | 20 66 61 6c 6c 20 62 65 |ust each| fall be|
|000050a0| 74 77 65 65 6e 20 30 20 | 61 6e 64 0a 58 20 09 31 |tween 0 |and.X .1|
|000050b0| 30 30 30 3b 0a 58 0a 58 | 20 09 2a 2a 2a 2a 2a 20 |000;.X.X| .***** |
|000050c0| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 64 6f |This fun|ction do|
|000050d0| 65 73 6e 27 74 20 64 6f | 20 61 6e 79 74 68 69 6e |esn't do| anythin|
|000050e0| 67 20 79 65 74 20 2a 2a | 2a 2a 2a 0a 58 0a 58 20 |g yet **|***.X.X |
|000050f0| 20 50 44 43 75 72 73 65 | 73 20 52 65 74 75 72 6e | PDCurse|s Return|
|00005100| 20 56 61 6c 75 65 3a 0a | 58 20 09 54 68 69 73 20 | Value:.|X .This |
|00005110| 66 75 6e 63 74 69 6f 6e | 20 72 65 74 75 72 6e 73 |function| returns|
|00005120| 20 4f 4b 20 69 66 20 74 | 68 65 20 63 6f 6c 6f 72 | OK if t|he color|
|00005130| 20 63 68 61 6e 67 65 20 | 77 61 73 20 70 6f 73 73 | change |was poss|
|00005140| 69 62 6c 65 20 6f 72 0a | 58 20 09 45 52 52 20 6f |ible or.|X .ERR o|
|00005150| 6e 20 65 72 72 6f 72 2e | 0a 58 0a 58 20 20 50 44 |n error.|.X.X PD|
|00005160| 43 75 72 73 65 73 20 45 | 72 72 6f 72 73 3a 0a 58 |Curses E|rrors:.X|
|00005170| 20 09 4e 2f 41 0a 58 0a | 58 20 20 50 6f 72 74 61 | .N/A.X.|X Porta|
|00005180| 62 69 6c 69 74 79 3a 0a | 58 20 09 50 44 43 75 72 |bility:.|X .PDCur|
|00005190| 73 65 73 09 69 6e 74 20 | 69 6e 69 74 5f 63 6f 6c |ses.int |init_col|
|000051a0| 6f 72 28 20 69 6e 74 20 | 63 6f 6c 6f 72 2c 20 73 |or( int |color, s|
|000051b0| 68 6f 72 74 20 72 65 64 | 2c 20 73 68 6f 72 74 20 |hort red|, short |
|000051c0| 67 72 65 65 6e 2c 20 73 | 68 6f 72 74 20 62 6c 75 |green, s|hort blu|
|000051d0| 65 29 3b 0a 58 20 09 53 | 59 53 20 56 20 63 75 72 |e);.X .S|YS V cur|
|000051e0| 73 65 73 09 69 6e 74 20 | 69 6e 69 74 5f 63 6f 6c |ses.int |init_col|
|000051f0| 6f 72 28 20 69 6e 74 20 | 63 6f 6c 6f 72 2c 20 73 |or( int |color, s|
|00005200| 68 6f 72 74 20 72 65 64 | 2c 20 73 68 6f 72 74 20 |hort red|, short |
|00005210| 67 72 65 65 6e 2c 20 73 | 68 6f 72 74 20 62 6c 75 |green, s|hort blu|
|00005220| 65 29 3b 0a 58 0a 58 2a | 2a 6d 61 6e 2d 65 6e 64 |e);.X.X*|*man-end|
|00005230| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005240| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005250| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005260| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005270| 2a 2a 2a 2a 2a 2a 2f 0a | 58 0a 58 0a 58 69 6e 74 |******/.|X.X.Xint|
|00005280| 20 69 6e 69 74 5f 63 6f | 6c 6f 72 28 69 6e 74 20 | init_co|lor(int |
|00005290| 63 6f 6c 6f 72 2c 20 73 | 68 6f 72 74 20 72 65 64 |color, s|hort red|
|000052a0| 2c 20 73 68 6f 72 74 20 | 67 72 65 65 6e 2c 20 73 |, short |green, s|
|000052b0| 68 6f 72 74 20 62 6c 75 | 65 29 0a 58 7b 0a 58 20 |hort blu|e).X{.X |
|000052c0| 65 78 74 65 72 6e 20 69 | 6e 74 20 43 4f 4c 4f 52 |extern i|nt COLOR|
|000052d0| 53 3b 0a 58 0a 58 20 69 | 66 20 28 63 6f 6c 6f 72 |S;.X.X i|f (color|
|000052e0| 20 3e 3d 20 43 4f 4c 4f | 52 53 20 2d 31 20 7c 7c | >= COLO|RS -1 |||
|000052f0| 20 63 6f 6c 6f 72 20 3c | 20 31 29 0a 58 20 20 20 | color <| 1).X |
|00005300| 20 72 65 74 75 72 6e 28 | 45 52 52 29 3b 0a 58 2f | return(|ERR);.X/|
|00005310| 2a 0a 58 20 2a 20 54 68 | 69 73 20 66 75 6e 63 74 |*.X * Th|is funct|
|00005320| 69 6f 6e 20 64 6f 65 73 | 6e 27 74 20 64 6f 20 61 |ion does|n't do a|
|00005330| 6e 79 74 68 69 6e 67 20 | 79 65 74 2e 2e 2e 0a 58 |nything |yet....X|
|00005340| 20 2a 2f 0a 58 20 72 65 | 74 75 72 6e 28 45 52 52 | */.X re|turn(ERR|
|00005350| 29 3b 0a 58 7d 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |);.X}.EN|D_OF_FIL|
|00005360| 45 0a 20 20 69 66 20 74 | 65 73 74 20 31 33 31 39 |E. if t|est 1319|
|00005370| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 70 6f | -ne `wc| -c <'po|
|00005380| 72 74 61 62 6c 65 2f 69 | 6e 69 74 63 6f 6c 6f 2e |rtable/i|nitcolo.|
|00005390| 63 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |c'`; the|n. ec|
|000053a0| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 70 6f 72 74 |ho shar:| \"'port|
|000053b0| 61 62 6c 65 2f 69 6e 69 | 74 63 6f 6c 6f 2e 63 27 |able/ini|tcolo.c'|
|000053c0| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|000053d0| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 20 20 66 | wrong s|ize!. f|
|000053e0| 69 0a 20 20 23 20 65 6e | 64 20 6f 66 20 27 70 6f |i. # en|d of 'po|
|000053f0| 72 74 61 62 6c 65 2f 69 | 6e 69 74 63 6f 6c 6f 2e |rtable/i|nitcolo.|
|00005400| 63 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |c'.fi.if| test -f|
|00005410| 20 27 70 6f 72 74 61 62 | 6c 65 2f 6d 65 74 61 2e | 'portab|le/meta.|
|00005420| 63 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |c' -a "$|{1}" != |
|00005430| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00005440| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00005450| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00005460| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 70 6f 72 74 |ing file| \"'port|
|00005470| 61 62 6c 65 2f 6d 65 74 | 61 2e 63 27 5c 22 0a 65 |able/met|a.c'\".e|
|00005480| 6c 73 65 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |lse. ec|ho shar:|
|00005490| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 70 | Extract|ing \"'p|
|000054a0| 6f 72 74 61 62 6c 65 2f | 6d 65 74 61 2e 63 27 5c |ortable/|meta.c'\|
|000054b0| 22 20 5c 28 31 33 30 32 | 20 63 68 61 72 61 63 74 |" \(1302| charact|
|000054c0| 65 72 73 5c 29 0a 20 20 | 73 65 64 20 22 73 2f 5e |ers\). |sed "s/^|
|000054d0| 58 2f 2f 22 20 3e 27 70 | 6f 72 74 61 62 6c 65 2f |X//" >'p|ortable/|
|000054e0| 6d 65 74 61 2e 63 27 20 | 3c 3c 27 45 4e 44 5f 4f |meta.c' |<<'END_O|
|000054f0| 46 5f 46 49 4c 45 27 0a | 58 23 64 65 66 69 6e 65 |F_FILE'.|X#define|
|00005500| 09 43 55 52 53 45 53 5f | 4c 49 42 52 41 52 59 09 |.CURSES_|LIBRARY.|
|00005510| 31 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 63 75 72 |1.X#incl|ude <cur|
|00005520| 73 65 73 2e 68 3e 0a 58 | 23 75 6e 64 65 66 09 6d |ses.h>.X|#undef.m|
|00005530| 65 74 61 0a 58 0a 58 23 | 69 66 6e 64 65 66 09 4e |eta.X.X#|ifndef.N|
|00005540| 44 45 42 55 47 0a 58 63 | 68 61 72 20 2a 72 63 73 |DEBUG.Xc|har *rcs|
|00005550| 69 64 5f 6d 65 74 61 20 | 3d 20 22 24 48 65 61 64 |id_meta |= "$Head|
|00005560| 65 72 3a 20 63 3a 2f 63 | 75 72 73 65 73 2f 70 6f |er: c:/c|urses/po|
|00005570| 72 74 61 62 6c 65 2f 52 | 43 53 2f 6d 65 74 61 2e |rtable/R|CS/meta.|
|00005580| 63 25 76 20 32 2e 30 20 | 31 39 39 32 2f 31 31 2f |c%v 2.0 |1992/11/|
|00005590| 31 35 20 30 33 3a 32 39 | 3a 30 30 20 4d 48 20 52 |15 03:29|:00 MH R|
|000055a0| 65 6c 20 24 22 3b 0a 58 | 23 65 6e 64 69 66 0a 58 |el $";.X|#endif.X|
|000055b0| 0a 58 0a 58 0a 58 0a 58 | 2f 2a 6d 61 6e 2d 73 74 |.X.X.X.X|/*man-st|
|000055c0| 61 72 74 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |art*****|********|
|000055d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000055e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000055f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005600| 2a 2a 2a 2a 2a 2a 2a 2a | 0a 58 0a 58 20 20 6d 65 |********|.X.X me|
|00005610| 74 61 28 29 09 2d 20 46 | 6f 72 63 65 20 74 68 65 |ta().- F|orce the|
|00005620| 20 6e 75 6d 62 65 72 20 | 6f 66 20 73 69 67 6e 69 | number |of signi|
|00005630| 66 69 63 61 6e 74 20 62 | 69 74 73 20 6f 6e 20 69 |ficant b|its on i|
|00005640| 6e 70 75 74 2e 0a 58 0a | 58 20 20 55 6c 74 72 69 |nput..X.|X Ultri|
|00005650| 78 20 34 2e 31 20 44 65 | 73 63 72 69 70 74 69 6f |x 4.1 De|scriptio|
|00005660| 6e 3a 0a 58 20 09 54 68 | 69 73 20 66 75 6e 63 74 |n:.X .Th|is funct|
|00005670| 69 6f 6e 20 66 6f 72 63 | 65 73 20 74 68 65 20 75 |ion forc|es the u|
|00005680| 73 65 72 27 73 20 74 65 | 72 6d 69 6e 61 6c 20 74 |ser's te|rminal t|
|00005690| 6f 20 72 65 74 75 72 6e | 20 37 20 6f 72 20 38 0a |o return| 7 or 8.|
|000056a0| 58 20 09 73 69 67 6e 69 | 66 69 63 61 6e 74 20 62 |X .signi|ficant b|
|000056b0| 69 74 73 20 6f 6e 20 69 | 6e 70 75 74 2e 20 20 54 |its on i|nput. T|
|000056c0| 6f 20 66 6f 72 63 65 20 | 38 20 62 69 74 73 20 74 |o force |8 bits t|
|000056d0| 6f 20 62 65 20 72 65 74 | 75 72 6e 65 64 2c 0a 58 |o be ret|urned,.X|
|000056e0| 20 09 69 6e 76 6f 6b 65 | 20 6d 65 74 61 28 29 20 | .invoke| meta() |
|000056f0| 77 69 74 68 20 62 66 20 | 61 73 20 54 52 55 45 2e |with bf |as TRUE.|
|00005700| 20 20 54 6f 20 66 6f 72 | 63 65 20 37 20 62 69 74 | To for|ce 7 bit|
|00005710| 73 20 74 6f 20 62 65 20 | 72 65 74 75 72 6e 65 64 |s to be |returned|
|00005720| 2c 0a 58 20 09 69 6e 76 | 6f 6b 65 20 6d 65 74 61 |,.X .inv|oke meta|
|00005730| 28 29 20 77 69 74 68 20 | 62 66 20 61 73 20 46 41 |() with |bf as FA|
|00005740| 4c 53 45 2e 0a 58 0a 58 | 20 09 54 68 65 20 77 69 |LSE..X.X| .The wi|
|00005750| 6e 64 6f 77 20 61 72 67 | 75 6d 65 6e 74 20 69 73 |ndow arg|ument is|
|00005760| 20 61 6c 77 61 79 73 20 | 69 67 6e 6f 72 65 64 2c | always |ignored,|
|00005770| 20 62 75 74 20 69 74 20 | 6d 75 73 74 20 73 74 69 | but it |must sti|
|00005780| 6c 6c 20 62 65 20 61 0a | 58 20 09 76 61 6c 69 64 |ll be a.|X .valid|
|00005790| 20 77 69 6e 64 6f 77 20 | 74 6f 20 61 76 6f 69 64 | window |to avoid|
|000057a0| 20 63 6f 6d 70 69 6c 65 | 72 20 65 72 72 6f 72 73 | compile|r errors|
|000057b0| 2e 0a 58 0a 58 20 20 50 | 44 43 75 72 73 65 73 20 |..X.X P|DCurses |
|000057c0| 44 65 73 63 72 69 70 74 | 69 6f 6e 3a 0a 58 20 09 |Descript|ion:.X .|
|000057d0| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |This fun|ction is|
|000057e0| 20 70 72 6f 76 69 64 65 | 64 20 66 6f 72 20 70 6f | provide|d for po|
|000057f0| 72 74 61 62 69 6c 69 74 | 79 2e 20 20 42 79 20 64 |rtabilit|y. By d|
|00005800| 65 66 61 75 6c 74 2c 20 | 38 20 62 69 74 73 0a 58 |efault, |8 bits.X|
|00005810| 20 09 61 72 65 20 72 65 | 74 75 72 6e 65 64 2e 0a | .are re|turned..|
|00005820| 58 0a 58 20 09 46 59 49 | 3a 20 20 54 68 65 20 55 |X.X .FYI|: The U|
|00005830| 6c 74 72 69 78 20 44 4f | 43 20 6e 65 65 64 73 20 |ltrix DO|C needs |
|00005840| 63 6f 6e 66 69 72 6d 61 | 74 69 6f 6e 2e 2e 2e 0a |confirma|tion....|
|00005850| 58 0a 58 20 20 50 44 43 | 75 72 73 65 73 20 52 65 |X.X PDC|urses Re|
|00005860| 74 75 72 6e 20 56 61 6c | 75 65 3a 0a 58 20 09 54 |turn Val|ue:.X .T|
|00005870| 68 65 20 6d 65 74 61 28 | 29 20 66 75 6e 63 74 69 |he meta(|) functi|
|00005880| 6f 6e 20 72 65 74 75 72 | 6e 73 20 4f 4b 2e 0a 58 |on retur|ns OK..X|
|00005890| 0a 58 20 20 50 44 43 75 | 72 73 65 73 20 45 72 72 |.X PDCu|rses Err|
|000058a0| 6f 72 73 3a 0a 58 20 09 | 4e 6f 20 65 72 72 6f 72 |ors:.X .|No error|
|000058b0| 73 20 61 72 65 20 64 65 | 66 69 6e 65 64 20 66 6f |s are de|fined fo|
|000058c0| 72 20 74 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 2e |r this f|unction.|
|000058d0| 0a 58 0a 58 20 20 50 6f | 72 74 61 62 69 6c 69 74 |.X.X Po|rtabilit|
|000058e0| 79 3a 0a 58 20 09 50 44 | 43 75 72 73 65 73 09 69 |y:.X .PD|Curses.i|
|000058f0| 6e 74 20 6d 65 74 61 28 | 20 57 49 4e 44 4f 57 2a |nt meta(| WINDOW*|
|00005900| 20 77 69 6e 2c 20 62 6f | 6f 6c 20 62 66 20 29 3b | win, bo|ol bf );|
|00005910| 0a 58 20 09 42 53 44 20 | 43 75 72 73 65 73 09 69 |.X .BSD |Curses.i|
|00005920| 6e 74 20 6d 65 74 61 28 | 20 57 49 4e 44 4f 57 2a |nt meta(| WINDOW*|
|00005930| 20 77 69 6e 2c 20 62 6f | 6f 6c 20 62 66 20 29 3b | win, bo|ol bf );|
|00005940| 0a 58 20 09 53 59 53 20 | 56 20 43 75 72 73 65 73 |.X .SYS |V Curses|
|00005950| 09 69 6e 74 20 6d 65 74 | 61 28 20 57 49 4e 44 4f |.int met|a( WINDO|
|00005960| 57 2a 20 77 69 6e 2c 20 | 62 6f 6f 6c 20 62 66 20 |W* win, |bool bf |
|00005970| 29 3b 0a 58 0a 58 2a 2a | 6d 61 6e 2d 65 6e 64 2a |);.X.X**|man-end*|
|00005980| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005990| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000059a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000059b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000059c0| 2a 2a 2a 2a 2a 2f 0a 58 | 0a 58 69 6e 74 09 6d 65 |*****/.X|.Xint.me|
|000059d0| 74 61 28 20 57 49 4e 44 | 4f 57 20 2a 77 69 6e 2c |ta( WIND|OW *win,|
|000059e0| 20 62 6f 6f 6c 20 62 66 | 20 29 0a 58 7b 0a 58 23 | bool bf| ).X{.X#|
|000059f0| 69 66 64 65 66 09 54 43 | 0a 58 23 20 70 72 61 67 |ifdef.TC|.X# prag|
|00005a00| 6d 61 20 61 72 67 73 75 | 73 65 64 3b 0a 58 23 65 |ma argsu|sed;.X#e|
|00005a10| 6e 64 69 66 0a 58 09 5f | 63 75 72 73 76 61 72 2e |ndif.X._|cursvar.|
|00005a20| 72 61 77 5f 69 6e 70 20 | 3d 20 62 66 3b 0a 58 09 |raw_inp |= bf;.X.|
|00005a30| 72 65 74 75 72 6e 28 20 | 4f 4b 20 29 3b 0a 58 7d |return( |OK );.X}|
|00005a40| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 20 20 69 |.END_OF_|FILE. i|
|00005a50| 66 20 74 65 73 74 20 31 | 33 30 32 20 2d 6e 65 20 |f test 1|302 -ne |
|00005a60| 60 77 63 20 2d 63 20 3c | 27 70 6f 72 74 61 62 6c |`wc -c <|'portabl|
|00005a70| 65 2f 6d 65 74 61 2e 63 | 27 60 3b 20 74 68 65 6e |e/meta.c|'`; then|
|00005a80| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00005a90| 5c 22 27 70 6f 72 74 61 | 62 6c 65 2f 6d 65 74 61 |\"'porta|ble/meta|
|00005aa0| 2e 63 27 5c 22 20 75 6e | 70 61 63 6b 65 64 20 77 |.c'\" un|packed w|
|00005ab0| 69 74 68 20 77 72 6f 6e | 67 20 73 69 7a 65 21 0a |ith wron|g size!.|
|00005ac0| 20 20 66 69 0a 20 20 23 | 20 65 6e 64 20 6f 66 20 | fi. #| end of |
|00005ad0| 27 70 6f 72 74 61 62 6c | 65 2f 6d 65 74 61 2e 63 |'portabl|e/meta.c|
|00005ae0| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00005af0| 27 70 6f 72 74 61 62 6c | 65 2f 6d 76 63 75 72 2e |'portabl|e/mvcur.|
|00005b00| 63 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |c' -a "$|{1}" != |
|00005b10| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00005b20| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00005b30| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00005b40| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 70 6f 72 74 |ing file| \"'port|
|00005b50| 61 62 6c 65 2f 6d 76 63 | 75 72 2e 63 27 5c 22 0a |able/mvc|ur.c'\".|
|00005b60| 65 6c 73 65 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |else. e|cho shar|
|00005b70| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|00005b80| 70 6f 72 74 61 62 6c 65 | 2f 6d 76 63 75 72 2e 63 |portable|/mvcur.c|
|00005b90| 27 5c 22 20 5c 28 31 33 | 38 32 20 63 68 61 72 61 |'\" \(13|82 chara|
|00005ba0| 63 74 65 72 73 5c 29 0a | 20 20 73 65 64 20 22 73 |cters\).| sed "s|
|00005bb0| 2f 5e 58 2f 2f 22 20 3e | 27 70 6f 72 74 61 62 6c |/^X//" >|'portabl|
|00005bc0| 65 2f 6d 76 63 75 72 2e | 63 27 20 3c 3c 27 45 4e |e/mvcur.|c' <<'EN|
|00005bd0| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 23 64 65 66 |D_OF_FIL|E'.X#def|
|00005be0| 69 6e 65 09 43 55 52 53 | 45 53 5f 4c 49 42 52 41 |ine.CURS|ES_LIBRA|
|00005bf0| 52 59 09 31 0a 58 23 69 | 6e 63 6c 75 64 65 20 3c |RY.1.X#i|nclude <|
|00005c00| 63 75 72 73 65 73 2e 68 | 3e 0a 58 23 75 6e 64 65 |curses.h|>.X#unde|
|00005c10| 66 09 6d 76 63 75 72 0a | 58 0a 58 23 69 66 6e 64 |f.mvcur.|X.X#ifnd|
|00005c20| 65 66 09 4e 44 45 42 55 | 47 0a 58 63 68 61 72 20 |ef.NDEBU|G.Xchar |
|00005c30| 2a 72 63 73 69 64 5f 6d | 76 63 75 72 20 3d 20 22 |*rcsid_m|vcur = "|
|00005c40| 24 48 65 61 64 65 72 3a | 20 63 3a 2f 63 75 72 73 |$Header:| c:/curs|
|00005c50| 65 73 2f 70 6f 72 74 61 | 62 6c 65 2f 52 43 53 2f |es/porta|ble/RCS/|
|00005c60| 6d 76 63 75 72 2e 63 25 | 76 20 32 2e 30 20 31 39 |mvcur.c%|v 2.0 19|
|00005c70| 39 32 2f 31 31 2f 31 35 | 20 30 33 3a 32 39 3a 30 |92/11/15| 03:29:0|
|00005c80| 30 20 4d 48 20 52 65 6c | 20 24 22 3b 0a 58 23 65 |0 MH Rel| $";.X#e|
|00005c90| 6e 64 69 66 0a 58 0a 58 | 0a 58 0a 58 0a 58 2f 2a |ndif.X.X|.X.X.X/*|
|00005ca0| 6d 61 6e 2d 73 74 61 72 | 74 2a 2a 2a 2a 2a 2a 2a |man-star|t*******|
|00005cb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005cc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005cd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005ce0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0a 58 |********|******.X|
|00005cf0| 0a 58 20 20 6d 76 63 75 | 72 28 29 09 2d 20 6c 6f |.X mvcu|r().- lo|
|00005d00| 77 2d 6c 65 76 65 6c 20 | 63 75 72 73 6f 72 20 6d |w-level |cursor m|
|00005d10| 6f 76 65 6d 65 6e 74 0a | 58 0a 58 20 20 55 6c 74 |ovement.|X.X Ult|
|00005d20| 72 69 78 20 34 2e 31 20 | 44 65 73 63 72 69 70 74 |rix 4.1 |Descript|
|00005d30| 69 6f 6e 3a 0a 58 20 09 | 54 68 69 73 20 66 75 6e |ion:.X .|This fun|
|00005d40| 63 74 69 6f 6e 20 63 6f | 6e 74 72 6f 6c 73 20 6c |ction co|ntrols l|
|00005d50| 6f 77 2d 6c 65 76 65 6c | 20 63 75 72 73 6f 72 20 |ow-level| cursor |
|00005d60| 6d 6f 74 69 6f 6e 20 77 | 69 74 68 20 6f 70 74 69 |motion w|ith opti|
|00005d70| 6d 69 7a 61 74 69 6f 6e | 2e 0a 58 0a 58 20 20 50 |mization|..X.X P|
|00005d80| 44 43 75 72 73 65 73 20 | 44 65 73 63 72 69 70 74 |DCurses |Descript|
|00005d90| 69 6f 6e 3a 0a 58 20 09 | 54 68 65 72 65 20 69 73 |ion:.X .|There is|
|00005da0| 20 6e 6f 20 6f 70 74 69 | 6d 69 7a 61 74 69 6f 6e | no opti|mization|
|00005db0| 20 68 65 72 65 20 73 69 | 6e 63 65 20 74 68 65 20 | here si|nce the |
|00005dc0| 50 43 20 68 61 73 20 6d | 65 6d 6f 72 79 20 6d 61 |PC has m|emory ma|
|00005dd0| 70 70 65 64 0a 58 20 09 | 76 69 64 65 6f 20 61 6e |pped.X .|video an|
|00005de0| 64 20 77 65 20 73 75 70 | 70 6f 72 74 2c 20 75 6e |d we sup|port, un|
|00005df0| 64 65 72 20 63 65 72 74 | 61 69 6e 20 63 6f 6d 70 |der cert|ain comp|
|00005e00| 69 6c 61 74 69 6f 6e 20 | 6f 70 74 69 6f 6e 73 2c |ilation |options,|
|00005e10| 20 64 69 72 65 63 74 0a | 58 20 09 76 69 64 65 6f | direct.|X .video|
|00005e20| 20 77 72 69 74 65 73 2e | 0a 58 0a 58 20 20 50 44 | writes.|.X.X PD|
|00005e30| 43 75 72 73 65 73 20 52 | 65 74 75 72 6e 20 56 61 |Curses R|eturn Va|
|00005e40| 6c 75 65 3a 0a 58 20 09 | 54 68 65 20 6d 76 63 75 |lue:.X .|The mvcu|
|00005e50| 72 28 29 20 66 75 6e 63 | 74 69 6f 6e 20 72 65 74 |r() func|tion ret|
|00005e60| 75 72 6e 73 20 4f 4b 20 | 6f 6e 20 73 75 63 63 65 |urns OK |on succe|
|00005e70| 73 73 20 61 6e 64 20 45 | 52 52 20 6f 6e 20 65 72 |ss and E|RR on er|
|00005e80| 72 6f 72 2e 0a 58 0a 58 | 20 20 50 44 43 75 72 73 |ror..X.X| PDCurs|
|00005e90| 65 73 20 45 72 72 6f 72 | 73 3a 0a 58 20 09 49 66 |es Error|s:.X .If|
|00005ea0| 20 74 68 65 20 6e 65 77 | 20 63 75 72 73 6f 72 20 | the new| cursor |
|00005eb0| 70 6f 73 69 74 69 6f 6e | 20 69 73 20 6f 75 74 73 |position| is outs|
|00005ec0| 69 64 65 20 74 68 65 20 | 70 68 79 73 69 63 61 6c |ide the |physical|
|00005ed0| 20 73 63 72 65 65 6e 20 | 73 69 7a 65 2c 0a 58 20 | screen |size,.X |
|00005ee0| 09 61 6e 20 65 72 72 6f | 72 20 6f 63 63 75 72 73 |.an erro|r occurs|
|00005ef0| 2e 0a 58 0a 58 20 20 50 | 6f 72 74 61 62 69 6c 69 |..X.X P|ortabili|
|00005f00| 74 79 3a 0a 58 20 09 50 | 44 43 75 72 73 65 73 09 |ty:.X .P|DCurses.|
|00005f10| 69 6e 74 20 6d 76 63 75 | 72 28 69 6e 74 20 6f 6c |int mvcu|r(int ol|
|00005f20| 64 72 6f 77 2c 69 6e 74 | 20 6f 6c 64 63 6f 6c 2c |drow,int| oldcol,|
|00005f30| 69 6e 74 20 6e 65 77 72 | 6f 77 2c 69 6e 74 20 6e |int newr|ow,int n|
|00005f40| 65 77 63 6f 6c 29 3b 0a | 58 20 09 42 53 44 20 43 |ewcol);.|X .BSD C|
|00005f50| 75 72 73 65 73 09 69 6e | 74 20 6d 76 63 75 72 28 |urses.in|t mvcur(|
|00005f60| 69 6e 74 20 6f 6c 64 72 | 6f 77 2c 69 6e 74 20 6f |int oldr|ow,int o|
|00005f70| 6c 64 63 6f 6c 2c 69 6e | 74 20 6e 65 77 72 6f 77 |ldcol,in|t newrow|
|00005f80| 2c 69 6e 74 20 6e 65 77 | 63 6f 6c 29 3b 0a 58 20 |,int new|col);.X |
|00005f90| 09 53 59 53 20 56 20 43 | 75 72 73 65 73 09 69 6e |.SYS V C|urses.in|
|00005fa0| 74 20 6d 76 63 75 72 28 | 69 6e 74 20 6f 6c 64 72 |t mvcur(|int oldr|
|00005fb0| 6f 77 2c 69 6e 74 20 6f | 6c 64 63 6f 6c 2c 69 6e |ow,int o|ldcol,in|
|00005fc0| 74 20 6e 65 77 72 6f 77 | 2c 69 6e 74 20 6e 65 77 |t newrow|,int new|
|00005fd0| 63 6f 6c 29 3b 0a 58 0a | 58 2a 2a 6d 61 6e 2d 65 |col);.X.|X**man-e|
|00005fe0| 6e 64 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |nd******|********|
|00005ff0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006000| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006010| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006020| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 0a 58 0a 58 69 6e 74 |********|/.X.Xint|
|00006030| 09 6d 76 63 75 72 28 69 | 6e 74 20 6f 6c 64 72 6f |.mvcur(i|nt oldro|
|00006040| 77 2c 20 69 6e 74 20 6f | 6c 64 63 6f 6c 2c 20 69 |w, int o|ldcol, i|
|00006050| 6e 74 20 6e 65 77 72 6f | 77 2c 20 69 6e 74 20 6e |nt newro|w, int n|
|00006060| 65 77 63 6f 6c 29 0a 58 | 7b 0a 58 23 69 66 64 65 |ewcol).X|{.X#ifde|
|00006070| 66 09 54 43 0a 58 23 20 | 20 70 72 61 67 6d 61 20 |f.TC.X# | pragma |
|00006080| 61 72 67 73 75 73 65 64 | 0a 58 23 65 6e 64 69 66 |argsused|.X#endif|
|00006090| 0a 58 09 69 66 20 28 28 | 6e 65 77 72 6f 77 20 3e |.X.if ((|newrow >|
|000060a0| 3d 20 4c 49 4e 45 53 29 | 09 7c 7c 0a 58 09 20 20 |= LINES)|.||.X. |
|000060b0| 20 20 28 6e 65 77 63 6f | 6c 20 3e 3d 20 43 4f 4c | (newco|l >= COL|
|000060c0| 53 29 09 7c 7c 0a 58 09 | 20 20 20 20 28 6e 65 77 |S).||.X.| (new|
|000060d0| 72 6f 77 20 3c 20 30 29 | 09 7c 7c 0a 58 09 20 20 |row < 0)|.||.X. |
|000060e0| 20 20 28 6e 65 77 63 6f | 6c 20 3c 20 30 29 29 0a | (newco|l < 0)).|
|000060f0| 58 09 7b 0a 58 09 09 72 | 65 74 75 72 6e 28 20 45 |X.{.X..r|eturn( E|
|00006100| 52 52 20 29 3b 0a 58 09 | 7d 0a 58 09 50 44 43 5f |RR );.X.|}.X.PDC_|
|00006110| 67 6f 74 6f 78 79 28 20 | 6e 65 77 72 6f 77 2c 20 |gotoxy( |newrow, |
|00006120| 6e 65 77 63 6f 6c 20 29 | 3b 0a 58 09 5f 63 75 72 |newcol )|;.X._cur|
|00006130| 73 76 61 72 2e 63 75 72 | 73 72 6f 77 20 3d 20 6e |svar.cur|srow = n|
|00006140| 65 77 72 6f 77 3b 0a 58 | 09 5f 63 75 72 73 76 61 |ewrow;.X|._cursva|
|00006150| 72 2e 63 75 72 73 63 6f | 6c 20 3d 20 6e 65 77 63 |r.cursco|l = newc|
|00006160| 6f 6c 3b 0a 58 09 72 65 | 74 75 72 6e 28 20 4f 4b |ol;.X.re|turn( OK|
|00006170| 20 29 3b 0a 58 7d 0a 45 | 4e 44 5f 4f 46 5f 46 49 | );.X}.E|ND_OF_FI|
|00006180| 4c 45 0a 20 20 69 66 20 | 74 65 73 74 20 31 33 38 |LE. if |test 138|
|00006190| 32 20 2d 6e 65 20 60 77 | 63 20 2d 63 20 3c 27 70 |2 -ne `w|c -c <'p|
|000061a0| 6f 72 74 61 62 6c 65 2f | 6d 76 63 75 72 2e 63 27 |ortable/|mvcur.c'|
|000061b0| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|000061c0| 20 73 68 61 72 3a 20 5c | 22 27 70 6f 72 74 61 62 | shar: \|"'portab|
|000061d0| 6c 65 2f 6d 76 63 75 72 | 2e 63 27 5c 22 20 75 6e |le/mvcur|.c'\" un|
|000061e0| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|000061f0| 67 20 73 69 7a 65 21 0a | 20 20 66 69 0a 20 20 23 |g size!.| fi. #|
|00006200| 20 65 6e 64 20 6f 66 20 | 27 70 6f 72 74 61 62 6c | end of |'portabl|
|00006210| 65 2f 6d 76 63 75 72 2e | 63 27 0a 66 69 0a 69 66 |e/mvcur.|c'.fi.if|
|00006220| 20 74 65 73 74 20 2d 66 | 20 27 70 6f 72 74 61 62 | test -f| 'portab|
|00006230| 6c 65 2f 6d 76 77 69 6e | 2e 63 27 20 2d 61 20 22 |le/mvwin|.c' -a "|
|00006240| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00006250| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00006260| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00006270| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00006280| 65 20 5c 22 27 70 6f 72 | 74 61 62 6c 65 2f 6d 76 |e \"'por|table/mv|
|00006290| 77 69 6e 2e 63 27 5c 22 | 0a 65 6c 73 65 0a 20 20 |win.c'\"|.else. |
|000062a0| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|000062b0| 63 74 69 6e 67 20 5c 22 | 27 70 6f 72 74 61 62 6c |cting \"|'portabl|
|000062c0| 65 2f 6d 76 77 69 6e 2e | 63 27 5c 22 20 5c 28 31 |e/mvwin.|c'\" \(1|
|000062d0| 32 35 33 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |253 char|acters\)|
|000062e0| 0a 20 20 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |. sed "|s/^X//" |
|000062f0| 3e 27 70 6f 72 74 61 62 | 6c 65 2f 6d 76 77 69 6e |>'portab|le/mvwin|
|00006300| 2e 63 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |.c' <<'E|ND_OF_FI|
|00006310| 4c 45 27 0a 58 23 64 65 | 66 69 6e 65 09 43 55 52 |LE'.X#de|fine.CUR|
|00006320| 53 45 53 5f 4c 49 42 52 | 41 52 59 09 31 0a 58 23 |SES_LIBR|ARY.1.X#|
|00006330| 69 6e 63 6c 75 64 65 20 | 3c 63 75 72 73 65 73 2e |include |<curses.|
|00006340| 68 3e 0a 58 23 75 6e 64 | 65 66 09 6d 76 77 69 6e |h>.X#und|ef.mvwin|
|00006350| 0a 58 0a 58 23 69 66 6e | 64 65 66 09 4e 44 45 42 |.X.X#ifn|def.NDEB|
|00006360| 55 47 0a 58 63 68 61 72 | 20 2a 72 63 73 69 64 5f |UG.Xchar| *rcsid_|
|00006370| 6d 76 77 69 6e 20 3d 20 | 22 24 48 65 61 64 65 72 |mvwin = |"$Header|
|00006380| 3a 20 63 3a 2f 63 75 72 | 73 65 73 2f 70 6f 72 74 |: c:/cur|ses/port|
|00006390| 61 62 6c 65 2f 52 43 53 | 2f 6d 76 77 69 6e 2e 63 |able/RCS|/mvwin.c|
|000063a0| 25 76 20 32 2e 30 20 31 | 39 39 32 2f 31 31 2f 31 |%v 2.0 1|992/11/1|
|000063b0| 35 20 30 33 3a 32 39 3a | 30 31 20 4d 48 20 52 65 |5 03:29:|01 MH Re|
|000063c0| 6c 20 24 22 3b 0a 58 23 | 65 6e 64 69 66 0a 58 0a |l $";.X#|endif.X.|
|000063d0| 58 0a 58 0a 58 0a 58 2f | 2a 6d 61 6e 2d 73 74 61 |X.X.X.X/|*man-sta|
|000063e0| 72 74 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |rt******|********|
|000063f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.