home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / unix_c / graphics / gl_plot.tar < prev    next >
Tape Archive  |  1989-03-27  |  280.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: gl_plot.tar

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file gl-plot/, mode 755 , uid 243 , gid 13 , size 0 , seconds 4413474343 default
98% file data default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 67 6c 2d 70 6c 6f 74 2f | 00 00 00 00 00 00 00 00 |gl-plot/|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 20 32 |.... 7|55 . 2|
|00000070| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 34 31 33 34 37 34 | 0 | 4413474|
|00000090| 33 34 33 20 20 20 35 34 | 30 31 00 20 00 00 00 00 |343 54|01. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 67 6c 2d 70 6c 6f 74 2f | 53 68 61 72 46 69 6c 65 |gl-plot/|SharFile|
|00000210| 2e 48 65 61 64 65 72 73 | 00 00 00 00 00 00 00 00 |.Headers|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000270| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00000280| 20 20 20 34 36 31 30 20 | 20 34 34 31 33 34 37 34 | 4610 | 4413474|
|00000290| 33 34 35 20 20 31 30 34 | 36 33 00 20 00 00 00 00 |345 104|63. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 3d 3d 3d 20 67 6c 2d 70 | 6c 6f 74 2e 73 68 61 72 |=== gl-p|lot.shar|
|00000410| 31 20 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |1 ======|========|
|00000420| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 0a 46 72 6f 6d |========|===.From|
|00000430| 20 72 69 61 63 73 21 65 | 6f 73 21 61 6d 65 73 21 | riacs!e|os!ames!|
|00000440| 6d 61 69 6c 72 75 73 21 | 74 75 74 2e 63 69 73 2e |mailrus!|tut.cis.|
|00000450| 6f 68 69 6f 2d 73 74 61 | 74 65 2e 65 64 75 21 62 |ohio-sta|te.edu!b|
|00000460| 6c 6f 6f 6d 2d 62 65 61 | 63 6f 6e 21 61 70 70 6c |loom-bea|con!appl|
|00000470| 65 21 62 62 6e 21 62 62 | 6e 2e 63 6f 6d 21 72 73 |e!bbn!bb|n.com!rs|
|00000480| 61 6c 7a 20 4d 6f 6e 20 | 4d 61 72 20 32 37 20 30 |alz Mon |Mar 27 0|
|00000490| 39 3a 33 35 3a 31 34 20 | 50 53 54 20 31 39 38 39 |9:35:14 |PST 1989|
|000004a0| 0a 0a 53 75 62 6d 69 74 | 74 65 64 2d 62 79 3a 20 |..Submit|ted-by: |
|000004b0| 75 6d 69 78 21 6d 2d 6e | 65 74 21 64 74 6c 65 77 |umix!m-n|et!dtlew|
|000004c0| 69 73 21 6c 65 77 69 73 | 0a 50 6f 73 74 69 6e 67 |is!lewis|.Posting|
|000004d0| 2d 6e 75 6d 62 65 72 3a | 20 56 6f 6c 75 6d 65 20 |-number:| Volume |
|000004e0| 31 38 2c 20 49 73 73 75 | 65 20 35 39 0a 41 72 63 |18, Issu|e 59.Arc|
|000004f0| 68 69 76 65 2d 6e 61 6d | 65 3a 20 67 6c 5f 70 6c |hive-nam|e: gl_pl|
|00000500| 6f 74 2f 70 61 72 74 30 | 31 0a 0a 0a 54 68 65 20 |ot/part0|1...The |
|00000510| 22 67 6c 22 20 63 6f 6c | 6c 65 63 74 69 6f 6e 20 |"gl" col|lection |
|00000520| 6f 66 20 72 6f 75 74 69 | 6e 65 73 20 70 72 6f 76 |of routi|nes prov|
|00000530| 69 64 65 73 20 67 72 61 | 70 68 69 63 20 64 65 76 |ides gra|phic dev|
|00000540| 69 63 65 20 73 75 70 70 | 6f 72 74 20 66 6f 72 20 |ice supp|ort for |
|00000550| 61 20 0a 6e 75 6d 62 65 | 72 20 6f 66 20 76 69 64 |a .numbe|r of vid|
|00000560| 65 6f 20 61 64 61 70 74 | 65 72 73 20 61 6e 64 20 |eo adapt|ers and |
|00000570| 70 72 69 6e 74 65 72 73 | 20 66 6f 72 20 50 43 2f |printers| for PC/|
|00000580| 41 54 20 63 6c 61 73 73 | 20 63 6f 6d 70 75 74 65 |AT class| compute|
|00000590| 72 73 20 72 75 6e 6e 69 | 6e 67 0a 75 6e 64 65 72 |rs runni|ng.under|
|000005a0| 20 4d 69 63 72 6f 70 6f | 72 74 20 53 79 73 74 65 | Micropo|rt Syste|
|000005b0| 6d 20 56 2f 41 54 2c 20 | 58 65 6e 69 78 20 6f 72 |m V/AT, |Xenix or|
|000005c0| 20 4d 53 2d 44 4f 53 2e | 20 20 20 20 54 68 65 20 | MS-DOS.| The |
|000005d0| 72 6f 75 74 69 6e 65 73 | 20 65 6d 75 6c 61 74 65 |routines| emulate|
|000005e0| 0a 74 68 65 20 42 53 44 | 20 70 6c 6f 74 28 33 29 |.the BSD| plot(3)|
|000005f0| 20 6c 69 62 72 61 72 79 | 2c 20 61 73 20 77 65 6c | library|, as wel|
|00000600| 6c 20 61 73 20 70 72 6f | 76 69 64 65 20 6e 65 77 |l as pro|vide new|
|00000610| 20 72 6f 75 74 69 6e 65 | 73 2e 20 20 49 74 20 72 | routine|s. It r|
|00000620| 75 6e 73 0a 75 6e 64 65 | 72 20 4d 53 44 4f 53 2f |uns.unde|r MSDOS/|
|00000630| 20 53 79 73 74 65 6d 20 | 56 2f 41 54 2c 20 53 43 | System |V/AT, SC|
|00000640| 4f 20 58 65 6e 69 78 20 | 32 38 36 2c 20 61 6e 64 |O Xenix |286, and|
|00000650| 20 77 69 74 68 20 48 65 | 72 63 75 6c 65 73 2c 20 | with He|rcules, |
|00000660| 43 47 41 2c 20 45 47 41 | 2c 0a 61 6e 64 20 45 70 |CGA, EGA|,.and Ep|
|00000670| 73 6f 6e 20 70 72 69 6e | 74 65 72 20 64 65 76 69 |son prin|ter devi|
|00000680| 63 65 73 2e 0a 0a 23 20 | 54 6f 20 72 65 63 6f 76 |ces...# |To recov|
|00000690| 65 72 2c 20 74 79 70 65 | 20 22 73 68 20 61 72 63 |er, type| "sh arc|
|000006a0| 68 69 76 65 22 0a 3d 3d | 3d 20 67 6c 2d 70 6c 6f |hive".==|= gl-plo|
|000006b0| 74 2e 73 68 61 72 32 20 | 3d 3d 3d 3d 3d 3d 3d 3d |t.shar2 |========|
|000006c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000006d0| 3d 0a 46 72 6f 6d 20 72 | 69 61 63 73 21 65 6f 73 |=.From r|iacs!eos|
|000006e0| 21 61 6d 65 73 21 6d 61 | 69 6c 72 75 73 21 74 75 |!ames!ma|ilrus!tu|
|000006f0| 74 2e 63 69 73 2e 6f 68 | 69 6f 2d 73 74 61 74 65 |t.cis.oh|io-state|
|00000700| 2e 65 64 75 21 62 6c 6f | 6f 6d 2d 62 65 61 63 6f |.edu!blo|om-beaco|
|00000710| 6e 21 61 70 70 6c 65 21 | 62 62 6e 21 62 62 6e 2e |n!apple!|bbn!bbn.|
|00000720| 63 6f 6d 21 72 73 61 6c | 7a 20 4d 6f 6e 20 4d 61 |com!rsal|z Mon Ma|
|00000730| 72 20 32 37 20 30 39 3a | 33 35 3a 32 36 20 50 53 |r 27 09:|35:26 PS|
|00000740| 54 20 31 39 38 39 0a 0a | 53 75 62 6d 69 74 74 65 |T 1989..|Submitte|
|00000750| 64 2d 62 79 3a 20 75 6d | 69 78 21 6d 2d 6e 65 74 |d-by: um|ix!m-net|
|00000760| 21 64 74 6c 65 77 69 73 | 21 6c 65 77 69 73 0a 50 |!dtlewis|!lewis.P|
|00000770| 6f 73 74 69 6e 67 2d 6e | 75 6d 62 65 72 3a 20 56 |osting-n|umber: V|
|00000780| 6f 6c 75 6d 65 20 31 38 | 2c 20 49 73 73 75 65 20 |olume 18|, Issue |
|00000790| 36 30 0a 41 72 63 68 69 | 76 65 2d 6e 61 6d 65 3a |60.Archi|ve-name:|
|000007a0| 20 67 6c 5f 70 6c 6f 74 | 2f 70 61 72 74 30 32 0a | gl_plot|/part02.|
|000007b0| 0a 23 20 54 6f 20 72 65 | 63 6f 76 65 72 2c 20 74 |.# To re|cover, t|
|000007c0| 79 70 65 20 22 73 68 20 | 61 72 63 68 69 76 65 22 |ype "sh |archive"|
|000007d0| 0a 3d 3d 3d 20 67 6c 2d | 70 6c 6f 74 2e 73 68 61 |.=== gl-|plot.sha|
|000007e0| 72 33 20 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |r3 =====|========|
|000007f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0a 46 72 6f |========|====.Fro|
|00000800| 6d 20 72 69 61 63 73 21 | 65 6f 73 21 61 6d 65 73 |m riacs!|eos!ames|
|00000810| 21 6d 61 69 6c 72 75 73 | 21 74 75 74 2e 63 69 73 |!mailrus|!tut.cis|
|00000820| 2e 6f 68 69 6f 2d 73 74 | 61 74 65 2e 65 64 75 21 |.ohio-st|ate.edu!|
|00000830| 62 6c 6f 6f 6d 2d 62 65 | 61 63 6f 6e 21 61 70 70 |bloom-be|acon!app|
|00000840| 6c 65 21 62 62 6e 21 62 | 62 6e 2e 63 6f 6d 21 72 |le!bbn!b|bn.com!r|
|00000850| 73 61 6c 7a 20 4d 6f 6e | 20 4d 61 72 20 32 37 20 |salz Mon| Mar 27 |
|00000860| 30 39 3a 33 35 3a 35 32 | 20 50 53 54 20 31 39 38 |09:35:52| PST 198|
|00000870| 39 0a 0a 53 75 62 6d 69 | 74 74 65 64 2d 62 79 3a |9..Submi|tted-by:|
|00000880| 20 75 6d 69 78 21 6d 2d | 6e 65 74 21 64 74 6c 65 | umix!m-|net!dtle|
|00000890| 77 69 73 21 6c 65 77 69 | 73 0a 50 6f 73 74 69 6e |wis!lewi|s.Postin|
|000008a0| 67 2d 6e 75 6d 62 65 72 | 3a 20 56 6f 6c 75 6d 65 |g-number|: Volume|
|000008b0| 20 31 38 2c 20 49 73 73 | 75 65 20 36 31 0a 41 72 | 18, Iss|ue 61.Ar|
|000008c0| 63 68 69 76 65 2d 6e 61 | 6d 65 3a 20 67 6c 5f 70 |chive-na|me: gl_p|
|000008d0| 6c 6f 74 2f 70 61 72 74 | 30 33 0a 0a 23 20 54 6f |lot/part|03..# To|
|000008e0| 20 72 65 63 6f 76 65 72 | 2c 20 74 79 70 65 20 22 | recover|, type "|
|000008f0| 73 68 20 61 72 63 68 69 | 76 65 22 0a 3d 3d 3d 20 |sh archi|ve".=== |
|00000900| 67 6c 2d 70 6c 6f 74 2e | 73 68 61 72 34 20 3d 3d |gl-plot.|shar4 ==|
|00000910| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000920| 3d 3d 3d 3d 3d 3d 3d 0a | 46 72 6f 6d 20 72 69 61 |=======.|From ria|
|00000930| 63 73 21 65 6f 73 21 61 | 6d 65 73 21 6d 61 69 6c |cs!eos!a|mes!mail|
|00000940| 72 75 73 21 74 75 74 2e | 63 69 73 2e 6f 68 69 6f |rus!tut.|cis.ohio|
|00000950| 2d 73 74 61 74 65 2e 65 | 64 75 21 75 6b 6d 61 21 |-state.e|du!ukma!|
|00000960| 68 75 73 63 36 21 62 62 | 6e 21 62 62 6e 2e 63 6f |husc6!bb|n!bbn.co|
|00000970| 6d 21 72 73 61 6c 7a 20 | 4d 6f 6e 20 4d 61 72 20 |m!rsalz |Mon Mar |
|00000980| 32 37 20 30 39 3a 33 36 | 3a 30 39 20 50 53 54 20 |27 09:36|:09 PST |
|00000990| 31 39 38 39 0a 0a 53 75 | 62 6d 69 74 74 65 64 2d |1989..Su|bmitted-|
|000009a0| 62 79 3a 20 75 6d 69 78 | 21 6d 2d 6e 65 74 21 64 |by: umix|!m-net!d|
|000009b0| 74 6c 65 77 69 73 21 6c | 65 77 69 73 0a 50 6f 73 |tlewis!l|ewis.Pos|
|000009c0| 74 69 6e 67 2d 6e 75 6d | 62 65 72 3a 20 56 6f 6c |ting-num|ber: Vol|
|000009d0| 75 6d 65 20 31 38 2c 20 | 49 73 73 75 65 20 36 32 |ume 18, |Issue 62|
|000009e0| 0a 41 72 63 68 69 76 65 | 2d 6e 61 6d 65 3a 20 67 |.Archive|-name: g|
|000009f0| 6c 5f 70 6c 6f 74 2f 70 | 61 72 74 30 34 0a 0a 23 |l_plot/p|art04..#|
|00000a00| 20 54 6f 20 72 65 63 6f | 76 65 72 2c 20 74 79 70 | To reco|ver, typ|
|00000a10| 65 20 22 73 68 20 61 72 | 63 68 69 76 65 22 0a 3d |e "sh ar|chive".=|
|00000a20| 3d 3d 20 67 6c 2d 70 6c | 6f 74 2e 73 68 61 72 35 |== gl-pl|ot.shar5|
|00000a30| 20 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d | =======|========|
|00000a40| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0a 46 72 6f 6d 20 |========|==.From |
|00000a50| 72 69 61 63 73 21 65 6f | 73 21 61 6d 65 73 21 6d |riacs!eo|s!ames!m|
|00000a60| 61 69 6c 72 75 73 21 74 | 75 74 2e 63 69 73 2e 6f |ailrus!t|ut.cis.o|
|00000a70| 68 69 6f 2d 73 74 61 74 | 65 2e 65 64 75 21 75 6b |hio-stat|e.edu!uk|
|00000a80| 6d 61 21 68 75 73 63 36 | 21 62 62 6e 21 62 62 6e |ma!husc6|!bbn!bbn|
|00000a90| 2e 63 6f 6d 21 72 73 61 | 6c 7a 20 4d 6f 6e 20 4d |.com!rsa|lz Mon M|
|00000aa0| 61 72 20 32 37 20 30 39 | 3a 33 36 3a 32 37 20 50 |ar 27 09|:36:27 P|
|00000ab0| 53 54 20 31 39 38 39 0a | 0a 53 75 62 6d 69 74 74 |ST 1989.|.Submitt|
|00000ac0| 65 64 2d 62 79 3a 20 75 | 6d 69 78 21 6d 2d 6e 65 |ed-by: u|mix!m-ne|
|00000ad0| 74 21 64 74 6c 65 77 69 | 73 21 6c 65 77 69 73 0a |t!dtlewi|s!lewis.|
|00000ae0| 50 6f 73 74 69 6e 67 2d | 6e 75 6d 62 65 72 3a 20 |Posting-|number: |
|00000af0| 56 6f 6c 75 6d 65 20 31 | 38 2c 20 49 73 73 75 65 |Volume 1|8, Issue|
|00000b00| 20 36 33 0a 41 72 63 68 | 69 76 65 2d 6e 61 6d 65 | 63.Arch|ive-name|
|00000b10| 3a 20 67 6c 5f 70 6c 6f | 74 2f 70 61 72 74 30 35 |: gl_plo|t/part05|
|00000b20| 0a 0a 23 20 54 6f 20 72 | 65 63 6f 76 65 72 2c 20 |..# To r|ecover, |
|00000b30| 74 79 70 65 20 22 73 68 | 20 61 72 63 68 69 76 65 |type "sh| archive|
|00000b40| 22 0a 3d 3d 3d 20 67 6c | 2d 70 6c 6f 74 2e 73 68 |".=== gl|-plot.sh|
|00000b50| 61 72 36 20 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |ar6 ====|========|
|00000b60| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 0a 46 72 |========|=====.Fr|
|00000b70| 6f 6d 20 72 69 61 63 73 | 21 65 6f 73 21 61 6d 65 |om riacs|!eos!ame|
|00000b80| 73 21 6d 61 69 6c 72 75 | 73 21 74 75 74 2e 63 69 |s!mailru|s!tut.ci|
|00000b90| 73 2e 6f 68 69 6f 2d 73 | 74 61 74 65 2e 65 64 75 |s.ohio-s|tate.edu|
|00000ba0| 21 75 6b 6d 61 21 68 75 | 73 63 36 21 62 62 6e 21 |!ukma!hu|sc6!bbn!|
|00000bb0| 62 62 6e 2e 63 6f 6d 21 | 72 73 61 6c 7a 20 4d 6f |bbn.com!|rsalz Mo|
|00000bc0| 6e 20 4d 61 72 20 32 37 | 20 30 39 3a 33 36 3a 34 |n Mar 27| 09:36:4|
|00000bd0| 38 20 50 53 54 20 31 39 | 38 39 0a 0a 53 75 62 6d |8 PST 19|89..Subm|
|00000be0| 69 74 74 65 64 2d 62 79 | 3a 20 75 6d 69 78 21 6d |itted-by|: umix!m|
|00000bf0| 2d 6e 65 74 21 64 74 6c | 65 77 69 73 21 6c 65 77 |-net!dtl|ewis!lew|
|00000c00| 69 73 0a 50 6f 73 74 69 | 6e 67 2d 6e 75 6d 62 65 |is.Posti|ng-numbe|
|00000c10| 72 3a 20 56 6f 6c 75 6d | 65 20 31 38 2c 20 49 73 |r: Volum|e 18, Is|
|00000c20| 73 75 65 20 36 34 0a 41 | 72 63 68 69 76 65 2d 6e |sue 64.A|rchive-n|
|00000c30| 61 6d 65 3a 20 67 6c 5f | 70 6c 6f 74 2f 70 61 72 |ame: gl_|plot/par|
|00000c40| 74 30 36 0a 0a 23 20 54 | 6f 20 72 65 63 6f 76 65 |t06..# T|o recove|
|00000c50| 72 2c 20 74 79 70 65 20 | 22 73 68 20 61 72 63 68 |r, type |"sh arch|
|00000c60| 69 76 65 22 0a 3d 3d 3d | 20 67 6c 2d 70 6c 6f 74 |ive".===| gl-plot|
|00000c70| 2e 73 68 61 72 37 20 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.shar7 =|========|
|00000c80| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000c90| 0a 46 72 6f 6d 20 72 69 | 61 63 73 21 65 6f 73 21 |.From ri|acs!eos!|
|00000ca0| 61 6d 65 73 21 6d 61 69 | 6c 72 75 73 21 74 75 74 |ames!mai|lrus!tut|
|00000cb0| 2e 63 69 73 2e 6f 68 69 | 6f 2d 73 74 61 74 65 2e |.cis.ohi|o-state.|
|00000cc0| 65 64 75 21 75 6b 6d 61 | 21 68 75 73 63 36 21 62 |edu!ukma|!husc6!b|
|00000cd0| 62 6e 21 62 62 6e 2e 63 | 6f 6d 21 72 73 61 6c 7a |bn!bbn.c|om!rsalz|
|00000ce0| 20 4d 6f 6e 20 4d 61 72 | 20 32 37 20 30 39 3a 33 | Mon Mar| 27 09:3|
|00000cf0| 37 3a 33 38 20 50 53 54 | 20 31 39 38 39 0a 0a 53 |7:38 PST| 1989..S|
|00000d00| 75 62 6d 69 74 74 65 64 | 2d 62 79 3a 20 75 6d 69 |ubmitted|-by: umi|
|00000d10| 78 21 6d 2d 6e 65 74 21 | 64 74 6c 65 77 69 73 21 |x!m-net!|dtlewis!|
|00000d20| 6c 65 77 69 73 0a 50 6f | 73 74 69 6e 67 2d 6e 75 |lewis.Po|sting-nu|
|00000d30| 6d 62 65 72 3a 20 56 6f | 6c 75 6d 65 20 31 38 2c |mber: Vo|lume 18,|
|00000d40| 20 49 73 73 75 65 20 36 | 35 0a 41 72 63 68 69 76 | Issue 6|5.Archiv|
|00000d50| 65 2d 6e 61 6d 65 3a 20 | 67 6c 5f 70 6c 6f 74 2f |e-name: |gl_plot/|
|00000d60| 70 61 72 74 30 37 0a 0a | 23 20 54 6f 20 72 65 63 |part07..|# To rec|
|00000d70| 6f 76 65 72 2c 20 74 79 | 70 65 20 22 73 68 20 61 |over, ty|pe "sh a|
|00000d80| 72 63 68 69 76 65 22 0a | 00 00 00 00 00 00 00 00 |rchive".|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 67 6c 2d 70 6c 6f 74 2f | 52 65 61 64 6d 65 00 00 |gl-plot/|Readme..|
|00000e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000e70| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00000e80| 20 20 33 32 35 30 30 20 | 20 34 34 31 33 34 37 34 | 32500 | 4413474|
|00000e90| 31 36 31 20 20 20 36 36 | 32 34 00 20 00 00 00 00 |161 66|24. ....|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 0a 47 72 61 70 68 69 63 | 73 20 4c 69 62 72 61 72 |.Graphic|s Librar|
|00001010| 79 20 66 6f 72 20 41 54 | 20 43 6f 6d 70 75 74 65 |y for AT| Compute|
|00001020| 72 73 20 52 75 6e 6e 69 | 6e 67 20 55 4e 49 58 20 |rs Runni|ng UNIX |
|00001030| 28 53 79 73 74 65 6d 20 | 56 2f 41 54 2c 20 58 65 |(System |V/AT, Xe|
|00001040| 6e 69 78 29 20 61 6e 64 | 20 44 4f 53 0a 2d 2d 2d |nix) and| DOS.---|
|00001050| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001060| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001070| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001080| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001090| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 0a 54 68 65 20 22 67 |--------|..The "g|
|000010a0| 6c 22 20 63 6f 6c 6c 65 | 63 74 69 6f 6e 20 6f 66 |l" colle|ction of|
|000010b0| 20 72 6f 75 74 69 6e 65 | 73 20 70 72 6f 76 69 64 | routine|s provid|
|000010c0| 65 73 20 67 72 61 70 68 | 69 63 20 64 65 76 69 63 |es graph|ic devic|
|000010d0| 65 20 73 75 70 70 6f 72 | 74 20 66 6f 72 20 61 20 |e suppor|t for a |
|000010e0| 0a 6e 75 6d 62 65 72 20 | 6f 66 20 76 69 64 65 6f |.number |of video|
|000010f0| 20 61 64 61 70 74 65 72 | 73 20 61 6e 64 20 70 72 | adapter|s and pr|
|00001100| 69 6e 74 65 72 73 20 66 | 6f 72 20 50 43 2f 41 54 |inters f|or PC/AT|
|00001110| 20 63 6c 61 73 73 20 63 | 6f 6d 70 75 74 65 72 73 | class c|omputers|
|00001120| 20 72 75 6e 6e 69 6e 67 | 0a 75 6e 64 65 72 20 4d | running|.under M|
|00001130| 69 63 72 6f 70 6f 72 74 | 20 53 79 73 74 65 6d 20 |icroport| System |
|00001140| 56 2f 41 54 2c 20 58 65 | 6e 69 78 20 6f 72 20 4d |V/AT, Xe|nix or M|
|00001150| 53 2d 44 4f 53 2e 20 20 | 0a 0a 56 61 72 69 6f 75 |S-DOS. |..Variou|
|00001160| 73 20 6f 75 74 70 75 74 | 20 64 65 76 69 63 65 73 |s output| devices|
|00001170| 20 61 72 65 20 73 75 70 | 70 6f 72 74 65 64 2e 20 | are sup|ported. |
|00001180| 20 46 6f 72 20 65 61 63 | 68 20 74 79 70 65 20 6f | For eac|h type o|
|00001190| 66 20 64 65 76 69 63 65 | 2c 20 6f 6e 65 20 6f 72 |f device|, one or|
|000011a0| 0a 6d 6f 72 65 20 67 72 | 61 70 68 69 63 73 20 22 |.more gr|aphics "|
|000011b0| 6d 6f 64 65 73 22 20 69 | 73 20 64 65 66 69 6e 65 |modes" i|s define|
|000011c0| 64 20 69 6e 20 6d 6f 64 | 65 73 2e 68 2c 20 61 6e |d in mod|es.h, an|
|000011d0| 64 20 74 68 65 20 63 6f | 72 72 65 73 70 6f 6e 64 |d the co|rrespond|
|000011e0| 69 6e 67 20 62 69 74 6d | 61 70 73 0a 61 72 65 20 |ing bitm|aps.are |
|000011f0| 64 65 66 69 6e 65 64 20 | 69 6e 20 62 69 74 6d 61 |defined |in bitma|
|00001200| 70 73 2e 68 2e 20 20 54 | 68 65 73 65 20 6d 6f 64 |ps.h. T|hese mod|
|00001210| 65 73 20 72 6f 75 67 68 | 6c 79 20 63 6f 72 72 65 |es rough|ly corre|
|00001220| 73 70 6f 6e 64 20 74 6f | 20 74 68 65 20 42 49 4f |spond to| the BIO|
|00001230| 53 0a 76 69 64 65 6f 20 | 6d 6f 64 65 73 20 64 65 |S.video |modes de|
|00001240| 66 69 6e 65 64 20 66 6f | 72 20 4d 53 2d 44 4f 53 |fined fo|r MS-DOS|
|00001250| 2c 20 77 69 74 68 20 61 | 64 64 69 74 69 6f 6e 61 |, with a|dditiona|
|00001260| 6c 20 6d 6f 64 65 73 20 | 64 65 66 69 6e 65 64 20 |l modes |defined |
|00001270| 66 6f 72 20 48 65 72 63 | 75 6c 65 73 0a 63 6f 6d |for Herc|ules.com|
|00001280| 70 61 74 69 62 6c 65 20 | 6d 6f 64 65 73 20 61 6e |patible |modes an|
|00001290| 64 20 66 6f 72 20 70 72 | 69 6e 74 65 72 20 6f 75 |d for pr|inter ou|
|000012a0| 74 70 75 74 2e 20 20 54 | 68 65 20 67 6c 2e 68 20 |tput. T|he gl.h |
|000012b0| 66 69 6c 65 20 73 68 6f | 75 6c 64 20 62 65 20 69 |file sho|uld be i|
|000012c0| 6e 63 6c 75 64 65 64 20 | 0a 69 6e 74 6f 20 75 73 |ncluded |.into us|
|000012d0| 65 72 20 63 6f 64 65 20 | 74 6f 20 64 65 63 6c 61 |er code |to decla|
|000012e0| 72 65 20 74 68 65 20 67 | 72 61 70 68 69 63 73 20 |re the g|raphics |
|000012f0| 72 6f 75 74 69 6e 65 73 | 2e 20 20 54 68 65 20 63 |routines|. The c|
|00001300| 6f 6e 66 69 67 2e 68 20 | 66 69 6c 65 20 6d 61 79 |onfig.h |file may|
|00001310| 20 0a 61 6c 73 6f 20 62 | 65 20 69 6e 63 6c 75 64 | .also b|e includ|
|00001320| 65 64 20 66 6f 72 20 75 | 73 65 72 20 70 72 6f 67 |ed for u|ser prog|
|00001330| 72 61 6d 73 20 77 68 65 | 6e 20 6e 65 65 64 65 64 |rams whe|n needed|
|00001340| 20 28 74 68 65 20 6f 74 | 68 65 72 20 68 65 61 64 | (the ot|her head|
|00001350| 65 72 20 66 69 6c 65 73 | 20 61 72 65 20 0a 69 6e |er files| are .in|
|00001360| 74 65 6e 64 65 64 20 74 | 6f 20 62 65 20 75 73 65 |tended t|o be use|
|00001370| 64 20 6f 6e 6c 79 20 62 | 79 20 74 68 65 20 67 6c |d only b|y the gl|
|00001380| 20 72 6f 75 74 69 6e 65 | 73 29 2e 20 0a 0a 54 65 | routine|s). ..Te|
|00001390| 73 74 65 64 20 73 79 73 | 74 65 6d 20 63 6f 6e 66 |sted sys|tem conf|
|000013a0| 69 67 75 72 61 74 69 6f | 6e 73 20 69 6e 63 6c 75 |iguratio|ns inclu|
|000013b0| 64 65 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |de the f|ollowing|
|000013c0| 3a 0a 0a 4f 53 09 09 43 | 6f 6d 70 69 6c 65 72 09 |:..OS..C|ompiler.|
|000013d0| 09 44 65 76 69 63 65 0a | 2d 2d 2d 2d 2d 2d 2d 2d |.Device.|--------|
|000013e0| 2d 2d 2d 2d 2d 2d 2d 20 | 2d 2d 2d 2d 2d 2d 2d 2d |------- |--------|
|000013f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 20 |--------|------- |
|00001400| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001410| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001420| 2d 2d 2d 0a 53 79 73 74 | 65 6d 20 56 2f 41 54 09 |---.Syst|em V/AT.|
|00001430| 63 63 09 09 09 48 65 72 | 63 75 6c 65 73 20 63 6f |cc...Her|cules co|
|00001440| 6d 70 61 74 69 62 6c 65 | 0a 53 79 73 74 65 6d 20 |mpatible|.System |
|00001450| 56 2f 41 54 09 63 63 09 | 09 09 43 47 41 20 63 6f |V/AT.cc.|..CGA co|
|00001460| 6d 70 61 74 69 62 6c 65 | 0a 53 79 73 74 65 6d 20 |mpatible|.System |
|00001470| 56 2f 41 54 09 63 63 09 | 09 09 45 47 41 20 63 6f |V/AT.cc.|..EGA co|
|00001480| 6d 70 61 74 69 62 6c 65 | 0a 53 79 73 74 65 6d 20 |mpatible|.System |
|00001490| 56 2f 41 54 09 63 63 09 | 09 09 49 42 4d 20 6f 72 |V/AT.cc.|..IBM or|
|000014a0| 20 45 70 73 6f 6e 20 63 | 6f 6d 70 61 74 69 62 6c | Epson c|ompatibl|
|000014b0| 65 20 70 72 69 6e 74 65 | 72 0a 53 43 4f 20 58 65 |e printe|r.SCO Xe|
|000014c0| 6e 69 78 20 32 38 36 09 | 4d 69 63 72 6f 73 6f 66 |nix 286.|Microsof|
|000014d0| 74 20 43 09 09 45 47 41 | 20 63 6f 6d 70 61 74 69 |t C..EGA| compati|
|000014e0| 62 6c 65 20 28 69 6e 63 | 6c 75 64 69 6e 67 20 43 |ble (inc|luding C|
|000014f0| 47 41 20 6d 6f 64 65 73 | 29 0a 4d 53 2d 44 4f 53 |GA modes|).MS-DOS|
|00001500| 09 09 4d 69 63 72 6f 73 | 6f 66 74 20 43 20 28 58 |..Micros|oft C (X|
|00001510| 65 6e 69 78 29 09 45 47 | 41 20 63 6f 6d 70 61 74 |enix).EG|A compat|
|00001520| 69 62 6c 65 20 28 69 6e | 63 6c 75 64 69 6e 67 20 |ible (in|cluding |
|00001530| 43 47 41 20 6d 6f 64 65 | 73 29 0a 4d 53 2d 44 4f |CGA mode|s).MS-DO|
|00001540| 53 09 09 4d 69 63 72 6f | 73 6f 66 74 20 43 20 28 |S..Micro|soft C (|
|00001550| 44 4f 53 29 09 45 47 41 | 20 63 6f 6d 70 61 74 69 |DOS).EGA| compati|
|00001560| 62 6c 65 20 28 69 6e 63 | 6c 75 64 69 6e 67 20 43 |ble (inc|luding C|
|00001570| 47 41 20 6d 6f 64 65 73 | 29 0a 4d 53 2d 44 4f 53 |GA modes|).MS-DOS|
|00001580| 09 09 42 6f 72 6c 61 6e | 64 20 54 75 72 62 6f 2d |..Borlan|d Turbo-|
|00001590| 43 09 09 45 47 41 20 63 | 6f 6d 70 61 74 69 62 6c |C..EGA c|ompatibl|
|000015a0| 65 20 28 69 6e 63 6c 75 | 64 69 6e 67 20 43 47 41 |e (inclu|ding CGA|
|000015b0| 20 6d 6f 64 65 73 29 0a | 0a 4f 74 68 65 72 20 63 | modes).|.Other c|
|000015c0| 6f 6d 62 69 6e 61 74 69 | 6f 6e 73 20 6f 66 20 73 |ombinati|ons of s|
|000015d0| 79 73 74 65 6d 73 2c 20 | 63 6f 6d 70 69 6c 65 72 |ystems, |compiler|
|000015e0| 73 20 61 6e 64 20 6f 75 | 74 70 75 74 20 64 65 76 |s and ou|tput dev|
|000015f0| 69 63 65 73 20 73 68 6f | 75 6c 64 20 77 6f 72 6b |ices sho|uld work|
|00001600| 20 77 69 74 68 20 0a 6c | 69 74 74 6c 65 20 6f 72 | with .l|ittle or|
|00001610| 20 6e 6f 20 6d 6f 64 69 | 66 69 63 61 74 69 6f 6e | no modi|fication|
|00001620| 2e 20 20 0a 0a 43 75 72 | 72 65 6e 74 6c 79 20 73 |. ..Cur|rently s|
|00001630| 75 70 70 6f 72 74 65 64 | 20 76 69 64 65 6f 20 61 |upported| video a|
|00001640| 64 61 70 74 65 72 73 20 | 69 6e 63 6c 75 64 65 3a |dapters |include:|
|00001650| 0a 0a 2d 48 65 72 63 75 | 6c 65 73 20 63 6f 6d 70 |..-Hercu|les comp|
|00001660| 61 74 69 62 6c 65 20 6d | 6f 6e 6f 63 68 72 6f 6d |atible m|onochrom|
|00001670| 65 20 28 70 61 67 65 20 | 30 20 61 6e 64 20 70 61 |e (page |0 and pa|
|00001680| 67 65 20 31 29 0a 2d 43 | 47 41 20 28 6d 6f 64 65 |ge 1).-C|GA (mode|
|00001690| 73 20 34 20 61 6e 64 20 | 36 29 0a 2d 45 47 41 20 |s 4 and |6).-EGA |
|000016a0| 28 6e 6f 20 63 6f 6c 6f | 72 20 69 6e 20 45 47 41 |(no colo|r in EGA|
|000016b0| 20 6d 6f 64 65 20 31 36 | 29 0a 2d 56 47 41 20 28 | mode 16|).-VGA (|
|000016c0| 45 47 41 20 61 6e 64 20 | 43 47 41 20 6d 6f 64 65 |EGA and |CGA mode|
|000016d0| 73 20 6f 6e 6c 79 29 0a | 0a 43 75 72 72 65 6e 74 |s only).|.Current|
|000016e0| 6c 79 20 73 75 70 70 6f | 72 74 65 64 20 70 72 69 |ly suppo|rted pri|
|000016f0| 6e 74 65 72 73 20 69 6e | 63 6c 75 64 65 3a 0a 0a |nters in|clude:..|
|00001700| 2d 49 42 4d 20 67 72 61 | 70 68 69 63 73 20 70 72 |-IBM gra|phics pr|
|00001710| 69 6e 74 65 72 0a 2d 49 | 42 4d 20 50 72 6f 70 72 |inter.-I|BM Propr|
|00001720| 69 6e 74 65 72 0a 2d 45 | 70 73 6f 6e 20 46 58 38 |inter.-E|pson FX8|
|00001730| 35 2c 20 0a 2d 45 70 73 | 6f 6e 20 4c 51 31 35 30 |5, .-Eps|on LQ150|
|00001740| 30 0a 2d 53 74 61 72 31 | 30 58 0a 2d 54 61 6e 64 |0.-Star1|0X.-Tand|
|00001750| 79 20 44 4d 50 31 33 30 | 0a 2d 48 50 20 4c 61 73 |y DMP130|.-HP Las|
|00001760| 65 72 6a 65 74 2b 0a 0a | 41 64 64 69 74 69 6f 6e |erjet+..|Addition|
|00001770| 61 6c 20 64 65 76 69 63 | 65 20 73 75 70 70 6f 72 |al devic|e suppor|
|00001780| 74 20 69 73 20 73 74 72 | 61 69 67 68 74 66 6f 72 |t is str|aightfor|
|00001790| 77 61 72 64 2c 20 61 73 | 20 61 6c 6c 20 72 6f 75 |ward, as| all rou|
|000017a0| 74 69 6e 65 73 20 63 61 | 6c 6c 20 0a 70 5f 77 72 |tines ca|ll .p_wr|
|000017b0| 5f 70 69 78 28 29 20 74 | 6f 20 64 6f 20 6f 75 74 |_pix() t|o do out|
|000017c0| 70 75 74 2e 0a 0a 54 68 | 65 20 72 6f 75 74 69 6e |put...Th|e routin|
|000017d0| 65 73 20 61 72 65 3a 0a | 0a 09 67 5f 69 6e 69 74 |es are:.|..g_init|
|000017e0| 28 29 09 49 6e 69 74 69 | 61 6c 69 7a 65 20 64 65 |().Initi|alize de|
|000017f0| 76 69 63 65 2c 20 62 75 | 66 66 65 72 73 2c 20 76 |vice, bu|ffers, v|
|00001800| 61 72 69 61 62 6c 65 73 | 2e 20 20 41 74 74 61 63 |ariables|. Attac|
|00001810| 68 0a 09 09 09 74 6f 20 | 73 68 61 72 65 64 20 6d |h....to |shared m|
|00001820| 65 6d 6f 72 79 20 73 65 | 67 6d 65 6e 74 20 6f 72 |emory se|gment or|
|00001830| 20 6d 61 6c 6c 6f 63 27 | 65 64 20 62 75 66 66 65 | malloc'|ed buffe|
|00001840| 72 73 2e 0a 09 67 5f 66 | 69 6e 69 73 68 28 29 09 |rs...g_f|inish().|
|00001850| 52 65 6c 65 61 73 65 20 | 72 65 73 6f 75 72 63 65 |Release |resource|
|00001860| 73 2c 20 64 65 74 61 63 | 68 20 73 65 67 6d 65 6e |s, detac|h segmen|
|00001870| 74 73 2e 0a 09 67 5f 63 | 6c 65 61 72 28 29 09 43 |ts...g_c|lear().C|
|00001880| 6c 65 61 72 20 73 63 72 | 65 65 6e 2e 0a 09 70 5f |lear scr|een...p_|
|00001890| 77 72 5f 70 69 78 28 29 | 09 57 72 69 74 65 20 6f |wr_pix()|.Write o|
|000018a0| 6e 65 20 70 69 78 65 6c | 2e 0a 09 6e 5f 6d 6f 76 |ne pixel|...n_mov|
|000018b0| 65 70 65 6e 28 29 09 4d | 6f 76 65 20 6c 6f 67 69 |epen().M|ove logi|
|000018c0| 63 61 6c 20 63 75 72 73 | 6f 72 20 69 6e 20 33 32 |cal curs|or in 32|
|000018d0| 37 36 38 20 78 20 33 32 | 37 36 38 20 61 64 64 72 |768 x 32|768 addr|
|000018e0| 65 73 73 20 73 70 61 63 | 65 2e 0a 09 6e 5f 70 6f |ess spac|e...n_po|
|000018f0| 69 6e 74 28 29 09 44 72 | 61 77 20 70 6f 69 6e 74 |int().Dr|aw point|
|00001900| 20 69 6e 20 33 32 37 36 | 38 20 78 20 33 32 37 36 | in 3276|8 x 3276|
|00001910| 38 20 61 64 64 72 65 73 | 73 20 73 70 61 63 65 2e |8 addres|s space.|
|00001920| 0a 09 6e 5f 64 72 61 77 | 28 29 09 44 72 61 77 20 |..n_draw|().Draw |
|00001930| 76 65 63 74 6f 72 2e 09 | 0a 09 6e 5f 6c 69 6e 65 |vector..|..n_line|
|00001940| 28 29 09 44 72 61 77 20 | 6c 69 6e 65 2e 0a 09 6e |().Draw |line...n|
|00001950| 5f 62 6f 78 28 29 09 09 | 44 72 61 77 20 62 6f 78 |_box()..|Draw box|
|00001960| 2e 0a 09 6e 5f 65 6c 6c | 69 70 73 65 28 29 09 44 |...n_ell|ipse().D|
|00001970| 72 61 77 20 65 6c 6c 69 | 70 73 65 2e 0a 09 6e 5f |raw elli|pse...n_|
|00001980| 61 72 63 28 29 09 09 44 | 72 61 77 20 65 6c 6c 69 |arc()..D|raw elli|
|00001990| 70 74 69 63 61 6c 20 61 | 72 63 2e 0a 09 6e 5f 67 |ptical a|rc...n_g|
|000019a0| 72 61 66 63 68 61 72 28 | 29 09 44 69 73 70 6c 61 |rafchar(|).Displa|
|000019b0| 79 20 61 20 76 65 63 74 | 6f 72 69 7a 65 64 20 74 |y a vect|orized t|
|000019c0| 65 78 74 20 63 68 61 72 | 61 63 74 65 72 20 28 73 |ext char|acter (s|
|000019d0| 74 72 6f 6b 65 20 66 6f | 6e 74 29 2e 0a 09 6e 5f |troke fo|nt)...n_|
|000019e0| 67 72 61 66 73 74 72 28 | 29 09 44 69 73 70 6c 61 |grafstr(|).Displa|
|000019f0| 79 20 61 20 63 68 61 72 | 61 63 74 65 72 20 73 74 |y a char|acter st|
|00001a00| 72 69 6e 67 2c 20 73 74 | 72 6f 6b 65 20 66 6f 6e |ring, st|roke fon|
|00001a10| 74 2e 0a 09 67 5f 66 6f | 6e 74 63 74 6c 28 29 09 |t...g_fo|ntctl().|
|00001a20| 43 6f 6e 74 72 6f 6c 20 | 73 69 7a 65 2c 20 61 73 |Control |size, as|
|00001a30| 70 65 63 74 20 72 61 74 | 69 6f 2c 20 73 70 61 63 |pect rat|io, spac|
|00001a40| 69 6e 67 2c 20 61 6e 67 | 6c 65 20 61 6e 64 20 73 |ing, ang|le and s|
|00001a50| 6c 61 6e 74 20 0a 09 09 | 09 6f 66 20 73 74 72 6f |lant ...|.of stro|
|00001a60| 6b 65 20 66 6f 6e 74 2e | 0a 09 63 5f 63 65 6c 6c |ke font.|..c_cell|
|00001a70| 63 68 61 72 28 29 09 44 | 69 73 70 6c 61 79 20 61 |char().D|isplay a|
|00001a80| 20 62 69 74 20 6d 61 70 | 70 65 64 20 63 68 61 72 | bit map|ped char|
|00001a90| 61 63 74 65 72 2e 0a 09 | 63 5f 63 65 6c 6c 73 74 |acter...|c_cellst|
|00001aa0| 72 28 29 09 44 69 73 70 | 6c 61 79 20 61 20 73 74 |r().Disp|lay a st|
|00001ab0| 72 69 6e 67 2c 20 62 69 | 74 20 6d 61 70 70 65 64 |ring, bi|t mapped|
|00001ac0| 20 63 68 61 72 61 63 74 | 65 72 73 2e 0a 09 63 5f | charact|ers...c_|
|00001ad0| 63 75 72 73 6f 72 28 29 | 09 4d 6f 76 65 20 74 6f |cursor()|.Move to|
|00001ae0| 20 63 68 61 72 61 63 74 | 65 72 20 63 6f 6c 75 6d | charact|er colum|
|00001af0| 6e 20 61 6e 64 20 72 6f | 77 20 66 6f 72 20 63 5f |n and ro|w for c_|
|00001b00| 63 65 6c 6c 73 74 72 28 | 29 2e 0a 09 67 5f 70 69 |cellstr(|)...g_pi|
|00001b10| 78 5f 6d 6f 64 65 28 29 | 09 45 73 74 61 62 6c 69 |x_mode()|.Establi|
|00001b20| 73 68 20 4f 52 20 6d 6f | 64 65 20 6f 72 20 58 4f |sh OR mo|de or XO|
|00001b30| 52 20 6d 6f 64 65 20 70 | 69 78 65 6c 20 73 65 74 |R mode p|ixel set|
|00001b40| 74 69 6e 67 2c 20 72 65 | 74 75 72 6e 73 0a 09 09 |ting, re|turns...|
|00001b50| 09 70 72 65 76 69 6f 75 | 73 20 6d 6f 64 65 20 76 |.previou|s mode v|
|00001b60| 61 6c 75 65 2e 0a 09 67 | 5f 70 69 78 5f 63 6f 6c |alue...g|_pix_col|
|00001b70| 6f 72 28 29 09 53 65 74 | 20 70 69 78 65 6c 20 63 |or().Set| pixel c|
|00001b80| 6f 6c 6f 72 2c 20 72 65 | 74 75 72 6e 73 20 70 72 |olor, re|turns pr|
|00001b90| 65 76 69 6f 75 73 20 63 | 6f 6c 6f 72 20 76 61 6c |evious c|olor val|
|00001ba0| 75 65 2e 0a 09 67 5f 77 | 65 69 67 68 74 28 29 09 |ue...g_w|eight().|
|00001bb0| 53 65 74 20 6c 69 6e 65 | 20 74 68 69 63 6b 6e 65 |Set line| thickne|
|00001bc0| 73 73 2c 20 72 65 74 75 | 72 6e 73 20 70 72 65 76 |ss, retu|rns prev|
|00001bd0| 69 6f 75 73 20 76 61 6c | 75 65 2e 0a 09 67 5f 73 |ious val|ue...g_s|
|00001be0| 74 79 6c 65 28 29 09 53 | 65 74 20 6c 69 6e 65 20 |tyle().S|et line |
|00001bf0| 73 74 79 6c 65 20 28 65 | 2e 67 2e 20 64 6f 74 2d |style (e|.g. dot-|
|00001c00| 64 61 73 68 29 2c 20 72 | 65 74 75 72 6e 73 20 70 |dash), r|eturns p|
|00001c10| 72 65 76 69 6f 75 73 20 | 76 61 6c 75 65 2e 0a 0a |revious |value...|
|00001c20| 41 64 64 69 74 69 6f 6e | 61 6c 20 72 6f 75 74 69 |Addition|al routi|
|00001c30| 6e 65 73 3a 0a 0a 09 70 | 6c 6f 74 28 33 29 09 09 |nes:...p|lot(3)..|
|00001c40| 45 6d 75 6c 61 74 69 6f | 6e 20 6f 66 20 74 68 65 |Emulatio|n of the|
|00001c50| 20 42 53 44 20 70 6c 6f | 74 28 33 29 20 6c 69 62 | BSD plo|t(3) lib|
|00001c60| 72 61 72 79 3a 20 20 6f | 70 65 6e 70 6c 28 29 2c |rary: o|penpl(),|
|00001c70| 20 0a 09 09 09 65 72 61 | 73 65 28 29 2c 20 6c 61 | ....era|se(), la|
|00001c80| 62 65 6c 28 29 2c 20 6c | 69 6e 65 28 29 2c 20 63 |bel(), l|ine(), c|
|00001c90| 69 72 63 6c 65 28 29 2c | 20 61 72 63 28 29 2c 20 |ircle(),| arc(), |
|00001ca0| 6d 6f 76 65 28 29 2c 20 | 0a 09 09 09 63 6f 6e 74 |move(), |....cont|
|00001cb0| 28 29 2c 20 70 6f 69 6e | 74 28 29 2c 20 6c 69 6e |(), poin|t(), lin|
|00001cc0| 65 6d 6f 64 28 29 2c 20 | 73 70 61 63 65 28 29 2c |emod(), |space(),|
|00001cd0| 20 63 6c 6f 73 65 70 6c | 28 29 2e 0a 0a 52 65 71 | closepl|()...Req|
|00001ce0| 75 69 72 65 6d 65 6e 74 | 73 3a 0a 2d 2d 2d 2d 2d |uirement|s:.-----|
|00001cf0| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 0a 31 29 20 20 41 20 |--------|..1) A |
|00001d00| 67 72 61 70 68 69 63 73 | 20 63 61 70 61 62 6c 65 |graphics| capable|
|00001d10| 20 76 69 64 65 6f 20 61 | 64 61 70 74 65 72 20 61 | video a|dapter a|
|00001d20| 6e 64 2f 6f 72 20 70 72 | 69 6e 74 65 72 20 28 73 |nd/or pr|inter (s|
|00001d30| 65 65 20 61 62 6f 76 65 | 20 66 6f 72 20 73 75 70 |ee above| for sup|
|00001d40| 70 6f 72 74 65 64 0a 64 | 65 76 69 63 65 73 29 2e |ported.d|evices).|
|00001d50| 20 20 0a 0a 32 29 20 20 | 41 63 63 65 73 73 20 74 | ..2) |Access t|
|00001d60| 6f 20 76 69 64 65 6f 20 | 6d 65 6d 6f 72 79 2e 20 |o video |memory. |
|00001d70| 20 46 6f 72 20 53 79 73 | 74 65 6d 20 56 2f 41 54 | For Sys|tem V/AT|
|00001d80| 2c 20 74 68 69 73 20 72 | 65 71 75 69 72 65 73 20 |, this r|equires |
|00001d90| 61 6e 20 65 6e 74 72 79 | 20 69 6e 20 0a 2f 65 74 |an entry| in ./et|
|00001da0| 63 2f 72 63 2e 64 2f 73 | 68 6d 2e 72 63 20 74 6f |c/rc.d/s|hm.rc to|
|00001db0| 20 64 65 66 69 6e 65 20 | 74 68 65 20 73 68 61 72 | define |the shar|
|00001dc0| 65 64 20 6d 65 6d 6f 72 | 79 20 6b 65 79 20 66 6f |ed memor|y key fo|
|00001dd0| 72 20 79 6f 75 72 20 67 | 72 61 70 68 69 63 73 20 |r your g|raphics |
|00001de0| 62 6f 61 72 64 20 0a 41 | 20 73 61 6d 70 6c 65 20 |board .A| sample |
|00001df0| 65 6e 74 72 79 20 66 6f | 72 20 45 47 41 20 69 73 |entry fo|r EGA is|
|00001e00| 3a 0a 0a 09 2f 65 74 63 | 2f 73 68 6d 63 72 65 61 |:.../etc|/shmcrea|
|00001e10| 74 65 20 30 78 61 30 30 | 30 30 20 61 30 30 30 30 |te 0xa00|00 a0000|
|00001e20| 20 36 35 35 33 35 09 09 | 23 20 65 67 61 20 68 69 | 65535..|# ega hi|
|00001e30| 67 68 20 72 65 73 0a 0a | 58 65 6e 69 78 20 72 65 |gh res..|Xenix re|
|00001e40| 71 75 69 72 65 73 20 6f | 6e 6c 79 20 74 68 65 20 |quires o|nly the |
|00001e50| 61 70 70 72 6f 70 72 69 | 61 74 65 20 64 65 76 69 |appropri|ate devi|
|00001e60| 63 65 20 64 72 69 76 65 | 72 20 28 2f 64 65 76 2f |ce drive|r (/dev/|
|00001e70| 45 47 41 29 2c 20 61 6e | 64 20 4d 53 2d 44 4f 53 |EGA), an|d MS-DOS|
|00001e80| 0a 68 61 73 20 6e 6f 74 | 68 69 6e 67 20 74 6f 20 |.has not|hing to |
|00001e90| 77 6f 72 72 79 20 61 62 | 6f 75 74 2e 20 20 52 65 |worry ab|out. Re|
|00001ea0| 71 75 69 72 65 6d 65 6e | 74 73 20 66 6f 72 20 33 |quiremen|ts for 3|
|00001eb0| 38 36 20 55 4e 49 58 20 | 61 72 65 20 75 6e 6b 6e |86 UNIX |are unkn|
|00001ec0| 6f 77 6e 20 61 74 20 74 | 68 69 73 0a 74 69 6d 65 |own at t|his.time|
|00001ed0| 2e 20 20 4d 53 2d 44 4f | 53 20 68 61 73 20 6e 6f |. MS-DO|S has no|
|00001ee0| 20 73 70 65 63 69 61 6c | 20 72 65 71 75 69 72 65 | special| require|
|00001ef0| 6d 65 6e 74 73 2e 0a 0a | 33 29 20 20 41 20 70 72 |ments...|3) A pr|
|00001f00| 6f 67 72 61 6d 20 6f 72 | 20 73 68 65 6c 6c 20 73 |ogram or| shell s|
|00001f10| 63 72 69 70 74 20 77 68 | 69 63 68 20 77 69 6c 6c |cript wh|ich will|
|00001f20| 20 63 61 75 73 65 20 74 | 68 65 20 67 72 61 70 68 | cause t|he graph|
|00001f30| 69 63 73 20 61 64 61 70 | 74 65 72 20 74 6f 0a 73 |ics adap|ter to.s|
|00001f40| 77 69 74 63 68 20 66 72 | 6f 6d 20 74 65 78 74 20 |witch fr|om text |
|00001f50| 74 6f 20 67 72 61 70 68 | 69 63 73 20 6d 6f 64 65 |to graph|ics mode|
|00001f60| 73 2c 20 61 6e 64 20 76 | 69 63 65 20 76 65 72 73 |s, and v|ice vers|
|00001f70| 61 20 28 6e 6f 74 20 72 | 65 71 75 69 72 65 64 20 |a (not r|equired |
|00001f80| 66 6f 72 20 44 4f 53 2c | 0a 62 75 74 20 68 61 6e |for DOS,|.but han|
|00001f90| 64 79 20 6e 6f 6e 65 74 | 68 65 6c 65 73 73 29 2e |dy nonet|heless).|
|00001fa0| 20 20 46 6f 72 20 6d 6f | 73 74 20 63 6f 6e 66 69 | For mo|st confi|
|00001fb0| 67 75 72 61 74 69 6f 6e | 73 2c 20 74 68 69 73 20 |guration|s, this |
|00001fc0| 63 61 6e 20 62 65 20 6a | 75 73 74 20 61 20 73 68 |can be j|ust a sh|
|00001fd0| 65 6c 6c 20 0a 73 63 72 | 69 70 74 20 77 68 69 63 |ell .scr|ipt whic|
|00001fe0| 68 20 65 63 68 6f 65 73 | 20 74 68 65 20 61 70 70 |h echoes| the app|
|00001ff0| 72 6f 70 72 69 61 74 65 | 20 65 73 63 61 70 65 20 |ropriate| escape |
|00002000| 73 65 71 75 65 6e 63 65 | 73 20 74 6f 20 74 68 65 |sequence|s to the|
|00002010| 20 63 6f 6e 73 6f 6c 65 | 2e 20 20 54 68 65 20 0a | console|. The .|
|00002020| 6d 6f 64 65 2e 73 68 20 | 61 6e 64 20 6d 6f 64 65 |mode.sh |and mode|
|00002030| 2e 78 65 6e 69 78 20 73 | 63 72 69 70 74 73 20 61 |.xenix s|cripts a|
|00002040| 72 65 20 73 75 70 70 6c | 69 65 64 20 66 6f 72 20 |re suppl|ied for |
|00002050| 74 68 69 73 20 70 75 72 | 70 6f 73 65 2c 20 62 75 |this pur|pose, bu|
|00002060| 74 20 73 68 6f 75 6c 64 | 20 0a 62 65 20 74 65 73 |t should| .be tes|
|00002070| 74 65 64 20 61 6e 64 20 | 6d 6f 64 69 66 69 65 64 |ted and |modified|
|00002080| 20 61 73 20 6e 65 65 64 | 65 64 20 66 6f 72 20 79 | as need|ed for y|
|00002090| 6f 75 72 20 73 79 73 74 | 65 6d 2e 20 20 54 68 65 |our syst|em. The|
|000020a0| 20 70 72 6f 67 72 61 6d | 20 6d 6f 64 65 2e 63 20 | program| mode.c |
|000020b0| 69 73 20 0a 61 6c 73 6f | 20 73 75 70 70 6c 69 65 |is .also| supplie|
|000020c0| 64 20 66 6f 72 20 75 73 | 65 20 77 69 74 68 20 74 |d for us|e with t|
|000020d0| 68 65 20 45 76 65 72 65 | 78 20 45 64 67 65 2e 20 |he Evere|x Edge. |
|000020e0| 20 54 68 69 73 20 70 72 | 6f 67 72 61 6d 20 63 61 | This pr|ogram ca|
|000020f0| 6e 20 62 65 20 6d 6f 64 | 69 66 69 65 64 20 0a 74 |n be mod|ified .t|
|00002100| 6f 20 73 75 70 70 6f 72 | 74 20 76 61 72 69 6f 75 |o suppor|t variou|
|00002110| 73 20 6f 74 68 65 72 20 | 76 69 64 65 6f 20 61 64 |s other |video ad|
|00002120| 61 70 74 65 72 73 20 77 | 68 69 63 68 20 6d 61 79 |apters w|hich may|
|00002130| 20 6e 6f 74 20 72 65 73 | 70 6f 6e 64 20 74 6f 20 | not res|pond to |
|00002140| 74 68 65 20 0a 63 6f 6e | 73 6f 6c 65 20 65 73 63 |the .con|sole esc|
|00002150| 61 70 65 20 73 65 71 75 | 65 6e 63 65 73 20 28 6d |ape sequ|ences (m|
|00002160| 6f 64 65 2e 63 20 70 72 | 6f 62 61 62 6c 79 20 77 |ode.c pr|obably w|
|00002170| 6f 72 6b 73 20 77 69 74 | 68 20 61 20 48 65 72 63 |orks wit|h a Herc|
|00002180| 75 6c 65 73 20 62 6f 61 | 72 64 2c 20 0a 61 6c 73 |ules boa|rd, .als|
|00002190| 6f 2c 20 62 75 74 20 74 | 68 69 73 20 69 73 20 6e |o, but t|his is n|
|000021a0| 6f 74 20 74 65 73 74 65 | 64 29 2e 20 20 46 6f 72 |ot teste|d). For|
|000021b0| 20 53 79 73 74 65 6d 20 | 56 2f 41 54 2c 20 6d 6f | System |V/AT, mo|
|000021c0| 64 65 2e 63 20 6e 65 65 | 64 73 20 74 6f 20 62 65 |de.c nee|ds to be|
|000021d0| 20 73 75 69 64 20 0a 74 | 6f 20 72 6f 6f 74 20 61 | suid .t|o root a|
|000021e0| 6e 64 20 70 6c 61 63 65 | 64 20 69 6e 20 61 6e 20 |nd place|d in an |
|000021f0| 61 70 70 72 6f 70 72 69 | 61 74 65 20 73 61 66 65 |appropri|ate safe|
|00002200| 20 64 69 72 65 63 74 6f | 72 79 2c 20 62 75 74 20 | directo|ry, but |
|00002210| 61 20 73 69 6d 70 6c 65 | 20 73 68 65 6c 6c 20 0a |a simple| shell .|
|00002220| 73 63 72 69 70 74 20 28 | 66 6f 72 20 6d 6f 73 74 |script (|for most|
|00002230| 20 76 69 64 65 6f 20 62 | 6f 61 72 64 73 20 6f 6e | video b|oards on|
|00002240| 20 53 79 73 74 65 6d 20 | 56 2f 41 54 20 6f 72 20 | System |V/AT or |
|00002250| 58 65 6e 69 78 29 20 77 | 69 6c 6c 20 6e 65 65 64 |Xenix) w|ill need|
|00002260| 20 6e 6f 20 73 70 65 63 | 69 61 6c 20 0a 74 72 65 | no spec|ial .tre|
|00002270| 61 74 6d 65 6e 74 2e 20 | 20 46 6f 72 20 4d 53 2d |atment. | For MS-|
|00002280| 44 4f 53 2c 20 6d 6f 64 | 65 20 73 77 69 74 63 68 |DOS, mod|e switch|
|00002290| 69 6e 67 20 69 73 20 64 | 6f 6e 65 20 77 69 74 68 |ing is d|one with|
|000022a0| 20 42 49 4f 53 20 63 61 | 6c 6c 73 2e 0a 0a 34 29 | BIOS ca|lls...4)|
|000022b0| 20 20 46 6f 72 20 67 72 | 61 70 68 69 63 73 20 70 | For gr|aphics p|
|000022c0| 72 69 6e 74 69 6e 67 2c | 20 74 68 65 20 70 72 69 |rinting,| the pri|
|000022d0| 6e 74 65 72 20 64 72 69 | 76 65 72 20 6d 75 73 74 |nter dri|ver must|
|000022e0| 20 62 65 20 69 6e 20 22 | 74 72 61 6e 73 70 61 72 | be in "|transpar|
|000022f0| 65 6e 63 79 22 0a 6d 6f | 64 65 2c 20 74 6f 20 61 |ency".mo|de, to a|
|00002300| 6c 6c 6f 77 20 62 69 6e | 61 72 79 20 64 61 74 61 |llow bin|ary data|
|00002310| 20 74 6f 20 62 65 20 73 | 65 6e 74 20 74 6f 20 74 | to be s|ent to t|
|00002320| 68 65 20 70 72 69 6e 74 | 65 72 20 77 69 74 68 6f |he print|er witho|
|00002330| 75 74 20 6d 6f 64 69 66 | 69 63 61 74 69 6f 6e 73 |ut modif|ications|
|00002340| 0a 28 73 75 63 68 20 61 | 73 20 63 6f 6e 76 65 72 |.(such a|s conver|
|00002350| 73 69 6f 6e 20 6f 66 20 | 3c 6c 66 3e 20 74 6f 20 |sion of |<lf> to |
|00002360| 3c 63 72 3e 3c 6c 66 3e | 29 2e 20 20 0a 0a 46 6f |<cr><lf>|). ..Fo|
|00002370| 72 20 53 79 73 74 65 6d | 20 56 2f 41 54 2c 20 74 |r System| V/AT, t|
|00002380| 68 69 73 20 69 73 20 64 | 6f 6e 65 20 77 69 74 68 |his is d|one with|
|00002390| 20 74 68 65 20 22 6c 70 | 67 65 74 22 20 61 6e 64 | the "lp|get" and|
|000023a0| 20 22 6c 70 73 65 74 22 | 20 63 6f 6d 6d 61 6e 64 | "lpset"| command|
|000023b0| 73 2e 20 20 0a 54 68 65 | 20 70 6c 6f 74 74 69 6e |s. .The| plottin|
|000023c0| 67 20 72 6f 75 74 69 6e | 65 73 20 64 6f 20 6e 6f |g routin|es do no|
|000023d0| 74 20 73 65 74 20 74 68 | 69 73 20 66 6f 72 20 79 |t set th|is for y|
|000023e0| 6f 75 2c 20 73 69 6e 63 | 65 20 74 68 65 20 70 72 |ou, sinc|e the pr|
|000023f0| 69 6e 74 65 72 20 69 73 | 20 6f 6e 20 61 20 0a 71 |inter is| on a .q|
|00002400| 75 65 75 65 20 61 6e 64 | 20 69 73 20 61 73 73 75 |ueue and| is assu|
|00002410| 6d 65 64 20 74 6f 20 62 | 65 20 61 20 73 68 61 72 |med to b|e a shar|
|00002420| 65 64 20 64 65 76 69 63 | 65 2e 20 20 49 66 20 6d |ed devic|e. If m|
|00002430| 6f 72 65 20 74 68 61 6e | 20 6f 6e 65 20 70 65 72 |ore than| one per|
|00002440| 73 6f 6e 20 75 73 65 73 | 20 0a 74 68 65 20 70 72 |son uses| .the pr|
|00002450| 69 6e 74 65 72 2c 20 69 | 74 20 6d 61 79 20 62 65 |inter, i|t may be|
|00002460| 20 61 20 67 6f 6f 64 20 | 69 64 65 61 20 74 6f 20 | a good |idea to |
|00002470| 6c 65 61 76 65 20 74 68 | 65 20 64 72 69 76 65 72 |leave th|e driver|
|00002480| 20 69 6e 20 74 72 61 6e | 73 70 61 72 65 6e 63 79 | in tran|sparency|
|00002490| 0a 6d 6f 64 65 2c 20 61 | 6e 64 20 77 72 69 74 65 |.mode, a|nd write|
|000024a0| 20 61 20 66 69 6c 74 65 | 72 20 66 6f 72 20 6e 6f | a filte|r for no|
|000024b0| 72 6d 61 6c 20 74 65 78 | 74 20 6c 69 6e 65 20 70 |rmal tex|t line p|
|000024c0| 72 69 6e 74 65 72 20 6f | 75 74 70 75 74 20 74 6f |rinter o|utput to|
|000024d0| 20 68 61 6e 64 6c 65 0a | 63 6f 6e 76 65 72 73 69 | handle.|conversi|
|000024e0| 6f 6e 20 6f 66 20 3c 63 | 72 3e 20 74 6f 20 3c 63 |on of <c|r> to <c|
|000024f0| 72 3e 3c 6c 66 3e 20 61 | 6c 6f 6e 67 20 77 69 74 |r><lf> a|long wit|
|00002500| 68 20 61 6e 79 20 6f 74 | 68 65 72 20 6f 75 74 70 |h any ot|her outp|
|00002510| 75 74 20 66 6f 72 6d 61 | 74 74 69 6e 67 0a 74 68 |ut forma|tting.th|
|00002520| 61 74 20 6d 61 79 20 62 | 65 20 72 65 71 75 69 72 |at may b|e requir|
|00002530| 65 64 20 66 6f 72 20 74 | 65 78 74 2e 20 20 41 6e |ed for t|ext. An|
|00002540| 20 61 6c 74 65 72 6e 61 | 74 69 76 65 20 6d 65 74 | alterna|tive met|
|00002550| 68 6f 64 2c 20 62 61 73 | 65 64 20 6f 6e 20 61 6e |hod, bas|ed on an|
|00002560| 0a 75 6e 64 6f 63 75 6d | 65 6e 74 65 64 20 66 65 |.undocum|ented fe|
|00002570| 61 74 75 72 65 20 6f 66 | 20 74 68 65 20 53 79 73 |ature of| the Sys|
|00002580| 74 65 6d 20 56 2f 41 54 | 20 6c 70 20 64 72 69 76 |tem V/AT| lp driv|
|00002590| 65 72 2c 20 69 73 20 74 | 6f 20 75 73 65 20 6d 69 |er, is t|o use mi|
|000025a0| 6e 6f 72 0a 6e 75 6d 62 | 65 72 73 20 31 32 38 20 |nor.numb|ers 128 |
|000025b0| 61 6e 64 20 31 32 39 20 | 6f 66 20 74 68 65 20 6c |and 129 |of the l|
|000025c0| 70 20 64 72 69 76 65 72 | 2c 20 72 61 74 68 65 72 |p driver|, rather|
|000025d0| 20 74 68 61 6e 20 30 20 | 61 6e 64 20 31 2e 20 20 | than 0 |and 1. |
|000025e0| 54 68 69 73 20 64 65 76 | 69 63 65 0a 77 69 6c 6c |This dev|ice.will|
|000025f0| 20 63 6f 72 72 65 73 70 | 6f 6e 64 20 74 6f 20 74 | corresp|ond to t|
|00002600| 68 65 20 74 72 61 6e 73 | 70 61 72 65 6e 74 20 6d |he trans|parent m|
|00002610| 6f 64 65 20 6f 66 20 74 | 68 65 20 6c 70 20 64 65 |ode of t|he lp de|
|00002620| 76 69 63 65 20 64 72 69 | 76 65 72 2e 20 20 54 68 |vice dri|ver. Th|
|00002630| 65 0a 63 6f 6d 6d 61 6e | 64 73 20 22 6d 6b 6e 6f |e.comman|ds "mkno|
|00002640| 64 20 2f 64 65 76 2f 6c | 70 74 30 20 63 20 30 20 |d /dev/l|pt0 c 0 |
|00002650| 31 32 38 22 2c 20 22 6c | 69 6e 6b 20 2f 64 65 76 |128", "l|ink /dev|
|00002660| 2f 6c 70 74 30 20 2f 64 | 65 76 2f 6c 70 74 22 2c |/lpt0 /d|ev/lpt",|
|00002670| 0a 22 6c 70 61 64 6d 69 | 6e 20 2d 70 6c 70 74 20 |."lpadmi|n -plpt |
|00002680| 2d 76 2f 64 65 76 2f 6c | 70 74 20 2d 65 6c 70 22 |-v/dev/l|pt -elp"|
|00002690| 2c 20 22 65 6e 61 62 6c | 65 20 6c 70 74 22 20 61 |, "enabl|e lpt" a|
|000026a0| 6e 64 20 22 2f 75 73 72 | 2f 6c 69 62 2f 61 63 63 |nd "/usr|/lib/acc|
|000026b0| 65 70 74 20 6c 70 74 22 | 0a 6d 61 79 20 62 65 20 |ept lpt"|.may be |
|000026c0| 75 73 65 64 20 74 6f 20 | 73 65 74 20 74 68 69 73 |used to |set this|
|000026d0| 20 75 70 20 28 79 6f 75 | 20 6d 61 79 20 6e 65 65 | up (you| may nee|
|000026e0| 64 20 74 6f 20 75 73 65 | 20 22 6d 6b 6e 6f 64 20 |d to use| "mknod |
|000026f0| 2f 64 65 76 2f 6c 70 74 | 31 20 63 20 30 20 31 32 |/dev/lpt|1 c 0 12|
|00002700| 39 22 0a 61 6e 64 20 22 | 6c 69 6e 6b 20 2f 64 65 |9".and "|link /de|
|00002710| 76 2f 6c 70 74 30 20 2f | 64 65 76 2f 6c 70 74 22 |v/lpt0 /|dev/lpt"|
|00002720| 2c 20 64 65 70 65 6e 64 | 69 6e 67 20 6f 6e 20 77 |, depend|ing on w|
|00002730| 68 69 63 68 20 70 72 69 | 6e 74 65 72 20 70 6f 72 |hich pri|nter por|
|00002740| 74 20 79 6f 75 20 61 72 | 65 0a 75 73 69 6e 67 2e |t you ar|e.using.|
|00002750| 20 20 54 68 65 20 6c 70 | 20 63 6f 6d 6d 61 6e 64 | The lp| command|
|00002760| 20 74 68 65 6e 20 62 65 | 63 6f 6d 65 73 20 22 6c | then be|comes "l|
|00002770| 70 20 2d 64 6c 70 22 20 | 28 73 65 74 20 50 52 49 |p -dlp" |(set PRI|
|00002780| 4e 54 50 52 4f 47 20 69 | 6e 20 63 6f 6e 66 69 67 |NTPROG i|n config|
|00002790| 2e 68 0a 61 63 63 6f 72 | 64 69 6e 67 6c 79 29 2e |.h.accor|dingly).|
|000027a0| 20 20 49 66 20 74 68 65 | 20 65 6e 76 69 72 6f 6e | If the| environ|
|000027b0| 6d 65 6e 74 20 76 61 72 | 69 61 62 6c 65 20 22 50 |ment var|iable "P|
|000027c0| 4c 4f 54 44 45 56 22 20 | 69 73 20 64 65 66 69 6e |LOTDEV" |is defin|
|000027d0| 65 64 2c 20 69 74 20 77 | 69 6c 6c 20 62 65 0a 75 |ed, it w|ill be.u|
|000027e0| 73 65 64 20 61 73 20 74 | 68 65 20 6e 61 6d 65 20 |sed as t|he name |
|000027f0| 6f 66 20 74 68 65 20 6f | 75 74 70 75 74 20 70 72 |of the o|utput pr|
|00002800| 69 6e 74 65 72 20 28 65 | 2e 67 2e 20 22 50 4c 4f |inter (e|.g. "PLO|
|00002810| 54 44 45 56 3d 6c 70 74 | 3b 20 65 78 70 6f 72 74 |TDEV=lpt|; export|
|00002820| 20 50 4c 4f 54 44 45 56 | 22 0a 74 6f 20 75 73 65 | PLOTDEV|".to use|
|00002830| 20 74 68 65 20 74 72 61 | 6e 73 70 61 72 65 6e 74 | the tra|nsparent|
|00002840| 20 70 72 69 6e 74 65 72 | 20 64 65 76 69 63 65 29 | printer| device)|
|00002850| 2e 0a 0a 46 6f 72 20 58 | 65 6e 69 78 2c 20 79 6f |...For X|enix, yo|
|00002860| 75 20 73 68 6f 75 6c 64 | 20 63 6f 6e 66 69 67 75 |u should| configu|
|00002870| 72 65 20 61 20 70 72 69 | 6e 74 65 72 20 69 6e 74 |re a pri|nter int|
|00002880| 65 72 66 61 63 65 20 70 | 72 6f 67 72 61 6d 20 66 |erface p|rogram f|
|00002890| 6f 72 20 74 72 61 6e 73 | 70 61 72 65 6e 74 0a 70 |or trans|parent.p|
|000028a0| 72 69 6e 74 69 6e 67 20 | 28 73 65 65 20 6c 70 61 |rinting |(see lpa|
|000028b0| 64 6d 69 6e 28 43 29 20 | 61 6e 64 20 70 61 72 61 |dmin(C) |and para|
|000028c0| 6c 6c 65 6c 28 48 57 29 | 2c 20 61 6c 6f 6e 67 20 |llel(HW)|, along |
|000028d0| 77 69 74 68 20 74 68 65 | 20 73 65 63 74 69 6f 6e |with the| section|
|000028e0| 20 6f 6e 20 0a 22 50 72 | 69 6e 74 65 72 20 49 6e | on ."Pr|inter In|
|000028f0| 74 65 72 66 61 63 65 20 | 50 72 6f 67 72 61 6d 73 |terface |Programs|
|00002900| 22 20 69 6e 20 74 68 65 | 20 22 58 65 6e 69 78 20 |" in the| "Xenix |
|00002910| 4f 70 65 72 61 74 69 6f | 6e 73 20 47 75 69 64 65 |Operatio|ns Guide|
|00002920| 29 2e 20 20 54 68 69 73 | 20 63 61 6e 0a 62 65 20 |). This| can.be |
|00002930| 64 6f 6e 65 20 62 79 20 | 6d 6f 64 69 66 79 69 6e |done by |modifyin|
|00002940| 67 20 6f 6e 65 20 6f 66 | 20 74 68 65 20 73 75 70 |g one of| the sup|
|00002950| 70 6c 69 65 64 20 70 72 | 69 6e 74 65 72 20 69 6e |plied pr|inter in|
|00002960| 74 65 72 66 61 63 65 20 | 70 72 6f 67 72 61 6d 73 |terface |programs|
|00002970| 20 28 73 75 63 68 0a 61 | 73 20 2f 75 73 72 2f 73 | (such.a|s /usr/s|
|00002980| 70 6f 6f 6c 2f 6c 70 2f | 63 72 6e 6c 6d 61 70 2e |pool/lp/|crnlmap.|
|00002990| 73 68 29 20 74 6f 20 69 | 6e 63 6c 75 64 65 20 74 |sh) to i|nclude t|
|000029a0| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 22 73 74 74 79 |he comma|nd "stty|
|000029b0| 20 2d 6f 6e 6c 63 72 20 | 30 3c 26 31 22 2e 0a 0a | -onlcr |0<&1"...|
|000029c0| 46 6f 72 20 4d 53 2d 44 | 4f 53 20 76 65 72 73 69 |For MS-D|OS versi|
|000029d0| 6f 6e 73 2c 20 70 72 69 | 6e 74 69 6e 67 20 69 73 |ons, pri|nting is|
|000029e0| 20 64 6f 6e 65 20 77 69 | 74 68 20 42 49 4f 53 20 | done wi|th BIOS |
|000029f0| 63 61 6c 6c 73 2c 20 73 | 6f 20 6e 6f 20 73 70 65 |calls, s|o no spe|
|00002a00| 63 69 61 6c 20 73 65 74 | 75 70 73 0a 61 72 65 20 |cial set|ups.are |
|00002a10| 72 65 71 75 69 72 65 64 | 2e 20 20 48 6f 77 65 76 |required|. Howev|
|00002a20| 65 72 2c 20 67 72 61 70 | 68 69 63 73 20 70 72 69 |er, grap|hics pri|
|00002a30| 6e 74 69 6e 67 20 6d 61 | 79 20 6e 6f 74 20 62 65 |nting ma|y not be|
|00002a40| 20 64 6f 6e 65 20 74 68 | 72 6f 75 67 68 20 74 68 | done th|rough th|
|00002a50| 65 0a 6e 6f 72 6d 61 6c | 20 4d 53 2d 44 4f 53 20 |e.normal| MS-DOS |
|00002a60| 70 72 69 6e 74 20 73 70 | 6f 6f 6c 65 72 20 6f 72 |print sp|ooler or|
|00002a70| 20 4d 53 2d 44 4f 53 20 | 22 50 52 4e 3a 22 20 64 | MS-DOS |"PRN:" d|
|00002a80| 65 76 69 63 65 2c 20 64 | 75 65 20 74 6f 20 75 6e |evice, d|ue to un|
|00002a90| 77 61 6e 74 65 64 0a 63 | 68 61 72 61 63 74 65 72 |wanted.c|haracter|
|00002aa0| 20 63 6f 6e 76 65 72 73 | 69 6f 6e 2e 0a 0a 53 65 | convers|ion...Se|
|00002ab0| 65 20 74 68 65 20 22 49 | 4e 53 54 41 4c 4c 22 20 |e the "I|NSTALL" |
|00002ac0| 66 69 6c 65 20 66 6f 72 | 20 73 70 65 63 69 66 69 |file for| specifi|
|00002ad0| 63 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 73 20 66 |c instru|ctions f|
|00002ae0| 6f 72 20 69 6e 73 74 61 | 6c 6c 69 6e 67 20 6f 6e |or insta|lling on|
|00002af0| 20 4d 69 63 72 6f 70 6f | 72 74 20 0a 53 79 73 74 | Micropo|rt .Syst|
|00002b00| 65 6d 20 56 2f 41 54 2c | 20 58 65 6e 69 78 20 53 |em V/AT,| Xenix S|
|00002b10| 79 73 74 65 6d 20 56 20 | 32 38 36 2c 20 6f 72 20 |ystem V |286, or |
|00002b20| 4d 53 2d 44 4f 53 2e 0a | 0a 48 6f 77 20 69 74 20 |MS-DOS..|.How it |
|00002b30| 77 6f 72 6b 73 3a 0a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |works:.-|--------|
|00002b40| 2d 2d 2d 2d 0a 0a 46 6f | 72 20 53 79 73 74 65 6d |----..Fo|r System|
|00002b50| 20 56 2f 41 54 2c 20 67 | 5f 69 6e 69 74 28 29 20 | V/AT, g|_init() |
|00002b60| 61 74 74 61 63 68 65 73 | 20 74 68 65 20 73 68 61 |attaches| the sha|
|00002b70| 72 65 64 20 6d 65 6d 6f | 72 79 20 73 65 67 6d 65 |red memo|ry segme|
|00002b80| 6e 74 20 66 6f 72 20 79 | 6f 75 72 20 76 69 64 65 |nt for y|our vide|
|00002b90| 6f 0a 62 6f 61 72 64 20 | 74 6f 20 79 6f 75 72 20 |o.board |to your |
|00002ba0| 70 72 6f 63 65 73 73 20 | 61 64 64 72 65 73 73 20 |process |address |
|00002bb0| 73 70 61 63 65 2e 20 20 | 46 6f 72 20 58 65 6e 69 |space. |For Xeni|
|00002bc0| 78 2c 20 67 5f 69 6e 69 | 74 20 6f 70 65 6e 73 20 |x, g_ini|t opens |
|00002bd0| 61 20 64 65 76 69 63 65 | 20 66 69 6c 65 0a 61 6e |a device| file.an|
|00002be0| 64 20 6f 62 74 61 69 6e | 73 20 61 20 70 6f 69 6e |d obtain|s a poin|
|00002bf0| 74 65 72 20 74 6f 20 76 | 69 64 65 6f 20 6d 65 6d |ter to v|ideo mem|
|00002c00| 6f 72 79 2e 20 20 54 68 | 65 20 70 6f 69 6e 74 65 |ory. Th|e pointe|
|00002c10| 72 20 74 6f 20 74 68 65 | 20 76 69 64 65 6f 20 6d |r to the| video m|
|00002c20| 65 6d 6f 72 79 0a 73 65 | 67 6d 65 6e 74 20 69 73 |emory.se|gment is|
|00002c30| 20 75 73 65 64 20 66 6f | 72 20 64 69 72 65 63 74 | used fo|r direct|
|00002c40| 20 72 65 61 64 20 61 6e | 64 20 77 72 69 74 65 20 | read an|d write |
|00002c50| 61 63 63 65 73 73 20 74 | 6f 20 62 69 74 20 6d 61 |access t|o bit ma|
|00002c60| 70 70 65 64 20 67 72 61 | 70 68 69 63 73 2e 0a 0a |pped gra|phics...|
|00002c70| 49 6e 20 74 68 65 20 63 | 61 73 65 20 6f 66 20 61 |In the c|ase of a|
|00002c80| 20 70 72 69 6e 74 65 72 | 2c 20 67 5f 69 6e 69 74 | printer|, g_init|
|00002c90| 28 29 20 73 69 6d 70 6c | 79 20 61 6c 6c 6f 63 61 |() simpl|y alloca|
|00002ca0| 74 65 73 20 73 6f 6d 65 | 20 6d 65 6d 6f 72 79 20 |tes some| memory |
|00002cb0| 62 75 66 66 65 72 73 20 | 77 68 69 63 68 0a 69 74 |buffers |which.it|
|00002cc0| 20 74 72 65 61 74 73 20 | 61 73 20 74 68 65 20 62 | treats |as the b|
|00002cd0| 69 74 20 6d 61 70 20 66 | 6f 72 20 74 68 65 20 70 |it map f|or the p|
|00002ce0| 72 69 6e 74 65 72 2c 20 | 74 68 65 6e 20 61 64 64 |rinter, |then add|
|00002cf0| 73 20 73 6f 6d 65 20 65 | 73 63 61 70 65 20 63 6f |s some e|scape co|
|00002d00| 64 65 73 20 61 6e 64 0a | 73 70 6f 6f 6c 73 20 74 |des and.|spools t|
|00002d10| 68 65 20 77 68 6f 6c 65 | 20 6d 65 73 73 20 6f 66 |he whole| mess of|
|00002d20| 66 20 74 6f 20 74 68 65 | 20 6c 70 20 70 72 6f 67 |f to the| lp prog|
|00002d30| 72 61 6d 2e 0a 0a 54 68 | 65 20 73 63 72 65 65 6e |ram...Th|e screen|
|00002d40| 20 28 6f 72 20 70 72 69 | 6e 74 65 72 20 70 61 67 | (or pri|nter pag|
|00002d50| 65 29 20 69 73 20 72 65 | 70 72 65 73 65 6e 74 65 |e) is re|presente|
|00002d60| 64 20 62 79 20 61 20 6e | 6f 72 6d 61 6c 69 7a 65 |d by a n|ormalize|
|00002d70| 64 20 61 64 64 72 65 73 | 73 0a 73 70 61 63 65 20 |d addres|s.space |
|00002d80| 6f 66 20 33 32 37 36 38 | 20 62 79 20 33 32 37 36 |of 32768| by 3276|
|00002d90| 38 2e 20 20 54 68 69 73 | 20 67 69 76 65 73 20 61 |8. This| gives a|
|00002da0| 20 72 65 61 73 6f 6e 61 | 62 6c 65 20 61 6d 6f 75 | reasona|ble amou|
|00002db0| 6e 74 20 6f 66 20 72 65 | 73 6f 6c 75 74 69 6f 6e |nt of re|solution|
|00002dc0| 2c 0a 61 6e 64 20 61 6c | 6c 6f 77 73 20 76 61 6c |,.and al|lows val|
|00002dd0| 69 64 20 61 64 64 72 65 | 73 73 65 73 20 74 6f 20 |id addre|sses to |
|00002de0| 62 65 20 72 65 70 72 65 | 73 65 6e 74 65 64 20 62 |be repre|sented b|
|00002df0| 79 20 6e 6f 6e 2d 6e 65 | 67 61 74 69 76 65 20 73 |y non-ne|gative s|
|00002e00| 68 6f 72 74 20 69 6e 74 | 65 67 65 72 73 2c 0a 67 |hort int|egers,.g|
|00002e10| 69 76 69 6e 67 20 65 66 | 66 69 63 69 65 6e 74 20 |iving ef|ficient |
|00002e20| 63 61 6c 63 75 6c 61 74 | 69 6f 6e 73 20 61 6e 64 |calculat|ions and|
|00002e30| 20 65 61 73 79 20 63 68 | 65 63 6b 69 6e 67 20 66 | easy ch|ecking f|
|00002e40| 6f 72 20 61 64 64 72 65 | 73 73 65 73 20 74 68 61 |or addre|sses tha|
|00002e50| 74 20 77 6f 75 6c 64 0a | 62 65 20 22 6f 66 66 20 |t would.|be "off |
|00002e60| 74 68 65 20 65 64 67 65 | 20 6f 66 20 74 68 65 20 |the edge| of the |
|00002e70| 73 63 72 65 65 6e 2e 22 | 20 20 41 6c 6c 20 6f 66 |screen."| All of|
|00002e80| 20 74 68 65 20 6f 75 74 | 70 75 74 20 72 6f 75 74 | the out|put rout|
|00002e90| 69 6e 65 73 2c 20 65 78 | 63 65 70 74 0a 70 5f 77 |ines, ex|cept.p_w|
|00002ea0| 72 5f 70 69 78 28 29 2c | 20 75 73 65 20 74 68 69 |r_pix(),| use thi|
|00002eb0| 73 20 6e 6f 72 6d 61 6c | 69 7a 65 64 20 61 64 64 |s normal|ized add|
|00002ec0| 72 65 73 73 20 73 70 61 | 63 65 2c 20 72 65 67 61 |ress spa|ce, rega|
|00002ed0| 72 64 6c 65 73 73 20 6f | 66 20 74 68 65 20 70 69 |rdless o|f the pi|
|00002ee0| 78 65 6c 0a 61 73 70 65 | 63 74 20 72 61 74 69 6f |xel.aspe|ct ratio|
|00002ef0| 20 6f 72 20 74 68 65 20 | 61 73 70 65 63 74 20 72 | or the |aspect r|
|00002f00| 61 74 69 6f 20 6f 66 20 | 74 68 65 20 70 68 79 73 |atio of |the phys|
|00002f10| 69 63 61 6c 20 73 63 72 | 65 65 6e 2e 20 20 0a 0a |ical scr|een. ..|
|00002f20| 54 68 65 20 70 5f 77 72 | 5f 70 69 78 28 29 20 72 |The p_wr|_pix() r|
|00002f30| 6f 75 74 69 6e 65 20 75 | 73 65 73 20 70 68 79 73 |outine u|ses phys|
|00002f40| 69 63 61 6c 20 70 69 78 | 65 6c 20 63 6f 6f 72 64 |ical pix|el coord|
|00002f50| 69 6e 61 74 65 73 20 28 | 72 6f 77 2c 63 6f 6c 29 |inates (|row,col)|
|00002f60| 0a 74 6f 20 61 63 63 65 | 73 73 20 6f 6e 65 20 70 |.to acce|ss one p|
|00002f70| 69 78 65 6c 20 6f 6e 20 | 74 68 65 20 67 72 61 70 |ixel on |the grap|
|00002f80| 68 69 63 73 20 64 65 76 | 69 63 65 2e 20 20 41 6c |hics dev|ice. Al|
|00002f90| 6c 20 6f 75 74 70 75 74 | 2c 20 77 68 65 74 68 65 |l output|, whethe|
|00002fa0| 72 20 6c 69 6e 65 73 2c | 0a 64 6f 74 73 20 6f 72 |r lines,|.dots or|
|00002fb0| 20 74 65 78 74 2c 20 75 | 73 65 20 74 68 65 20 70 | text, u|se the p|
|00002fc0| 5f 77 72 5f 70 69 78 28 | 29 20 72 6f 75 74 69 6e |_wr_pix(|) routin|
|00002fd0| 65 20 61 74 20 74 68 65 | 20 6c 6f 77 65 73 74 20 |e at the| lowest |
|00002fe0| 6c 65 76 65 6c 2e 20 20 | 49 6e 0a 74 68 69 73 20 |level. |In.this |
|00002ff0| 77 61 79 2c 20 61 6c 6c | 20 6b 6e 6f 77 6c 65 64 |way, all| knowled|
|00003000| 67 65 20 6f 66 20 74 68 | 65 20 64 69 73 70 6c 61 |ge of th|e displa|
|00003010| 79 20 62 69 74 20 6d 61 | 70 2c 20 69 6e 74 65 72 |y bit ma|p, inter|
|00003020| 6c 65 61 76 69 6e 67 20 | 61 6e 64 20 0a 73 65 67 |leaving |and .seg|
|00003030| 6d 65 6e 74 61 74 69 6f | 6e 20 61 72 65 20 6c 6f |mentatio|n are lo|
|00003040| 63 61 6c 69 7a 65 64 20 | 74 6f 20 74 68 65 20 70 |calized |to the p|
|00003050| 5f 77 72 5f 70 69 78 28 | 29 20 72 6f 75 74 69 6e |_wr_pix(|) routin|
|00003060| 65 2e 20 20 54 6f 20 61 | 64 64 20 0a 73 75 70 70 |e. To a|dd .supp|
|00003070| 6f 72 74 20 66 6f 72 20 | 61 20 6e 65 77 20 64 65 |ort for |a new de|
|00003080| 76 69 63 65 20 74 79 70 | 65 2c 20 6f 6e 6c 79 20 |vice typ|e, only |
|00003090| 70 5f 77 72 5f 70 69 78 | 28 29 20 69 73 20 63 68 |p_wr_pix|() is ch|
|000030a0| 61 6e 67 65 64 2c 20 61 | 6c 6f 6e 67 20 0a 77 69 |anged, a|long .wi|
|000030b0| 74 68 20 74 68 65 20 61 | 70 70 72 6f 70 72 69 61 |th the a|ppropria|
|000030c0| 74 65 20 70 61 72 61 6d | 65 74 65 72 73 20 69 6e |te param|eters in|
|000030d0| 20 62 69 74 6d 61 70 73 | 2e 68 20 61 6e 64 20 74 | bitmaps|.h and t|
|000030e0| 68 65 20 67 5f 69 6e 69 | 74 28 29 20 61 6e 64 20 |he g_ini|t() and |
|000030f0| 0a 67 5f 66 69 6e 69 73 | 68 28 29 20 72 6f 75 74 |.g_finis|h() rout|
|00003100| 69 6e 65 73 20 28 66 6f | 72 20 69 6e 69 74 69 61 |ines (fo|r initia|
|00003110| 6c 69 7a 69 6e 67 20 61 | 6e 64 20 72 65 6c 65 61 |lizing a|nd relea|
|00003120| 73 69 6e 67 20 67 72 61 | 70 68 69 63 73 20 72 65 |sing gra|phics re|
|00003130| 73 6f 75 72 63 65 73 2c | 20 0a 72 65 73 70 65 63 |sources,| .respec|
|00003140| 74 69 76 65 6c 79 29 2e | 0a 0a 50 6f 73 69 74 69 |tively).|..Positi|
|00003150| 6f 6e 69 6e 67 20 6f 6e | 20 74 68 65 20 73 63 72 |oning on| the scr|
|00003160| 65 65 6e 20 69 73 20 64 | 6f 6e 65 20 77 69 74 68 |een is d|one with|
|00003170| 20 61 20 22 67 72 61 70 | 68 69 63 73 20 63 75 72 | a "grap|hics cur|
|00003180| 73 6f 72 22 20 28 6e 6f | 74 20 76 69 73 69 62 6c |sor" (no|t visibl|
|00003190| 65 0a 6f 6e 20 74 68 65 | 20 73 63 72 65 65 6e 29 |e.on the| screen)|
|000031a0| 2c 20 77 68 69 63 68 20 | 69 73 20 75 73 65 64 20 |, which |is used |
|000031b0| 74 6f 20 70 6f 73 69 74 | 69 6f 6e 20 61 6c 6c 20 |to posit|ion all |
|000031c0| 67 72 61 70 68 69 63 73 | 20 61 6e 64 20 74 65 78 |graphics| and tex|
|000031d0| 74 20 6f 75 74 70 75 74 | 2e 0a 54 68 65 20 63 75 |t output|..The cu|
|000031e0| 72 73 6f 72 20 69 73 20 | 70 6f 73 69 74 69 6f 6e |rsor is |position|
|000031f0| 65 64 20 69 6e 20 6e 6f | 72 6d 61 6c 69 7a 65 64 |ed in no|rmalized|
|00003200| 20 63 6f 6f 72 64 69 6e | 61 74 65 73 20 75 73 69 | coordin|ates usi|
|00003210| 6e 67 20 74 68 65 20 6e | 5f 6d 6f 76 65 70 65 6e |ng the n|_movepen|
|00003220| 28 29 0a 72 6f 75 74 69 | 6e 65 2e 20 20 52 6f 75 |().routi|ne. Rou|
|00003230| 74 69 6e 65 73 20 73 75 | 63 68 20 61 73 20 6e 5f |tines su|ch as n_|
|00003240| 64 72 61 77 28 29 20 63 | 61 75 73 65 20 74 68 65 |draw() c|ause the|
|00003250| 20 63 75 72 73 6f 72 20 | 74 6f 20 62 65 20 6d 6f | cursor |to be mo|
|00003260| 76 65 64 20 74 6f 20 6e | 65 77 0a 70 6f 73 69 74 |ved to n|ew.posit|
|00003270| 69 6f 6e 73 2e 0a 0a 54 | 68 65 20 6e 5f 62 6f 78 |ions...T|he n_box|
|00003280| 28 29 2c 20 6e 5f 6c 69 | 6e 65 28 29 2c 20 6e 5f |(), n_li|ne(), n_|
|00003290| 65 6c 6c 69 70 73 65 28 | 29 20 61 6e 64 20 6e 5f |ellipse(|) and n_|
|000032a0| 61 72 63 28 29 20 72 6f | 75 74 69 6e 65 73 2c 20 |arc() ro|utines, |
|000032b0| 61 73 20 77 65 6c 6c 20 | 61 73 20 74 68 65 0a 73 |as well |as the.s|
|000032c0| 74 72 6f 6b 65 20 66 6f | 6e 74 20 74 65 78 74 2c |troke fo|nt text,|
|000032d0| 20 63 61 6c 6c 20 6e 5f | 6d 6f 76 65 70 65 6e 28 | call n_|movepen(|
|000032e0| 29 20 61 6e 64 20 6e 5f | 64 72 61 77 28 29 20 74 |) and n_|draw() t|
|000032f0| 6f 20 70 6f 73 69 74 69 | 6f 6e 20 74 68 65 20 63 |o positi|on the c|
|00003300| 75 72 73 6f 72 0a 61 6e | 64 20 64 72 61 77 20 61 |ursor.an|d draw a|
|00003310| 20 76 65 63 74 6f 72 2c | 20 72 65 73 70 65 63 74 | vector,| respect|
|00003320| 69 76 65 6c 79 2e 20 20 | 54 68 69 73 20 69 73 20 |ively. |This is |
|00003330| 74 68 65 20 62 61 73 69 | 73 20 6f 66 20 61 6c 6c |the basi|s of all|
|00003340| 20 74 68 65 20 67 72 61 | 70 68 69 63 61 6c 0a 6f | the gra|phical.o|
|00003350| 75 74 70 75 74 2c 20 77 | 69 74 68 20 74 68 65 20 |utput, w|ith the |
|00003360| 6c 6f 77 20 6c 65 76 65 | 6c 20 6f 75 74 70 75 74 |low leve|l output|
|00003370| 20 68 61 6e 64 6c 65 64 | 20 62 79 20 70 5f 77 72 | handled| by p_wr|
|00003380| 5f 70 69 78 28 29 2e 20 | 0a 0a 54 77 6f 20 74 79 |_pix(). |..Two ty|
|00003390| 70 65 73 20 6f 66 20 74 | 65 78 74 20 6f 75 74 70 |pes of t|ext outp|
|000033a0| 75 74 20 61 72 65 20 73 | 75 70 70 6f 72 74 65 64 |ut are s|upported|
|000033b0| 2e 20 20 41 20 73 74 72 | 6f 6b 65 20 66 6f 6e 74 |. A str|oke font|
|000033c0| 20 69 73 20 69 6e 76 6f | 6b 65 64 20 62 79 0a 6e | is invo|ked by.n|
|000033d0| 5f 67 72 61 66 73 74 72 | 28 29 2c 20 61 6e 64 20 |_grafstr|(), and |
|000033e0| 61 20 62 69 74 20 63 65 | 6c 6c 20 66 6f 6e 74 20 |a bit ce|ll font |
|000033f0| 69 73 20 69 6e 76 6f 6b | 65 64 20 62 79 20 63 5f |is invok|ed by c_|
|00003400| 63 65 6c 6c 73 74 72 28 | 29 2e 20 20 4e 5f 67 72 |cellstr(|). N_gr|
|00003410| 61 66 63 68 61 72 28 29 | 0a 61 6e 64 20 63 5f 63 |afchar()|.and c_c|
|00003420| 65 6c 6c 63 68 61 72 28 | 29 20 61 72 65 20 73 69 |ellchar(|) are si|
|00003430| 6e 67 6c 65 20 63 68 61 | 72 61 63 74 65 72 20 76 |ngle cha|racter v|
|00003440| 65 72 73 69 6f 6e 73 20 | 77 68 69 63 68 20 73 68 |ersions |which sh|
|00003450| 6f 75 6c 64 20 6e 6f 72 | 6d 61 6c 6c 79 0a 6e 6f |ould nor|mally.no|
|00003460| 74 20 62 65 20 64 69 72 | 65 63 74 6c 79 20 63 61 |t be dir|ectly ca|
|00003470| 6c 6c 65 64 20 28 6a 75 | 73 74 20 75 73 65 20 74 |lled (ju|st use t|
|00003480| 68 65 20 6e 5f 67 72 61 | 66 73 74 72 28 29 20 61 |he n_gra|fstr() a|
|00003490| 6e 64 20 63 5f 63 65 6c | 6c 73 74 72 28 29 20 76 |nd c_cel|lstr() v|
|000034a0| 65 72 73 69 6f 6e 73 29 | 2e 0a 43 5f 63 75 72 73 |ersions)|..C_curs|
|000034b0| 6f 72 28 29 20 69 73 20 | 75 73 65 64 20 74 6f 20 |or() is |used to |
|000034c0| 70 6f 73 69 74 69 6f 6e | 20 74 68 65 20 67 72 61 |position| the gra|
|000034d0| 70 68 69 63 73 20 63 75 | 72 73 6f 72 20 69 6e 20 |phics cu|rsor in |
|000034e0| 74 65 72 6d 73 20 6f 66 | 20 63 68 61 72 61 63 74 |terms of| charact|
|000034f0| 65 72 0a 72 6f 77 73 20 | 61 6e 64 20 63 6f 6c 75 |er.rows |and colu|
|00003500| 6d 6e 73 2c 20 61 73 20 | 69 66 20 69 74 20 77 65 |mns, as |if it we|
|00003510| 72 65 20 61 20 74 65 78 | 74 20 63 75 72 73 6f 72 |re a tex|t cursor|
|00003520| 2e 20 20 47 5f 66 6f 6e | 74 63 74 6c 28 29 20 69 |. G_fon|tctl() i|
|00003530| 73 20 75 73 65 64 20 74 | 6f 0a 63 6f 6e 74 72 6f |s used t|o.contro|
|00003540| 6c 20 61 74 74 72 69 62 | 75 74 65 73 20 6f 66 20 |l attrib|utes of |
|00003550| 74 68 65 20 73 74 72 6f | 6b 65 20 66 6f 6e 74 2e |the stro|ke font.|
|00003560| 0a 0a 54 68 65 20 67 5f | 66 69 6e 69 73 68 28 29 |..The g_|finish()|
|00003570| 20 72 6f 75 74 69 6e 65 | 20 64 65 74 61 63 68 65 | routine| detache|
|00003580| 73 20 73 68 61 72 65 64 | 20 6d 65 6d 6f 72 79 2c |s shared| memory,|
|00003590| 20 66 72 65 65 73 20 72 | 65 73 6f 75 72 63 65 73 | frees r|esources|
|000035a0| 2c 20 61 6e 64 20 0a 73 | 65 6e 64 73 20 61 6e 79 |, and .s|ends any|
|000035b0| 20 6f 75 74 70 75 74 20 | 74 6f 20 74 68 65 20 70 | output |to the p|
|000035c0| 72 69 6e 74 20 71 75 65 | 75 65 2e 0a 0a 41 6c 6c |rint que|ue...All|
|000035d0| 20 72 6f 75 74 69 6e 65 | 73 20 61 72 65 20 77 72 | routine|s are wr|
|000035e0| 69 74 74 65 6e 20 69 6e | 20 43 20 28 6e 6f 20 61 |itten in| C (no a|
|000035f0| 73 73 65 6d 62 6c 65 72 | 20 61 74 20 61 6c 6c 29 |ssembler| at all)|
|00003600| 20 61 6e 64 20 75 73 65 | 20 73 68 6f 72 74 20 69 | and use| short i|
|00003610| 6e 74 65 67 65 72 0a 61 | 72 69 74 68 6d 65 74 69 |nteger.a|rithmeti|
|00003620| 63 20 77 68 65 72 65 76 | 65 72 20 70 6f 73 73 69 |c wherev|er possi|
|00003630| 62 6c 65 2e 20 20 4c 6f | 6e 67 20 69 6e 74 65 67 |ble. Lo|ng integ|
|00003640| 65 72 73 20 61 72 65 20 | 75 73 65 64 20 77 68 65 |ers are |used whe|
|00003650| 6e 20 6d 6f 72 65 20 61 | 63 63 75 72 61 63 79 0a |n more a|ccuracy.|
|00003660| 69 73 20 72 65 71 75 69 | 72 65 64 2c 20 61 6e 64 |is requi|red, and|
|00003670| 20 66 6c 6f 61 74 73 20 | 61 6e 64 20 64 6f 75 62 | floats |and doub|
|00003680| 6c 65 73 20 61 72 65 20 | 61 76 6f 69 64 65 64 20 |les are |avoided |
|00003690| 77 68 65 72 65 76 65 72 | 20 70 6f 73 73 69 62 6c |wherever| possibl|
|000036a0| 65 2e 20 20 54 72 69 67 | 0a 66 75 6e 63 74 69 6f |e. Trig|.functio|
|000036b0| 6e 73 20 6d 61 79 20 62 | 65 20 64 6f 6e 65 20 77 |ns may b|e done w|
|000036c0| 69 74 68 20 74 61 62 6c | 65 73 20 61 6e 64 20 69 |ith tabl|es and i|
|000036d0| 6e 74 65 67 65 72 20 6d | 61 74 68 20 28 69 66 20 |nteger m|ath (if |
|000036e0| 4e 4f 46 4c 4f 41 54 20 | 69 73 20 64 65 66 69 6e |NOFLOAT |is defin|
|000036f0| 65 64 0a 69 6e 20 63 6f | 6e 66 69 67 2e 68 29 2e |ed.in co|nfig.h).|
|00003700| 20 20 54 68 65 20 6f 76 | 65 72 61 6c 6c 20 70 65 | The ov|erall pe|
|00003710| 72 66 6f 72 6d 61 6e 63 | 65 20 69 73 20 71 75 69 |rformanc|e is qui|
|00003720| 74 65 20 61 63 63 65 70 | 74 61 62 6c 65 2c 20 65 |te accep|table, e|
|00003730| 76 65 6e 20 66 6f 72 20 | 74 65 78 74 20 0a 6f 75 |ven for |text .ou|
|00003740| 74 70 75 74 2c 20 61 6e | 64 20 69 73 20 69 6e 20 |tput, an|d is in |
|00003750| 66 61 63 74 20 63 6f 6e | 73 69 64 65 72 61 62 6c |fact con|siderabl|
|00003760| 79 20 66 61 73 74 65 72 | 20 74 68 61 6e 20 73 69 |y faster| than si|
|00003770| 6d 69 6c 61 72 20 63 6f | 64 65 20 75 6e 64 65 72 |milar co|de under|
|00003780| 20 4d 53 2d 44 4f 53 20 | 0a 75 73 69 6e 67 20 42 | MS-DOS |.using B|
|00003790| 49 4f 53 20 72 61 74 68 | 65 72 20 74 68 61 6e 20 |IOS rath|er than |
|000037a0| 70 5f 77 72 5f 70 69 78 | 28 29 2e 20 20 54 68 65 |p_wr_pix|(). The|
|000037b0| 20 64 65 76 65 6c 6f 70 | 6d 65 6e 74 20 6d 61 63 | develop|ment mac|
|000037c0| 68 69 6e 65 20 66 6f 72 | 20 74 68 69 73 20 0a 63 |hine for| this .c|
|000037d0| 6f 64 65 20 69 73 20 61 | 20 36 20 4d 48 7a 20 5a |ode is a| 6 MHz Z|
|000037e0| 65 6e 69 74 68 20 32 34 | 31 20 77 69 74 68 20 6e |enith 24|1 with n|
|000037f0| 6f 20 38 30 32 38 37 20 | 63 6f 70 72 6f 63 65 73 |o 80287 |coproces|
|00003800| 73 6f 72 2c 20 68 65 6e | 63 65 20 74 68 65 20 61 |sor, hen|ce the a|
|00003810| 76 6f 69 64 61 6e 63 65 | 20 0a 6f 66 20 66 6c 6f |voidance| .of flo|
|00003820| 61 74 69 6e 67 20 70 6f | 69 6e 74 20 6d 61 74 68 |ating po|int math|
|00003830| 2e 0a 0a 42 75 67 73 3a | 0a 2d 2d 2d 2d 2d 0a 0a |...Bugs:|.-----..|
|00003840| 2d 50 69 78 5f 6d 6f 64 | 65 28 29 20 64 6f 65 73 |-Pix_mod|e() does|
|00003850| 20 6e 6f 74 20 73 65 74 | 20 58 4f 52 20 6d 6f 64 | not set| XOR mod|
|00003860| 65 20 66 6f 72 20 45 47 | 41 20 68 69 67 68 20 72 |e for EG|A high r|
|00003870| 65 73 20 67 72 61 70 68 | 69 63 73 2e 20 20 0a 2d |es graph|ics. .-|
|00003880| 50 69 78 5f 63 6f 6c 6f | 72 28 29 20 64 6f 65 73 |Pix_colo|r() does|
|00003890| 20 6e 6f 74 20 64 6f 20 | 61 6e 79 74 68 69 6e 67 | not do |anything|
|000038a0| 20 66 6f 72 20 45 47 41 | 20 68 69 67 68 20 72 65 | for EGA| high re|
|000038b0| 73 20 67 72 61 70 68 69 | 63 73 2e 0a 2d 47 5f 77 |s graphi|cs..-G_w|
|000038c0| 65 69 67 68 74 28 29 20 | 64 6f 65 73 20 6e 6f 74 |eight() |does not|
|000038d0| 20 64 6f 20 61 6e 79 74 | 68 69 6e 67 20 28 6e 6f | do anyt|hing (no|
|000038e0| 74 20 79 65 74 20 69 6d | 70 6c 65 6d 65 6e 74 65 |t yet im|plemente|
|000038f0| 64 29 2e 0a 2d 54 68 65 | 20 61 72 63 28 29 20 72 |d)..-The| arc() r|
|00003900| 6f 75 74 69 6e 65 20 69 | 6e 20 70 6c 6f 74 28 33 |outine i|n plot(3|
|00003910| 29 20 76 61 72 69 65 73 | 20 73 6c 69 67 68 74 6c |) varies| slightl|
|00003920| 79 20 66 72 6f 6d 20 74 | 68 65 20 42 53 44 20 76 |y from t|he BSD v|
|00003930| 65 72 73 69 6f 6e 20 69 | 6e 20 69 74 73 20 0a 20 |ersion i|n its . |
|00003940| 63 61 6c 63 75 6c 61 74 | 69 6f 6e 20 6f 66 20 74 |calculat|ion of t|
|00003950| 68 65 20 73 65 63 6f 6e | 64 20 61 72 63 20 65 6e |he secon|d arc en|
|00003960| 64 70 6f 69 6e 74 2e 0a | 2d 47 5f 69 6e 69 74 28 |dpoint..|-G_init(|
|00003970| 29 20 73 65 74 73 20 61 | 20 73 69 67 6e 61 6c 20 |) sets a| signal |
|00003980| 68 61 6e 64 6c 65 72 20 | 74 6f 20 63 6c 65 61 6e |handler |to clean|
|00003990| 20 75 70 20 74 68 65 20 | 73 63 72 65 65 6e 20 62 | up the |screen b|
|000039a0| 65 66 6f 72 65 20 65 78 | 69 74 69 6e 67 2c 20 61 |efore ex|iting, a|
|000039b0| 6e 64 0a 2d 67 5f 66 69 | 6e 69 73 68 28 29 20 72 |nd.-g_fi|nish() r|
|000039c0| 65 73 74 6f 72 65 73 20 | 74 68 65 20 68 61 6e 64 |estores |the hand|
|000039d0| 6c 65 72 20 74 6f 20 69 | 74 73 20 70 72 65 76 69 |ler to i|ts previ|
|000039e0| 6f 75 73 20 76 61 6c 75 | 65 2e 20 20 54 68 69 73 |ous valu|e. This|
|000039f0| 20 6d 61 79 20 69 6e 74 | 65 72 66 65 72 65 0a 20 | may int|erfere. |
|00003a00| 77 69 74 68 20 61 6e 20 | 61 70 70 6c 69 63 61 74 |with an |applicat|
|00003a10| 69 6f 6e 27 73 20 69 6e | 74 65 6e 64 65 64 20 73 |ion's in|tended s|
|00003a20| 69 67 6e 61 6c 20 68 61 | 6e 64 6c 69 6e 67 20 28 |ignal ha|ndling (|
|00003a30| 74 68 65 20 44 4f 5f 43 | 4c 45 41 4e 55 50 20 6d |the DO_C|LEANUP m|
|00003a40| 61 63 72 6f 20 69 6e 0a | 20 63 6f 6e 66 69 67 2e |acro in.| config.|
|00003a50| 68 20 63 61 6e 20 65 6c | 69 6d 69 6e 61 74 65 20 |h can el|iminate |
|00003a60| 74 68 69 73 20 62 65 68 | 61 76 69 6f 72 29 2e 0a |this beh|avior)..|
|00003a70| 2d 46 6f 72 20 4d 53 2d | 44 4f 53 20 76 65 72 73 |-For MS-|DOS vers|
|00003a80| 69 6f 6e 73 2c 20 67 72 | 61 70 68 69 63 73 20 70 |ions, gr|aphics p|
|00003a90| 72 69 6e 74 65 72 20 6f | 75 74 70 75 74 20 6d 75 |rinter o|utput mu|
|00003aa0| 73 74 20 62 65 20 64 6f | 6e 65 20 77 69 74 68 20 |st be do|ne with |
|00003ab0| 42 49 4f 53 20 63 61 6c | 6c 73 2e 20 20 0a 20 54 |BIOS cal|ls. . T|
|00003ac0| 68 65 72 65 66 6f 72 65 | 2c 20 74 68 65 20 64 65 |herefore|, the de|
|00003ad0| 66 61 75 6c 74 20 73 79 | 73 74 65 6d 20 70 72 69 |fault sy|stem pri|
|00003ae0| 6e 74 65 72 20 64 65 76 | 69 63 65 20 6d 75 73 74 |nter dev|ice must|
|00003af0| 20 62 65 20 75 73 65 64 | 2c 20 61 6e 64 20 74 68 | be used|, and th|
|00003b00| 65 20 0a 20 50 4c 4f 54 | 44 45 56 20 65 6e 76 69 |e . PLOT|DEV envi|
|00003b10| 72 6f 6e 6d 65 6e 74 20 | 76 61 72 69 61 62 6c 65 |ronment |variable|
|00003b20| 20 68 61 73 20 6e 6f 20 | 6d 65 61 6e 69 6e 67 2e | has no |meaning.|
|00003b30| 0a 0a 4c 69 6d 69 74 61 | 74 69 6f 6e 73 3a 0a 2d |..Limita|tions:.-|
|00003b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0a 0a 4e 6f 20 |--------|---..No |
|00003b50| 63 68 65 63 6b 69 6e 67 | 20 69 73 20 64 6f 6e 65 |checking| is done|
|00003b60| 20 74 6f 20 63 6f 6e 74 | 72 6f 6c 20 6f 77 6e 65 | to cont|rol owne|
|00003b70| 72 73 68 69 70 20 6f 66 | 20 74 68 65 20 63 6f 6e |rship of| the con|
|00003b80| 73 6f 6c 65 20 6f 75 74 | 70 75 74 2e 20 20 54 68 |sole out|put. Th|
|00003b90| 65 0a 75 73 65 72 20 6f | 66 20 74 68 65 20 70 72 |e.user o|f the pr|
|00003ba0| 6f 67 72 61 6d 20 69 73 | 20 61 73 73 75 6d 65 64 |ogram is| assumed|
|00003bb0| 20 74 6f 20 62 65 20 61 | 74 20 74 68 65 20 63 6f | to be a|t the co|
|00003bc0| 6e 73 6f 6c 65 2e 20 20 | 41 6e 79 20 63 68 65 63 |nsole. |Any chec|
|00003bd0| 6b 73 20 66 6f 72 0a 74 | 68 69 73 20 77 6f 75 6c |ks for.t|his woul|
|00003be0| 64 20 68 61 76 65 20 74 | 6f 20 62 65 20 64 6f 6e |d have t|o be don|
|00003bf0| 65 20 62 79 20 61 6e 20 | 61 70 70 6c 69 63 61 74 |e by an |applicat|
|00003c00| 69 6f 6e 20 70 72 6f 67 | 72 61 6d 20 75 73 69 6e |ion prog|ram usin|
|00003c10| 67 20 74 68 65 73 65 0a | 72 6f 75 74 69 6e 65 73 |g these.|routines|
|00003c20| 2e 0a 0a 54 68 65 20 45 | 47 41 20 61 6e 64 20 56 |...The E|GA and V|
|00003c30| 47 41 20 61 64 61 70 74 | 65 72 73 20 63 6f 6e 74 |GA adapt|ers cont|
|00003c40| 72 6f 6c 20 63 6f 6c 6f | 72 20 61 6e 64 20 77 72 |rol colo|r and wr|
|00003c50| 69 74 69 6e 67 20 6d 6f | 64 65 73 20 28 4f 52 20 |iting mo|des (OR |
|00003c60| 6f 72 20 58 4f 52 29 0a | 77 69 74 68 20 6f 75 74 |or XOR).|with out|
|00003c70| 70 75 74 20 74 6f 20 70 | 6f 72 74 20 61 64 64 72 |put to p|ort addr|
|00003c80| 65 73 73 65 73 20 6f 6e | 20 74 68 65 20 45 47 41 |esses on| the EGA|
|00003c90| 2f 56 47 41 20 63 61 72 | 64 2e 20 20 4f 6e 20 53 |/VGA car|d. On S|
|00003ca0| 79 73 74 65 6d 20 56 2f | 41 54 2c 0a 74 68 69 73 |ystem V/|AT,.this|
|00003cb0| 20 72 65 71 75 69 72 65 | 73 20 75 73 65 20 6f 66 | require|s use of|
|00003cc0| 20 74 68 65 20 6f 75 74 | 62 28 29 20 73 75 62 72 | the out|b() subr|
|00003cd0| 6f 75 74 69 6e 65 20 77 | 69 74 68 20 77 72 69 74 |outine w|ith writ|
|00003ce0| 65 20 61 63 63 65 73 73 | 20 74 6f 20 2f 64 65 76 |e access| to /dev|
|00003cf0| 2f 6d 65 6d 2e 0a 53 69 | 6e 63 65 20 74 68 69 73 |/mem..Si|nce this|
|00003d00| 20 77 6f 75 6c 64 20 72 | 65 71 75 69 72 65 20 74 | would r|equire t|
|00003d10| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 70 |he appli|cation p|
|00003d20| 72 6f 67 72 61 6d 20 74 | 6f 20 62 65 20 73 75 69 |rogram t|o be sui|
|00003d30| 64 20 74 6f 20 72 6f 6f | 74 2c 0a 73 75 70 70 6f |d to roo|t,.suppo|
|00003d40| 72 74 20 66 6f 72 20 63 | 6f 6c 6f 72 20 61 6e 64 |rt for c|olor and|
|00003d50| 20 77 72 69 74 69 6e 67 | 20 6d 6f 64 65 73 20 68 | writing| modes h|
|00003d60| 61 73 20 6e 6f 74 20 79 | 65 74 20 62 65 65 6e 20 |as not y|et been |
|00003d70| 69 6d 70 6c 65 6d 65 6e | 74 65 64 2e 0a 0a 54 68 |implemen|ted...Th|
|00003d80| 65 20 67 72 61 70 68 69 | 63 73 2e 68 20 66 69 6c |e graphi|cs.h fil|
|00003d90| 65 20 68 61 73 20 64 65 | 63 6c 61 72 61 74 69 6f |e has de|claratio|
|00003da0| 6e 73 20 66 6f 72 20 70 | 61 72 61 6d 65 74 65 72 |ns for p|arameter|
|00003db0| 73 20 74 68 61 74 20 77 | 69 6c 6c 20 62 65 20 75 |s that w|ill be u|
|00003dc0| 73 65 64 0a 66 6f 72 20 | 76 61 72 69 6f 75 73 20 |sed.for |various |
|00003dd0| 63 6f 6f 72 64 69 6e 61 | 74 65 20 74 72 61 6e 73 |coordina|te trans|
|00003de0| 66 6f 72 6d 61 74 69 6f | 6e 73 2e 20 20 48 6f 77 |formatio|ns. How|
|00003df0| 65 76 65 72 2c 20 6e 6f | 6e 65 20 6f 66 20 74 68 |ever, no|ne of th|
|00003e00| 69 73 20 69 73 0a 69 6d | 70 6c 65 6d 65 6e 74 65 |is is.im|plemente|
|00003e10| 64 20 61 74 20 74 68 65 | 20 70 72 65 73 65 6e 74 |d at the| present|
|00003e20| 20 74 69 6d 65 20 28 65 | 78 63 65 70 74 20 66 6f | time (e|xcept fo|
|00003e30| 72 20 74 68 65 20 70 6c | 6f 74 28 33 29 20 69 6e |r the pl|ot(3) in|
|00003e40| 74 65 72 66 61 63 65 2c | 20 77 69 74 68 0a 69 74 |terface,| with.it|
|00003e50| 73 20 22 73 70 61 63 65 | 28 29 22 20 72 6f 75 74 |s "space|()" rout|
|00003e60| 69 6e 65 29 2e 20 20 54 | 68 65 20 6f 6e 6c 79 20 |ine). T|he only |
|00003e70| 63 6f 6f 72 64 69 6e 61 | 74 65 20 73 79 73 74 65 |coordina|te syste|
|00003e80| 6d 20 77 68 69 63 68 20 | 74 68 65 20 61 70 70 6c |m which |the appl|
|00003e90| 69 63 61 74 69 6f 6e 20 | 0a 70 72 6f 67 72 61 6d |ication |.program|
|00003ea0| 20 73 68 6f 75 6c 64 20 | 72 65 66 65 72 20 74 6f | should |refer to|
|00003eb0| 20 69 73 20 74 68 65 20 | 6e 6f 72 6d 61 6c 69 7a | is the |normaliz|
|00003ec0| 65 64 20 32 2d 44 20 73 | 70 61 63 65 20 75 73 65 |ed 2-D s|pace use|
|00003ed0| 64 20 74 6f 20 72 65 70 | 72 65 73 65 6e 74 20 0a |d to rep|resent .|
|00003ee0| 74 68 65 20 73 63 72 65 | 65 6e 2e 0a 0a 43 72 65 |the scre|en...Cre|
|00003ef0| 64 69 74 73 3a 0a 2d 2d | 2d 2d 2d 2d 2d 2d 0a 0a |dits:.--|------..|
|00003f00| 54 68 61 6e 6b 73 20 74 | 6f 20 4a 6f 68 6e 20 41 |Thanks t|o John A|
|00003f10| 6e 74 79 70 61 73 2c 20 | 44 65 6e 69 73 20 46 6f |ntypas, |Denis Fo|
|00003f20| 72 74 69 6e 20 61 6e 64 | 20 42 69 6c 6c 20 52 61 |rtin and| Bill Ra|
|00003f30| 6e 6b 69 6e 20 66 6f 72 | 20 61 73 73 69 73 74 61 |nkin for| assista|
|00003f40| 6e 63 65 20 69 6e 0a 74 | 65 73 74 69 6e 67 20 61 |nce in.t|esting a|
|00003f50| 6e 64 20 64 65 76 65 6c | 6f 70 69 6e 67 20 74 68 |nd devel|oping th|
|00003f60| 65 20 63 6f 64 65 2e 20 | 20 0a 0a 54 68 65 20 66 |e code. | ..The f|
|00003f70| 6f 6e 74 2e 68 20 61 6e | 64 20 63 65 6c 6c 66 6f |ont.h an|d cellfo|
|00003f80| 6e 74 2e 68 20 66 69 6c | 65 73 20 63 6f 6e 74 61 |nt.h fil|es conta|
|00003f90| 69 6e 20 64 61 74 61 20 | 66 6f 72 20 73 74 72 6f |in data |for stro|
|00003fa0| 6b 65 20 66 6f 6e 74 73 | 20 61 6e 64 20 62 69 74 |ke fonts| and bit|
|00003fb0| 20 63 65 6c 6c 0a 66 6f | 6e 74 73 2c 20 72 65 73 | cell.fo|nts, res|
|00003fc0| 70 65 63 74 69 76 65 6c | 79 2e 20 20 43 6f 70 79 |pectivel|y. Copy|
|00003fd0| 72 69 67 68 74 20 73 74 | 61 74 75 73 20 6f 66 20 |right st|atus of |
|00003fe0| 74 68 69 73 20 64 61 74 | 61 20 69 73 20 75 6e 63 |this dat|a is unc|
|00003ff0| 65 72 74 61 69 6e 2e 20 | 20 44 61 74 61 20 0a 66 |ertain. | Data .f|
|00004000| 6f 72 20 74 68 65 20 73 | 74 72 6f 6b 65 20 66 6f |or the s|troke fo|
|00004010| 6e 74 20 61 72 65 20 64 | 65 72 69 76 65 64 20 66 |nt are d|erived f|
|00004020| 72 6f 6d 20 6c 69 73 74 | 69 6e 67 73 20 69 6e 20 |rom list|ings in |
|00004030| 5f 41 64 76 61 6e 63 65 | 64 5f 47 72 61 70 68 69 |_Advance|d_Graphi|
|00004040| 63 73 5f 69 6e 5f 43 5f | 2c 20 0a 62 79 20 4e 65 |cs_in_C_|, .by Ne|
|00004050| 6c 73 6f 6e 20 4a 6f 68 | 6e 73 6f 6e 20 28 4d 63 |lson Joh|nson (Mc|
|00004060| 47 72 61 77 2d 48 69 6c | 6c 2c 20 31 39 38 37 29 |Graw-Hil|l, 1987)|
|00004070| 2e 20 20 54 68 65 20 63 | 6f 70 79 72 69 67 68 74 |. The c|opyright|
|00004080| 20 6e 6f 74 69 63 65 20 | 66 6f 72 20 74 68 69 73 | notice |for this|
|00004090| 20 62 6f 6f 6b 0a 73 70 | 65 63 69 66 69 63 61 6c | book.sp|ecifical|
|000040a0| 6c 79 20 61 6c 6c 6f 77 | 73 20 63 6f 70 79 69 6e |ly allow|s copyin|
|000040b0| 67 20 6f 66 20 74 68 65 | 20 63 6f 64 65 2c 20 62 |g of the| code, b|
|000040c0| 75 74 20 64 6f 65 73 20 | 6e 6f 74 20 73 61 79 20 |ut does |not say |
|000040d0| 69 66 20 79 6f 75 20 6e | 65 65 64 20 74 6f 0a 68 |if you n|eed to.h|
|000040e0| 61 76 65 20 70 75 72 63 | 68 61 73 65 64 20 74 68 |ave purc|hased th|
|000040f0| 65 20 62 6f 6f 6b 20 74 | 6f 20 62 65 20 73 6f 20 |e book t|o be so |
|00004100| 65 6e 74 69 74 6c 65 64 | 2e 20 20 49 20 72 65 63 |entitled|. I rec|
|00004110| 6f 6d 6d 65 6e 64 20 74 | 68 65 20 62 6f 6f 6b 2c |ommend t|he book,|
|00004120| 20 69 6e 20 61 6e 79 0a | 63 61 73 65 2c 20 73 6f | in any.|case, so|
|00004130| 20 79 6f 75 20 6d 61 79 | 20 77 69 73 68 20 74 6f | you may| wish to|
|00004140| 20 62 75 79 20 61 20 63 | 6f 70 79 2e 20 20 54 68 | buy a c|opy. Th|
|00004150| 65 20 62 69 74 20 63 65 | 6c 6c 20 66 6f 6e 74 20 |e bit ce|ll font |
|00004160| 77 61 73 20 72 65 63 65 | 69 76 65 64 20 74 68 69 |was rece|ived thi|
|00004170| 72 64 0a 6f 72 20 66 6f | 75 72 74 68 20 68 61 6e |rd.or fo|urth han|
|00004180| 64 2c 20 61 6e 64 20 69 | 73 20 70 72 65 73 75 6d |d, and i|s presum|
|00004190| 65 64 20 70 75 62 6c 69 | 63 20 64 6f 6d 61 69 6e |ed publi|c domain|
|000041a0| 20 75 6e 6c 65 73 73 20 | 49 20 68 65 61 72 20 6f | unless |I hear o|
|000041b0| 74 68 65 72 77 69 73 65 | 2e 20 20 54 68 65 0a 6e |therwise|. The.n|
|000041c0| 61 6d 65 20 61 74 20 74 | 68 65 20 68 65 61 64 20 |ame at t|he head |
|000041d0| 6f 66 20 74 68 65 20 64 | 61 74 61 20 66 69 6c 65 |of the d|ata file|
|000041e0| 20 69 73 3a 0a 0a 09 2f | 2a 20 52 41 4d 2d 4c 6f | is:.../|* RAM-Lo|
|000041f0| 61 64 61 62 6c 65 20 43 | 68 61 72 61 63 74 65 72 |adable C|haracter|
|00004200| 20 53 65 74 73 20 66 6f | 72 20 74 68 65 20 49 42 | Sets fo|r the IB|
|00004210| 4d 20 50 43 0a 09 20 52 | 69 63 68 61 72 64 20 57 |M PC.. R|ichard W|
|00004220| 69 6c 74 6f 6e 0a 09 20 | 4a 75 6c 79 20 31 39 38 |ilton.. |July 198|
|00004230| 36 20 2a 2f 0a 0a 49 6e | 20 61 6e 79 20 63 61 73 |6 */..In| any cas|
|00004240| 65 2c 20 69 66 20 79 6f | 75 20 63 61 6e 20 6c 6f |e, if yo|u can lo|
|00004250| 63 61 74 65 20 74 68 65 | 20 66 6f 6e 74 20 64 61 |cate the| font da|
|00004260| 74 61 20 69 6e 20 79 6f | 75 72 20 6d 61 63 68 69 |ta in yo|ur machi|
|00004270| 6e 65 27 73 20 42 49 4f | 53 2c 20 79 6f 75 0a 63 |ne's BIO|S, you.c|
|00004280| 61 6e 20 75 73 65 20 74 | 68 61 74 20 69 6e 73 74 |an use t|hat inst|
|00004290| 65 61 64 2c 20 61 6e 64 | 20 79 6f 75 20 61 72 65 |ead, and| you are|
|000042a0| 20 70 72 65 73 75 6d 61 | 62 6c 79 20 6c 69 63 65 | presuma|bly lice|
|000042b0| 6e 63 65 64 20 74 6f 20 | 64 6f 20 73 6f 20 62 79 |nced to |do so by|
|000042c0| 20 76 69 72 74 75 65 0a | 68 61 76 69 6e 67 20 62 | virtue.|having b|
|000042d0| 6f 75 67 68 74 20 74 68 | 65 20 6d 61 63 68 69 6e |ought th|e machin|
|000042e0| 65 2e 0a 0a 54 68 65 20 | 73 65 74 6d 6f 64 65 2e |e...The |setmode.|
|000042f0| 63 20 63 6f 64 65 20 63 | 6f 6d 65 73 20 66 72 6f |c code c|omes fro|
|00004300| 6d 20 4a 65 66 66 20 54 | 75 72 6e 65 72 2c 20 61 |m Jeff T|urner, a|
|00004310| 6e 64 20 77 61 73 20 70 | 6f 73 74 65 64 20 74 6f |nd was p|osted to|
|00004320| 20 55 73 65 6e 65 74 0a | 61 20 77 68 69 6c 65 20 | Usenet.|a while |
|00004330| 62 61 63 6b 2e 20 20 49 | 74 20 68 61 73 20 62 65 |back. I|t has be|
|00004340| 65 6e 20 6d 6f 64 69 66 | 69 65 64 20 62 79 20 6d |en modif|ied by m|
|00004350| 65 20 66 6f 72 20 45 76 | 65 72 65 78 20 45 64 67 |e for Ev|erex Edg|
|00004360| 65 20 61 6e 64 20 48 65 | 72 63 75 6c 65 73 0a 67 |e and He|rcules.g|
|00004370| 72 61 70 68 69 63 73 2c | 20 61 6e 64 20 69 73 20 |raphics,| and is |
|00004380| 70 72 65 73 75 6d 65 64 | 20 69 6e 20 74 68 65 20 |presumed| in the |
|00004390| 70 75 62 6c 69 63 20 64 | 6f 6d 61 69 6e 2e 20 20 |public d|omain. |
|000043a0| 0a 0a 54 68 65 20 72 65 | 73 74 20 6f 66 20 74 68 |..The re|st of th|
|000043b0| 65 20 6d 61 74 65 72 69 | 61 6c 20 69 73 20 63 6f |e materi|al is co|
|000043c0| 70 79 72 69 67 68 74 65 | 64 20 62 79 20 6d 65 2c |pyrighte|d by me,|
|000043d0| 20 62 75 74 20 6d 61 79 | 20 62 65 20 75 73 65 64 | but may| be used|
|000043e0| 20 61 6e 64 0a 63 6f 70 | 69 65 64 20 62 79 20 61 | and.cop|ied by a|
|000043f0| 6e 79 62 6f 64 79 2c 20 | 61 73 20 6c 6f 6e 67 20 |nybody, |as long |
|00004400| 61 73 20 69 74 20 69 73 | 20 6e 6f 74 20 75 73 65 |as it is| not use|
|00004410| 64 20 66 6f 72 20 63 6f | 6d 6d 65 72 63 69 61 6c |d for co|mmercial|
|00004420| 20 70 72 6f 66 69 74 2e | 0a 49 20 77 6f 75 6c 64 | profit.|.I would|
|00004430| 20 76 65 72 79 20 6d 75 | 63 68 20 61 70 70 72 65 | very mu|ch appre|
|00004440| 63 69 61 74 65 20 68 65 | 61 72 69 6e 67 20 61 62 |ciate he|aring ab|
|00004450| 6f 75 74 20 61 6e 79 20 | 62 75 67 20 66 69 78 65 |out any |bug fixe|
|00004460| 73 20 61 6e 64 20 6e 65 | 77 20 0a 64 65 76 69 63 |s and ne|w .devic|
|00004470| 65 20 73 75 70 70 6f 72 | 74 20 74 68 61 74 20 6d |e suppor|t that m|
|00004480| 61 79 20 62 65 20 66 6f | 72 74 68 63 6f 6d 69 6e |ay be fo|rthcomin|
|00004490| 67 2e 20 20 54 68 61 6e | 6b 73 2e 20 0a 0a 0a 09 |g. Than|ks. ....|
|000044a0| 09 09 09 44 61 76 69 64 | 20 54 2e 20 4c 65 77 69 |...David| T. Lewi|
|000044b0| 73 20 20 0a 09 09 09 09 | 75 6d 69 78 21 6d 2d 6e |s .....|umix!m-n|
|000044c0| 65 74 21 64 74 6c 65 77 | 69 73 21 6c 65 77 69 73 |et!dtlew|is!lewis|
|000044d0| 0a 09 09 09 09 31 32 32 | 20 53 2e 20 53 65 76 65 |.....122| S. Seve|
|000044e0| 6e 74 68 0a 09 09 09 09 | 41 6e 6e 20 41 72 62 6f |nth.....|Ann Arbo|
|000044f0| 72 20 4d 49 20 20 34 38 | 31 30 33 0a 0a 09 09 09 |r MI 48|103.....|
|00004500| 09 73 79 73 74 65 6d 35 | 20 64 74 6c 65 77 69 73 |.system5| dtlewis|
|00004510| 20 32 20 32 2e 34 2e 30 | 2d 55 20 41 54 0a 09 09 | 2 2.4.0|-U AT...|
|00004520| 09 09 54 75 65 20 46 65 | 62 20 32 31 20 30 35 3a |..Tue Fe|b 21 05:|
|00004530| 34 34 3a 30 31 20 45 53 | 54 20 31 39 38 39 0a 0a |44:01 ES|T 1989..|
|00004540| 20 61 6c 74 65 72 6e 61 | 74 69 76 65 20 6d 65 74 | alterna|tive met|
|00004550| 68 6f 64 2c 20 62 61 73 | 65 64 20 6f 6e 20 61 6e |hod, bas|ed on an|
|00004560| 0a 75 6e 64 6f 63 75 6d | 65 6e 74 65 64 20 66 65 |.undocum|ented fe|
|00004570| 61 74 75 72 65 20 6f 66 | 20 74 68 65 20 53 79 73 |ature of| the Sys|
|00004580| 74 65 6d 20 56 2f 41 54 | 20 6c 70 20 64 72 69 76 |tem V/AT| lp driv|
|00004590| 65 72 2c 20 69 73 20 74 | 6f 20 75 73 65 20 6d 69 |er, is t|o use mi|
|000045a0| 6e 6f 72 0a 6e 75 6d 62 | 65 72 73 20 31 32 38 20 |nor.numb|ers 128 |
|000045b0| 61 6e 64 20 31 32 39 20 | 6f 66 20 74 68 65 20 6c |and 129 |of the l|
|000045c0| 70 20 64 72 69 76 65 72 | 2c 20 72 61 74 68 65 72 |p driver|, rather|
|000045d0| 20 74 68 61 6e 20 30 20 | 61 6e 64 20 31 2e 20 20 | than 0 |and 1. |
|000045e0| 54 68 69 73 20 64 65 76 | 69 63 65 0a 77 69 6c 6c |This dev|ice.will|
|000045f0| 20 63 6f 72 72 65 73 70 | 6f 6e 64 20 74 6f 20 74 | corresp|ond to t|
|00004600| 67 6c 2d 70 6c 6f 74 2f | 63 5f 63 65 6c 6c 63 68 |gl-plot/|c_cellch|
|00004610| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00004620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004660| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00004670| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00004680| 20 20 20 34 37 35 35 20 | 20 34 34 31 33 34 37 34 | 4755 | 4413474|
|00004690| 31 36 33 20 20 20 37 34 | 30 31 00 20 00 00 00 00 |163 74|01. ....|
|000046a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004800| 23 69 66 6e 64 65 66 20 | 6c 69 6e 74 0a 73 74 61 |#ifndef |lint.sta|
|00004810| 74 69 63 20 63 68 61 72 | 20 73 63 63 73 69 64 5b |tic char| sccsid[|
|00004820| 5d 20 3d 20 22 40 28 23 | 29 20 63 5f 63 65 6c 6c |] = "@(#|) c_cell|
|00004830| 63 68 2e 63 20 35 2e 31 | 20 38 39 2f 30 32 2f 32 |ch.c 5.1| 89/02/2|
|00004840| 30 22 3b 0a 23 65 6e 64 | 69 66 0a 0a 2f 2a 0a 20 |0";.#end|if../*. |
|00004850| 2a 09 43 6f 70 79 72 69 | 67 68 74 20 28 63 29 20 |*.Copyri|ght (c) |
|00004860| 44 61 76 69 64 20 54 2e | 20 4c 65 77 69 73 20 31 |David T.| Lewis 1|
|00004870| 39 38 38 0a 20 2a 09 41 | 6c 6c 20 72 69 67 68 74 |988. *.A|ll right|
|00004880| 73 20 72 65 73 65 72 76 | 65 64 2e 0a 20 2a 0a 20 |s reserv|ed.. *. |
|00004890| 2a 09 50 65 72 6d 69 73 | 73 69 6f 6e 20 69 73 20 |*.Permis|sion is |
|000048a0| 67 72 61 6e 74 65 64 20 | 74 6f 20 75 73 65 20 74 |granted |to use t|
|000048b0| 68 69 73 20 66 6f 72 20 | 61 6e 79 20 70 65 72 73 |his for |any pers|
|000048c0| 6f 6e 61 6c 20 6e 6f 6e | 63 6f 6d 6d 65 72 63 69 |onal non|commerci|
|000048d0| 61 6c 20 75 73 65 2e 0a | 20 2a 09 59 6f 75 20 6d |al use..| *.You m|
|000048e0| 61 79 20 6e 6f 74 20 64 | 69 73 74 72 69 62 75 74 |ay not d|istribut|
|000048f0| 65 20 73 6f 75 72 63 65 | 20 6f 72 20 65 78 65 63 |e source| or exec|
|00004900| 75 74 61 62 6c 65 20 63 | 6f 64 65 20 66 6f 72 20 |utable c|ode for |
|00004910| 70 72 6f 66 69 74 2c 20 | 6e 6f 72 0a 20 2a 09 6d |profit, |nor. *.m|
|00004920| 61 79 20 79 6f 75 20 64 | 69 73 74 72 69 62 75 74 |ay you d|istribut|
|00004930| 65 20 69 74 20 77 69 74 | 68 20 61 20 63 6f 6d 6d |e it wit|h a comm|
|00004940| 65 72 63 69 61 6c 20 70 | 72 6f 64 75 63 74 20 77 |ercial p|roduct w|
|00004950| 69 74 68 6f 75 74 20 74 | 68 65 20 77 72 69 74 74 |ithout t|he writt|
|00004960| 65 6e 0a 20 2a 09 63 6f | 6e 73 65 6e 74 20 6f 66 |en. *.co|nsent of|
|00004970| 20 74 68 65 20 61 75 74 | 68 6f 72 2e 20 20 50 6c | the aut|hor. Pl|
|00004980| 65 61 73 65 20 73 65 6e | 64 20 6d 6f 64 69 66 69 |ease sen|d modifi|
|00004990| 63 61 74 69 6f 6e 73 20 | 74 6f 20 74 68 65 20 61 |cations |to the a|
|000049a0| 75 74 68 6f 72 20 66 6f | 72 0a 20 2a 09 69 6e 63 |uthor fo|r. *.inc|
|000049b0| 6c 75 73 69 6f 6e 20 69 | 6e 20 75 70 64 61 74 65 |lusion i|n update|
|000049c0| 73 20 74 6f 20 74 68 65 | 20 70 72 6f 67 72 61 6d |s to the| program|
|000049d0| 2e 20 20 54 68 61 6e 6b | 73 2e 0a 20 2a 2f 0a 0a |. Thank|s.. */..|
|000049e0| 2f 2a 20 57 72 69 74 65 | 20 61 20 67 72 61 70 68 |/* Write| a graph|
|000049f0| 69 63 73 20 63 68 61 72 | 61 63 74 65 72 20 74 6f |ics char|acter to|
|00004a00| 20 74 68 65 20 73 63 72 | 65 65 6e 2e 09 09 09 09 | the scr|een.....|
|00004a10| 2a 2f 0a 2f 2a 20 54 68 | 69 73 20 72 6f 75 74 69 |*/./* Th|is routi|
|00004a20| 6e 65 20 75 73 65 73 20 | 62 69 74 20 6d 61 70 70 |ne uses |bit mapp|
|00004a30| 65 64 20 63 68 61 72 61 | 63 74 65 72 20 63 65 6c |ed chara|cter cel|
|00004a40| 6c 20 66 6f 6e 74 73 2e | 09 09 09 2a 2f 0a 2f 2a |l fonts.|...*/./*|
|00004a50| 20 54 68 65 20 63 68 61 | 72 61 63 74 65 72 20 77 | The cha|racter w|
|00004a60| 69 6c 6c 20 62 65 20 64 | 72 61 77 6e 20 73 75 63 |ill be d|rawn suc|
|00004a70| 68 20 74 68 61 74 20 74 | 68 65 20 63 75 72 72 65 |h that t|he curre|
|00004a80| 6e 74 20 67 72 61 70 68 | 69 63 73 20 63 75 72 73 |nt graph|ics curs|
|00004a90| 6f 72 09 2a 2f 0a 2f 2a | 20 64 65 6e 6f 74 65 73 |or.*/./*| denotes|
|00004aa0| 20 74 68 65 20 75 70 70 | 65 72 20 6c 65 66 74 20 | the upp|er left |
|00004ab0| 63 6f 72 6e 65 72 20 6f | 66 20 74 68 65 20 63 68 |corner o|f the ch|
|00004ac0| 61 72 61 63 74 65 72 20 | 63 65 6c 6c 2e 20 20 54 |aracter |cell. T|
|00004ad0| 68 65 20 67 72 61 70 68 | 69 63 73 09 2a 2f 0a 2f |he graph|ics.*/./|
|00004ae0| 2a 20 63 75 72 73 6f 72 | 20 77 69 6c 6c 20 62 65 |* cursor| will be|
|00004af0| 20 69 6e 63 72 65 6d 65 | 6e 74 65 64 20 69 6e 20 | increme|nted in |
|00004b00| 74 68 65 20 58 20 64 69 | 72 65 63 74 69 6f 6e 20 |the X di|rection |
|00004b10| 62 79 20 61 6e 20 61 6d | 6f 75 6e 74 20 63 6f 72 |by an am|ount cor|
|00004b20| 72 65 73 2d 09 2a 2f 0a | 2f 2a 20 70 6f 6e 64 69 |res-.*/.|/* pondi|
|00004b30| 6e 67 20 74 6f 20 6f 6e | 65 20 63 68 61 72 61 63 |ng to on|e charac|
|00004b40| 74 65 72 20 63 65 6c 6c | 2e 20 20 54 68 65 20 6c |ter cell|. The l|
|00004b50| 6f 63 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 67 |ocation |of the g|
|00004b60| 72 61 70 68 69 63 73 20 | 63 75 72 73 6f 72 09 2a |raphics |cursor.*|
|00004b70| 2f 0a 2f 2a 20 6d 61 79 | 20 62 65 20 73 65 74 20 |/./* may| be set |
|00004b80| 62 79 20 63 61 6c 6c 73 | 20 74 6f 20 65 69 74 68 |by calls| to eith|
|00004b90| 65 72 20 63 5f 63 75 72 | 73 6f 72 28 29 20 6f 72 |er c_cur|sor() or|
|00004ba0| 20 70 5f 6d 6f 76 65 70 | 65 6e 28 29 20 70 72 69 | p_movep|en() pri|
|00004bb0| 6f 72 09 2a 2f 0a 2f 2a | 20 63 61 6c 6c 69 6e 67 |or.*/./*| calling|
|00004bc0| 20 74 68 69 73 20 72 6f | 75 74 69 6e 65 2e 09 20 | this ro|utine.. |
|00004bd0| 09 09 09 09 09 2a 2f 0a | 0a 2f 2a 20 54 75 65 20 |.....*/.|./* Tue |
|00004be0| 4d 61 72 20 31 35 20 32 | 32 3a 34 36 3a 33 31 20 |Mar 15 2|2:46:31 |
|00004bf0| 45 53 54 20 31 39 38 38 | 09 09 09 09 09 09 2a 2f |EST 1988|......*/|
|00004c00| 0a 2f 2a 20 73 79 73 74 | 65 6d 35 20 64 74 6c 65 |./* syst|em5 dtle|
|00004c10| 77 69 73 20 32 20 32 2e | 33 2e 30 2d 55 20 41 54 |wis 2 2.|3.0-U AT|
|00004c20| 09 09 09 09 09 09 2a 2f | 0a 0a 23 69 6e 63 6c 75 |......*/|..#inclu|
|00004c30| 64 65 20 22 63 6f 6e 66 | 69 67 2e 68 22 0a 23 69 |de "conf|ig.h".#i|
|00004c40| 6e 63 6c 75 64 65 20 22 | 62 69 74 6d 61 70 73 2e |nclude "|bitmaps.|
|00004c50| 68 22 0a 23 69 6e 63 6c | 75 64 65 20 22 67 72 61 |h".#incl|ude "gra|
|00004c60| 70 68 69 63 73 2e 68 22 | 0a 23 69 6e 63 6c 75 64 |phics.h"|.#includ|
|00004c70| 65 20 22 63 65 6c 6c 66 | 6f 6e 74 2e 68 22 0a 0a |e "cellf|ont.h"..|
|00004c80| 65 78 74 65 72 6e 20 73 | 74 72 75 63 74 20 47 4c |extern s|truct GL|
|00004c90| 5f 67 72 61 70 68 69 63 | 73 20 67 72 61 70 68 69 |_graphic|s graphi|
|00004ca0| 63 73 3b 0a 65 78 74 65 | 72 6e 20 69 6e 74 20 70 |cs;.exte|rn int p|
|00004cb0| 5f 77 72 5f 70 69 78 28 | 29 2c 20 6e 5f 6d 6f 76 |_wr_pix(|), n_mov|
|00004cc0| 65 70 65 6e 28 29 3b 0a | 0a 69 6e 74 20 63 5f 63 |epen();.|.int c_c|
|00004cd0| 65 6c 6c 63 68 61 72 28 | 61 73 63 5f 63 68 61 72 |ellchar(|asc_char|
|00004ce0| 29 20 20 0a 75 6e 73 69 | 67 6e 65 64 20 63 68 61 |) .unsi|gned cha|
|00004cf0| 72 20 61 73 63 5f 63 68 | 61 72 3b 0a 7b 0a 09 69 |r asc_ch|ar;.{..i|
|00004d00| 6e 74 20 78 2c 20 79 2c | 20 69 2c 20 6a 3b 0a 09 |nt x, y,| i, j;..|
|00004d10| 69 6e 74 20 69 73 74 61 | 74 20 3d 20 30 3b 0a 0a |int ista|t = 0;..|
|00004d20| 09 63 68 61 72 20 2a 62 | 69 74 73 3b 20 0a 0a 09 |.char *b|its; ...|
|00004d30| 2f 2a 20 47 65 74 20 74 | 68 65 20 70 69 78 65 6c |/* Get t|he pixel|
|00004d40| 20 6c 6f 63 61 74 69 6f | 6e 2e 09 09 09 09 09 2a | locatio|n......*|
|00004d50| 2f 0a 09 78 20 3d 20 6e | 5f 74 6f 5f 70 5f 78 28 |/..x = n|_to_p_x(|
|00004d60| 67 72 61 70 68 69 63 73 | 2e 78 5f 63 75 72 73 6f |graphics|.x_curso|
|00004d70| 72 29 3b 0a 09 79 20 3d | 20 6e 5f 74 6f 5f 70 5f |r);..y =| n_to_p_|
|00004d80| 79 28 67 72 61 70 68 69 | 63 73 2e 79 5f 63 75 72 |y(graphi|cs.y_cur|
|00004d90| 73 6f 72 29 3b 0a 0a 09 | 2f 2a 20 43 68 65 63 6b |sor);...|/* Check|
|00004da0| 20 66 6f 72 20 78 20 6f | 72 20 79 20 6f 66 66 20 | for x o|r y off |
|00004db0| 74 68 65 20 73 63 72 65 | 65 6e 2e 09 09 09 2a 2f |the scre|en....*/|
|00004dc0| 0a 23 69 66 20 49 4e 54 | 31 36 0a 09 2f 2a 20 31 |.#if INT|16../* 1|
|00004dd0| 36 20 62 69 74 20 69 6e | 74 65 67 65 72 73 2c 20 |6 bit in|tegers, |
|00004de0| 75 73 65 20 73 69 6d 70 | 6c 65 20 63 68 65 63 6b |use simp|le check|
|00004df0| 2e 09 09 09 2a 2f 0a 20 | 20 20 20 20 20 20 20 69 |....*/. | i|
|00004e00| 66 20 28 78 20 3c 20 30 | 20 29 20 72 65 74 75 72 |f (x < 0| ) retur|
|00004e10| 6e 28 31 29 3b 0a 20 20 | 20 20 20 20 20 20 69 66 |n(1);. | if|
|00004e20| 20 28 79 20 3c 20 30 20 | 29 20 72 65 74 75 72 6e | (y < 0 |) return|
|00004e30| 28 31 29 3b 0a 23 65 6c | 73 65 0a 09 2f 2a 20 55 |(1);.#el|se../* U|
|00004e40| 73 65 20 65 78 70 6c 69 | 63 69 74 20 63 68 65 63 |se expli|cit chec|
|00004e50| 6b 2e 09 09 09 09 09 2a | 2f 0a 20 20 20 20 20 20 |k......*|/. |
|00004e60| 20 20 69 66 20 28 28 78 | 20 3c 20 30 29 20 7c 7c | if ((x| < 0) |||
|00004e70| 20 28 78 20 3e 20 4e 52 | 4d 5f 58 5f 52 41 4e 47 | (x > NR|M_X_RANG|
|00004e80| 45 29 29 20 72 65 74 75 | 72 6e 28 31 29 3b 0a 20 |E)) retu|rn(1);. |
|00004e90| 20 20 20 20 20 20 20 69 | 66 20 28 28 79 20 3c 20 | i|f ((y < |
|00004ea0| 30 29 20 7c 7c 20 28 79 | 20 3e 20 4e 52 4d 5f 58 |0) || (y| > NRM_X|
|00004eb0| 5f 52 41 4e 47 45 29 29 | 20 72 65 74 75 72 6e 28 |_RANGE))| return(|
|00004ec0| 31 29 3b 0a 23 65 6e 64 | 69 66 20 2f 2a 20 49 4e |1);.#end|if /* IN|
|00004ed0| 54 31 36 20 2a 2f 0a 0a | 09 2f 2a 20 49 6e 63 72 |T16 */..|./* Incr|
|00004ee0| 65 6d 65 6e 74 20 74 68 | 65 20 67 72 61 70 68 69 |ement th|e graphi|
|00004ef0| 63 73 20 63 75 72 73 6f | 72 2e 09 09 09 09 2a 2f |cs curso|r.....*/|
|00004f00| 0a 0a 09 69 66 20 28 6e | 5f 6d 6f 76 65 70 65 6e |...if (n|_movepen|
|00004f10| 28 67 72 61 70 68 69 63 | 73 2e 78 5f 63 75 72 73 |(graphic|s.x_curs|
|00004f20| 6f 72 20 2b 20 67 72 61 | 70 68 69 63 73 2e 63 65 |or + gra|phics.ce|
|00004f30| 6c 6c 66 6f 6e 74 2e 78 | 74 69 63 2c 0a 09 09 67 |llfont.x|tic,...g|
|00004f40| 72 61 70 68 69 63 73 2e | 79 5f 63 75 72 73 6f 72 |raphics.|y_cursor|
|00004f50| 29 29 20 69 73 74 61 74 | 20 3d 20 31 3b 0a 0a 09 |)) istat| = 1;...|
|00004f60| 2f 2a 20 50 6f 69 6e 74 | 20 61 74 20 74 68 65 20 |/* Point| at the |
|00004f70| 63 68 61 72 61 63 74 65 | 72 20 62 69 74 20 6d 61 |characte|r bit ma|
|00004f80| 70 20 74 6f 20 70 72 69 | 6e 74 2e 09 09 09 2a 2f |p to pri|nt....*/|
|00004f90| 0a 09 62 69 74 73 20 3d | 20 28 63 68 61 72 20 2a |..bits =| (char *|
|00004fa0| 29 20 26 28 63 68 61 72 | 63 65 6c 6c 5b 61 73 63 |) &(char|cell[asc|
|00004fb0| 5f 63 68 61 72 20 2a 20 | 59 5f 43 45 4c 4c 5f 42 |_char * |Y_CELL_B|
|00004fc0| 49 54 53 5d 29 3b 0a 0a | 09 2f 2a 20 57 72 69 74 |ITS]);..|./* Writ|
|00004fd0| 65 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 2e |e the ch|aracter.|
|00004fe0| 09 09 09 09 09 09 2a 2f | 0a 09 66 6f 72 20 28 69 |......*/|..for (i|
|00004ff0| 3d 79 3b 20 69 20 3c 20 | 79 20 2b 20 59 5f 43 45 |=y; i < |y + Y_CE|
|00005000| 4c 4c 5f 42 49 54 53 3b | 20 69 2b 2b 2c 20 62 69 |LL_BITS;| i++, bi|
|00005010| 74 73 2b 2b 29 20 7b 0a | 09 09 6a 3d 78 3b 0a 09 |ts++) {.|..j=x;..|
|00005020| 09 69 66 20 28 2a 62 69 | 74 73 20 26 20 30 78 38 |.if (*bi|ts & 0x8|
|00005030| 30 29 20 69 66 20 28 70 | 5f 77 72 5f 70 69 78 28 |0) if (p|_wr_pix(|
|00005040| 6a 2c 69 29 29 20 69 73 | 74 61 74 20 3d 20 31 3b |j,i)) is|tat = 1;|
|00005050| 20 6a 2b 2b 3b 0a 09 09 | 69 66 20 28 2a 62 69 74 | j++;...|if (*bit|
|00005060| 73 20 26 20 30 78 34 30 | 29 20 69 66 20 28 70 5f |s & 0x40|) if (p_|
|00005070| 77 72 5f 70 69 78 28 6a | 2c 69 29 29 20 69 73 74 |wr_pix(j|,i)) ist|
|00005080| 61 74 20 3d 20 31 3b 20 | 6a 2b 2b 3b 0a 09 09 69 |at = 1; |j++;...i|
|00005090| 66 20 28 2a 62 69 74 73 | 20 26 20 30 78 32 30 29 |f (*bits| & 0x20)|
|000050a0| 20 69 66 20 28 70 5f 77 | 72 5f 70 69 78 28 6a 2c | if (p_w|r_pix(j,|
|000050b0| 69 29 29 20 69 73 74 61 | 74 20 3d 20 31 3b 20 6a |i)) ista|t = 1; j|
|000050c0| 2b 2b 3b 0a 09 09 69 66 | 20 28 2a 62 69 74 73 20 |++;...if| (*bits |
|000050d0| 26 20 30 78 31 30 29 20 | 69 66 20 28 70 5f 77 72 |& 0x10) |if (p_wr|
|000050e0| 5f 70 69 78 28 6a 2c 69 | 29 29 20 69 73 74 61 74 |_pix(j,i|)) istat|
|000050f0| 20 3d 20 31 3b 20 6a 2b | 2b 3b 0a 09 09 69 66 20 | = 1; j+|+;...if |
|00005100| 28 2a 62 69 74 73 20 26 | 20 30 78 30 38 29 20 69 |(*bits &| 0x08) i|
|00005110| 66 20 28 70 5f 77 72 5f | 70 69 78 28 6a 2c 69 29 |f (p_wr_|pix(j,i)|
|00005120| 29 20 69 73 74 61 74 20 | 3d 20 31 3b 20 6a 2b 2b |) istat |= 1; j++|
|00005130| 3b 0a 09 09 69 66 20 28 | 2a 62 69 74 73 20 26 20 |;...if (|*bits & |
|00005140| 30 78 30 34 29 20 69 66 | 20 28 70 5f 77 72 5f 70 |0x04) if| (p_wr_p|
|00005150| 69 78 28 6a 2c 69 29 29 | 20 69 73 74 61 74 20 3d |ix(j,i))| istat =|
|00005160| 20 31 3b 20 6a 2b 2b 3b | 0a 09 09 69 66 20 28 2a | 1; j++;|...if (*|
|00005170| 62 69 74 73 20 26 20 30 | 78 30 32 29 20 69 66 20 |bits & 0|x02) if |
|00005180| 28 70 5f 77 72 5f 70 69 | 78 28 6a 2c 69 29 29 20 |(p_wr_pi|x(j,i)) |
|00005190| 69 73 74 61 74 20 3d 20 | 31 3b 20 6a 2b 2b 3b 0a |istat = |1; j++;.|
|000051a0| 09 09 69 66 20 28 2a 62 | 69 74 73 20 26 20 30 78 |..if (*b|its & 0x|
|000051b0| 30 31 29 20 69 66 20 28 | 70 5f 77 72 5f 70 69 78 |01) if (|p_wr_pix|
|000051c0| 28 6a 2c 69 29 29 20 69 | 73 74 61 74 20 3d 20 31 |(j,i)) i|stat = 1|
|000051d0| 3b 20 6a 2b 2b 3b 0a 09 | 7d 0a 0a 09 72 65 74 75 |; j++;..|}...retu|
|000051e0| 72 6e 28 69 73 74 61 74 | 29 3b 0a 7d 0a 4f 53 20 |rn(istat|);.}.OS |
|000051f0| 63 61 6c 6c 73 2c 20 73 | 6f 20 6e 6f 20 73 70 65 |calls, s|o no spe|
|00005200| 67 6c 2d 70 6c 6f 74 2f | 63 5f 63 65 6c 6c 73 74 |gl-plot/|c_cellst|
|00005210| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00005220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00005270| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00005280| 20 20 20 32 30 30 37 20 | 20 34 34 31 33 34 37 34 | 2007 | 4413474|
|00005290| 31 36 34 20 20 20 37 34 | 32 32 00 20 00 00 00 00 |164 74|22. ....|
|000052a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005400| 23 69 66 6e 64 65 66 20 | 6c 69 6e 74 0a 73 74 61 |#ifndef |lint.sta|
|00005410| 74 69 63 20 63 68 61 72 | 20 73 63 63 73 69 64 5b |tic char| sccsid[|
|00005420| 5d 20 3d 20 22 40 28 23 | 29 20 63 5f 63 65 6c 6c |] = "@(#|) c_cell|
|00005430| 73 74 2e 63 20 35 2e 31 | 20 38 39 2f 30 32 2f 32 |st.c 5.1| 89/02/2|
|00005440| 30 22 3b 0a 23 65 6e 64 | 69 66 0a 0a 2f 2a 0a 20 |0";.#end|if../*. |
|00005450| 2a 09 43 6f 70 79 72 69 | 67 68 74 20 28 63 29 20 |*.Copyri|ght (c) |
|00005460| 44 61 76 69 64 20 54 2e | 20 4c 65 77 69 73 20 31 |David T.| Lewis 1|
|00005470| 39 38 38 0a 20 2a 09 41 | 6c 6c 20 72 69 67 68 74 |988. *.A|ll right|
|00005480| 73 20 72 65 73 65 72 76 | 65 64 2e 0a 20 2a 0a 20 |s reserv|ed.. *. |
|00005490| 2a 09 50 65 72 6d 69 73 | 73 69 6f 6e 20 69 73 20 |*.Permis|sion is |
|000054a0| 67 72 61 6e 74 65 64 20 | 74 6f 20 75 73 65 20 74 |granted |to use t|
|000054b0| 68 69 73 20 66 6f 72 20 | 61 6e 79 20 70 65 72 73 |his for |any pers|
|000054c0| 6f 6e 61 6c 20 6e 6f 6e | 63 6f 6d 6d 65 72 63 69 |onal non|commerci|
|000054d0| 61 6c 20 75 73 65 2e 0a | 20 2a 09 59 6f 75 20 6d |al use..| *.You m|
|000054e0| 61 79 20 6e 6f 74 20 64 | 69 73 74 72 69 62 75 74 |ay not d|istribut|
|000054f0| 65 20 73 6f 75 72 63 65 | 20 6f 72 20 65 78 65 63 |e source| or exec|
|00005500| 75 74 61 62 6c 65 20 63 | 6f 64 65 20 66 6f 72 20 |utable c|ode for |
|00005510| 70 72 6f 66 69 74 2c 20 | 6e 6f 72 0a 20 2a 09 6d |profit, |nor. *.m|
|00005520| 61 79 20 79 6f 75 20 64 | 69 73 74 72 69 62 75 74 |ay you d|istribut|
|00005530| 65 20 69 74 20 77 69 74 | 68 20 61 20 63 6f 6d 6d |e it wit|h a comm|
|00005540| 65 72 63 69 61 6c 20 70 | 72 6f 64 75 63 74 20 77 |ercial p|roduct w|
|00005550| 69 74 68 6f 75 74 20 74 | 68 65 20 77 72 69 74 74 |ithout t|he writt|
|00005560| 65 6e 0a 20 2a 09 63 6f | 6e 73 65 6e 74 20 6f 66 |en. *.co|nsent of|
|00005570| 20 74 68 65 20 61 75 74 | 68 6f 72 2e 20 20 50 6c | the aut|hor. Pl|
|00005580| 65 61 73 65 20 73 65 6e | 64 20 6d 6f 64 69 66 69 |ease sen|d modifi|
|00005590| 63 61 74 69 6f 6e 73 20 | 74 6f 20 74 68 65 20 61 |cations |to the a|
|000055a0| 75 74 68 6f 72 20 66 6f | 72 0a 20 2a 09 69 6e 63 |uthor fo|r. *.inc|
|000055b0| 6c 75 73 69 6f 6e 20 69 | 6e 20 75 70 64 61 74 65 |lusion i|n update|
|000055c0| 73 20 74 6f 20 74 68 65 | 20 70 72 6f 67 72 61 6d |s to the| program|
|000055d0| 2e 20 20 54 68 61 6e 6b | 73 2e 0a 20 2a 2f 0a 0a |. Thank|s.. */..|
|000055e0| 2f 2a 20 57 72 69 74 65 | 20 73 74 72 69 6e 67 20 |/* Write| string |
|000055f0| 6f 66 20 61 20 67 72 61 | 70 68 69 63 73 20 63 68 |of a gra|phics ch|
|00005600| 61 72 61 63 74 65 72 73 | 20 74 6f 20 74 68 65 20 |aracters| to the |
|00005610| 73 63 72 65 65 6e 2e 09 | 09 09 2a 2f 0a 2f 2a 20 |screen..|..*/./* |
|00005620| 53 61 74 20 4d 61 72 20 | 31 39 20 32 33 3a 35 36 |Sat Mar |19 23:56|
|00005630| 3a 34 36 20 45 53 54 20 | 31 39 38 38 09 09 09 09 |:46 EST |1988....|
|00005640| 09 09 2a 2f 0a 2f 2a 20 | 73 79 73 74 65 6d 35 20 |..*/./* |system5 |
|00005650| 64 74 6c 65 77 69 73 20 | 32 20 32 2e 33 2e 30 2d |dtlewis |2 2.3.0-|
|00005660| 55 20 41 54 09 09 09 09 | 09 09 2a 2f 0a 0a 2f 2a |U AT....|..*/../*|
|00005670| 20 52 6f 75 74 69 6e 65 | 20 74 6f 20 64 69 73 70 | Routine| to disp|
|00005680| 6c 61 79 20 63 65 6c 6c | 20 6d 6f 64 65 20 74 65 |lay cell| mode te|
|00005690| 78 74 20 73 74 72 69 6e | 67 20 77 69 74 68 20 75 |xt strin|g with u|
|000056a0| 70 70 65 72 20 6c 65 66 | 74 20 63 6f 72 6e 65 72 |pper lef|t corner|
|000056b0| 20 6f 66 09 2a 2f 0a 2f | 2a 20 66 69 72 73 74 20 | of.*/./|* first |
|000056c0| 63 68 61 72 61 63 74 65 | 72 20 6c 6f 63 61 74 65 |characte|r locate|
|000056d0| 64 20 61 74 20 74 68 65 | 20 63 75 72 72 65 6e 74 |d at the| current|
|000056e0| 20 67 72 61 70 68 69 63 | 73 20 63 75 72 73 6f 72 | graphic|s cursor|
|000056f0| 2e 20 20 54 68 65 09 09 | 2a 2f 0a 2f 2a 20 67 72 |. The..|*/./* gr|
|00005700| 61 70 68 69 63 73 20 63 | 75 72 73 6f 72 20 69 73 |aphics c|ursor is|
|00005710| 20 69 6e 63 72 65 6d 65 | 6e 74 65 64 20 61 73 20 | increme|nted as |
|00005720| 63 68 61 72 61 63 74 65 | 72 73 20 61 72 65 20 77 |characte|rs are w|
|00005730| 72 69 74 74 65 6e 2e 09 | 09 2a 2f 0a 0a 23 69 6e |ritten..|.*/..#in|
|00005740| 63 6c 75 64 65 20 3c 73 | 74 64 69 6f 2e 68 3e 0a |clude <s|tdio.h>.|
|00005750| 23 69 6e 63 6c 75 64 65 | 20 22 63 6f 6e 66 69 67 |#include| "config|
|00005760| 2e 68 22 0a 65 78 74 65 | 72 6e 20 69 6e 74 20 63 |.h".exte|rn int c|
|00005770| 5f 63 65 6c 6c 63 68 61 | 72 28 29 3b 0a 0a 69 6e |_cellcha|r();..in|
|00005780| 74 20 63 5f 63 65 6c 6c | 73 74 72 28 73 74 72 6e |t c_cell|str(strn|
|00005790| 67 29 20 20 0a 63 68 61 | 72 20 73 74 72 6e 67 5b |g) .cha|r strng[|
|000057a0| 5d 3b 0a 7b 0a 09 69 6e | 74 20 69 3b 0a 09 66 6f |];.{..in|t i;..fo|
|000057b0| 72 28 69 3d 30 3b 20 73 | 74 72 6e 67 5b 69 5d 20 |r(i=0; s|trng[i] |
|000057c0| 21 3d 20 30 3b 20 69 2b | 2b 29 20 20 7b 0a 09 09 |!= 0; i+|+) {...|
|000057d0| 69 66 20 28 63 5f 63 65 | 6c 6c 63 68 61 72 28 73 |if (c_ce|llchar(s|
|000057e0| 74 72 6e 67 5b 69 5d 29 | 29 20 72 65 74 75 72 6e |trng[i])|) return|
|000057f0| 28 31 29 3b 0a 09 7d 0a | 09 72 65 74 75 72 6e 28 |(1);..}.|.return(|
|00005800| 30 29 3b 0a 7d 0a 0a 74 | 65 6d 35 20 64 74 6c 65 |0);.}..t|em5 dtle|
|00005810| 77 69 73 20 32 20 32 2e | 33 2e 30 2d 55 20 41 54 |wis 2 2.|3.0-U AT|
|00005820| 09 09 09 09 09 09 2a 2f | 0a 0a 23 69 6e 63 6c 75 |......*/|..#inclu|
|00005830| 64 65 20 22 63 6f 6e 66 | 69 67 2e 68 22 0a 23 69 |de "conf|ig.h".#i|
|00005840| 6e 63 6c 75 64 65 20 22 | 62 69 74 6d 61 70 73 2e |nclude "|bitmaps.|
|00005850| 68 22 0a 23 69 6e 63 6c | 75 64 65 20 22 67 72 61 |h".#incl|ude "gra|
|00005860| 70 68 69 63 73 2e 68 22 | 0a 23 69 6e 63 6c 75 64 |phics.h"|.#includ|
|00005870| 65 20 22 63 65 6c 6c 66 | 6f 6e 74 2e 68 22 0a 0a |e "cellf|ont.h"..|
|00005880| 65 78 74 65 72 6e 20 73 | 74 72 75 63 74 20 47 4c |extern s|truct GL|
|00005890| 5f 67 72 61 70 68 69 63 | 73 20 67 72 61 70 68 69 |_graphic|s graphi|
|000058a0| 63 73 3b 0a 65 78 74 65 | 72 6e 20 69 6e 74 20 70 |cs;.exte|rn int p|
|000058b0| 5f 77 72 5f 70 69 78 28 | 29 2c 20 6e 5f 6d 6f 76 |_wr_pix(|), n_mov|
|000058c0| 65 70 65 6e 28 29 3b 0a | 0a 69 6e 74 20 63 5f 63 |epen();.|.int c_c|
|000058d0| 65 6c 6c 63 68 61 72 28 | 61 73 63 5f 63 68 61 72 |ellchar(|asc_char|
|000058e0| 29 20 20 0a 75 6e 73 69 | 67 6e 65 64 20 63 68 61 |) .unsi|gned cha|
|000058f0| 72 20 61 73 63 5f 63 68 | 61 72 3b 0a 7b 0a 09 69 |r asc_ch|ar;.{..i|
|00005900| 6e 74 20 78 2c 20 79 2c | 20 69 2c 20 6a 3b 0a 09 |nt x, y,| i, j;..|
|00005910| 69 6e 74 20 69 73 74 61 | 74 20 3d 20 30 3b 0a 0a |int ista|t = 0;..|
|00005920| 09 63 68 61 72 20 2a 62 | 69 74 73 3b 20 0a 0a 09 |.char *b|its; ...|
|00005930| 2f 2a 20 47 65 74 20 74 | 68 65 20 70 69 78 65 6c |/* Get t|he pixel|
|00005940| 20 6c 6f 63 61 74 69 6f | 6e 2e 09 09 09 09 09 2a | locatio|n......*|
|00005950| 2f 0a 09 78 20 3d 20 6e | 5f 74 6f 5f 70 5f 78 28 |/..x = n|_to_p_x(|
|00005960| 67 72 61 70 68 69 63 73 | 2e 78 5f 63 75 72 73 6f |graphics|.x_curso|
|00005970| 72 29 3b 0a 09 79 20 3d | 20 6e 5f 74 6f 5f 70 5f |r);..y =| n_to_p_|
|00005980| 79 28 67 72 61 70 68 69 | 63 73 2e 79 5f 63 75 72 |y(graphi|cs.y_cur|
|00005990| 73 6f 72 29 3b 0a 0a 09 | 2f 2a 20 43 68 65 63 6b |sor);...|/* Check|
|000059a0| 20 66 6f 72 20 78 20 6f | 72 20 79 20 6f 66 66 20 | for x o|r y off |
|000059b0| 74 68 65 20 73 63 72 65 | 65 6e 2e 09 09 09 2a 2f |the scre|en....*/|
|000059c0| 0a 23 69 66 20 49 4e 54 | 31 36 0a 09 2f 2a 20 31 |.#if INT|16../* 1|
|000059d0| 36 20 62 69 74 20 69 6e | 74 65 67 65 72 73 2c 20 |6 bit in|tegers, |
|000059e0| 75 73 65 20 73 69 6d 70 | 6c 65 20 63 68 65 63 6b |use simp|le check|
|000059f0| 2e 09 09 09 2a 2f 0a 20 | 20 20 20 20 20 20 20 69 |....*/. | i|
|00005a00| 67 6c 2d 70 6c 6f 74 2f | 63 5f 63 75 72 73 6f 72 |gl-plot/|c_cursor|
|00005a10| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00005a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00005a70| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00005a80| 20 20 20 33 33 34 35 20 | 20 34 34 31 33 34 37 34 | 3345 | 4413474|
|00005a90| 31 36 35 20 20 20 37 34 | 36 30 00 20 00 00 00 00 |165 74|60. ....|
|00005aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c00| 23 69 66 6e 64 65 66 20 | 6c 69 6e 74 0a 73 74 61 |#ifndef |lint.sta|
|00005c10| 74 69 63 20 63 68 61 72 | 20 73 63 63 73 69 64 5b |tic char| sccsid[|
|00005c20| 5d 20 3d 20 22 40 28 23 | 29 20 63 5f 63 75 72 73 |] = "@(#|) c_curs|
|00005c30| 6f 72 2e 63 20 35 2e 31 | 20 38 39 2f 30 32 2f 32 |or.c 5.1| 89/02/2|
|00005c40| 30 22 3b 0a 23 65 6e 64 | 69 66 0a 0a 2f 2a 0a 20 |0";.#end|if../*. |
|00005c50| 2a 09 43 6f 70 79 72 69 | 67 68 74 20 28 63 29 20 |*.Copyri|ght (c) |
|00005c60| 44 61 76 69 64 20 54 2e | 20 4c 65 77 69 73 20 31 |David T.| Lewis 1|
|00005c70| 39 38 38 0a 20 2a 09 41 | 6c 6c 20 72 69 67 68 74 |988. *.A|ll right|
|00005c80| 73 20 72 65 73 65 72 76 | 65 64 2e 0a 20 2a 0a 20 |s reserv|ed.. *. |
|00005c90| 2a 09 50 65 72 6d 69 73 | 73 69 6f 6e 20 69 73 20 |*.Permis|sion is |
|00005ca0| 67 72 61 6e 74 65 64 20 | 74 6f 20 75 73 65 20 74 |granted |to use t|
|00005cb0| 68 69 73 20 66 6f 72 20 | 61 6e 79 20 70 65 72 73 |his for |any pers|
|00005cc0| 6f 6e 61 6c 20 6e 6f 6e | 63 6f 6d 6d 65 72 63 69 |onal non|commerci|
|00005cd0| 61 6c 20 75 73 65 2e 0a | 20 2a 09 59 6f 75 20 6d |al use..| *.You m|
|00005ce0| 61 79 20 6e 6f 74 20 64 | 69 73 74 72 69 62 75 74 |ay not d|istribut|
|00005cf0| 65 20 73 6f 75 72 63 65 | 20 6f 72 20 65 78 65 63 |e source| or exec|
|00005d00| 75 74 61 62 6c 65 20 63 | 6f 64 65 20 66 6f 72 20 |utable c|ode for |
|00005d10| 70 72 6f 66 69 74 2c 20 | 6e 6f 72 0a 20 2a 09 6d |profit, |nor. *.m|
|00005d20| 61 79 20 79 6f 75 20 64 | 69 73 74 72 69 62 75 74 |ay you d|istribut|
|00005d30| 65 20 69 74 20 77 69 74 | 68 20 61 20 63 6f 6d 6d |e it wit|h a comm|
|00005d40| 65 72 63 69 61 6c 20 70 | 72 6f 64 75 63 74 20 77 |ercial p|roduct w|
|00005d50| 69 74 68 6f 75 74 20 74 | 68 65 20 77 72 69 74 74 |ithout t|he writt|
|00005d60| 65 6e 0a 20 2a 09 63 6f | 6e 73 65 6e 74 20 6f 66 |en. *.co|nsent of|
|00005d70| 20 74 68 65 20 61 75 74 | 68 6f 72 2e 20 20 50 6c | the aut|hor. Pl|
|00005d80| 65 61 73 65 20 73 65 6e | 64 20 6d 6f 64 69 66 69 |ease sen|d modifi|
|00005d90| 63 61 74 69 6f 6e 73 20 | 74 6f 20 74 68 65 20 61 |cations |to the a|
|00005da0| 75 74 68 6f 72 20 66 6f | 72 0a 20 2a 09 69 6e 63 |uthor fo|r. *.inc|
|00005db0| 6c 75 73 69 6f 6e 20 69 | 6e 20 75 70 64 61 74 65 |lusion i|n update|
|00005dc0| 73 20 74 6f 20 74 68 65 | 20 70 72 6f 67 72 61 6d |s to the| program|
|00005dd0| 2e 20 20 54 68 61 6e 6b | 73 2e 0a 20 2a 2f 0a 0a |. Thank|s.. */..|
|00005de0| 2f 2a 20 4d 6f 76 65 20 | 74 68 65 20 67 72 61 70 |/* Move |the grap|
|00005df0| 68 69 63 73 20 63 75 72 | 73 6f 72 20 61 73 20 69 |hics cur|sor as i|
|00005e00| 66 20 69 74 20 77 65 72 | 65 20 61 20 74 65 78 74 |f it wer|e a text|
|00005e10| 20 63 75 72 73 6f 72 2e | 20 20 54 68 65 20 63 75 | cursor.| The cu|
|00005e20| 72 73 6f 72 09 2a 2f 0a | 2f 2a 20 69 73 20 70 6f |rsor.*/.|/* is po|
|00005e30| 73 69 74 69 6f 6e 65 64 | 20 73 75 63 68 20 74 68 |sitioned| such th|
|00005e40| 61 74 20 61 20 63 65 6c | 6c 20 63 68 61 72 61 63 |at a cel|l charac|
|00005e50| 74 65 72 20 6d 61 79 20 | 62 65 20 64 72 61 77 6e |ter may |be drawn|
|00005e60| 20 61 74 20 74 68 65 09 | 09 2a 2f 0a 2f 2a 20 73 | at the.|.*/./* s|
|00005e70| 70 65 63 69 66 69 65 64 | 20 63 68 61 72 61 63 74 |pecified| charact|
|00005e80| 65 72 20 72 6f 77 20 61 | 6e 64 20 63 6f 6c 75 6d |er row a|nd colum|
|00005e90| 6e 2e 09 09 09 09 09 2a | 2f 0a 2f 2a 20 54 68 69 |n......*|/./* Thi|
|00005ea0| 73 20 72 6f 75 74 69 6e | 65 20 75 73 65 73 20 62 |s routin|e uses b|
|00005eb0| 69 74 20 6d 61 70 70 65 | 64 20 63 68 61 72 61 63 |it mappe|d charac|
|00005ec0| 74 65 72 20 63 65 6c 6c | 20 66 6f 6e 74 73 2e 09 |ter cell| fonts..|
|00005ed0| 09 09 2a 2f 0a 2f 2a 20 | 54 68 65 20 63 68 61 72 |..*/./* |The char|
|00005ee0| 61 63 74 65 72 20 77 69 | 6c 6c 20 62 65 20 64 72 |acter wi|ll be dr|
|00005ef0| 61 77 6e 20 73 75 63 68 | 20 74 68 61 74 20 74 68 |awn such| that th|
|00005f00| 65 20 63 75 72 72 65 6e | 74 20 67 72 61 70 68 69 |e curren|t graphi|
|00005f10| 63 73 20 63 75 72 73 6f | 72 09 2a 2f 0a 2f 2a 20 |cs curso|r.*/./* |
|00005f20| 64 65 6e 6f 74 65 73 20 | 74 68 65 20 75 70 70 65 |denotes |the uppe|
|00005f30| 72 20 6c 65 66 74 20 63 | 6f 72 6e 65 72 20 6f 66 |r left c|orner of|
|00005f40| 20 74 68 65 20 63 68 61 | 72 61 63 74 65 72 20 63 | the cha|racter c|
|00005f50| 65 6c 6c 2e 09 09 09 2a | 2f 0a 0a 2f 2a 20 43 6f |ell....*|/../* Co|
|00005f60| 6c 75 6d 6e 73 20 61 6e | 64 20 72 6f 77 73 20 61 |lumns an|d rows a|
|00005f70| 72 65 20 6e 75 6d 62 65 | 72 65 64 20 31 20 74 68 |re numbe|red 1 th|
|00005f80| 72 6f 75 67 68 20 4e 2c | 20 6e 6f 74 20 30 20 74 |rough N,| not 0 t|
|00005f90| 68 72 6f 75 67 68 20 4e | 20 21 21 21 21 09 2a 2f |hrough N| !!!!.*/|
|00005fa0| 0a 0a 23 69 6e 63 6c 75 | 64 65 20 22 63 6f 6e 66 |..#inclu|de "conf|
|00005fb0| 69 67 2e 68 22 0a 23 69 | 6e 63 6c 75 64 65 20 22 |ig.h".#i|nclude "|
|00005fc0| 62 69 74 6d 61 70 73 2e | 68 22 0a 23 69 6e 63 6c |bitmaps.|h".#incl|
|00005fd0| 75 64 65 20 22 67 72 61 | 70 68 69 63 73 2e 68 22 |ude "gra|phics.h"|
|00005fe0| 0a 0a 65 78 74 65 72 6e | 20 73 74 72 75 63 74 20 |..extern| struct |
|00005ff0| 47 4c 5f 67 72 61 70 68 | 69 63 73 20 67 72 61 70 |GL_graph|ics grap|
|00006000| 68 69 63 73 3b 0a 65 78 | 74 65 72 6e 20 69 6e 74 |hics;.ex|tern int|
|00006010| 20 6e 5f 6d 6f 76 65 70 | 65 6e 28 29 3b 0a 0a 69 | n_movep|en();..i|
|00006020| 6e 74 20 63 5f 63 75 72 | 73 6f 72 28 72 6f 77 2c |nt c_cur|sor(row,|
|00006030| 20 63 6f 6c 29 0a 69 6e | 74 20 72 6f 77 2c 20 63 | col).in|t row, c|
|00006040| 6f 6c 3b 0a 7b 0a 09 6c | 6f 6e 67 20 78 76 61 6c |ol;.{..l|ong xval|
|00006050| 2c 20 79 76 61 6c 3b 0a | 0a 09 2f 2a 20 43 68 65 |, yval;.|../* Che|
|00006060| 63 6b 20 76 61 6c 69 64 | 20 72 61 6e 67 65 20 66 |ck valid| range f|
|00006070| 6f 72 20 74 68 69 73 20 | 73 63 72 65 65 6e 20 74 |or this |screen t|
|00006080| 79 70 65 2e 09 09 09 2a | 2f 0a 09 69 66 20 28 63 |ype....*|/..if (c|
|00006090| 6f 6c 20 3c 3d 20 30 20 | 7c 7c 20 63 6f 6c 20 3e |ol <= 0 ||| col >|
|000060a0| 20 67 72 61 70 68 69 63 | 73 2e 63 65 6c 6c 66 6f | graphic|s.cellfo|
|000060b0| 6e 74 2e 63 68 61 72 73 | 5f 70 65 72 5f 6c 69 6e |nt.chars|_per_lin|
|000060c0| 65 29 20 72 65 74 75 72 | 6e 28 31 29 3b 0a 09 69 |e) retur|n(1);..i|
|000060d0| 66 20 28 72 6f 77 20 3c | 3d 20 30 20 7c 7c 20 72 |f (row <|= 0 || r|
|000060e0| 6f 77 20 3e 20 67 72 61 | 70 68 69 63 73 2e 63 65 |ow > gra|phics.ce|
|000060f0| 6c 6c 66 6f 6e 74 2e 6c | 69 6e 65 73 5f 70 65 72 |llfont.l|ines_per|
|00006100| 5f 73 63 72 65 65 6e 29 | 20 72 65 74 75 72 6e 28 |_screen)| return(|
|00006110| 31 29 3b 0a 0a 09 2f 2a | 20 4d 6f 76 65 20 74 68 |1);.../*| Move th|
|00006120| 65 20 67 72 61 70 68 69 | 63 73 20 63 75 72 73 6f |e graphi|cs curso|
|00006130| 72 2e 09 09 09 09 09 2a | 2f 0a 0a 09 2f 2a 20 43 |r......*|/.../* C|
|00006140| 61 6c 63 75 6c 61 74 65 | 20 73 69 7a 65 20 6f 66 |alculate| size of|
|00006150| 20 70 69 78 65 6c 2c 20 | 61 6e 64 20 6d 6f 76 65 | pixel, |and move|
|00006160| 20 63 75 72 73 6f 72 20 | 61 63 63 6f 72 64 69 6e | cursor |accordin|
|00006170| 67 6c 79 2e 20 20 54 68 | 65 09 2a 2f 0a 09 2f 2a |gly. Th|e.*/../*|
|00006180| 20 63 61 6c 63 75 6c 61 | 74 69 6f 6e 73 20 61 72 | calcula|tions ar|
|00006190| 65 20 72 65 61 72 72 61 | 6e 67 65 64 20 66 6f 72 |e rearra|nged for|
|000061a0| 20 63 6f 6d 70 75 74 61 | 74 69 6f 6e 61 6c 20 61 | computa|tional a|
|000061b0| 63 63 75 72 61 63 79 2c | 20 61 6e 64 09 2a 2f 0a |ccuracy,| and.*/.|
|000061c0| 09 2f 2a 20 74 68 65 20 | 72 65 73 75 6c 74 73 20 |./* the |results |
|000061d0| 72 6f 75 6e 64 65 64 20 | 75 70 20 74 6f 20 70 75 |rounded |up to pu|
|000061e0| 74 20 75 73 20 6f 6e 20 | 74 68 65 20 63 6f 72 72 |t us on |the corr|
|000061f0| 65 63 74 20 70 69 78 65 | 6c 2e 09 2a 2f 0a 0a 09 |ect pixe|l..*/...|
|00006200| 78 76 61 6c 20 3d 20 4e | 52 4d 5f 58 5f 52 41 4e |xval = N|RM_X_RAN|
|00006210| 47 45 20 2a 20 58 5f 43 | 45 4c 4c 5f 42 49 54 53 |GE * X_C|ELL_BITS|
|00006220| 20 2a 20 28 63 6f 6c 2d | 31 29 20 2f 20 67 72 61 | * (col-|1) / gra|
|00006230| 70 68 69 63 73 2e 78 5f | 65 78 74 65 6e 74 3b 0a |phics.x_|extent;.|
|00006240| 09 78 76 61 6c 2b 2b 3b | 09 2f 2a 20 52 6f 75 6e |.xval++;|./* Roun|
|00006250| 64 20 75 70 2e 09 2a 2f | 0a 0a 09 79 76 61 6c 20 |d up..*/|...yval |
|00006260| 3d 20 4e 52 4d 5f 59 5f | 52 41 4e 47 45 20 2a 20 |= NRM_Y_|RANGE * |
|00006270| 59 5f 43 45 4c 4c 5f 42 | 49 54 53 20 2a 20 28 72 |Y_CELL_B|ITS * (r|
|00006280| 6f 77 2d 31 29 20 2f 20 | 67 72 61 70 68 69 63 73 |ow-1) / |graphics|
|00006290| 2e 79 5f 65 78 74 65 6e | 74 3b 0a 09 79 76 61 6c |.y_exten|t;..yval|
|000062a0| 2b 2b 3b 0a 0a 09 69 66 | 20 28 6e 5f 6d 6f 76 65 |++;...if| (n_move|
|000062b0| 70 65 6e 28 28 69 6e 74 | 29 78 76 61 6c 2c 20 28 |pen((int|)xval, (|
|000062c0| 69 6e 74 29 79 76 61 6c | 29 29 20 72 65 74 75 72 |int)yval|)) retur|
|000062d0| 6e 28 31 29 3b 0a 0a 09 | 72 65 74 75 72 6e 28 30 |n(1);...|return(0|
|000062e0| 29 3b 0a 7d 0a 20 77 69 | 6c 6c 20 62 65 20 64 72 |);.}. wi|ll be dr|
|000062f0| 61 77 6e 20 73 75 63 68 | 20 74 68 61 74 20 74 68 |awn such| that th|
|00006300| 65 20 63 75 72 72 65 6e | 74 20 67 72 61 70 68 69 |e curren|t graphi|
|00006310| 63 73 20 63 75 72 73 6f | 72 09 2a 2f 0a 2f 2a 20 |cs curso|r.*/./* |
|00006320| 64 65 6e 6f 74 65 73 20 | 74 68 65 20 75 70 70 65 |denotes |the uppe|
|00006330| 72 20 6c 65 66 74 20 63 | 6f 72 6e 65 72 20 6f 66 |r left c|orner of|
|00006340| 20 74 68 65 20 63 68 61 | 72 61 63 74 65 72 20 63 | the cha|racter c|
|00006350| 65 6c 6c 2e 09 09 09 2a | 2f 0a 0a 2f 2a 20 43 6f |ell....*|/../* Co|
|00006360| 6c 75 6d 6e 73 20 61 6e | 64 20 72 6f 77 73 20 61 |lumns an|d rows a|
|00006370| 72 65 20 6e 75 6d 62 65 | 72 65 64 20 31 20 74 68 |re numbe|red 1 th|
|00006380| 72 6f 75 67 68 20 4e 2c | 20 6e 6f 74 20 30 20 74 |rough N,| not 0 t|
|00006390| 68 72 6f 75 67 68 20 4e | 20 21 21 21 21 09 2a 2f |hrough N| !!!!.*/|
|000063a0| 0a 0a 23 69 6e 63 6c 75 | 64 65 20 22 63 6f 6e 66 |..#inclu|de "conf|
|000063b0| 69 67 2e 68 22 0a 23 69 | 6e 63 6c 75 64 65 20 22 |ig.h".#i|nclude "|
|000063c0| 62 69 74 6d 61 70 73 2e | 68 22 0a 23 69 6e 63 6c |bitmaps.|h".#incl|
|000063d0| 75 64 65 20 22 67 72 61 | 70 68 69 63 73 2e 68 22 |ude "gra|phics.h"|
|000063e0| 0a 0a 65 78 74 65 72 6e | 20 73 74 72 75 63 74 20 |..extern| struct |
|000063f0| 47 4c 5f 67 72 61 70 68 | 69 63 73 20 67 72 61 70 |GL_graph|ics grap|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.