home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume23 / asp / part01 next >
SHell self-extracting ARchive  |  1991-10-16  |  57.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

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



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 46 72 |.sources|.misc.Fr|
|00000020| 6f 6d 3a 20 61 65 6d 40 | 61 62 65 72 2e 61 63 2e |om: aem@|aber.ac.|
|00000030| 75 6b 20 28 41 6c 65 63 | 20 4d 75 66 66 65 74 74 |uk (Alec| Muffett|
|00000040| 29 0a 53 75 62 6a 65 63 | 74 3a 20 20 76 32 33 69 |).Subjec|t: v23i|
|00000050| 30 33 31 3a 20 20 61 73 | 70 20 2d 20 54 68 65 20 |031: as|p - The |
|00000060| 2e 70 6c 61 6e 20 64 65 | 73 63 72 69 70 74 69 6f |.plan de|scriptio|
|00000070| 6e 20 6c 61 6e 67 75 61 | 67 65 2c 20 50 61 72 74 |n langua|ge, Part|
|00000080| 30 31 2f 30 32 0a 4d 65 | 73 73 61 67 65 2d 49 44 |01/02.Me|ssage-ID|
|00000090| 3a 20 3c 63 73 6d 2d 76 | 32 33 69 30 33 31 3d 61 |: <csm-v|23i031=a|
|000000a0| 73 70 2e 31 35 30 31 34 | 36 40 73 70 61 72 6b 79 |sp.15014|6@sparky|
|000000b0| 2e 49 4d 44 2e 53 74 65 | 72 6c 69 6e 67 2e 43 4f |.IMD.Ste|rling.CO|
|000000c0| 4d 3e 0a 58 2d 4d 64 34 | 2d 53 69 67 6e 61 74 75 |M>.X-Md4|-Signatu|
|000000d0| 72 65 3a 20 61 35 38 32 | 61 36 30 36 30 33 37 36 |re: a582|a6060376|
|000000e0| 33 65 66 31 33 63 35 36 | 32 39 32 37 32 63 36 66 |3ef13c56|29272c6f|
|000000f0| 63 62 34 30 0a 44 61 74 | 65 3a 20 46 72 69 2c 20 |cb40.Dat|e: Fri, |
|00000100| 32 37 20 53 65 70 20 31 | 39 39 31 20 32 30 3a 30 |27 Sep 1|991 20:0|
|00000110| 33 3a 31 33 20 47 4d 54 | 0a 41 70 70 72 6f 76 65 |3:13 GMT|.Approve|
|00000120| 64 3a 20 6b 65 6e 74 40 | 73 70 61 72 6b 79 2e 69 |d: kent@|sparky.i|
|00000130| 6d 64 2e 73 74 65 72 6c | 69 6e 67 2e 63 6f 6d 0a |md.sterl|ing.com.|
|00000140| 0a 53 75 62 6d 69 74 74 | 65 64 2d 62 79 3a 20 61 |.Submitt|ed-by: a|
|00000150| 65 6d 40 61 62 65 72 2e | 61 63 2e 75 6b 20 28 41 |em@aber.|ac.uk (A|
|00000160| 6c 65 63 20 4d 75 66 66 | 65 74 74 29 0a 50 6f 73 |lec Muff|ett).Pos|
|00000170| 74 69 6e 67 2d 6e 75 6d | 62 65 72 3a 20 56 6f 6c |ting-num|ber: Vol|
|00000180| 75 6d 65 20 32 33 2c 20 | 49 73 73 75 65 20 33 31 |ume 23, |Issue 31|
|00000190| 0a 41 72 63 68 69 76 65 | 2d 6e 61 6d 65 3a 20 61 |.Archive|-name: a|
|000001a0| 73 70 2f 70 61 72 74 30 | 31 0a 45 6e 76 69 72 6f |sp/part0|1.Enviro|
|000001b0| 6e 6d 65 6e 74 3a 20 55 | 4e 49 58 0a 0a 5b 20 54 |nment: U|NIX..[ T|
|000001c0| 68 65 20 6d 65 73 73 61 | 67 65 20 22 52 65 6d 61 |he messa|ge "Rema|
|000001d0| 69 6e 20 43 61 6c 6d 22 | 20 63 6f 6d 65 73 20 74 |in Calm"| comes t|
|000001e0| 6f 20 6d 69 6e 64 2e 2e | 2e 20 3a 2d 29 20 20 2d |o mind..|. :-) -|
|000001f0| 4b 65 6e 74 2b 20 5d 0a | 0a 54 68 69 73 20 69 73 |Kent+ ].|.This is|
|00000200| 20 22 41 73 70 20 76 33 | 2e 32 2c 20 54 68 65 20 | "Asp v3|.2, The |
|00000210| 2e 70 6c 61 6e 20 64 65 | 73 63 72 69 70 74 69 6f |.plan de|scriptio|
|00000220| 6e 20 6c 61 6e 67 75 61 | 67 65 22 2e 0a 46 72 6f |n langua|ge"..Fro|
|00000230| 6d 20 74 68 65 20 52 45 | 41 44 4d 45 3a 0a 0a 3e |m the RE|ADME:..>|
|00000240| 20 41 73 70 20 69 73 20 | 61 20 73 69 6d 70 6c 69 | Asp is |a simpli|
|00000250| 73 74 69 63 20 64 65 73 | 63 72 69 70 74 69 6f 6e |stic des|cription|
|00000260| 20 6c 61 6e 67 75 61 67 | 65 20 66 6f 72 20 63 61 | languag|e for ca|
|00000270| 72 72 69 61 67 65 2d 72 | 65 74 75 72 6e 20 62 61 |rriage-r|eturn ba|
|00000280| 73 65 64 20 61 73 63 69 | 69 0a 3e 20 61 6e 69 6d |sed asci|i.> anim|
|00000290| 61 74 69 6f 6e 73 2c 20 | 61 73 20 63 6f 6d 6d 6f |ations, |as commo|
|000002a0| 6e 6c 79 20 66 6f 75 6e | 64 20 69 6e 20 22 2e 70 |nly foun|d in ".p|
|000002b0| 6c 61 6e 22 20 66 69 6c | 65 73 20 77 68 65 6e 20 |lan" fil|es when |
|000002c0| 79 6f 75 20 66 69 6e 67 | 65 72 20 73 6f 6d 65 6f |you fing|er someo|
|000002d0| 6e 65 2e 0a 3e 20 49 74 | 20 69 73 20 73 69 6d 70 |ne..> It| is simp|
|000002e0| 6c 65 20 74 6f 20 75 73 | 65 2c 20 73 6f 20 6c 61 |le to us|e, so la|
|000002f0| 72 67 65 2c 20 73 6d 6f | 6f 74 68 2c 20 6e 65 61 |rge, smo|oth, nea|
|00000300| 74 20 61 6e 69 6d 61 74 | 69 6f 6e 73 20 63 61 6e |t animat|ions can|
|00000310| 20 62 65 20 62 75 69 6c | 74 0a 3e 20 71 75 69 63 | be buil|t.> quic|
|00000320| 6b 6c 79 20 61 6e 64 20 | 65 61 73 69 6c 79 2c 20 |kly and |easily, |
|00000330| 61 6e 64 20 77 69 74 68 | 20 61 20 6c 6f 74 20 6f |and with| a lot o|
|00000340| 66 20 72 6f 6f 6d 20 66 | 6f 72 20 69 6d 61 67 69 |f room f|or imagi|
|00000350| 6e 61 74 69 6f 6e 2e 0a | 0a 41 73 70 20 69 73 20 |nation..|.Asp is |
|00000360| 61 20 73 69 6d 70 6c 65 | 2c 20 72 75 6c 65 2d 62 |a simple|, rule-b|
|00000370| 61 73 65 64 20 6c 61 6e | 67 75 61 67 65 20 66 6f |ased lan|guage fo|
|00000380| 72 20 67 65 6e 65 72 61 | 74 69 6e 67 20 74 68 6f |r genera|ting tho|
|00000390| 73 65 20 77 6f 6e 64 65 | 72 66 75 6c 0a 73 63 72 |se wonde|rful.scr|
|000003a0| 6f 6c 6c 69 6e 67 20 22 | 2e 70 6c 61 6e 22 20 66 |olling "|.plan" f|
|000003b0| 69 6c 65 73 20 74 68 61 | 74 20 6d 61 6e 79 20 70 |iles tha|t many p|
|000003c0| 65 6f 70 6c 65 20 68 61 | 76 65 20 77 72 69 74 74 |eople ha|ve writt|
|000003d0| 65 6e 20 64 69 64 64 79 | 20 70 72 6f 67 72 61 6d |en diddy| program|
|000003e0| 73 20 74 6f 0a 67 65 6e | 65 72 61 74 65 2e 20 20 |s to.gen|erate. |
|000003f0| 41 73 70 20 77 61 73 20 | 64 65 73 69 67 65 6e 64 |Asp was |desigend|
|00000400| 20 74 6f 20 64 6f 20 67 | 6f 20 22 6f 6e 65 20 62 | to do g|o "one b|
|00000410| 69 74 20 66 75 72 74 68 | 65 72 22 20 74 68 61 74 |it furth|er" that|
|00000420| 20 74 68 6f 73 65 0a 70 | 72 6f 67 72 61 6d 73 20 | those.p|rograms |
|00000430| 75 73 75 61 6c 6c 79 20 | 64 6f 2c 20 61 6e 64 20 |usually |do, and |
|00000440| 74 6f 20 62 65 20 66 6c | 65 78 69 62 6c 65 20 77 |to be fl|exible w|
|00000450| 69 74 68 20 69 74 2e 20 | 20 49 74 20 73 65 65 6d |ith it. | It seem|
|00000460| 73 20 74 6f 20 61 63 68 | 69 65 76 65 0a 74 68 69 |s to ach|ieve.thi|
|00000470| 73 20 65 6e 64 2e 0a 0a | 49 20 68 6f 70 65 20 79 |s end...|I hope y|
|00000480| 6f 75 20 68 61 76 65 20 | 66 75 6e 20 77 69 74 68 |ou have |fun with|
|00000490| 20 69 74 2e 20 20 54 68 | 65 20 6d 6f 73 74 20 6f | it. Th|e most o|
|000004a0| 62 76 69 6f 75 73 20 70 | 72 6f 62 6c 65 6d 20 79 |bvious p|roblem y|
|000004b0| 6f 75 20 6d 69 67 68 74 | 20 68 61 76 65 20 69 73 |ou might| have is|
|000004c0| 0a 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 69 6e |.the sta|ndard in|
|000004d0| 64 65 78 28 29 2f 73 74 | 72 63 68 72 28 29 20 69 |dex()/st|rchr() i|
|000004e0| 6e 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 2e 20 |ncompati|bility. |
|000004f0| 20 43 68 65 63 6b 20 22 | 61 73 70 2e 68 22 0a 0a | Check "|asp.h"..|
|00000500| 61 6c 65 63 0a 2d 2d 2d | 0a 23 21 2f 62 69 6e 2f |alec.---|.#!/bin/|
|00000510| 73 68 0a 23 20 54 68 69 | 73 20 69 73 20 61 20 73 |sh.# Thi|s is a s|
|00000520| 68 65 6c 6c 20 61 72 63 | 68 69 76 65 2e 20 20 52 |hell arc|hive. R|
|00000530| 65 6d 6f 76 65 20 61 6e | 79 74 68 69 6e 67 20 62 |emove an|ything b|
|00000540| 65 66 6f 72 65 20 74 68 | 69 73 20 6c 69 6e 65 2c |efore th|is line,|
|00000550| 20 74 68 65 6e 20 75 6e | 70 61 63 6b 0a 23 20 69 | then un|pack.# i|
|00000560| 74 20 62 79 20 73 61 76 | 69 6e 67 20 69 74 20 69 |t by sav|ing it i|
|00000570| 6e 74 6f 20 61 20 66 69 | 6c 65 20 61 6e 64 20 74 |nto a fi|le and t|
|00000580| 79 70 69 6e 67 20 22 73 | 68 20 66 69 6c 65 22 2e |yping "s|h file".|
|00000590| 20 20 54 6f 20 6f 76 65 | 72 77 72 69 74 65 20 65 | To ove|rwrite e|
|000005a0| 78 69 73 74 69 6e 67 0a | 23 20 66 69 6c 65 73 2c |xisting.|# files,|
|000005b0| 20 74 79 70 65 20 22 73 | 68 20 66 69 6c 65 20 2d | type "s|h file -|
|000005c0| 63 22 2e 20 20 59 6f 75 | 20 63 61 6e 20 61 6c 73 |c". You| can als|
|000005d0| 6f 20 66 65 65 64 20 74 | 68 69 73 20 61 73 20 73 |o feed t|his as s|
|000005e0| 74 61 6e 64 61 72 64 20 | 69 6e 70 75 74 20 76 69 |tandard |input vi|
|000005f0| 61 0a 23 20 75 6e 73 68 | 61 72 2c 20 6f 72 20 62 |a.# unsh|ar, or b|
|00000600| 79 20 74 79 70 69 6e 67 | 20 22 73 68 20 3c 66 69 |y typing| "sh <fi|
|00000610| 6c 65 22 2c 20 65 2e 67 | 2e 2e 20 20 49 66 20 74 |le", e.g|.. If t|
|00000620| 68 69 73 20 61 72 63 68 | 69 76 65 20 69 73 20 63 |his arch|ive is c|
|00000630| 6f 6d 70 6c 65 74 65 2c | 20 79 6f 75 0a 23 20 77 |omplete,| you.# w|
|00000640| 69 6c 6c 20 73 65 65 20 | 74 68 65 20 66 6f 6c 6c |ill see |the foll|
|00000650| 6f 77 69 6e 67 20 6d 65 | 73 73 61 67 65 20 61 74 |owing me|ssage at|
|00000660| 20 74 68 65 20 65 6e 64 | 3a 0a 23 09 09 22 45 6e | the end|:.#.."En|
|00000670| 64 20 6f 66 20 61 72 63 | 68 69 76 65 20 31 20 28 |d of arc|hive 1 (|
|00000680| 6f 66 20 32 29 2e 22 0a | 23 20 43 6f 6e 74 65 6e |of 2).".|# Conten|
|00000690| 74 73 3a 20 20 43 4f 56 | 45 52 5f 4c 45 54 54 45 |ts: COV|ER_LETTE|
|000006a0| 52 20 4d 41 4e 49 46 45 | 53 54 20 4d 61 6b 65 66 |R MANIFE|ST Makef|
|000006b0| 69 6c 65 20 52 45 41 44 | 4d 45 20 61 6e 69 6d 2e |ile READ|ME anim.|
|000006c0| 63 20 61 73 70 2e 63 20 | 61 73 70 2e 68 0a 23 20 |c asp.c |asp.h.# |
|000006d0| 20 20 63 6f 70 79 2e 63 | 20 64 65 6d 6f 31 2e 61 | copy.c| demo1.a|
|000006e0| 73 70 20 64 65 6d 6f 32 | 2e 61 73 70 20 64 65 6d |sp demo2|.asp dem|
|000006f0| 6f 33 2e 61 73 70 20 64 | 65 6d 6f 34 2e 61 73 70 |o3.asp d|emo4.asp|
|00000700| 20 64 65 6d 6f 35 2e 61 | 73 70 20 64 69 73 70 6c | demo5.a|sp displ|
|00000710| 61 79 2e 63 0a 23 20 57 | 72 61 70 70 65 64 20 62 |ay.c.# W|rapped b|
|00000720| 79 20 61 65 6d 40 61 62 | 65 72 64 61 20 6f 6e 20 |y aem@ab|erda on |
|00000730| 57 65 64 20 53 65 70 20 | 32 35 20 31 31 3a 32 36 |Wed Sep |25 11:26|
|00000740| 3a 34 35 20 31 39 39 31 | 0a 50 41 54 48 3d 2f 62 |:45 1991|.PATH=/b|
|00000750| 69 6e 3a 2f 75 73 72 2f | 62 69 6e 3a 2f 75 73 72 |in:/usr/|bin:/usr|
|00000760| 2f 75 63 62 20 3b 20 65 | 78 70 6f 72 74 20 50 41 |/ucb ; e|xport PA|
|00000770| 54 48 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 43 |TH.if te|st -f 'C|
|00000780| 4f 56 45 52 5f 4c 45 54 | 54 45 52 27 20 2d 61 20 |OVER_LET|TER' -a |
|00000790| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|000007a0| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|000007b0| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|000007c0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|000007d0| 6c 65 20 5c 22 27 43 4f | 56 45 52 5f 4c 45 54 54 |le \"'CO|VER_LETT|
|000007e0| 45 52 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |ER'\".el|se.echo |
|000007f0| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00000800| 20 5c 22 27 43 4f 56 45 | 52 5f 4c 45 54 54 45 52 | \"'COVE|R_LETTER|
|00000810| 27 5c 22 20 5c 28 31 30 | 31 34 20 63 68 61 72 61 |'\" \(10|14 chara|
|00000820| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|00000830| 58 2f 2f 22 20 3e 27 43 | 4f 56 45 52 5f 4c 45 54 |X//" >'C|OVER_LET|
|00000840| 54 45 52 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |TER' <<'|END_OF_F|
|00000850| 49 4c 45 27 0a 58 54 68 | 69 73 20 69 73 20 22 41 |ILE'.XTh|is is "A|
|00000860| 73 70 20 76 33 2e 32 2c | 20 54 68 65 20 2e 70 6c |sp v3.2,| The .pl|
|00000870| 61 6e 20 64 65 73 63 72 | 69 70 74 69 6f 6e 20 6c |an descr|iption l|
|00000880| 61 6e 67 75 61 67 65 22 | 0a 58 0a 58 46 72 6f 6d |anguage"|.X.XFrom|
|00000890| 20 74 68 65 20 52 45 41 | 44 4d 45 3a 0a 58 0a 58 | the REA|DME:.X.X|
|000008a0| 3e 20 41 73 70 20 69 73 | 20 61 20 73 69 6d 70 6c |> Asp is| a simpl|
|000008b0| 69 73 74 69 63 20 64 65 | 73 63 72 69 70 74 69 6f |istic de|scriptio|
|000008c0| 6e 20 6c 61 6e 67 75 61 | 67 65 20 66 6f 72 20 63 |n langua|ge for c|
|000008d0| 61 72 72 69 61 67 65 2d | 72 65 74 75 72 6e 20 62 |arriage-|return b|
|000008e0| 61 73 65 64 20 61 73 63 | 69 69 0a 58 3e 20 61 6e |ased asc|ii.X> an|
|000008f0| 69 6d 61 74 69 6f 6e 73 | 2c 20 61 73 20 63 6f 6d |imations|, as com|
|00000900| 6d 6f 6e 6c 79 20 66 6f | 75 6e 64 20 69 6e 20 22 |monly fo|und in "|
|00000910| 2e 70 6c 61 6e 22 20 66 | 69 6c 65 73 20 77 68 65 |.plan" f|iles whe|
|00000920| 6e 20 79 6f 75 20 66 69 | 6e 67 65 72 20 73 6f 6d |n you fi|nger som|
|00000930| 65 6f 6e 65 2e 0a 58 3e | 20 49 74 20 69 73 20 73 |eone..X>| It is s|
|00000940| 69 6d 70 6c 65 20 74 6f | 20 75 73 65 2c 20 73 6f |imple to| use, so|
|00000950| 20 6c 61 72 67 65 2c 20 | 73 6d 6f 6f 74 68 2c 20 | large, |smooth, |
|00000960| 6e 65 61 74 20 61 6e 69 | 6d 61 74 69 6f 6e 73 20 |neat ani|mations |
|00000970| 63 61 6e 20 62 65 20 62 | 75 69 6c 74 0a 58 3e 20 |can be b|uilt.X> |
|00000980| 71 75 69 63 6b 6c 79 20 | 61 6e 64 20 65 61 73 69 |quickly |and easi|
|00000990| 6c 79 2c 20 61 6e 64 20 | 77 69 74 68 20 61 20 6c |ly, and |with a l|
|000009a0| 6f 74 20 6f 66 20 72 6f | 6f 6d 20 66 6f 72 20 69 |ot of ro|om for i|
|000009b0| 6d 61 67 69 6e 61 74 69 | 6f 6e 2e 0a 58 0a 58 41 |maginati|on..X.XA|
|000009c0| 73 70 20 69 73 20 61 20 | 73 69 6d 70 6c 65 2c 20 |sp is a |simple, |
|000009d0| 72 75 6c 65 2d 62 61 73 | 65 64 20 6c 61 6e 67 75 |rule-bas|ed langu|
|000009e0| 61 67 65 20 66 6f 72 20 | 67 65 6e 65 72 61 74 69 |age for |generati|
|000009f0| 6e 67 20 74 68 6f 73 65 | 20 77 6f 6e 64 65 72 66 |ng those| wonderf|
|00000a00| 75 6c 0a 58 73 63 72 6f | 6c 6c 69 6e 67 20 22 2e |ul.Xscro|lling ".|
|00000a10| 70 6c 61 6e 22 20 66 69 | 6c 65 73 20 74 68 61 74 |plan" fi|les that|
|00000a20| 20 6d 61 6e 79 20 70 65 | 6f 70 6c 65 20 68 61 76 | many pe|ople hav|
|00000a30| 65 20 77 72 69 74 74 65 | 6e 20 64 69 64 64 79 20 |e writte|n diddy |
|00000a40| 70 72 6f 67 72 61 6d 73 | 20 74 6f 0a 58 67 65 6e |programs| to.Xgen|
|00000a50| 65 72 61 74 65 2e 20 20 | 41 73 70 20 77 61 73 20 |erate. |Asp was |
|00000a60| 64 65 73 69 67 65 6e 64 | 20 74 6f 20 64 6f 20 67 |desigend| to do g|
|00000a70| 6f 20 22 6f 6e 65 20 62 | 69 74 20 66 75 72 74 68 |o "one b|it furth|
|00000a80| 65 72 22 20 74 68 61 74 | 20 74 68 6f 73 65 0a 58 |er" that| those.X|
|00000a90| 70 72 6f 67 72 61 6d 73 | 20 75 73 75 61 6c 6c 79 |programs| usually|
|00000aa0| 20 64 6f 2c 20 61 6e 64 | 20 74 6f 20 62 65 20 66 | do, and| to be f|
|00000ab0| 6c 65 78 69 62 6c 65 20 | 77 69 74 68 20 69 74 2e |lexible |with it.|
|00000ac0| 20 20 49 74 20 73 65 65 | 6d 73 20 74 6f 20 61 63 | It see|ms to ac|
|00000ad0| 68 69 65 76 65 0a 58 74 | 68 69 73 20 65 6e 64 2e |hieve.Xt|his end.|
|00000ae0| 0a 58 0a 58 49 20 68 6f | 70 65 20 79 6f 75 20 68 |.X.XI ho|pe you h|
|00000af0| 61 76 65 20 66 75 6e 20 | 77 69 74 68 20 69 74 2e |ave fun |with it.|
|00000b00| 20 20 54 68 65 20 6d 6f | 73 74 20 6f 62 76 69 6f | The mo|st obvio|
|00000b10| 75 73 20 70 72 6f 62 6c | 65 6d 20 79 6f 75 20 6d |us probl|em you m|
|00000b20| 69 67 68 74 20 68 61 76 | 65 20 69 73 0a 58 74 68 |ight hav|e is.Xth|
|00000b30| 65 20 73 74 61 6e 64 61 | 72 64 20 69 6e 64 65 78 |e standa|rd index|
|00000b40| 28 29 2f 73 74 72 63 68 | 72 28 29 20 69 6e 63 6f |()/strch|r() inco|
|00000b50| 6d 70 61 74 69 62 69 6c | 69 74 79 2e 20 20 43 68 |mpatibil|ity. Ch|
|00000b60| 65 63 6b 20 22 61 73 70 | 2e 68 22 0a 58 0a 58 61 |eck "asp|.h".X.Xa|
|00000b70| 6c 65 63 0a 58 2d 2d 0a | 58 49 4e 45 54 3a 20 61 |lec.X--.|XINET: a|
|00000b80| 65 6d 40 61 62 65 72 2e | 61 63 2e 75 6b 20 20 20 |em@aber.|ac.uk |
|00000b90| 20 20 20 4a 41 4e 45 54 | 3a 20 61 65 6d 40 75 6b | JANET|: aem@uk|
|00000ba0| 2e 61 63 2e 61 62 65 72 | 20 20 20 20 20 20 42 49 |.ac.aber| BI|
|00000bb0| 54 4e 45 54 3a 20 61 65 | 6d 25 61 62 65 72 40 75 |TNET: ae|m%aber@u|
|00000bc0| 6b 61 63 72 6c 0a 58 55 | 55 43 50 3a 20 2e 2e 2e |kacrl.XU|UCP: ...|
|00000bd0| 21 6d 63 73 75 6e 21 75 | 6b 63 21 61 62 65 72 21 |!mcsun!u|kc!aber!|
|00000be0| 61 65 6d 20 20 20 20 20 | 20 20 20 20 41 52 50 41 |aem | ARPA|
|00000bf0| 3a 20 61 65 6d 25 75 6b | 2e 61 63 2e 61 62 65 72 |: aem%uk|.ac.aber|
|00000c00| 40 6e 73 66 6e 65 74 2d | 72 65 6c 61 79 2e 61 63 |@nsfnet-|relay.ac|
|00000c10| 2e 75 6b 0a 58 53 4e 41 | 49 4c 3a 20 41 6c 65 63 |.uk.XSNA|IL: Alec|
|00000c20| 20 4d 75 66 66 65 74 74 | 2c 20 43 6f 6d 70 75 74 | Muffett|, Comput|
|00000c30| 65 72 20 55 6e 69 74 2c | 20 4c 6c 61 6e 64 69 6e |er Unit,| Llandin|
|00000c40| 61 6d 20 55 43 57 2c 20 | 41 62 65 72 79 73 74 77 |am UCW, |Aberystw|
|00000c50| 79 74 68 2c 20 55 4b 2c | 20 53 59 32 33 20 33 44 |yth, UK,| SY23 3D|
|00000c60| 42 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 69 66 |B.END_OF|_FILE.if|
|00000c70| 20 74 65 73 74 20 31 30 | 31 34 20 2d 6e 65 20 60 | test 10|14 -ne `|
|00000c80| 77 63 20 2d 63 20 3c 27 | 43 4f 56 45 52 5f 4c 45 |wc -c <'|COVER_LE|
|00000c90| 54 54 45 52 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |TTER'`; |then. |
|00000ca0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 43 | echo sh|ar: \"'C|
|00000cb0| 4f 56 45 52 5f 4c 45 54 | 54 45 52 27 5c 22 20 75 |OVER_LET|TER'\" u|
|00000cc0| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00000cd0| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|00000ce0| 64 20 6f 66 20 27 43 4f | 56 45 52 5f 4c 45 54 54 |d of 'CO|VER_LETT|
|00000cf0| 45 52 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |ER'.fi.i|f test -|
|00000d00| 66 20 27 4d 41 4e 49 46 | 45 53 54 27 20 2d 61 20 |f 'MANIF|EST' -a |
|00000d10| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00000d20| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00000d30| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00000d40| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00000d50| 6c 65 20 5c 22 27 4d 41 | 4e 49 46 45 53 54 27 5c |le \"'MA|NIFEST'\|
|00000d60| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 73 68 61 72 |".else.e|cho shar|
|00000d70| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|00000d80| 4d 41 4e 49 46 45 53 54 | 27 5c 22 20 5c 28 38 39 |MANIFEST|'\" \(89|
|00000d90| 37 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 73 |7 charac|ters\).s|
|00000da0| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 4d 41 |ed "s/^X|//" >'MA|
|00000db0| 4e 49 46 45 53 54 27 20 | 3c 3c 27 45 4e 44 5f 4f |NIFEST' |<<'END_O|
|00000dc0| 46 5f 46 49 4c 45 27 0a | 58 20 20 20 46 69 6c 65 |F_FILE'.|X File|
|00000dd0| 20 4e 61 6d 65 09 09 41 | 72 63 68 69 76 65 20 23 | Name..A|rchive #|
|00000de0| 09 44 65 73 63 72 69 70 | 74 69 6f 6e 0a 58 2d 2d |.Descrip|tion.X--|
|00000df0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000e00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000e10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000e20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 58 20 43 4f 56 45 |--------|-.X COVE|
|00000e30| 52 5f 4c 45 54 54 45 52 | 20 20 20 20 20 20 20 20 |R_LETTER| |
|00000e40| 20 20 20 20 20 20 20 31 | 09 6c 65 74 74 65 72 20 | 1|.letter |
|00000e50| 74 6f 20 67 6f 20 77 69 | 74 68 20 64 69 73 74 72 |to go wi|th distr|
|00000e60| 69 62 75 74 69 6f 6e 0a | 58 20 4d 41 4e 49 46 45 |ibution.|X MANIFE|
|00000e70| 53 54 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ST | |
|00000e80| 20 20 20 20 20 31 09 54 | 68 69 73 20 66 69 6c 65 | 1.T|his file|
|00000e90| 0a 58 20 4d 61 6b 65 66 | 69 6c 65 20 20 20 20 20 |.X Makef|ile |
|00000ea0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 31 09 | | 1.|
|00000eb0| 4d 61 6b 65 66 69 6c 65 | 20 28 4f 68 2c 20 63 6f |Makefile| (Oh, co|
|00000ec0| 6d 65 20 6f 6e 21 21 21 | 29 0a 58 20 52 45 41 44 |me on!!!|).X READ|
|00000ed0| 4d 45 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ME | |
|00000ee0| 20 20 20 20 20 20 20 31 | 09 64 6f 63 75 6d 65 6e | 1|.documen|
|00000ef0| 74 61 74 69 6f 6e 20 6f | 6e 20 70 72 6f 67 72 61 |tation o|n progra|
|00000f00| 6d 6d 69 6e 67 20 41 53 | 50 0a 58 20 61 6e 69 6d |mming AS|P.X anim|
|00000f10| 2e 63 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.c | |
|00000f20| 20 20 20 20 20 20 20 31 | 09 61 6e 69 6d 61 74 69 | 1|.animati|
|00000f30| 6f 6e 20 70 72 69 6d 69 | 74 69 76 65 73 0a 58 20 |on primi|tives.X |
|00000f40| 61 73 70 2e 63 20 20 20 | 20 20 20 20 20 20 20 20 |asp.c | |
|00000f50| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 6d 61 69 | | 1.mai|
|00000f60| 6e 28 29 0a 58 20 61 73 | 70 2e 68 20 20 20 20 20 |n().X as|p.h |
|00000f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f80| 20 31 09 68 65 61 64 65 | 72 20 66 69 6c 65 20 77 | 1.heade|r file w|
|00000f90| 69 74 68 20 6d 61 6a 6f | 72 20 64 65 63 6c 61 72 |ith majo|r declar|
|00000fa0| 61 74 69 6f 6e 73 0a 58 | 20 63 6f 70 79 2e 63 20 |ations.X| copy.c |
|00000fb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000fc0| 20 20 20 20 31 09 73 74 | 72 69 6e 67 20 63 6f 70 | 1.st|ring cop|
|00000fd0| 79 69 6e 67 20 70 72 69 | 6d 69 74 69 76 65 73 0a |ying pri|mitives.|
|00000fe0| 58 20 64 65 6d 6f 31 2e | 61 73 70 20 20 20 20 20 |X demo1.|asp |
|00000ff0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 09 64 | | 1.d|
|00001000| 65 6d 6f 20 31 20 6f 66 | 20 61 73 70 20 69 6e 20 |emo 1 of| asp in |
|00001010| 61 63 74 69 6f 6e 20 0a | 58 20 64 65 6d 6f 32 2e |action .|X demo2.|
|00001020| 61 73 70 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |asp | |
|00001030| 20 20 20 20 20 31 09 64 | 65 6d 6f 20 32 20 6f 66 | 1.d|emo 2 of|
|00001040| 20 61 73 70 20 69 6e 20 | 61 63 74 69 6f 6e 20 0a | asp in |action .|
|00001050| 58 20 64 65 6d 6f 33 2e | 61 73 70 20 20 20 20 20 |X demo3.|asp |
|00001060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 09 64 | | 1.d|
|00001070| 65 6d 6f 20 33 20 6f 66 | 20 61 73 70 20 69 6e 20 |emo 3 of| asp in |
|00001080| 61 63 74 69 6f 6e 20 0a | 58 20 64 65 6d 6f 34 2e |action .|X demo4.|
|00001090| 61 73 70 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |asp | |
|000010a0| 20 20 20 20 20 31 09 64 | 65 6d 6f 20 34 20 6f 66 | 1.d|emo 4 of|
|000010b0| 20 61 73 70 20 69 6e 20 | 61 63 74 69 6f 6e 20 0a | asp in |action .|
|000010c0| 58 20 64 65 6d 6f 35 2e | 61 73 70 20 20 20 20 20 |X demo5.|asp |
|000010d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 09 64 | | 1.d|
|000010e0| 65 6d 6f 20 35 20 6f 66 | 20 61 73 70 20 69 6e 20 |emo 5 of| asp in |
|000010f0| 61 63 74 69 6f 6e 20 0a | 58 20 64 69 73 70 6c 61 |action .|X displa|
|00001100| 79 2e 63 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |y.c | |
|00001110| 20 20 20 20 20 31 09 64 | 69 73 70 6c 61 79 20 70 | 1.d|isplay p|
|00001120| 72 69 6d 69 74 69 76 65 | 73 20 0a 58 20 65 66 66 |rimitive|s .X eff|
|00001130| 65 63 74 73 2e 63 20 20 | 20 20 20 20 20 20 20 20 |ects.c | |
|00001140| 20 20 20 20 20 20 20 20 | 32 09 73 70 65 63 69 61 | |2.specia|
|00001150| 6c 20 65 66 66 65 63 74 | 73 0a 45 4e 44 5f 4f 46 |l effect|s.END_OF|
|00001160| 5f 46 49 4c 45 0a 69 66 | 20 74 65 73 74 20 38 39 |_FILE.if| test 89|
|00001170| 37 20 2d 6e 65 20 60 77 | 63 20 2d 63 20 3c 27 4d |7 -ne `w|c -c <'M|
|00001180| 41 4e 49 46 45 53 54 27 | 60 3b 20 74 68 65 6e 0a |ANIFEST'|`; then.|
|00001190| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|000011a0| 22 27 4d 41 4e 49 46 45 | 53 54 27 5c 22 20 75 6e |"'MANIFE|ST'\" un|
|000011b0| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|000011c0| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|000011d0| 20 6f 66 20 27 4d 41 4e | 49 46 45 53 54 27 0a 66 | of 'MAN|IFEST'.f|
|000011e0| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 4d 61 |i.if tes|t -f 'Ma|
|000011f0| 6b 65 66 69 6c 65 27 20 | 2d 61 20 22 24 7b 31 7d |kefile' |-a "${1}|
|00001200| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00001210| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00001220| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00001230| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00001240| 27 4d 61 6b 65 66 69 6c | 65 27 5c 22 0a 65 6c 73 |'Makefil|e'\".els|
|00001250| 65 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 |e.echo s|har: Ext|
|00001260| 72 61 63 74 69 6e 67 20 | 5c 22 27 4d 61 6b 65 66 |racting |\"'Makef|
|00001270| 69 6c 65 27 5c 22 20 5c | 28 33 31 35 20 63 68 61 |ile'\" \|(315 cha|
|00001280| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00001290| 2f 5e 58 2f 2f 22 20 3e | 27 4d 61 6b 65 66 69 6c |/^X//" >|'Makefil|
|000012a0| 65 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |e' <<'EN|D_OF_FIL|
|000012b0| 45 27 0a 58 45 58 45 3d | 09 09 61 73 70 0a 58 43 |E'.XEXE=|..asp.XC|
|000012c0| 46 4c 41 47 53 3d 09 09 | 2d 67 0a 58 4f 42 4a 45 |FLAGS=..|-g.XOBJE|
|000012d0| 43 54 53 3d 09 61 6e 69 | 6d 2e 6f 20 61 73 70 2e |CTS=.ani|m.o asp.|
|000012e0| 6f 20 63 6f 70 79 2e 6f | 20 64 69 73 70 6c 61 79 |o copy.o| display|
|000012f0| 2e 6f 20 65 66 66 65 63 | 74 73 2e 6f 0a 58 0a 58 |.o effec|ts.o.X.X|
|00001300| 64 65 6d 6f 3a 09 24 28 | 45 58 45 29 0a 58 09 24 |demo:.$(|EXE).X.$|
|00001310| 28 45 58 45 29 20 64 65 | 6d 6f 31 2e 61 73 70 20 |(EXE) de|mo1.asp |
|00001320| 32 3e 20 2f 64 65 76 2f | 6e 75 6c 6c 0a 58 09 24 |2> /dev/|null.X.$|
|00001330| 28 45 58 45 29 20 64 65 | 6d 6f 32 2e 61 73 70 20 |(EXE) de|mo2.asp |
|00001340| 32 3e 20 2f 64 65 76 2f | 6e 75 6c 6c 0a 58 09 24 |2> /dev/|null.X.$|
|00001350| 28 45 58 45 29 20 64 65 | 6d 6f 33 2e 61 73 70 20 |(EXE) de|mo3.asp |
|00001360| 32 3e 20 2f 64 65 76 2f | 6e 75 6c 6c 0a 58 09 24 |2> /dev/|null.X.$|
|00001370| 28 45 58 45 29 20 64 65 | 6d 6f 34 2e 61 73 70 20 |(EXE) de|mo4.asp |
|00001380| 32 3e 20 2f 64 65 76 2f | 6e 75 6c 6c 0a 58 09 24 |2> /dev/|null.X.$|
|00001390| 28 45 58 45 29 20 64 65 | 6d 6f 35 2e 61 73 70 20 |(EXE) de|mo5.asp |
|000013a0| 32 3e 20 2f 64 65 76 2f | 6e 75 6c 6c 0a 58 0a 58 |2> /dev/|null.X.X|
|000013b0| 24 28 45 58 45 29 3a 09 | 24 28 4f 42 4a 45 43 54 |$(EXE):.|$(OBJECT|
|000013c0| 53 29 0a 58 09 63 63 20 | 24 28 43 46 4c 41 47 53 |S).X.cc |$(CFLAGS|
|000013d0| 29 20 2d 6f 20 24 40 20 | 24 28 4f 42 4a 45 43 54 |) -o $@ |$(OBJECT|
|000013e0| 53 29 0a 58 0a 58 63 6c | 65 61 6e 3a 0a 58 09 72 |S).X.Xcl|ean:.X.r|
|000013f0| 6d 20 2d 66 20 2a 2e 6f | 20 61 73 70 20 0a 45 4e |m -f *.o| asp .EN|
|00001400| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|00001410| 74 20 33 31 35 20 2d 6e | 65 20 60 77 63 20 2d 63 |t 315 -n|e `wc -c|
|00001420| 20 3c 27 4d 61 6b 65 66 | 69 6c 65 27 60 3b 20 74 | <'Makef|ile'`; t|
|00001430| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00001440| 72 3a 20 5c 22 27 4d 61 | 6b 65 66 69 6c 65 27 5c |r: \"'Ma|kefile'\|
|00001450| 22 20 75 6e 70 61 63 6b | 65 64 20 77 69 74 68 20 |" unpack|ed with |
|00001460| 77 72 6f 6e 67 20 73 69 | 7a 65 21 0a 66 69 0a 23 |wrong si|ze!.fi.#|
|00001470| 20 65 6e 64 20 6f 66 20 | 27 4d 61 6b 65 66 69 6c | end of |'Makefil|
|00001480| 65 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |e'.fi.if| test -f|
|00001490| 20 27 52 45 41 44 4d 45 | 27 20 2d 61 20 22 24 7b | 'README|' -a "${|
|000014a0| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|000014b0| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|000014c0| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|000014d0| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|000014e0| 5c 22 27 52 45 41 44 4d | 45 27 5c 22 0a 65 6c 73 |\"'READM|E'\".els|
|000014f0| 65 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 |e.echo s|har: Ext|
|00001500| 72 61 63 74 69 6e 67 20 | 5c 22 27 52 45 41 44 4d |racting |\"'READM|
|00001510| 45 27 5c 22 20 5c 28 31 | 33 31 32 30 20 63 68 61 |E'\" \(1|3120 cha|
|00001520| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00001530| 2f 5e 58 2f 2f 22 20 3e | 27 52 45 41 44 4d 45 27 |/^X//" >|'README'|
|00001540| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|00001550| 0a 58 2a 2a 2a 20 44 6f | 63 75 6d 65 6e 74 61 74 |.X*** Do|cumentat|
|00001560| 69 6f 6e 20 66 6f 72 20 | 22 61 73 70 20 76 33 2e |ion for |"asp v3.|
|00001570| 32 2c 20 54 68 65 20 2e | 70 6c 61 6e 20 64 65 73 |2, The .|plan des|
|00001580| 63 72 69 70 74 69 6f 6e | 20 6c 61 6e 67 75 61 67 |cription| languag|
|00001590| 65 22 0a 58 28 63 29 20 | 41 6c 65 63 20 4d 75 66 |e".X(c) |Alec Muf|
|000015a0| 66 65 74 74 2c 20 53 65 | 70 74 65 6d 62 65 72 20 |fett, Se|ptember |
|000015b0| 31 39 39 31 0a 58 0a 58 | 41 73 20 64 65 74 61 69 |1991.X.X|As detai|
|000015c0| 6c 65 64 20 69 6e 20 74 | 68 65 20 64 65 6d 6f 6e |led in t|he demon|
|000015d0| 73 74 72 61 74 69 6f 6e | 20 70 72 6f 67 72 61 6d |stration| program|
|000015e0| 73 20 28 6a 75 73 74 20 | 74 79 70 65 20 27 6d 61 |s (just |type 'ma|
|000015f0| 6b 65 27 29 2c 20 74 68 | 69 73 20 69 73 0a 58 22 |ke'), th|is is.X"|
|00001600| 61 73 70 22 2c 20 41 6c | 65 63 27 73 20 53 63 72 |asp", Al|ec's Scr|
|00001610| 6f 6c 6c 69 6e 67 20 50 | 72 6f 67 72 61 6d 2c 20 |olling P|rogram, |
|00001620| 61 20 64 69 64 64 79 20 | 6c 69 74 74 6c 65 20 68 |a diddy |little h|
|00001630| 61 63 6b 20 49 20 70 75 | 74 20 74 6f 67 65 74 68 |ack I pu|t togeth|
|00001640| 65 72 20 74 6f 0a 58 66 | 69 6e 69 73 68 20 61 20 |er to.Xf|inish a |
|00001650| 77 61 72 20 6f 76 65 72 | 20 77 68 6f 20 63 6f 75 |war over| who cou|
|00001660| 6c 64 20 6d 61 6b 65 20 | 74 68 65 20 6c 6f 6e 67 |ld make |the long|
|00001670| 65 73 74 2c 20 62 65 73 | 74 2c 20 61 6e 64 20 70 |est, bes|t, and p|
|00001680| 72 65 74 74 69 65 73 74 | 0a 58 22 2e 70 6c 61 6e |rettiest|.X".plan|
|00001690| 22 20 66 69 6c 65 73 2c | 20 75 73 69 6e 67 20 6f |" files,| using o|
|000016a0| 6e 6c 79 20 74 68 65 20 | 70 72 69 6e 74 61 62 6c |nly the |printabl|
|000016b0| 65 20 61 73 63 69 69 20 | 63 68 61 72 61 63 74 65 |e ascii |characte|
|000016c0| 72 20 73 65 74 2e 0a 58 | 0a 58 41 73 70 20 69 73 |r set..X|.XAsp is|
|000016d0| 20 61 20 73 69 6d 70 6c | 69 73 74 69 63 20 64 65 | a simpl|istic de|
|000016e0| 73 63 72 69 70 74 69 6f | 6e 20 6c 61 6e 67 75 61 |scriptio|n langua|
|000016f0| 67 65 20 66 6f 72 20 63 | 61 72 72 69 61 67 65 2d |ge for c|arriage-|
|00001700| 72 65 74 75 72 6e 20 62 | 61 73 65 64 20 61 73 63 |return b|ased asc|
|00001710| 69 69 0a 58 61 6e 69 6d | 61 74 69 6f 6e 73 2c 20 |ii.Xanim|ations, |
|00001720| 61 73 20 63 6f 6d 6d 6f | 6e 6c 79 20 66 6f 75 6e |as commo|nly foun|
|00001730| 64 20 69 6e 20 22 2e 70 | 6c 61 6e 22 20 66 69 6c |d in ".p|lan" fil|
|00001740| 65 73 20 77 68 65 6e 20 | 79 6f 75 20 66 69 6e 67 |es when |you fing|
|00001750| 65 72 20 73 6f 6d 65 6f | 6e 65 2e 0a 58 49 74 20 |er someo|ne..XIt |
|00001760| 69 73 20 73 69 6d 70 6c | 65 20 74 6f 20 75 73 65 |is simpl|e to use|
|00001770| 2c 20 73 6f 20 6c 61 72 | 67 65 2c 20 73 6d 6f 6f |, so lar|ge, smoo|
|00001780| 74 68 2c 20 6e 65 61 74 | 20 61 6e 69 6d 61 74 69 |th, neat| animati|
|00001790| 6f 6e 73 20 63 61 6e 20 | 62 65 20 62 75 69 6c 74 |ons can |be built|
|000017a0| 0a 58 71 75 69 63 6b 6c | 79 20 61 6e 64 20 65 61 |.Xquickl|y and ea|
|000017b0| 73 69 6c 79 2c 20 61 6e | 64 20 77 69 74 68 20 61 |sily, an|d with a|
|000017c0| 20 6c 6f 74 20 6f 66 20 | 72 6f 6f 6d 20 66 6f 72 | lot of |room for|
|000017d0| 20 69 6d 61 67 69 6e 61 | 74 69 6f 6e 2e 0a 58 0a | imagina|tion..X.|
|000017e0| 58 54 68 65 20 6c 61 6e | 67 75 61 67 65 20 69 73 |XThe lan|guage is|
|000017f0| 20 63 72 75 64 65 2c 20 | 49 20 68 61 76 65 6e 27 | crude, |I haven'|
|00001800| 74 20 70 75 74 20 74 6f | 67 65 74 68 65 72 20 61 |t put to|gether a|
|00001810| 20 64 65 63 65 6e 74 20 | 6c 65 78 69 63 61 6c 20 | decent |lexical |
|00001820| 61 6e 61 6c 79 73 65 72 | 2c 0a 58 74 68 65 72 65 |analyser|,.Xthere|
|00001830| 20 69 73 20 6e 6f 20 72 | 65 61 6c 20 70 61 72 73 | is no r|eal pars|
|00001840| 65 72 20 61 73 20 73 75 | 63 68 2c 20 74 6f 20 77 |er as su|ch, to w|
|00001850| 68 69 74 2c 20 69 74 20 | 69 73 20 61 20 72 65 61 |hit, it |is a rea|
|00001860| 6c 69 6f 20 74 72 75 6c | 69 6f 20 68 61 63 6b 2c |lio trul|io hack,|
|00001870| 20 61 73 0a 58 73 74 61 | 74 65 64 20 62 65 66 6f | as.Xsta|ted befo|
|00001880| 72 65 2e 0a 58 0a 58 54 | 68 65 20 6c 61 6e 67 75 |re..X.XT|he langu|
|00001890| 61 67 65 20 64 69 76 69 | 64 65 73 20 72 6f 75 67 |age divi|des roug|
|000018a0| 68 6c 79 20 69 6e 74 6f | 20 74 68 72 65 65 20 73 |hly into| three s|
|000018b0| 65 63 74 69 6f 6e 73 3a | 20 62 6f 72 69 6e 67 20 |ections:| boring |
|000018c0| 65 66 66 65 63 74 73 2c | 0a 58 73 70 65 63 69 61 |effects,|.Xspecia|
|000018d0| 6c 20 65 66 66 65 63 74 | 73 2c 20 61 6e 64 20 64 |l effect|s, and d|
|000018e0| 69 72 65 63 74 69 76 65 | 73 2e 20 20 41 20 67 6f |irective|s. A go|
|000018f0| 6f 64 20 69 64 65 61 20 | 6f 66 20 68 6f 77 20 74 |od idea |of how t|
|00001900| 68 65 79 20 77 6f 72 6b | 20 63 61 6e 20 62 65 0a |hey work| can be.|
|00001910| 58 6f 62 74 61 69 6e 65 | 64 20 66 72 6f 6d 20 74 |Xobtaine|d from t|
|00001920| 68 65 20 64 65 6d 6f 20 | 66 69 6c 65 73 20 73 75 |he demo |files su|
|00001930| 70 70 6c 69 65 64 20 77 | 69 74 68 20 74 68 69 73 |pplied w|ith this|
|00001940| 20 64 69 73 74 72 69 62 | 75 74 69 6f 6e 2c 20 62 | distrib|ution, b|
|00001950| 75 74 20 68 65 72 65 27 | 73 0a 58 61 20 6c 69 74 |ut here'|s.Xa lit|
|00001960| 74 6c 65 20 70 72 69 6d | 65 72 20 61 6e 79 77 61 |tle prim|er anywa|
|00001970| 79 3a 2d 0a 58 0a 58 2a | 2a 2a 20 50 72 69 6d 65 |y:-.X.X*|** Prime|
|00001980| 72 0a 58 0a 58 41 73 70 | 20 77 6f 72 6b 73 20 62 |r.X.XAsp| works b|
|00001990| 79 20 72 65 61 64 69 6e | 67 20 61 20 22 61 73 70 |y readin|g a "asp|
|000019a0| 20 70 72 6f 67 72 61 6d | 22 20 77 68 69 63 68 20 | program|" which |
|000019b0| 69 73 20 66 75 6c 6c 20 | 6f 66 20 22 72 75 6c 65 |is full |of "rule|
|000019c0| 73 22 20 61 6e 64 0a 58 | 22 64 61 74 61 22 2e 20 |s" and.X|"data". |
|000019d0| 20 41 20 22 72 75 6c 65 | 22 20 6c 69 6e 65 20 69 | A "rule|" line i|
|000019e0| 73 20 6d 61 64 65 20 75 | 70 20 6f 66 20 61 20 73 |s made u|p of a s|
|000019f0| 65 72 69 65 73 20 6f 66 | 20 22 63 6f 6d 6d 61 6e |eries of| "comman|
|00001a00| 64 73 22 2c 20 61 6c 6c | 20 6f 66 0a 58 77 68 69 |ds", all| of.Xwhi|
|00001a10| 63 68 20 62 65 67 69 6e | 20 77 69 74 68 20 61 20 |ch begin| with a |
|00001a20| 22 2e 22 20 63 68 61 72 | 61 63 74 65 72 2e 20 20 |"." char|acter. |
|00001a30| 57 69 74 68 20 6d 65 20 | 73 6f 20 66 61 72 20 3f |With me |so far ?|
|00001a40| 0a 58 0a 58 53 6f 2c 20 | 66 6f 72 20 65 78 61 6d |.X.XSo, |for exam|
|00001a50| 70 6c 65 2c 20 61 20 22 | 72 75 6c 65 22 20 6c 69 |ple, a "|rule" li|
|00001a60| 6e 65 20 6d 69 67 68 74 | 20 6c 6f 6f 6b 20 6c 69 |ne might| look li|
|00001a70| 6b 65 3a 2d 0a 58 0a 58 | 2e 63 6c 65 61 72 20 2e |ke:-.X.X|.clear .|
|00001a80| 70 20 2e 70 20 2e 73 68 | 6f 77 20 2e 70 20 2e 70 |p .p .sh|ow .p .p|
|00001a90| 0a 58 0a 58 53 69 6e 63 | 65 20 74 68 65 20 63 6f |.X.XSinc|e the co|
|00001aa0| 6d 6d 61 6e 64 73 20 61 | 6c 6c 20 62 65 67 69 6e |mmands a|ll begin|
|00001ab0| 20 77 69 74 68 20 61 20 | 64 6f 74 2c 20 74 68 65 | with a |dot, the|
|00001ac0| 20 72 75 6c 65 20 6c 69 | 6e 65 20 62 65 67 69 6e | rule li|ne begin|
|00001ad0| 73 20 77 69 74 68 20 61 | 20 64 6f 74 0a 58 61 6c |s with a| dot.Xal|
|00001ae0| 73 6f 2e 20 20 41 6e 79 | 20 6c 69 6e 65 20 77 68 |so. Any| line wh|
|00001af0| 69 63 68 20 62 65 67 69 | 6e 73 20 77 69 74 68 20 |ich begi|ns with |
|00001b00| 61 20 64 6f 74 20 69 6e | 20 61 6e 20 61 73 70 20 |a dot in| an asp |
|00001b10| 70 72 6f 67 72 61 6d 20 | 69 73 20 61 73 73 75 6d |program |is assum|
|00001b20| 65 64 20 74 6f 0a 58 62 | 65 20 61 20 22 72 75 6c |ed to.Xb|e a "rul|
|00001b30| 65 22 20 6c 69 6e 65 2e | 20 20 49 66 20 61 20 72 |e" line.| If a r|
|00001b40| 75 6c 65 20 6c 69 6e 65 | 20 69 73 20 74 6f 6f 20 |ule line| is too |
|00001b50| 6c 6f 6e 67 20 66 6f 72 | 20 63 6f 6e 76 65 6e 69 |long for| conveni|
|00001b60| 65 6e 63 65 27 73 20 73 | 61 6b 65 2c 20 69 74 0a |ence's s|ake, it.|
|00001b70| 58 6d 61 79 20 62 65 20 | 62 72 6f 6b 65 6e 20 77 |Xmay be |broken w|
|00001b80| 69 74 68 20 61 20 62 61 | 63 6b 73 6c 61 73 68 20 |ith a ba|ckslash |
|00001b90| 61 74 20 74 68 65 20 65 | 6e 64 20 6f 66 20 74 68 |at the e|nd of th|
|00001ba0| 65 20 6c 69 6e 65 2c 20 | 69 6e 20 74 68 65 20 73 |e line, |in the s|
|00001bb0| 61 6d 65 20 77 61 79 0a | 58 61 73 20 69 6e 20 43 |ame way.|Xas in C|
|00001bc0| 20 61 6e 64 20 73 68 65 | 6c 6c 20 73 63 72 69 70 | and she|ll scrip|
|00001bd0| 74 73 2c 20 65 67 3a 0a | 58 0a 58 2e 73 70 65 65 |ts, eg:.|X.X.spee|
|00001be0| 64 20 32 20 5c 0a 58 2e | 6f 62 6a 65 63 74 20 68 |d 2 \.X.|object h|
|00001bf0| 69 73 20 2d 33 30 20 34 | 30 20 5c 0a 58 2e 6f 62 |is -30 4|0 \.X.ob|
|00001c00| 6a 65 63 74 20 64 72 65 | 61 6d 73 2c 20 2d 35 30 |ject dre|ams, -50|
|00001c10| 20 34 34 20 5c 0a 58 2e | 6f 62 6a 65 63 74 20 63 | 44 \.X.|object c|
|00001c20| 6f 6d 70 75 74 65 72 20 | 2d 31 35 20 32 32 20 5c |omputer |-15 22 \|
|00001c30| 0a 58 2e 6f 62 6a 65 63 | 74 20 68 65 20 2d 32 20 |.X.objec|t he -2 |
|00001c40| 35 38 20 5c 0a 58 2e 6f | 62 6a 65 63 74 20 3f 20 |58 \.X.o|bject ? |
|00001c50| 2d 32 35 30 20 36 31 20 | 5c 0a 58 2e 6f 62 6a 65 |-250 61 |\.X.obje|
|00001c60| 63 74 20 63 61 6e 20 38 | 39 20 33 31 20 5c 0a 58 |ct can 8|9 31 \.X|
|00001c70| 2e 6f 62 6a 65 63 74 20 | 68 61 76 65 20 31 30 30 |.object |have 100|
|00001c80| 20 33 35 20 5c 0a 58 2e | 6f 62 6a 65 63 74 20 63 | 35 \.X.|object c|
|00001c90| 61 6e 20 31 31 31 20 35 | 32 20 5c 0a 58 2e 6f 62 |an 111 5|2 \.X.ob|
|00001ca0| 6a 65 63 74 20 41 20 31 | 35 30 20 32 30 20 5c 0a |ject A 1|50 20 \.|
|00001cb0| 58 2e 6f 62 6a 65 63 74 | 20 27 74 20 32 30 30 20 |X.object| 't 200 |
|00001cc0| 35 35 20 5c 0a 58 2e 61 | 6e 69 6d 20 2e 72 65 73 |55 \.X.a|nim .res|
|00001cd0| 65 74 61 6e 69 6d 20 2e | 70 20 2e 70 20 2e 70 20 |etanim .|p .p .p |
|00001ce0| 2e 6e 6c 0a 58 0a 58 2d | 20 69 73 20 61 20 73 69 |.nl.X.X-| is a si|
|00001cf0| 6e 67 6c 65 20 72 75 6c | 65 20 6c 69 6e 65 2e 20 |ngle rul|e line. |
|00001d00| 20 57 68 65 6e 20 61 20 | 76 61 6c 69 64 20 72 75 | When a |valid ru|
|00001d10| 6c 65 20 6c 69 6e 65 20 | 69 73 20 65 6e 63 6f 75 |le line |is encou|
|00001d20| 6e 74 65 72 65 64 2c 20 | 69 74 20 69 73 0a 58 73 |ntered, |it is.Xs|
|00001d30| 74 6f 72 65 64 20 69 6e | 20 6d 65 6d 6f 72 79 20 |tored in| memory |
|00001d40| 61 6e 64 20 62 65 63 6f | 6d 65 73 20 74 68 65 20 |and beco|mes the |
|00001d50| 22 63 75 72 72 65 6e 74 | 20 72 75 6c 65 22 2e 0a |"current| rule"..|
|00001d60| 58 0a 58 4e 65 78 74 2c | 20 44 61 74 61 20 6c 69 |X.XNext,| Data li|
|00001d70| 6e 65 73 2e 20 20 41 6e | 79 20 6e 6f 6e 2d 62 6c |nes. An|y non-bl|
|00001d80| 61 6e 6b 20 6c 69 6e 65 | 20 77 68 69 63 68 20 69 |ank line| which i|
|00001d90| 73 20 6e 6f 74 20 61 20 | 72 75 6c 65 20 6c 69 6e |s not a |rule lin|
|00001da0| 65 2c 20 69 73 20 61 0a | 58 22 64 61 74 61 20 6c |e, is a.|X"data l|
|00001db0| 69 6e 65 22 2e 20 20 57 | 68 65 6e 20 61 20 64 61 |ine". W|hen a da|
|00001dc0| 74 61 20 6c 69 6e 65 20 | 69 73 20 65 6e 63 6f 75 |ta line |is encou|
|00001dd0| 6e 74 65 72 65 64 2c 20 | 61 73 70 20 61 70 70 6c |ntered, |asp appl|
|00001de0| 69 65 73 20 61 6c 6c 20 | 74 68 65 0a 58 63 6f 6d |ies all |the.Xcom|
|00001df0| 6d 61 6e 64 73 20 73 70 | 65 63 69 66 69 65 64 20 |mands sp|ecified |
|00001e00| 69 6e 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 72 |in the c|urrent r|
|00001e10| 75 6c 65 20 74 6f 20 74 | 68 65 20 64 61 74 61 20 |ule to t|he data |
|00001e20| 6c 69 6e 65 2c 20 61 6e | 64 20 74 68 65 6e 20 6d |line, an|d then m|
|00001e30| 6f 76 65 73 0a 58 6f 6e | 74 6f 20 74 68 65 20 6e |oves.Xon|to the n|
|00001e40| 65 78 74 20 64 61 74 61 | 20 6c 69 6e 65 2e 20 65 |ext data| line. e|
|00001e50| 67 3a 0a 58 0a 58 2e 73 | 68 6f 77 20 2e 6e 6c 0a |g:.X.X.s|how .nl.|
|00001e60| 58 48 65 6c 6c 6f 20 57 | 6f 72 6c 64 21 0a 58 0a |XHello W|orld!.X.|
|00001e70| 58 57 69 6c 6c 20 70 72 | 69 6e 74 20 74 68 65 20 |XWill pr|int the |
|00001e80| 6c 69 6e 65 20 22 48 65 | 6c 6c 6f 20 57 6f 72 6c |line "He|llo Worl|
|00001e90| 64 21 22 20 28 2e 73 68 | 6f 77 29 2c 20 61 6e 64 |d!" (.sh|ow), and|
|00001ea0| 20 74 68 72 6f 77 20 61 | 20 6c 69 6e 65 66 65 65 | throw a| linefee|
|00001eb0| 64 20 28 2e 6e 6c 29 2e | 0a 58 0a 58 42 6c 61 6e |d (.nl).|.X.XBlan|
|00001ec0| 6b 20 6c 69 6e 65 73 20 | 69 6e 20 61 6e 20 61 73 |k lines |in an as|
|00001ed0| 70 20 70 72 6f 67 72 61 | 6d 20 61 72 65 20 69 67 |p progra|m are ig|
|00001ee0| 6e 6f 72 65 64 2c 20 61 | 6e 64 20 73 6f 2c 20 6f |nored, a|nd so, o|
|00001ef0| 6e 20 6f 63 63 61 73 69 | 6f 6e 73 2c 20 64 75 6d |n occasi|ons, dum|
|00001f00| 6d 79 0a 58 64 61 74 61 | 20 6c 69 6e 65 73 20 6d |my.Xdata| lines m|
|00001f10| 75 73 74 20 62 65 20 73 | 75 70 70 6c 69 65 64 20 |ust be s|upplied |
|00001f20| 74 6f 20 61 73 70 20 69 | 6e 20 6f 72 64 65 72 20 |to asp i|n order |
|00001f30| 74 6f 20 67 65 74 20 61 | 20 72 75 6c 65 20 74 6f |to get a| rule to|
|00001f40| 20 64 6f 0a 58 61 6e 79 | 74 68 69 6e 67 2e 20 20 | do.Xany|thing. |
|00001f50| 54 68 65 20 74 72 61 64 | 69 74 69 6f 6e 61 6c 20 |The trad|itional |
|00001f60| 64 75 6d 6d 79 20 6c 69 | 6e 65 20 63 6f 6e 73 69 |dummy li|ne consi|
|00001f70| 73 74 73 20 6f 66 20 74 | 77 6f 20 68 79 70 68 65 |sts of t|wo hyphe|
|00001f80| 6e 73 20 6f 6e 20 61 20 | 6c 69 6e 65 0a 58 6f 66 |ns on a |line.Xof|
|00001f90| 20 74 68 65 69 72 20 6f | 77 6e 2c 20 65 67 3a 0a | their o|wn, eg:.|
|00001fa0| 58 0a 58 2e 70 20 2e 70 | 20 2e 70 0a 58 2d 2d 0a |X.X.p .p| .p.X--.|
|00001fb0| 58 0a 58 49 6e 76 6f 6b | 65 73 20 74 68 65 20 50 |X.XInvok|es the P|
|00001fc0| 61 75 73 65 20 66 75 6e | 63 74 69 6f 6e 20 28 2e |ause fun|ction (.|
|00001fd0| 70 29 20 74 68 72 65 65 | 20 74 69 6d 65 73 2e 20 |p) three| times. |
|00001fe0| 20 49 66 20 74 68 65 72 | 65 20 77 65 72 65 20 6e | If ther|e were n|
|00001ff0| 6f 20 64 75 6d 6d 79 0a | 58 6c 69 6e 65 20 62 65 |o dummy.|Xline be|
|00002000| 66 6f 72 65 20 74 68 65 | 20 6e 65 78 74 20 72 75 |fore the| next ru|
|00002010| 6c 65 20 77 61 73 20 73 | 70 65 63 69 66 69 65 64 |le was s|pecified|
|00002020| 2c 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 77 6f |, the co|mmand wo|
|00002030| 75 6c 64 20 62 65 20 69 | 67 6e 6f 72 65 64 2e 0a |uld be i|gnored..|
|00002040| 58 4e 6f 74 65 20 74 68 | 61 74 20 74 68 65 20 50 |XNote th|at the P|
|00002050| 61 75 73 65 20 66 75 6e | 63 74 69 6f 6e 20 64 6f |ause fun|ction do|
|00002060| 65 73 20 6e 6f 74 20 70 | 72 69 6e 74 20 61 6e 79 |es not p|rint any|
|00002070| 74 68 69 6e 67 20 6f 6e | 20 74 68 65 20 73 74 61 |thing on| the sta|
|00002080| 6e 64 61 72 64 0a 58 6f | 75 74 70 75 74 2c 20 73 |ndard.Xo|utput, s|
|00002090| 6f 20 74 68 65 20 61 70 | 70 65 61 72 61 6e 63 65 |o the ap|pearance|
|000020a0| 20 6f 66 20 74 68 65 20 | 6c 69 6e 65 20 69 73 20 | of the |line is |
|000020b0| 6e 6f 74 20 63 68 61 6e | 67 65 64 2e 0a 58 0a 58 |not chan|ged..X.X|
|000020c0| 53 69 6d 69 6c 61 72 6c | 79 2c 20 74 68 65 20 63 |Similarl|y, the c|
|000020d0| 6f 6d 6d 61 6e 64 3a 0a | 58 0a 58 2e 70 20 2e 70 |ommand:.|X.X.p .p|
|000020e0| 20 2e 70 0a 58 2d 2d 0a | 58 2d 2d 0a 58 2d 2d 0a | .p.X--.|X--.X--.|
|000020f0| 58 0a 58 49 6e 76 6f 6b | 65 73 20 50 61 75 73 65 |X.XInvok|es Pause|
|00002100| 20 6e 69 6e 65 20 74 69 | 6d 65 73 2c 20 74 68 72 | nine ti|mes, thr|
|00002110| 65 65 20 74 69 6d 65 73 | 20 66 6f 72 20 65 61 63 |ee times| for eac|
|00002120| 68 20 64 75 6d 6d 79 20 | 6c 69 6e 65 2e 0a 58 0a |h dummy |line..X.|
|00002130| 58 4e 65 78 74 2c 20 61 | 73 70 20 69 6e 74 65 72 |XNext, a|sp inter|
|00002140| 6e 61 6c 73 2e 20 20 41 | 73 70 20 70 69 6e 63 68 |nals. A|sp pinch|
|00002150| 65 73 20 61 6e 20 69 64 | 65 61 20 66 72 6f 6d 20 |es an id|ea from |
|00002160| 74 68 65 20 63 75 72 73 | 65 73 20 6c 69 62 72 61 |the curs|es libra|
|00002170| 72 79 2c 20 69 6e 0a 58 | 74 68 61 74 20 69 74 20 |ry, in.X|that it |
|00002180| 73 74 6f 72 65 73 20 61 | 20 63 6f 70 79 20 6f 66 |stores a| copy of|
|00002190| 20 77 68 61 74 20 74 68 | 65 20 63 75 72 72 65 6e | what th|e curren|
|000021a0| 74 20 6f 75 74 70 75 74 | 20 6c 69 6e 65 20 6c 6f |t output| line lo|
|000021b0| 6f 6b 73 20 6c 69 6b 65 | 2c 20 61 6e 64 0a 58 74 |oks like|, and.Xt|
|000021c0| 68 65 6e 20 70 72 69 6e | 74 73 20 6f 6e 6c 79 20 |hen prin|ts only |
|000021d0| 74 68 65 20 64 69 66 66 | 65 72 65 6e 63 65 73 20 |the diff|erences |
|000021e0| 62 65 74 77 65 65 6e 20 | 74 68 65 20 63 75 72 72 |between |the curr|
|000021f0| 65 6e 74 20 6c 69 6e 65 | 20 61 6e 64 20 77 68 61 |ent line| and wha|
|00002200| 74 20 79 6f 75 0a 58 77 | 61 6e 74 20 69 74 20 74 |t you.Xw|ant it t|
|00002210| 6f 20 6c 6f 6f 6b 20 6c | 69 6b 65 2e 20 20 54 68 |o look l|ike. Th|
|00002220| 69 73 20 22 6f 70 74 69 | 6d 69 73 65 64 20 72 65 |is "opti|mised re|
|00002230| 66 72 65 73 68 22 20 69 | 6d 70 72 6f 76 65 73 20 |fresh" i|mproves |
|00002240| 6f 6e 20 68 6f 77 20 61 | 6e 20 61 73 70 0a 58 70 |on how a|n asp.Xp|
|00002250| 72 6f 67 72 61 6d 20 6c | 6f 6f 6b 73 20 77 68 65 |rogram l|ooks whe|
|00002260| 6e 20 79 6f 75 20 76 69 | 65 77 20 69 74 2c 20 61 |n you vi|ew it, a|
|00002270| 6e 64 20 61 6c 73 6f 20 | 6f 6e 20 74 68 65 20 73 |nd also |on the s|
|00002280| 69 7a 65 20 6f 66 20 74 | 68 65 20 6f 75 74 70 75 |ize of t|he outpu|
|00002290| 74 20 66 69 6c 65 0a 58 | 61 73 70 20 67 65 6e 65 |t file.X|asp gene|
|000022a0| 72 61 74 65 73 20 63 6f | 6d 70 61 72 65 64 20 74 |rates co|mpared t|
|000022b0| 6f 20 6f 74 68 65 72 20 | 73 63 72 6f 6c 6c 69 6e |o other |scrollin|
|000022c0| 67 20 70 72 6f 67 72 61 | 6d 73 2e 0a 58 0a 58 59 |g progra|ms..X.XY|
|000022d0| 6f 75 20 73 68 6f 75 6c | 64 20 61 6c 73 6f 20 6e |ou shoul|d also n|
|000022e0| 6f 74 65 20 74 68 61 74 | 20 61 73 70 20 64 6f 65 |ote that| asp doe|
|000022f0| 73 20 6e 6f 74 20 62 65 | 67 69 6e 20 70 72 6f 63 |s not be|gin proc|
|00002300| 65 73 73 69 6e 67 20 6f | 66 20 61 20 70 72 6f 67 |essing o|f a prog|
|00002310| 72 61 6d 0a 58 75 6e 74 | 69 6c 20 69 74 20 65 6e |ram.Xunt|il it en|
|00002320| 63 6f 75 6e 74 65 72 73 | 20 74 68 65 20 66 69 72 |counters| the fir|
|00002330| 73 74 20 22 72 75 6c 65 | 20 6c 69 6e 65 22 2e 20 |st "rule| line". |
|00002340| 20 55 70 20 74 6f 20 74 | 68 61 74 20 70 6f 69 6e | Up to t|hat poin|
|00002350| 74 20 69 74 20 62 65 68 | 61 76 65 73 0a 58 69 6e |t it beh|aves.Xin|
|00002360| 20 74 68 65 20 73 61 6d | 65 20 77 61 79 20 61 73 | the sam|e way as|
|00002370| 20 74 68 65 20 27 63 61 | 74 27 20 70 72 6f 67 72 | the 'ca|t' progr|
|00002380| 61 6d 2c 20 63 6f 70 79 | 69 6e 67 20 74 68 65 20 |am, copy|ing the |
|00002390| 70 72 6f 67 72 61 6d 20 | 74 6f 20 73 74 64 6f 75 |program |to stdou|
|000023a0| 74 2e 0a 58 54 68 69 73 | 20 61 6c 6c 6f 77 73 20 |t..XThis| allows |
|000023b0| 79 6f 75 20 74 6f 20 65 | 6d 62 65 64 20 61 20 6c |you to e|mbed a l|
|000023c0| 6f 74 20 6f 66 20 70 6c | 61 69 6e 20 74 65 78 74 |ot of pl|ain text|
|000023d0| 20 69 6e 20 79 6f 75 72 | 20 70 72 6f 67 72 61 6d | in your| program|
|000023e0| 20 62 65 66 6f 72 65 20 | 79 6f 75 0a 58 73 74 61 | before |you.Xsta|
|000023f0| 72 74 20 73 63 72 6f 6c | 6c 69 6e 67 20 74 68 69 |rt scrol|ling thi|
|00002400| 6e 67 73 20 61 62 6f 75 | 74 2e 0a 58 0a 58 2a 2a |ngs abou|t..X.X**|
|00002410| 2a 20 55 6e 64 65 72 63 | 6f 61 74 0a 58 0a 58 54 |* Underc|oat.X.XT|
|00002420| 68 65 20 61 62 6f 76 65 | 20 67 69 76 65 73 20 61 |he above| gives a|
|00002430| 20 66 61 69 72 6c 79 20 | 73 69 6d 70 6c 65 20 69 | fairly |simple i|
|00002440| 6e 74 72 6f 64 75 63 74 | 69 6f 6e 20 74 6f 20 68 |ntroduct|ion to h|
|00002450| 6f 77 20 61 73 70 20 77 | 6f 72 6b 73 2e 20 4e 6f |ow asp w|orks. No|
|00002460| 77 20 66 6f 72 20 61 0a | 58 64 65 73 63 72 69 70 |w for a.|Xdescrip|
|00002470| 74 69 6f 6e 20 6f 66 20 | 63 6f 6d 6d 61 6e 64 73 |tion of |commands|
|00002480| 20 69 6e 20 64 65 74 61 | 69 6c 2e 0a 58 0a 58 54 | in deta|il..X.XT|
|00002490| 68 65 20 61 73 70 20 63 | 6f 6d 6d 61 6e 64 73 20 |he asp c|ommands |
|000024a0| 62 72 65 61 6b 20 64 6f | 77 6e 20 69 6e 74 6f 20 |break do|wn into |
|000024b0| 74 68 72 65 65 20 72 6f | 75 67 68 20 74 79 70 65 |three ro|ugh type|
|000024c0| 73 3a 20 42 6f 72 69 6e | 67 20 65 66 66 65 63 74 |s: Borin|g effect|
|000024d0| 73 2c 0a 58 53 70 65 63 | 69 61 6c 20 65 66 66 65 |s,.XSpec|ial effe|
|000024e0| 63 74 73 2c 20 61 6e 64 | 20 44 69 72 65 63 74 69 |cts, and| Directi|
|000024f0| 76 65 73 2e 20 20 53 6f | 6d 65 20 6f 66 20 74 68 |ves. So|me of th|
|00002500| 65 73 65 20 74 61 6b 65 | 20 61 72 67 75 6d 65 6e |ese take| argumen|
|00002510| 74 73 2c 20 77 68 69 63 | 68 0a 58 61 72 65 20 65 |ts, whic|h.Xare e|
|00002520| 69 74 68 65 72 20 56 41 | 4c 55 45 53 2c 20 42 4f |ither VA|LUES, BO|
|00002530| 4f 4c 45 41 4e 53 2c 20 | 6f 72 20 53 54 52 49 4e |OLEANS, |or STRIN|
|00002540| 47 53 2e 0a 58 0a 58 56 | 61 6c 75 65 73 20 61 72 |GS..X.XV|alues ar|
|00002550| 65 20 62 61 73 69 63 61 | 6c 6c 79 20 61 6e 79 20 |e basica|lly any |
|00002560| 69 6e 74 65 67 65 72 20 | 71 75 61 6e 74 69 74 79 |integer |quantity|
|00002570| 2c 20 70 6f 73 69 74 69 | 76 65 20 6f 72 20 6e 65 |, positi|ve or ne|
|00002580| 67 61 74 69 76 65 2e 0a | 58 0a 58 42 6f 6f 6c 65 |gative..|X.XBoole|
|00002590| 61 6e 73 20 61 72 65 20 | 74 68 65 20 73 61 6d 65 |ans are |the same|
|000025a0| 20 61 73 20 76 61 6c 75 | 65 73 2c 20 77 68 65 72 | as valu|es, wher|
|000025b0| 65 20 30 3d 46 41 4c 53 | 45 20 61 6e 64 20 4e 6f |e 0=FALS|E and No|
|000025c0| 6e 2d 30 3d 54 52 55 45 | 2e 0a 58 0a 58 53 74 72 |n-0=TRUE|..X.XStr|
|000025d0| 69 6e 67 73 20 61 72 65 | 20 63 6f 6e 74 69 6e 75 |ings are| continu|
|000025e0| 6f 75 73 20 73 65 74 73 | 20 6f 66 20 63 68 61 72 |ous sets| of char|
|000025f0| 61 63 74 65 72 73 20 77 | 68 69 63 68 20 64 6f 20 |acters w|hich do |
|00002600| 6e 6f 74 20 63 6f 6e 74 | 61 69 6e 0a 58 77 68 69 |not cont|ain.Xwhi|
|00002610| 74 65 73 70 61 63 65 20 | 28 49 20 68 61 76 65 6e |tespace |(I haven|
|00002620| 27 74 20 62 6f 74 68 65 | 72 65 64 20 69 6e 20 70 |'t bothe|red in p|
|00002630| 75 74 74 69 6e 67 20 61 | 6e 20 65 73 63 61 70 69 |utting a|n escapi|
|00002640| 6e 67 20 6d 65 63 68 61 | 6e 69 73 6d 20 66 6f 72 |ng mecha|nism for|
|00002650| 0a 58 73 70 61 63 65 73 | 20 79 65 74 2e 29 0a 58 |.Xspaces| yet.).X|
|00002660| 0a 58 54 68 65 72 65 20 | 6d 61 79 20 62 65 20 61 |.XThere |may be a|
|00002670| 20 70 72 6f 62 6c 65 6d | 20 69 66 20 79 6f 75 20 | problem| if you |
|00002680| 73 70 65 63 69 66 79 20 | 61 20 73 74 72 69 6e 67 |specify |a string|
|00002690| 20 61 73 20 61 6e 20 61 | 72 67 75 6d 65 6e 74 20 | as an a|rgument |
|000026a0| 74 6f 20 61 0a 58 63 6f | 6d 6d 61 6e 64 2c 20 61 |to a.Xco|mmand, a|
|000026b0| 6e 64 20 74 68 65 20 73 | 74 72 69 6e 67 20 68 61 |nd the s|tring ha|
|000026c0| 70 70 65 6e 73 20 74 6f | 20 62 65 67 69 6e 20 77 |ppens to| begin w|
|000026d0| 69 74 68 20 61 20 64 6f | 74 20 2d 20 61 73 70 20 |ith a do|t - asp |
|000026e0| 77 69 6c 6c 2c 20 61 74 | 20 73 6f 6d 65 0a 58 70 |will, at| some.Xp|
|000026f0| 6f 69 6e 74 2c 20 74 72 | 79 20 74 6f 20 74 72 65 |oint, tr|y to tre|
|00002700| 61 74 20 69 74 20 61 73 | 20 61 20 63 6f 6d 6d 61 |at it as| a comma|
|00002710| 6e 64 2e 20 20 44 6f 6e | 27 74 20 77 6f 72 72 79 |nd. Don|'t worry|
|00002720| 20 61 62 6f 75 74 20 74 | 68 69 73 2c 20 69 74 20 | about t|his, it |
|00002730| 77 69 6c 6c 0a 58 70 72 | 6f 62 61 62 6c 79 20 77 |will.Xpr|obably w|
|00002740| 6f 72 6b 20 6f 75 74 20 | 6f 6b 61 79 2c 20 61 6e |ork out |okay, an|
|00002750| 64 20 49 27 6c 6c 20 66 | 69 78 20 69 74 20 69 6e |d I'll f|ix it in|
|00002760| 20 64 75 65 20 63 6f 75 | 72 73 65 2e 0a 58 0a 58 | due cou|rse..X.X|
|00002770| 46 69 6e 61 6c 6c 79 2c | 20 70 6c 65 61 73 65 20 |Finally,| please |
|00002780| 6e 6f 74 65 20 74 68 61 | 74 20 61 73 70 20 75 73 |note tha|t asp us|
|00002790| 65 73 20 6f 6e 6c 79 20 | 63 6f 6c 75 6d 6e 73 20 |es only |columns |
|000027a0| 30 2d 3e 37 38 20 6f 66 | 20 74 68 65 20 73 63 72 |0->78 of| the scr|
|000027b0| 65 65 6e 2c 0a 58 62 65 | 63 61 75 73 65 20 73 6f |een,.Xbe|cause so|
|000027c0| 6d 65 20 74 65 72 6d 69 | 6e 61 6c 73 20 77 69 6c |me termi|nals wil|
|000027d0| 6c 20 77 72 61 70 20 69 | 6d 6d 65 64 69 61 74 65 |l wrap i|mmediate|
|000027e0| 6c 79 20 79 6f 75 20 77 | 72 69 74 65 20 61 20 63 |ly you w|rite a c|
|000027f0| 68 61 72 61 63 74 65 72 | 20 69 6e 74 6f 0a 58 63 |haracter| into.Xc|
|00002800| 6f 6c 75 6d 6e 20 37 39 | 2c 20 61 6e 64 20 74 68 |olumn 79|, and th|
|00002810| 69 73 20 73 70 6f 69 6c | 73 20 74 68 65 20 66 75 |is spoil|s the fu|
|00002820| 6e 2e 2e 2e 0a 58 0a 58 | 49 4d 50 4f 52 54 41 4e |n....X.X|IMPORTAN|
|00002830| 54 3a 20 41 73 70 20 64 | 6f 65 73 20 6e 6f 74 20 |T: Asp d|oes not |
|00002840| 65 78 70 61 6e 64 20 54 | 41 42 73 20 69 6e 20 61 |expand T|ABs in a|
|00002850| 73 70 20 70 72 6f 67 72 | 61 6d 73 2e 20 20 52 75 |sp progr|ams. Ru|
|00002860| 6e 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 0a 58 |n your p|rogram.X|
|00002870| 74 68 72 6f 75 67 68 20 | 22 65 78 70 61 6e 64 22 |through |"expand"|
|00002880| 20 62 65 66 6f 72 65 20 | 66 65 65 64 69 6e 67 20 | before |feeding |
|00002890| 69 74 20 69 6e 74 6f 20 | 22 61 73 70 22 2e 0a 58 |it into |"asp"..X|
|000028a0| 0a 58 2a 2a 2a 20 54 6f | 70 63 6f 61 74 0a 58 0a |.X*** To|pcoat.X.|
|000028b0| 58 48 65 72 65 20 69 73 | 20 61 20 6c 69 73 74 20 |XHere is| a list |
|000028c0| 6f 66 20 61 73 70 20 64 | 69 72 65 63 74 69 76 65 |of asp d|irective|
|000028d0| 73 20 61 6e 64 20 65 66 | 66 65 63 74 73 2c 20 74 |s and ef|fects, t|
|000028e0| 68 65 69 72 20 66 75 6e | 63 74 69 6f 6e 20 61 6e |heir fun|ction an|
|000028f0| 64 20 61 72 67 75 6d 65 | 6e 74 73 3a 0a 58 0a 58 |d argume|nts:.X.X|
|00002900| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002910| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00002920| 58 44 49 52 45 43 54 49 | 56 45 53 20 41 4e 44 20 |XDIRECTI|VES AND |
|00002930| 42 4f 52 49 4e 47 20 45 | 46 46 45 43 54 53 3a 2d |BORING E|FFECTS:-|
|00002940| 0a 58 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.X------|--------|
|00002950| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002960| 2d 0a 58 09 2e 63 6c 65 | 61 72 0a 58 0a 58 57 69 |-.X..cle|ar.X.XWi|
|00002970| 70 65 73 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |pes the |current |
|00002980| 6c 69 6e 65 20 63 6c 65 | 61 72 20 61 6e 64 20 72 |line cle|ar and r|
|00002990| 65 66 72 65 73 68 65 73 | 20 69 74 2c 20 73 6f 20 |efreshes| it, so |
|000029a0| 61 73 20 74 6f 20 70 75 | 74 20 61 20 62 6c 61 6e |as to pu|t a blan|
|000029b0| 6b 20 6c 69 6e 65 0a 58 | 6f 6e 20 73 63 72 65 65 |k line.X|on scree|
|000029c0| 6e 2e 0a 58 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |n..X----|--------|
|000029d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000029e0| 2d 2d 2d 0a 58 09 2e 77 | 69 70 65 0a 58 0a 58 57 |---.X..w|ipe.X.XW|
|000029f0| 69 70 65 73 20 74 68 65 | 20 63 75 72 72 65 6e 74 |ipes the| current|
|00002a00| 20 6c 69 6e 65 20 63 6c | 65 61 72 20 77 69 74 68 | line cl|ear with|
|00002a10| 6f 75 74 20 72 65 66 72 | 65 73 68 69 6e 67 20 69 |out refr|eshing i|
|00002a20| 74 2c 20 73 6f 20 74 68 | 61 74 20 74 68 65 20 6e |t, so th|at the n|
|00002a30| 65 78 74 0a 58 63 6f 6d | 6d 61 6e 64 20 64 6f 65 |ext.Xcom|mand doe|
|00002a40| 73 20 6e 6f 74 20 68 61 | 76 65 20 74 6f 20 77 6f |s not ha|ve to wo|
|00002a50| 72 72 79 20 61 62 6f 75 | 74 20 74 68 65 20 6d 65 |rry abou|t the me|
|00002a60| 73 73 20 6c 65 66 74 20 | 62 79 20 70 72 65 76 69 |ss left |by previ|
|00002a70| 6f 75 73 20 6c 69 6e 65 | 73 2e 0a 58 0a 58 54 68 |ous line|s..X.XTh|
|00002a80| 69 73 20 63 6f 6d 6d 61 | 6e 64 20 69 73 20 70 72 |is comma|nd is pr|
|00002a90| 6f 62 61 62 6c 79 20 62 | 65 73 74 20 74 61 67 67 |obably b|est tagg|
|00002aa0| 65 64 20 6f 6e 74 6f 20 | 74 68 65 20 62 65 67 69 |ed onto |the begi|
|00002ab0| 6e 6e 69 6e 67 20 6f 66 | 20 65 76 65 72 79 20 72 |nning of| every r|
|00002ac0| 75 6c 65 0a 58 77 68 65 | 72 65 20 79 6f 75 20 64 |ule.Xwhe|re you d|
|00002ad0| 6f 20 6e 6f 74 20 77 61 | 6e 74 20 74 6f 20 68 61 |o not wa|nt to ha|
|00002ae0| 76 65 20 74 6f 20 73 70 | 65 63 69 66 69 63 61 6c |ve to sp|ecifical|
|00002af0| 6c 79 20 6f 76 65 72 73 | 74 72 69 6b 65 20 61 6e |ly overs|trike an|
|00002b00| 79 74 68 69 6e 67 20 74 | 68 61 74 0a 58 77 61 73 |ything t|hat.Xwas|
|00002b10| 20 6c 65 66 74 20 62 79 | 20 74 68 65 20 70 72 65 | left by| the pre|
|00002b20| 76 69 6f 75 73 20 72 75 | 6c 65 20 26 20 64 61 74 |vious ru|le & dat|
|00002b30| 61 2e 0a 58 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |a..X----|--------|
|00002b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002b50| 2d 2d 2d 0a 58 09 2e 6e | 6c 0a 58 0a 58 54 68 72 |---.X..n|l.X.XThr|
|00002b60| 6f 77 73 20 61 20 6e 65 | 77 6c 69 6e 65 2e 20 20 |ows a ne|wline. |
|00002b70| 50 6c 65 61 73 65 20 6e | 6f 74 65 20 74 68 61 74 |Please n|ote that|
|00002b80| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 61 63 74 | the def|ault act|
|00002b90| 69 6f 6e 20 6f 66 20 61 | 73 70 20 6f 6e 63 65 20 |ion of a|sp once |
|00002ba0| 69 74 0a 58 68 61 73 20 | 61 63 71 75 69 72 65 64 |it.Xhas |acquired|
|00002bb0| 20 61 20 72 75 6c 65 20 | 69 74 20 74 6f 20 70 72 | a rule |it to pr|
|00002bc0| 69 6e 74 20 45 56 45 52 | 59 54 48 49 4e 47 20 77 |int EVER|YTHING w|
|00002bd0| 69 74 68 6f 75 74 20 6e | 65 77 6c 69 6e 65 73 2c |ithout n|ewlines,|
|00002be0| 20 73 6f 20 79 6f 75 20 | 6d 75 73 74 0a 58 62 65 | so you |must.Xbe|
|00002bf0| 20 65 78 70 6c 69 63 69 | 74 20 61 62 6f 75 74 20 | explici|t about |
|00002c00| 77 68 65 72 65 20 79 6f | 75 20 77 61 6e 74 20 74 |where yo|u want t|
|00002c10| 68 65 6d 2e 0a 58 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |hem..X--|--------|
|00002c20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002c30| 2d 2d 2d 2d 2d 0a 58 09 | 2e 73 68 6f 77 0a 58 0a |-----.X.|.show.X.|
|00002c40| 58 44 6f 65 73 20 61 20 | 2e 77 69 70 65 20 61 6e |XDoes a |.wipe an|
|00002c50| 64 20 74 68 65 6e 20 70 | 72 69 6e 74 73 20 74 68 |d then p|rints th|
|00002c60| 65 20 63 75 72 72 65 6e | 74 20 6c 69 6e 65 20 6f |e curren|t line o|
|00002c70| 6e 20 73 63 72 65 65 6e | 2e 20 20 54 68 69 73 20 |n screen|. This |
|00002c80| 69 73 20 74 68 65 0a 58 | 6d 6f 73 74 20 62 61 73 |is the.X|most bas|
|00002c90| 69 63 20 6f 66 20 74 68 | 65 20 6f 75 74 70 75 74 |ic of th|e output|
|00002ca0| 20 70 72 69 6d 69 74 69 | 76 65 73 2c 20 61 6e 64 | primiti|ves, and|
|00002cb0| 20 79 6f 75 20 77 69 6c | 6c 20 70 72 6f 62 61 62 | you wil|l probab|
|00002cc0| 6c 79 20 75 73 65 20 74 | 68 69 73 20 61 0a 58 6c |ly use t|his a.Xl|
|00002cd0| 6f 74 2e 0a 58 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ot..X---|--------|
|00002ce0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002cf0| 2d 2d 2d 2d 0a 58 09 2e | 70 0a 58 0a 58 47 65 6e |----.X..|p.X.XGen|
|00002d00| 65 72 61 74 65 73 20 61 | 20 70 61 75 73 65 20 69 |erates a| pause i|
|00002d10| 6e 20 74 68 65 20 64 69 | 73 70 6c 61 79 20 62 79 |n the di|splay by|
|00002d20| 20 66 69 72 69 6e 67 20 | 61 70 70 72 6f 78 69 6d | firing |approxim|
|00002d30| 61 74 65 6c 79 20 32 4b | 62 20 6f 66 20 63 61 72 |ately 2K|b of car|
|00002d40| 72 69 61 67 65 0a 58 72 | 65 74 75 72 6e 73 20 61 |riage.Xr|eturns a|
|00002d50| 74 20 79 6f 75 72 20 73 | 63 72 65 65 6e 20 28 72 |t your s|creen (r|
|00002d60| 6f 75 67 68 6c 79 20 31 | 20 73 65 63 6f 6e 64 20 |oughly 1| second |
|00002d70| 61 74 20 39 36 30 30 20 | 62 61 75 64 29 2e 20 20 |at 9600 |baud). |
|00002d80| 53 65 65 20 61 6c 73 6f | 0a 58 22 2e 73 70 65 65 |See also|.X".spee|
|00002d90| 64 22 20 62 65 6c 6f 77 | 2e 20 0a 58 2d 2d 2d 2d |d" below|. .X----|
|00002da0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002db0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0a 58 09 2e 6e |--------|---.X..n|
|00002dc0| 6f 6f 70 0a 58 0a 58 44 | 6f 65 73 20 62 75 67 67 |oop.X.XD|oes bugg|
|00002dd0| 65 72 20 61 6c 6c 2e 0a | 58 2d 2d 2d 2d 2d 2d 2d |er all..|X-------|
|00002de0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002df0| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 58 09 2e 66 6c 75 73 |--------|.X..flus|
|00002e00| 68 0a 58 0a 58 49 73 20 | 61 20 6e 69 63 65 20 6f |h.X.XIs |a nice o|
|00002e10| 6e 65 2e 20 20 49 74 20 | 64 65 6c 65 74 65 73 20 |ne. It |deletes |
|00002e20| 74 68 65 20 63 75 72 72 | 65 6e 74 20 72 75 6c 65 |the curr|ent rule|
|00002e30| 20 66 72 6f 6d 20 61 73 | 70 27 73 20 6d 65 6d 6f | from as|p's memo|
|00002e40| 72 79 2c 20 73 6f 20 69 | 74 27 73 0a 58 62 65 68 |ry, so i|t's.Xbeh|
|00002e50| 61 76 69 6f 75 72 20 69 | 73 20 6f 6e 63 65 20 61 |aviour i|s once a|
|00002e60| 67 61 69 6e 20 6c 69 6b | 65 20 27 63 61 74 27 20 |gain lik|e 'cat' |
|00002e70| 28 63 68 65 63 6b 20 74 | 68 65 20 27 55 6e 64 65 |(check t|he 'Unde|
|00002e80| 72 63 6f 61 74 27 20 73 | 65 63 74 69 6f 6e 2c 0a |rcoat' s|ection,.|
|00002e90| 58 61 62 6f 76 65 29 2e | 20 20 54 68 69 73 20 6d |Xabove).| This m|
|00002ea0| 65 61 6e 73 20 79 6f 75 | 20 63 61 6e 20 65 6d 62 |eans you| can emb|
|00002eb0| 65 64 20 73 6d 61 6c 6c | 20 62 69 74 73 20 6f 66 |ed small| bits of|
|00002ec0| 20 61 73 70 20 63 6f 64 | 65 20 69 6e 20 61 6e 79 | asp cod|e in any|
|00002ed0| 20 74 65 78 74 0a 58 66 | 69 6c 65 2c 20 77 69 74 | text.Xf|ile, wit|
|00002ee0| 68 6f 75 74 20 68 61 76 | 69 6e 67 20 74 6f 20 6d |hout hav|ing to m|
|00002ef0| 6f 64 69 66 79 20 74 68 | 65 20 72 65 73 74 20 6f |odify th|e rest o|
|00002f00| 66 20 74 68 65 20 66 69 | 6c 65 20 74 6f 20 67 65 |f the fi|le to ge|
|00002f10| 74 20 69 74 20 74 68 72 | 6f 75 67 68 0a 58 74 68 |t it thr|ough.Xth|
|00002f20| 65 20 61 73 70 20 70 72 | 6f 63 65 73 73 6f 72 2e |e asp pr|ocessor.|
|00002f30| 20 20 44 6f 20 4e 4f 54 | 20 66 6f 72 67 65 74 20 | Do NOT| forget |
|00002f40| 74 6f 20 69 6e 76 6f 6b | 65 20 22 2e 66 6c 75 73 |to invok|e ".flus|
|00002f50| 68 22 20 77 69 74 68 20 | 61 20 64 75 6d 6d 79 20 |h" with |a dummy |
|00002f60| 64 61 74 61 0a 58 6c 69 | 6e 65 2c 20 74 68 6f 75 |data.Xli|ne, thou|
|00002f70| 67 68 3a 0a 58 0a 58 54 | 68 69 73 20 69 73 20 61 |gh:.X.XT|his is a|
|00002f80| 20 62 69 74 20 6f 66 20 | 63 61 74 27 74 65 64 20 | bit of |cat'ted |
|00002f90| 74 65 78 74 2e 0a 58 2e | 73 70 65 65 64 20 33 20 |text..X.|speed 3 |
|00002fa0| 2e 73 70 61 74 74 65 72 | 20 2e 70 20 2e 70 20 2e |.spatter| .p .p .|
|00002fb0| 70 20 2e 6e 6c 0a 58 54 | 68 69 73 20 69 73 20 61 |p .nl.XT|his is a|
|00002fc0| 20 73 6f 6d 65 77 68 61 | 74 20 6c 6f 6e 67 65 72 | somewha|t longer|
|00002fd0| 20 62 69 74 20 6f 66 20 | 61 73 70 27 65 64 20 74 | bit of |asp'ed t|
|00002fe0| 65 78 74 0a 58 2e 66 6c | 75 73 68 0a 58 2d 2d 0a |ext.X.fl|ush.X--.|
|00002ff0| 58 54 68 69 73 20 69 73 | 20 61 6e 6f 74 68 65 72 |XThis is| another|
|00003000| 20 62 69 74 20 6f 66 20 | 63 61 74 27 74 65 64 20 | bit of |cat'ted |
|00003010| 74 65 78 74 2e 0a 58 0a | 58 2d 20 6f 6b 20 3f 0a |text..X.|X- ok ?.|
|00003020| 58 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |X-------|--------|
|00003030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003040| 0a 58 09 2e 73 6d 6f 6f | 74 68 20 42 4f 4f 4c 45 |.X..smoo|th BOOLE|
|00003050| 41 4e 0a 58 0a 58 53 77 | 69 74 63 68 65 73 20 6f |AN.X.XSw|itches o|
|00003060| 6e 20 38 30 2d 63 68 61 | 72 61 63 74 65 72 20 73 |n 80-cha|racter s|
|00003070| 6d 6f 6f 74 68 69 6e 67 | 20 6d 6f 64 65 2e 20 20 |moothing| mode. |
|00003080| 54 68 69 73 20 69 73 20 | 75 73 65 66 75 6c 20 77 |This is |useful w|
|00003090| 68 65 72 65 20 79 6f 75 | 20 61 72 65 0a 58 67 6f |here you| are.Xgo|
|000030a0| 69 6e 67 20 74 6f 20 62 | 65 20 73 63 72 6f 6c 6c |ing to b|e scroll|
|000030b0| 69 6e 67 20 73 6d 61 6c | 6c 20 62 69 74 73 20 6f |ing smal|l bits o|
|000030c0| 66 20 74 65 78 74 20 62 | 61 63 6b 20 61 6e 64 20 |f text b|ack and |
|000030d0| 66 6f 72 74 68 20 61 63 | 72 6f 73 73 20 74 68 65 |forth ac|ross the|
|000030e0| 0a 58 73 63 72 65 65 6e | 2e 20 20 49 66 20 79 6f |.Xscreen|. If yo|
|000030f0| 75 20 64 6f 20 6e 6f 74 | 20 68 61 76 65 20 73 6d |u do not| have sm|
|00003100| 6f 6f 74 68 69 6e 67 20 | 6f 6e 2c 20 61 73 70 20 |oothing |on, asp |
|00003110| 77 69 6c 6c 20 67 65 6e | 65 72 61 74 65 20 63 6f |will gen|erate co|
|00003120| 64 65 20 77 68 69 63 68 | 0a 58 77 69 6c 6c 20 6d |de which|.Xwill m|
|00003130| 61 6b 65 20 74 68 65 20 | 6f 62 6a 65 63 74 20 6d |ake the |object m|
|00003140| 6f 76 65 20 66 61 73 74 | 65 72 20 74 6f 77 61 72 |ove fast|er towar|
|00003150| 64 73 20 74 68 65 20 6c | 65 66 74 20 68 61 6e 64 |ds the l|eft hand|
|00003160| 20 73 69 64 65 20 6f 66 | 20 74 68 65 0a 58 73 63 | side of| the.Xsc|
|00003170| 72 65 65 6e 2e 20 20 54 | 68 69 73 20 69 73 20 64 |reen. T|his is d|
|00003180| 75 65 20 74 6f 20 74 68 | 65 20 6f 70 74 69 6d 69 |ue to th|e optimi|
|00003190| 73 65 64 20 72 65 66 72 | 65 73 68 20 63 6f 64 65 |sed refr|esh code|
|000031a0| 20 6d 65 6e 74 69 6f 6e | 65 64 20 61 62 6f 76 65 | mention|ed above|
|000031b0| 2e 0a 58 0a 58 49 66 20 | 73 6d 6f 6f 74 68 69 6e |..X.XIf |smoothin|
|000031c0| 67 20 69 73 20 73 77 69 | 74 68 63 68 65 64 20 6f |g is swi|thched o|
|000031d0| 6e 20 28 22 2e 73 6d 6f | 6f 74 68 20 31 22 29 2c |n (".smo|oth 1"),|
|000031e0| 20 61 73 70 20 70 61 64 | 73 20 6f 75 74 20 28 77 | asp pad|s out (w|
|000031f0| 69 74 68 20 63 61 72 72 | 69 61 67 65 0a 58 72 65 |ith carr|iage.Xre|
|00003200| 74 75 72 6e 73 29 20 65 | 61 63 68 20 6c 69 6e 65 |turns) e|ach line|
|00003210| 20 74 68 61 74 20 69 74 | 20 70 72 69 6e 74 73 20 | that it| prints |
|00003220| 69 6e 20 6f 72 64 65 72 | 20 74 6f 20 72 65 6d 65 |in order| to reme|
|00003230| 64 79 20 74 68 69 73 20 | 73 69 74 75 61 74 69 6f |dy this |situatio|
|00003240| 6e 2e 0a 58 54 68 69 73 | 20 6c 65 61 64 73 20 74 |n..XThis| leads t|
|00003250| 6f 20 73 6d 6f 6f 74 68 | 65 72 2c 20 6e 65 61 74 |o smooth|er, neat|
|00003260| 65 72 20 61 6e 69 6d 61 | 74 69 6f 6e 73 2e 0a 58 |er anima|tions..X|
|00003270| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003280| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00003290| 58 09 2e 73 70 65 65 64 | 20 56 41 4c 55 45 0a 58 |X..speed| VALUE.X|
|000032a0| 0a 58 54 68 69 73 20 69 | 73 20 61 20 73 70 65 65 |.XThis i|s a spee|
|000032b0| 64 20 61 64 6a 75 73 74 | 6d 65 6e 74 20 66 75 6e |d adjust|ment fun|
|000032c0| 63 74 69 6f 6e 20 77 68 | 69 63 68 20 70 61 64 73 |ction wh|ich pads|
|000032d0| 20 6f 75 74 20 65 61 63 | 68 20 6c 69 6e 65 20 74 | out eac|h line t|
|000032e0| 68 61 74 20 61 73 70 0a | 58 73 65 6e 64 73 2c 20 |hat asp.|Xsends, |
|000032f0| 69 6e 20 6f 72 64 65 72 | 20 74 6f 20 63 6f 70 65 |in order| to cope|
|00003300| 20 77 69 74 68 20 66 61 | 73 74 20 74 65 72 6d 69 | with fa|st termi|
|00003310| 6e 61 6c 73 2c 20 61 6e | 64 20 66 6f 72 20 73 70 |nals, an|d for sp|
|00003320| 65 63 69 61 6c 20 65 66 | 66 65 63 74 73 2e 0a 58 |ecial ef|fects..X|
|00003330| 0a 58 54 68 65 20 64 65 | 66 61 75 6c 74 20 69 73 |.XThe de|fault is|
|00003340| 20 22 2e 73 70 65 65 64 | 20 30 22 20 61 6e 64 20 | ".speed| 0" and |
|00003350| 61 73 20 74 68 65 20 73 | 70 65 65 64 20 76 61 6c |as the s|peed val|
|00003360| 75 65 20 69 73 20 69 6e | 63 72 65 61 73 65 64 2c |ue is in|creased,|
|00003370| 20 65 61 63 68 20 6c 69 | 6e 65 0a 58 69 73 20 70 | each li|ne.Xis p|
|00003380| 61 64 64 65 64 20 77 69 | 74 68 20 27 78 27 20 63 |added wi|th 'x' c|
|00003390| 61 72 72 69 61 67 65 20 | 72 65 74 75 72 6e 73 20 |arriage |returns |
|000033a0| 28 78 20 3d 20 38 20 2a | 20 6e 2c 20 77 68 65 72 |(x = 8 *| n, wher|
|000033b0| 65 20 27 6e 27 20 69 73 | 20 74 68 65 0a 58 61 72 |e 'n' is| the.Xar|
|000033c0| 67 75 6d 65 6e 74 20 74 | 6f 20 22 2e 73 70 65 65 |gument t|o ".spee|
|000033d0| 64 22 29 2e 20 20 54 68 | 65 20 68 69 67 68 65 72 |d"). Th|e higher|
|000033e0| 20 74 68 65 20 76 61 6c | 75 65 2c 20 74 68 65 20 | the val|ue, the |
|000033f0| 73 6c 6f 77 65 72 20 69 | 74 20 67 6f 65 73 2e 0a |slower i|t goes..|
|00003400| 58 0a 58 42 65 20 6a 75 | 64 69 63 69 6f 75 73 20 |X.XBe ju|dicious |
|00003410| 77 69 74 68 20 79 6f 75 | 72 20 75 73 65 20 6f 66 |with you|r use of|
|00003420| 20 2e 73 70 65 65 64 20 | 2d 20 72 65 6d 65 6d 62 | .speed |- rememb|
|00003430| 65 72 2c 20 73 6f 6d 65 | 20 70 65 6f 70 6c 65 20 |er, some| people |
|00003440| 73 74 69 6c 6c 20 77 6f | 72 6b 0a 58 61 74 20 75 |still wo|rk.Xat u|
|00003450| 6e 64 65 72 20 31 32 30 | 30 20 62 61 75 64 2e 0a |nder 120|0 baud..|
|00003460| 58 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |X-------|--------|
|00003470| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003480| 0a 58 09 2e 62 61 63 6b | 67 72 6f 75 6e 64 0a 58 |.X..back|ground.X|
|00003490| 09 2e 66 6f 72 65 67 72 | 6f 75 6e 64 0a 58 0a 58 |..foregr|ound.X.X|
|000034a0| 54 68 65 73 65 20 61 72 | 65 20 62 6f 74 68 20 63 |These ar|e both c|
|000034b0| 6f 6d 6d 61 6e 64 73 20 | 77 68 69 63 68 20 62 72 |ommands |which br|
|000034c0| 65 61 6b 20 74 68 65 20 | 72 75 6c 65 73 20 6f 75 |eak the |rules ou|
|000034d0| 74 6c 69 6e 65 64 20 61 | 62 6f 76 65 2e 20 20 54 |tlined a|bove. T|
|000034e0| 68 65 79 20 62 6f 74 68 | 0a 58 72 65 61 64 20 74 |hey both|.Xread t|
|000034f0| 68 65 20 6e 65 78 74 20 | 6c 69 6e 65 20 44 49 52 |he next |line DIR|
|00003500| 45 43 54 4c 59 20 42 45 | 4e 45 41 54 48 20 74 68 |ECTLY BE|NEATH th|
|00003510| 65 20 63 6f 6d 6d 61 6e | 64 20 69 6e 74 6f 20 73 |e comman|d into s|
|00003520| 70 65 63 69 61 6c 20 62 | 75 66 66 65 72 73 20 66 |pecial b|uffers f|
|00003530| 6f 72 0a 58 75 73 65 20 | 64 75 72 69 6e 67 20 6f |or.Xuse |during o|
|00003540| 75 74 70 75 74 2e 20 20 | 49 74 20 64 6f 65 73 20 |utput. |It does |
|00003550| 6e 6f 74 20 6d 61 74 74 | 65 72 20 77 68 65 74 68 |not matt|er wheth|
|00003560| 65 72 20 74 68 69 73 20 | 6c 69 6e 65 20 69 73 20 |er this |line is |
|00003570| 62 6c 61 6e 6b 20 6f 72 | 0a 58 6e 6f 74 2c 20 61 |blank or|.Xnot, a|
|00003580| 6e 64 20 69 6e 64 65 65 | 64 2c 20 61 20 62 6c 61 |nd indee|d, a bla|
|00003590| 6e 6b 20 6c 69 6e 65 20 | 77 69 6c 6c 20 62 65 20 |nk line |will be |
|000035a0| 6e 65 63 65 73 73 61 72 | 79 20 74 6f 20 72 65 73 |necessar|y to res|
|000035b0| 65 74 20 74 68 65 20 62 | 75 66 66 65 72 20 74 6f |et the b|uffer to|
|000035c0| 20 61 0a 58 62 6c 61 6e | 6b 20 77 68 65 6e 20 64 | a.Xblan|k when d|
|000035d0| 65 73 69 72 65 64 2e 0a | 58 0a 58 22 2e 62 61 63 |esired..|X.X".bac|
|000035e0| 6b 67 72 6f 75 6e 64 22 | 20 61 6e 64 20 22 2e 66 |kground"| and ".f|
|000035f0| 6f 72 65 67 72 6f 75 6e | 64 22 20 6c 6f 61 64 20 |oregroun|d" load |
|00003600| 74 68 65 69 72 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |their fo|llowing |
|00003610| 6c 69 6e 65 20 69 6e 74 | 6f 20 61 0a 58 62 61 63 |line int|o a.Xbac|
|00003620| 6b 67 72 6f 75 6e 64 20 | 6f 72 20 66 6f 72 65 67 |kground |or foreg|
|00003630| 72 6f 75 6e 64 20 62 75 | 66 66 65 72 20 72 65 73 |round bu|ffer res|
|00003640| 70 65 63 74 69 76 65 6c | 79 2e 20 20 54 68 65 20 |pectivel|y. The |
|00003650| 62 75 66 66 65 72 20 77 | 69 6c 6c 20 74 68 65 6e |buffer w|ill then|
|00003660| 20 62 65 0a 58 75 73 65 | 64 20 65 69 74 68 65 72 | be.Xuse|d either|
|00003670| 20 62 65 20 75 73 65 64 | 20 61 73 20 61 20 62 61 | be used| as a ba|
|00003680| 63 6b 64 72 6f 70 20 6f | 72 20 6f 76 65 72 6c 61 |ckdrop o|r overla|
|00003690| 79 20 6d 61 73 6b 20 66 | 6f 72 20 77 68 61 74 65 |y mask f|or whate|
|000036a0| 76 65 72 20 69 73 0a 58 | 70 72 69 6e 74 65 64 20 |ver is.X|printed |
|000036b0| 66 72 6f 6d 20 74 68 65 | 6e 20 6f 6e 2e 20 20 54 |from the|n on. T|
|000036c0| 68 69 73 20 6d 65 61 6e | 73 20 74 68 61 74 20 79 |his mean|s that y|
|000036d0| 6f 75 20 64 6f 6e 27 74 | 20 68 61 76 65 20 74 6f |ou don't| have to|
|000036e0| 20 77 6f 72 72 79 20 61 | 62 6f 75 74 0a 58 79 6f | worry a|bout.Xyo|
|000036f0| 75 72 20 6c 61 6e 64 73 | 63 61 70 65 73 20 67 65 |ur lands|capes ge|
|00003700| 74 74 69 6e 67 20 63 6f | 72 72 75 70 74 65 64 2c |tting co|rrupted,|
|00003710| 20 68 61 76 69 6e 67 20 | 74 6f 20 72 65 64 72 61 | having |to redra|
|00003720| 77 20 74 68 65 6d 2c 20 | 61 6e 64 20 73 6f 20 6f |w them, |and so o|
|00003730| 6e 2e 0a 58 0a 58 41 73 | 20 61 6e 20 65 78 61 6d |n..X.XAs| an exam|
|00003740| 70 6c 65 2c 20 73 65 65 | 20 74 68 65 20 74 77 6f |ple, see| the two|
|00003750| 20 6f 63 63 75 72 61 6e | 63 65 73 20 6f 66 20 22 | occuran|ces of "|
|00003760| 2e 62 61 63 6b 67 72 6f | 75 6e 64 22 20 69 6e 20 |.backgro|und" in |
|00003770| 22 64 65 6d 6f 32 2e 61 | 73 70 22 0a 58 2d 2d 2d |"demo2.a|sp".X---|
|00003780| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003790| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 58 53 50 |--------|----.XSP|
|000037a0| 45 43 49 41 4c 20 45 46 | 46 45 43 54 53 3a 2d 0a |ECIAL EF|FECTS:-.|
|000037b0| 58 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |X-------|--------|
|000037c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000037d0| 0a 58 09 2e 66 61 64 65 | 0a 58 0a 58 50 72 69 6e |.X..fade|.X.XPrin|
|000037e0| 74 73 20 74 68 65 20 6d | 65 73 73 61 67 65 20 6f |ts the m|essage o|
|000037f0| 6e 20 74 68 65 20 73 63 | 72 65 65 6e 20 61 6e 64 |n the sc|reen and|
|00003800| 20 66 61 64 65 73 20 69 | 74 20 6f 6e 65 20 63 68 | fades i|t one ch|
|00003810| 61 72 61 63 74 65 72 20 | 61 74 20 61 20 74 69 6d |aracter |at a tim|
|00003820| 65 2e 0a 58 54 6f 20 67 | 65 74 20 73 6c 6f 77 65 |e..XTo g|et slowe|
|00003830| 72 20 66 61 64 65 73 2c | 20 77 68 61 63 6b 20 74 |r fades,| whack t|
|00003840| 68 65 20 73 70 65 65 64 | 20 75 70 20 65 69 74 68 |he speed| up eith|
|00003850| 65 72 20 73 69 64 65 20 | 6f 66 20 69 74 2c 20 65 |er side |of it, e|
|00003860| 67 3a 0a 58 0a 58 2e 73 | 68 6f 77 20 2e 70 20 2e |g:.X.X.s|how .p .|
|00003870| 70 20 2e 73 70 65 65 64 | 20 31 30 20 2e 66 61 64 |p .speed| 10 .fad|
|00003880| 65 20 2e 73 70 65 65 64 | 20 30 20 2e 70 0a 58 20 |e .speed| 0 .p.X |
|00003890| 20 20 20 54 68 69 73 20 | 70 69 65 63 65 20 6f 66 | This |piece of|
|000038a0| 20 74 65 78 74 20 73 68 | 6f 75 6c 64 20 66 61 64 | text sh|ould fad|
|000038b0| 65 20 71 75 69 74 65 20 | 67 72 61 64 75 61 6c 6c |e quite |graduall|
|000038c0| 79 20 69 6e 74 6f 20 6e | 6f 74 68 69 6e 67 6e 65 |y into n|othingne|
|000038d0| 73 73 2e 2e 2e 0a 58 0a | 58 2d 2d 2d 2d 2d 2d 2d |ss....X.|X-------|
|000038e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000038f0| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 58 09 2e 66 6c 61 73 |--------|.X..flas|
|00003900| 68 0a 58 0a 58 46 6c 61 | 73 68 65 73 20 61 6c 6c |h.X.XFla|shes all|
|00003910| 20 74 68 65 20 74 65 78 | 74 20 69 6e 20 61 20 64 | the tex|t in a d|
|00003920| 61 74 61 20 6c 69 6e 65 | 20 73 65 76 65 72 61 6c |ata line| several|
|00003930| 20 74 69 6d 65 73 20 62 | 65 66 6f 72 65 20 6d 6f | times b|efore mo|
|00003940| 76 69 6e 67 20 6f 6e 74 | 6f 20 74 68 65 0a 58 6e |ving ont|o the.Xn|
|00003950| 65 78 74 2e 20 44 6f 65 | 73 20 6e 6f 74 20 6f 76 |ext. Doe|s not ov|
|00003960| 65 72 73 74 72 69 6b 65 | 20 74 65 78 74 20 77 69 |erstrike| text wi|
|00003970| 74 68 20 77 68 69 74 65 | 73 70 61 63 65 2c 20 61 |th white|space, a|
|00003980| 6e 64 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 74 |nd can b|e used t|
|00003990| 68 75 73 6c 79 3a 0a 58 | 0a 58 2e 73 68 6f 77 0a |husly:.X|.X.show.|
|000039a0| 58 22 42 65 65 70 20 42 | 65 65 70 22 2c 20 77 65 |X"Beep B|eep", we|
|000039b0| 6e 74 20 74 68 65 20 6c | 69 74 74 6c 65 20 63 61 |nt the l|ittle ca|
|000039c0| 72 27 73 20 68 6f 72 6e | 2e 0a 58 2e 73 70 65 65 |r's horn|..X.spee|
|000039d0| 64 20 32 30 20 2e 66 6c | 61 73 68 20 2e 73 70 65 |d 20 .fl|ash .spe|
|000039e0| 65 64 20 30 0a 58 20 42 | 65 65 70 20 42 65 65 70 |ed 0.X B|eep Beep|
|000039f0| 0a 58 0a 58 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.X.X----|--------|
|00003a00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003a10| 2d 2d 2d 0a 58 09 2e 6c | 61 79 62 0a 58 09 2e 6c |---.X..l|ayb.X..l|
|00003a20| 61 79 65 74 6d 0a 58 09 | 2e 6c 61 79 6d 74 65 0a |ayetm.X.|.laymte.|
|00003a30| 58 09 2e 6c 61 79 66 0a | 58 0a 58 50 72 69 6e 74 |X..layf.|X.XPrint|
|00003a40| 73 20 74 68 65 20 6c 69 | 6e 65 20 62 79 20 6c 61 |s the li|ne by la|
|00003a50| 79 69 6e 67 20 64 6f 77 | 6e 20 6f 6e 65 20 63 68 |ying dow|n one ch|
|00003a60| 61 72 61 63 74 65 72 20 | 61 74 20 61 20 74 69 6d |aracter |at a tim|
|00003a70| 65 2c 20 62 61 63 6b 77 | 61 72 64 73 2c 0a 58 65 |e, backw|ards,.Xe|
|00003a80| 6e 64 73 2d 74 6f 2d 6d | 69 64 64 6c 65 2c 20 6d |nds-to-m|iddle, m|
|00003a90| 69 64 64 6c 65 2d 74 6f | 2d 65 6e 64 73 2c 20 6f |iddle-to|-ends, o|
|00003aa0| 72 20 66 6f 72 77 61 72 | 64 73 2c 20 72 65 73 70 |r forwar|ds, resp|
|00003ab0| 65 63 74 69 76 65 6c 79 | 2e 20 20 53 65 65 20 74 |ectively|. See t|
|00003ac0| 68 65 0a 58 64 65 6d 6f | 73 20 66 6f 72 20 65 78 |he.Xdemo|s for ex|
|00003ad0| 61 6d 70 6c 65 73 2e 0a | 58 2d 2d 2d 2d 2d 2d 2d |amples..|X-------|
|00003ae0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003af0| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 58 09 2e 74 73 68 6f |--------|.X..tsho|
|00003b00| 77 0a 58 0a 58 49 73 20 | 6c 69 6b 65 20 22 2e 73 |w.X.XIs |like ".s|
|00003b10| 68 6f 77 22 20 62 75 74 | 20 64 6f 65 73 20 6e 6f |how" but| does no|
|00003b20| 74 20 63 61 6c 6c 20 22 | 2e 77 69 70 65 22 2c 20 |t call "|.wipe", |
|00003b30| 61 6e 64 20 69 74 20 75 | 73 65 73 20 74 72 61 6e |and it u|ses tran|
|00003b40| 73 70 61 72 65 6e 74 0a | 58 77 68 69 74 65 73 70 |sparent.|Xwhitesp|
|00003b50| 61 63 65 2c 20 69 65 3a | 20 77 68 69 74 65 73 70 |ace, ie:| whitesp|
|00003b60| 61 63 65 20 69 6e 20 74 | 68 65 20 64 61 74 61 20 |ace in t|he data |
|00003b70| 6c 69 6e 65 20 64 6f 65 | 73 20 6e 6f 74 20 6f 76 |line doe|s not ov|
|00003b80| 65 72 73 74 72 69 6b 65 | 20 61 6e 79 0a 58 70 72 |erstrike| any.Xpr|
|00003b90| 69 6e 74 61 62 6c 65 20 | 63 68 61 72 61 63 74 65 |intable |characte|
|00003ba0| 72 20 74 68 61 74 20 69 | 73 20 61 6c 72 65 61 64 |r that i|s alread|
|00003bb0| 79 20 6f 6e 20 73 63 72 | 65 65 6e 2e 20 20 65 67 |y on scr|een. eg|
|00003bc0| 3a 0a 58 0a 58 2e 74 73 | 68 6f 77 20 2e 70 0a 58 |:.X.X.ts|how .p.X|
|00003bd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003bf0| 20 4c 49 46 45 0a 58 20 | 20 20 20 20 20 20 20 20 | LIFE.X | |
|00003c00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 4f 4e 0a | | ON.|
|00003c20| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X | |
|00003c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003c40| 20 20 20 20 20 20 20 20 | 20 20 55 4e 49 58 0a 58 | | UNIX.X|
|00003c50| 0a 58 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.X------|--------|
|00003c60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003c70| 2d 0a 58 09 2e 6c 65 74 | 74 65 72 31 0a 58 09 2e |-.X..let|ter1.X..|
|00003c80| 6c 65 74 74 65 72 32 0a | 58 09 2e 6c 65 74 74 65 |letter2.|X..lette|
|00003c90| 72 33 0a 58 0a 58 41 72 | 65 20 65 66 66 65 63 74 |r3.X.XAr|e effect|
|00003ca0| 73 20 6d 61 63 72 6f 73 | 20 62 61 73 65 64 20 6f |s macros| based o|
|00003cb0| 6e 20 74 68 65 20 22 6c | 65 74 27 73 2d 63 79 63 |n the "l|et's-cyc|
|00003cc0| 6c 65 2d 74 68 72 6f 75 | 67 68 2d 74 68 65 2d 61 |le-throu|gh-the-a|
|00003cd0| 73 63 69 69 2d 63 68 61 | 72 61 63 74 65 72 2d 73 |scii-cha|racter-s|
|00003ce0| 65 74 22 0a 58 70 72 69 | 6e 63 69 70 6c 65 2e 20 |et".Xpri|nciple. |
|00003cf0| 53 65 65 20 74 68 65 20 | 64 65 6d 6f 73 20 66 6f |See the |demos fo|
|00003d00| 72 20 65 78 61 6d 70 6c | 65 73 2e 0a 58 2d 2d 2d |r exampl|es..X---|
|00003d10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003d20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 58 09 2e |--------|----.X..|
|00003d30| 73 63 72 6f 6c 6c 62 0a | 58 09 2e 73 63 72 6f 6c |scrollb.|X..scrol|
|00003d40| 6c 66 0a 58 0a 58 53 63 | 72 6f 6c 6c 73 20 74 68 |lf.X.XSc|rolls th|
|00003d50| 65 20 64 61 74 61 20 6c | 69 6e 65 20 62 61 63 6b |e data l|ine back|
|00003d60| 77 61 72 64 73 20 6f 72 | 20 66 6f 72 77 61 72 64 |wards or| forward|
|00003d70| 73 20 28 72 65 73 70 65 | 63 74 69 76 65 6c 79 29 |s (respe|ctively)|
|00003d80| 20 6f 6e 74 6f 20 74 68 | 65 0a 58 73 63 72 65 65 | onto th|e.Xscree|
|00003d90| 6e 2c 20 6f 76 65 72 73 | 74 72 69 6b 69 6e 67 20 |n, overs|triking |
|00003da0| 77 68 61 74 20 69 73 20 | 61 6c 72 65 61 64 79 20 |what is |already |
|00003db0| 74 68 65 72 65 2c 20 65 | 67 3a 0a 58 0a 58 2e 73 |there, e|g:.X.X.s|
|00003dc0| 63 72 6f 6c 6c 62 20 2e | 70 20 2e 70 0a 58 54 68 |crollb .|p .p.XTh|
|00003dd0| 69 73 20 6d 65 73 73 61 | 67 65 20 77 69 6c 6c 20 |is messa|ge will |
|00003de0| 73 63 72 6f 6c 6c 20 66 | 72 6f 6d 20 72 69 67 68 |scroll f|rom righ|
|00003df0| 74 20 74 6f 20 6c 65 66 | 74 20 61 63 72 6f 73 73 |t to lef|t across|
|00003e00| 20 74 68 65 20 77 69 64 | 74 68 20 6f 66 20 74 68 | the wid|th of th|
|00003e10| 65 20 73 63 72 65 65 6e | 0a 58 54 68 69 73 20 6d |e screen|.XThis m|
|00003e20| 65 73 73 61 67 65 20 77 | 69 6c 6c 20 61 6c 73 6f |essage w|ill also|
|00003e30| 20 73 63 72 6f 6c 6c 20 | 66 72 6f 6d 20 72 69 67 | scroll |from rig|
|00003e40| 68 74 20 74 6f 20 6c 65 | 66 74 2e 0a 58 0a 58 2d |ht to le|ft..X.X-|
|00003e50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003e60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 58 |--------|------.X|
|00003e70| 09 2e 73 63 72 6f 6c 6c | 6f 62 0a 58 09 2e 73 63 |..scroll|ob.X..sc|
|00003e80| 72 6f 6c 6c 6f 66 0a 58 | 0a 58 4c 69 6b 65 20 2e |rollof.X|.XLike .|
|00003e90| 73 63 72 6f 6c 6c 5b 62 | 66 5d 2c 20 62 75 74 20 |scroll[b|f], but |
|00003ea0| 74 68 65 73 65 20 63 6f | 6d 6d 61 6e 64 73 20 73 |these co|mmands s|
|00003eb0| 63 72 6f 6c 6c 20 77 68 | 61 74 20 69 74 20 61 6c |croll wh|at it al|
|00003ec0| 72 65 61 64 79 20 74 68 | 65 72 65 20 6f 66 66 20 |ready th|ere off |
|00003ed0| 6f 66 0a 58 74 68 65 20 | 73 63 72 65 65 6e 2c 20 |of.Xthe |screen, |
|00003ee0| 72 61 74 68 65 72 20 74 | 68 61 6e 20 6f 76 65 72 |rather t|han over|
|00003ef0| 73 74 72 69 6b 69 6e 67 | 20 69 74 2e 20 20 53 65 |striking| it. Se|
|00003f00| 65 20 74 68 65 20 64 65 | 6d 6f 73 20 66 6f 72 20 |e the de|mos for |
|00003f10| 65 78 61 6d 70 6c 65 73 | 2e 0a 58 0a 58 2e 73 63 |examples|..X.X.sc|
|00003f20| 72 6f 6c 6c 6f 62 20 2e | 70 20 2e 70 0a 58 54 68 |rollob .|p .p.XTh|
|00003f30| 69 73 20 6d 65 73 73 61 | 67 65 20 77 69 6c 6c 20 |is messa|ge will |
|00003f40| 73 63 72 6f 6c 6c 20 66 | 72 6f 6d 20 72 69 67 68 |scroll f|rom righ|
|00003f50| 74 20 74 6f 20 6c 65 66 | 74 20 61 63 72 6f 73 73 |t to lef|t across|
|00003f60| 20 74 68 65 20 77 69 64 | 74 68 20 6f 66 20 74 68 | the wid|th of th|
|00003f70| 65 20 73 63 72 65 65 6e | 0a 58 54 68 69 73 20 6d |e screen|.XThis m|
|00003f80| 65 73 73 61 67 65 20 77 | 69 6c 6c 20 61 6c 73 6f |essage w|ill also|
|00003f90| 20 73 63 72 6f 6c 6c 20 | 66 72 6f 6d 20 72 69 67 | scroll |from rig|
|00003fa0| 68 74 20 74 6f 20 6c 65 | 66 74 2c 20 77 69 74 68 |ht to le|ft, with|
|00003fb0| 6f 75 74 20 6f 76 65 72 | 73 74 72 69 6b 69 6e 67 |out over|striking|
|00003fc0| 2e 0a 58 0a 58 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..X.X---|--------|
|00003fd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003fe0| 2d 2d 2d 2d 0a 58 09 2e | 73 70 61 74 74 65 72 0a |----.X..|spatter.|
|00003ff0| 58 09 2e 77 73 70 61 74 | 74 65 72 0a 58 0a 58 22 |X..wspat|ter.X.X"|
|00004000| 2e 73 70 61 74 74 65 72 | 22 20 69 73 20 74 68 65 |.spatter|" is the|
|00004010| 20 6f 70 70 6f 73 69 74 | 65 20 6f 66 20 22 2e 66 | opposit|e of ".f|
|00004020| 61 64 65 22 2e 20 20 22 | 2e 77 73 70 61 74 74 65 |ade". "|.wspatte|
|00004030| 72 22 20 69 73 20 73 69 | 6d 69 6c 61 72 2c 20 62 |r" is si|milar, b|
|00004040| 75 74 0a 58 73 70 61 74 | 74 65 72 73 20 77 68 6f |ut.Xspat|ters who|
|00004050| 6c 65 20 77 6f 72 64 73 | 20 6f 6e 74 6f 20 74 68 |le words| onto th|
|00004060| 65 20 73 63 72 65 65 6e | 2c 20 72 61 74 68 65 72 |e screen|, rather|
|00004070| 20 74 68 61 6e 20 63 68 | 61 72 61 63 74 65 72 73 | than ch|aracters|
|00004080| 2e 0a 58 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..X-----|--------|
|00004090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000040a0| 2d 2d 0a 58 09 2e 6f 62 | 6a 65 63 74 20 53 54 52 |--.X..ob|ject STR|
|000040b0| 49 4e 47 31 20 56 41 4c | 55 45 31 20 56 41 4c 55 |ING1 VAL|UE1 VALU|
|000040c0| 45 32 0a 58 09 2e 61 6e | 69 6d 0a 58 09 2e 72 65 |E2.X..an|im.X..re|
|000040d0| 73 65 74 61 6e 69 6d 0a | 58 0a 58 54 68 65 73 65 |setanim.|X.XThese|
|000040e0| 20 61 72 65 20 74 68 65 | 20 74 68 72 65 65 20 41 | are the| three A|
|000040f0| 73 70 20 61 6e 69 6d 61 | 74 69 6f 6e 20 70 72 69 |sp anima|tion pri|
|00004100| 6d 69 74 69 76 65 73 2e | 0a 58 0a 58 42 61 73 69 |mitives.|.X.XBasi|
|00004110| 63 61 6c 6c 79 2c 20 74 | 68 65 20 69 64 65 61 20 |cally, t|he idea |
|00004120| 6f 66 20 61 6e 20 61 6e | 69 6d 61 74 69 6f 6e 20 |of an an|imation |
|00004130| 69 73 20 74 6f 20 62 75 | 69 6c 64 20 75 70 20 61 |is to bu|ild up a|
|00004140| 20 73 65 72 69 65 73 20 | 6f 66 20 22 6f 62 6a 65 | series |of "obje|
|00004150| 63 74 73 22 0a 58 75 73 | 69 6e 67 20 74 68 65 20 |cts".Xus|ing the |
|00004160| 22 2e 6f 62 6a 65 63 74 | 22 20 64 69 72 65 63 74 |".object|" direct|
|00004170| 69 76 65 2e 20 20 54 68 | 69 73 20 73 70 65 63 69 |ive. Th|is speci|
|00004180| 66 69 65 73 20 74 68 61 | 74 20 79 6f 75 20 77 61 |fies tha|t you wa|
|00004190| 6e 74 20 74 6f 20 6d 6f | 76 65 0a 58 22 53 54 52 |nt to mo|ve.X"STR|
|000041a0| 49 4e 47 31 22 20 66 72 | 6f 6d 20 70 6f 73 69 74 |ING1" fr|om posit|
|000041b0| 69 6f 6e 20 56 41 4c 55 | 45 31 20 74 6f 20 70 6f |ion VALU|E1 to po|
|000041c0| 73 69 74 69 6f 6e 20 56 | 41 4c 55 45 32 2c 20 77 |sition V|ALUE2, w|
|000041d0| 68 65 72 65 20 74 68 65 | 20 76 61 6c 75 65 20 69 |here the| value i|
|000041e0| 73 0a 58 62 65 74 77 65 | 65 6e 20 2b 2f 2d 33 37 |s.Xbetwe|en +/-37|
|000041f0| 32 36 37 20 28 6f 72 20 | 70 6f 73 73 69 62 6c 79 |267 (or |possibly|
|00004200| 20 6c 61 72 67 65 72 29 | 2c 20 61 6e 64 20 70 6f | larger)|, and po|
|00004210| 73 69 74 69 6f 6e 20 30 | 20 69 73 20 74 68 65 20 |sition 0| is the |
|00004220| 6c 65 66 74 20 68 61 6e | 64 0a 58 63 6f 6c 75 6d |left han|d.Xcolum|
|00004230| 6e 20 6f 66 20 74 68 65 | 20 73 63 72 65 65 6e 2c |n of the| screen,|
|00004240| 20 70 6f 73 69 74 69 6f | 6e 20 37 38 20 74 68 65 | positio|n 78 the|
|00004250| 20 72 69 67 68 74 20 68 | 61 6e 64 20 63 6f 72 6e | right h|and corn|
|00004260| 65 72 20 6f 66 20 74 68 | 65 20 73 63 72 65 65 6e |er of th|e screen|
|00004270| 2e 0a 58 0a 58 41 66 74 | 65 72 20 73 70 65 63 69 |..X.XAft|er speci|
|00004280| 66 79 69 6e 67 20 74 68 | 65 20 73 65 72 69 65 73 |fying th|e series|
|00004290| 20 6f 66 20 6f 62 6a 65 | 63 74 73 20 74 6f 20 62 | of obje|cts to b|
|000042a0| 65 20 61 6e 69 6d 61 74 | 65 64 2c 20 74 68 65 20 |e animat|ed, the |
|000042b0| 61 6e 69 6d 61 74 69 6f | 6e 20 69 73 0a 58 72 75 |animatio|n is.Xru|
|000042c0| 6e 20 62 79 20 69 6e 76 | 6f 6b 69 6e 67 20 74 68 |n by inv|oking th|
|000042d0| 65 20 22 2e 61 6e 69 6d | 22 20 63 6f 6d 6d 61 6e |e ".anim|" comman|
|000042e0| 64 2e 20 20 4f 6e 63 65 | 20 79 6f 75 20 61 72 65 |d. Once| you are|
|000042f0| 20 66 69 6e 69 73 68 65 | 64 20 77 69 74 68 20 74 | finishe|d with t|
|00004300| 68 65 0a 58 61 6e 69 6d | 61 74 69 6f 6e 2c 20 79 |he.Xanim|ation, y|
|00004310| 6f 75 20 64 65 6c 65 74 | 65 20 74 68 65 20 6f 62 |ou delet|e the ob|
|00004320| 6a 65 63 74 73 20 66 72 | 6f 6d 20 74 68 65 20 73 |jects fr|om the s|
|00004330| 63 72 65 65 6e 20 62 79 | 20 74 68 65 20 22 2e 72 |creen by| the ".r|
|00004340| 65 73 65 74 61 6e 69 6d | 22 0a 58 63 6f 6d 6d 61 |esetanim|".Xcomma|
|00004350| 6e 64 2e 20 20 53 69 6d | 70 6c 65 2c 20 65 68 20 |nd. Sim|ple, eh |
|00004360| 3f 20 48 65 72 65 27 73 | 20 74 68 65 20 6c 6f 72 |? Here's| the lor|
|00004370| 72 79 20 61 6e 69 6d 61 | 74 69 6f 6e 20 66 72 6f |ry anima|tion fro|
|00004380| 6d 20 64 65 6d 6f 31 2e | 61 73 70 3a 0a 58 0a 58 |m demo1.|asp:.X.X|
|00004390| 2e 6f 62 6a 65 63 74 20 | 6f 6f 2d 6f 50 20 2d 31 |.object |oo-oP -1|
|000043a0| 35 20 38 30 20 2e 61 6e | 69 6d 20 2e 72 65 73 65 |5 80 .an|im .rese|
|000043b0| 74 61 6e 69 6d 20 2e 70 | 0a 58 2d 2d 0a 58 0a 58 |tanim .p|.X--.X.X|
|000043c0| 43 6c 65 76 65 72 20 70 | 65 6f 70 6c 65 20 77 69 |Clever p|eople wi|
|000043d0| 6c 6c 20 73 65 65 20 74 | 68 61 74 20 69 66 20 79 |ll see t|hat if y|
|000043e0| 6f 75 20 77 61 6e 74 20 | 74 6f 20 70 72 6f 64 75 |ou want |to produ|
|000043f0| 63 65 20 64 65 6c 61 79 | 73 20 61 6e 64 20 6f 64 |ce delay|s and od|
|00004400| 64 20 74 69 6d 69 6e 67 | 0a 58 65 66 66 65 63 74 |d timing|.Xeffect|
|00004410| 73 2c 20 79 6f 75 20 6d | 65 72 65 6c 79 20 68 61 |s, you m|erely ha|
|00004420| 76 65 20 74 6f 20 73 74 | 61 72 74 20 61 6e 20 6f |ve to st|art an o|
|00004430| 62 6a 65 63 74 20 61 20 | 6c 6f 6e 67 20 77 61 79 |bject a |long way|
|00004440| 20 61 77 61 79 20 66 72 | 6f 6d 20 69 74 27 73 0a | away fr|om it's.|
|00004450| 58 64 65 73 74 69 6e 61 | 74 69 6f 6e 2e 20 20 65 |Xdestina|tion. e|
|00004460| 67 3a 20 73 65 76 65 72 | 61 6c 20 6c 6f 72 72 69 |g: sever|al lorri|
|00004470| 65 73 2d 0a 58 0a 58 2e | 6f 62 6a 65 63 74 20 6f |es-.X.X.|object o|
|00004480| 6f 2d 6f 50 20 2d 31 35 | 20 38 30 20 5c 0a 58 2e |o-oP -15| 80 \.X.|
|00004490| 6f 62 6a 65 63 74 20 6f | 6f 2d 6f 50 20 2d 32 31 |object o|o-oP -21|
|000044a0| 20 38 30 20 5c 0a 58 2e | 6f 62 6a 65 63 74 20 6f | 80 \.X.|object o|
|000044b0| 6f 2d 6f 50 20 2d 32 37 | 20 38 30 20 5c 0a 58 2e |o-oP -27| 80 \.X.|
|000044c0| 6f 62 6a 65 63 74 20 6f | 6f 2d 6f 50 20 2d 33 33 |object o|o-oP -33|
|000044d0| 20 38 30 20 5c 0a 58 2e | 6f 62 6a 65 63 74 20 6f | 80 \.X.|object o|
|000044e0| 6f 2d 6f 50 20 2d 33 39 | 20 38 30 20 5c 0a 58 2e |o-oP -39| 80 \.X.|
|000044f0| 6f 62 6a 65 63 74 20 6f | 6f 6f 2d 2d 2d 2d 2d 6f |object o|oo-----o|
|00004500| 6f 50 20 2d 34 35 20 38 | 30 20 5c 0a 58 2e 61 6e |oP -45 8|0 \.X.an|
|00004510| 69 6d 20 2e 72 65 73 65 | 74 61 6e 69 6d 20 2e 70 |im .rese|tanim .p|
|00004520| 0a 58 2d 2d 0a 58 0a 58 | 42 65 63 61 75 73 65 20 |.X--.X.X|Because |
|00004530| 74 68 65 69 72 20 6e 61 | 74 75 72 65 20 69 73 20 |their na|ture is |
|00004540| 74 68 61 74 20 6f 66 20 | 61 20 73 6f 72 74 20 6f |that of |a sort o|
|00004550| 66 20 22 63 6f 6d 70 6f | 75 6e 64 20 63 6f 6d 6d |f "compo|und comm|
|00004560| 61 6e 64 22 2c 20 73 65 | 76 65 72 61 6c 0a 58 61 |and", se|veral.Xa|
|00004570| 6e 69 6d 61 74 69 6f 6e | 73 20 63 61 6e 20 62 65 |nimation|s can be|
|00004580| 20 62 75 69 6c 74 20 69 | 6e 74 6f 20 61 20 73 69 | built i|nto a si|
|00004590| 6e 67 6c 65 20 72 75 6c | 65 20 61 6e 64 20 74 68 |ngle rul|e and th|
|000045a0| 65 6e 20 66 69 72 65 64 | 20 6f 66 66 20 75 70 6f |en fired| off upo|
|000045b0| 6e 0a 58 6d 75 6c 74 69 | 70 6c 65 20 64 61 74 61 |n.Xmulti|ple data|
|000045c0| 20 6c 69 6e 65 73 2e 20 | 20 41 64 64 20 61 20 66 | lines. | Add a f|
|000045d0| 65 77 20 65 78 74 72 61 | 20 64 75 6d 6d 79 20 6c |ew extra| dummy l|
|000045e0| 69 6e 65 73 20 74 6f 20 | 74 68 65 20 61 6e 69 6d |ines to |the anim|
|000045f0| 61 74 69 6f 6e 20 61 62 | 6f 76 65 0a 58 74 6f 20 |ation ab|ove.Xto |
|00004600| 67 65 74 20 61 20 77 68 | 6f 6c 65 20 63 6f 6e 76 |get a wh|ole conv|
|00004610| 6f 79 2e 20 20 28 73 65 | 65 20 61 6c 73 6f 20 74 |oy. (se|e also t|
|00004620| 68 65 20 22 66 6c 79 69 | 6e 67 20 61 72 72 6f 77 |he "flyi|ng arrow|
|00004630| 73 22 20 69 6e 20 64 65 | 6d 6f 73 20 33 20 26 20 |s" in de|mos 3 & |
|00004640| 35 29 2e 0a 58 0a 58 46 | 6f 72 20 74 68 65 20 74 |5)..X.XF|or the t|
|00004650| 65 63 68 6e 69 63 61 6c | 6c 79 20 6d 69 6e 64 65 |echnical|ly minde|
|00004660| 64 2c 20 61 73 70 20 61 | 6e 69 6d 61 74 69 6f 6e |d, asp a|nimation|
|00004670| 73 20 72 75 6e 20 69 6e | 20 61 6e 20 65 6e 74 69 |s run in| an enti|
|00004680| 72 65 6c 79 20 73 65 70 | 61 72 61 74 65 0a 58 62 |rely sep|arate.Xb|
|00004690| 75 66 66 65 72 20 66 72 | 6f 6d 20 74 68 65 20 72 |uffer fr|om the r|
|000046a0| 65 73 74 20 6f 66 20 61 | 73 70 2e 20 20 54 68 65 |est of a|sp. The|
|000046b0| 20 62 75 66 66 65 72 20 | 6c 69 65 73 20 69 6e 20 | buffer |lies in |
|000046c0| 74 68 65 20 73 65 63 6f | 6e 64 20 70 6f 73 69 74 |the seco|nd posit|
|000046d0| 69 6f 6e 0a 58 74 68 75 | 73 3a 2d 0a 58 0a 58 09 |ion.Xthu|s:-.X.X.|
|000046e0| 09 09 09 55 53 45 52 20 | 56 49 45 57 0a 58 09 09 |...USER |VIEW.X..|
|000046f0| 09 09 20 20 20 20 7c 0a | 58 09 09 09 09 20 20 20 |.. |.|X.... |
|00004700| 20 56 0a 58 09 09 09 20 | 20 20 20 46 4f 52 45 47 | V.X... | FOREG|
|00004710| 52 4f 55 4e 44 20 42 55 | 46 46 45 52 0a 58 09 09 |ROUND BU|FFER.X..|
|00004720| 09 20 20 20 20 41 4e 49 | 4d 41 54 49 4f 4e 53 20 |. ANI|MATIONS |
|00004730| 42 55 46 46 45 52 0a 58 | 09 09 09 20 20 20 52 55 |BUFFER.X|... RU|
|00004740| 4c 45 20 42 55 46 46 45 | 52 20 28 53 54 44 4c 49 |LE BUFFE|R (STDLI|
|00004750| 4e 45 29 0a 58 09 09 09 | 20 20 20 20 42 41 43 4b |NE).X...| BACK|
|00004760| 47 52 4f 55 4e 44 20 42 | 55 46 46 45 52 0a 58 0a |GROUND B|UFFER.X.|
|00004770| 58 48 65 6e 63 65 2c 20 | 77 68 61 74 20 79 6f 75 |XHence, |what you|
|00004780| 20 64 6f 20 69 6e 20 61 | 6e 20 61 6e 69 6d 61 74 | do in a|n animat|
|00004790| 69 6f 6e 20 63 61 6e 6e | 6f 74 20 61 66 66 65 63 |ion cann|ot affec|
|000047a0| 74 20 74 68 65 20 72 75 | 6c 65 20 62 75 66 66 65 |t the ru|le buffe|
|000047b0| 72 20 28 69 65 3a 0a 58 | 77 68 65 72 65 20 79 6f |r (ie:.X|where yo|
|000047c0| 75 72 20 64 61 74 61 20 | 6c 69 6e 65 73 20 65 6e |ur data |lines en|
|000047d0| 64 20 75 70 20 61 66 74 | 65 72 20 62 65 69 6e 67 |d up aft|er being|
|000047e0| 20 70 72 6f 63 65 73 73 | 65 64 20 62 79 20 61 20 | process|ed by a |
|000047f0| 72 75 6c 65 29 2c 20 6e | 6f 72 20 74 68 65 0a 58 |rule), n|or the.X|
|00004800| 66 6f 72 65 67 72 6f 75 | 6e 64 73 20 61 6e 64 20 |foregrou|nds and |
|00004810| 62 61 63 6b 67 72 6f 75 | 6e 64 73 2e 0a 58 0a 58 |backgrou|nds..X.X|
|00004820| 2a 2a 2a 20 55 73 61 67 | 65 0a 58 0a 58 4e 6f 77 |*** Usag|e.X.XNow|
|00004830| 20 66 6f 72 20 74 68 65 | 20 65 61 73 79 20 62 69 | for the| easy bi|
|00004840| 74 3a 20 66 6f 72 20 79 | 6f 75 72 20 66 69 6c 65 |t: for y|our file|
|00004850| 20 22 61 73 70 70 72 6f | 67 2e 61 73 70 22 3b 0a | "asppro|g.asp";.|
|00004860| 58 0a 58 09 09 61 73 70 | 20 61 73 70 70 72 6f 67 |X.X..asp| aspprog|
|00004870| 2e 61 73 70 20 3e 20 24 | 48 4f 4d 45 2f 2e 70 6c |.asp > $|HOME/.pl|
|00004880| 61 6e 0a 58 0a 58 6f 72 | 2c 20 69 66 20 79 6f 75 |an.X.Xor|, if you|
|00004890| 20 6d 75 73 74 20 75 73 | 65 20 74 61 62 73 0a 58 | must us|e tabs.X|
|000048a0| 0a 58 09 09 65 78 70 61 | 6e 64 20 3c 20 61 73 70 |.X..expa|nd < asp|
|000048b0| 70 72 6f 67 2e 61 73 70 | 20 7c 20 61 73 70 20 3e |prog.asp| | asp >|
|000048c0| 20 24 48 4f 4d 45 2f 2e | 70 6c 61 6e 0a 58 0a 58 | $HOME/.|plan.X.X|
|000048d0| 42 75 67 73 2c 20 72 65 | 70 6f 72 74 73 2c 20 73 |Bugs, re|ports, s|
|000048e0| 75 67 67 65 73 74 69 6f | 6e 73 2c 20 70 61 74 63 |uggestio|ns, patc|
|000048f0| 68 65 73 20 74 6f 20 74 | 68 65 20 61 64 64 72 65 |hes to t|he addre|
|00004900| 73 73 20 62 65 6c 6f 77 | 2e 2e 2e 0a 58 0a 58 09 |ss below|....X.X.|
|00004910| 09 09 09 09 09 61 6c 65 | 63 20 38 2d 29 0a 58 2d |.....ale|c 8-).X-|
|00004920| 2d 0a 58 49 4e 45 54 3a | 20 61 65 6d 40 61 62 65 |-.XINET:| aem@abe|
|00004930| 72 2e 61 63 2e 75 6b 20 | 20 20 20 20 20 4a 41 4e |r.ac.uk | JAN|
|00004940| 45 54 3a 20 61 65 6d 40 | 75 6b 2e 61 63 2e 61 62 |ET: aem@|uk.ac.ab|
|00004950| 65 72 20 20 20 20 20 20 | 42 49 54 4e 45 54 3a 20 |er |BITNET: |
|00004960| 61 65 6d 25 61 62 65 72 | 40 75 6b 61 63 72 6c 0a |aem%aber|@ukacrl.|
|00004970| 58 55 55 43 50 3a 20 2e | 2e 2e 21 6d 63 73 75 6e |XUUCP: .|..!mcsun|
|00004980| 21 75 6b 63 21 61 62 65 | 72 21 61 65 6d 20 20 20 |!ukc!abe|r!aem |
|00004990| 20 20 20 20 20 20 41 52 | 50 41 3a 20 61 65 6d 25 | AR|PA: aem%|
|000049a0| 75 6b 2e 61 63 2e 61 62 | 65 72 40 6e 73 66 6e 65 |uk.ac.ab|er@nsfne|
|000049b0| 74 2d 72 65 6c 61 79 2e | 61 63 2e 75 6b 0a 58 53 |t-relay.|ac.uk.XS|
|000049c0| 4e 41 49 4c 3a 20 41 6c | 65 63 20 4d 75 66 66 65 |NAIL: Al|ec Muffe|
|000049d0| 74 74 2c 20 43 6f 6d 70 | 75 74 65 72 20 55 6e 69 |tt, Comp|uter Uni|
|000049e0| 74 2c 20 4c 6c 61 6e 64 | 69 6e 61 6d 20 55 43 57 |t, Lland|inam UCW|
|000049f0| 2c 20 41 62 65 72 79 73 | 74 77 79 74 68 2c 20 55 |, Aberys|twyth, U|
|00004a00| 4b 2c 20 53 59 32 33 20 | 33 44 42 0a 45 4e 44 5f |K, SY23 |3DB.END_|
|00004a10| 4f 46 5f 46 49 4c 45 0a | 69 66 20 74 65 73 74 20 |OF_FILE.|if test |
|00004a20| 31 33 31 32 30 20 2d 6e | 65 20 60 77 63 20 2d 63 |13120 -n|e `wc -c|
|00004a30| 20 3c 27 52 45 41 44 4d | 45 27 60 3b 20 74 68 65 | <'READM|E'`; the|
|00004a40| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|00004a50| 20 5c 22 27 52 45 41 44 | 4d 45 27 5c 22 20 75 6e | \"'READ|ME'\" un|
|00004a60| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00004a70| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|00004a80| 20 6f 66 20 27 52 45 41 | 44 4d 45 27 0a 66 69 0a | of 'REA|DME'.fi.|
|00004a90| 69 66 20 74 65 73 74 20 | 2d 66 20 27 61 6e 69 6d |if test |-f 'anim|
|00004aa0| 2e 63 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |.c' -a "|${1}" !=|
|00004ab0| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00004ac0| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00004ad0| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00004ae0| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 61 6e 69 |ting fil|e \"'ani|
|00004af0| 6d 2e 63 27 5c 22 0a 65 | 6c 73 65 0a 65 63 68 6f |m.c'\".e|lse.echo|
|00004b00| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|00004b10| 67 20 5c 22 27 61 6e 69 | 6d 2e 63 27 5c 22 20 5c |g \"'ani|m.c'\" \|
|00004b20| 28 31 36 32 31 20 63 68 | 61 72 61 63 74 65 72 73 |(1621 ch|aracters|
|00004b30| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|00004b40| 3e 27 61 6e 69 6d 2e 63 | 27 20 3c 3c 27 45 4e 44 |>'anim.c|' <<'END|
|00004b50| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 2f 2a 0a 58 20 |_OF_FILE|'.X/*.X |
|00004b60| 2a 20 54 68 69 73 20 63 | 6f 64 65 20 69 73 20 63 |* This c|ode is c|
|00004b70| 6f 70 79 72 69 67 68 74 | 20 41 44 45 20 4d 75 66 |opyright| ADE Muf|
|00004b80| 66 65 74 74 2c 20 53 65 | 70 74 65 6d 62 65 72 20 |fett, Se|ptember |
|00004b90| 31 39 39 31 2c 20 61 6e | 64 20 69 73 20 64 69 73 |1991, an|d is dis|
|00004ba0| 74 72 69 62 75 74 65 64 | 20 61 73 0a 58 20 2a 20 |tributed| as.X * |
|00004bb0| 70 61 72 74 20 6f 66 20 | 74 68 65 20 41 53 50 20 |part of |the ASP |
|00004bc0| 2e 70 6c 61 6e 20 64 65 | 73 63 72 69 70 74 69 6f |.plan de|scriptio|
|00004bd0| 6e 20 6c 61 6e 67 75 61 | 67 65 20 63 6f 6d 70 69 |n langua|ge compi|
|00004be0| 6c 65 72 2e 20 20 54 68 | 69 73 20 63 6f 64 65 20 |ler. Th|is code |
|00004bf0| 69 73 20 66 72 65 65 6c | 79 0a 58 20 2a 20 72 65 |is freel|y.X * re|
|00004c00| 64 69 73 74 72 69 62 75 | 74 61 62 6c 65 20 61 73 |distribu|table as|
|00004c10| 20 6c 6f 6e 67 20 61 73 | 20 74 68 69 73 20 63 6f | long as| this co|
|00004c20| 70 79 72 69 67 68 74 20 | 6e 6f 74 69 63 65 20 72 |pyright |notice r|
|00004c30| 65 6d 61 69 6e 73 20 69 | 6e 74 61 63 74 2e 20 4e |emains i|ntact. N|
|00004c40| 6f 0a 58 20 2a 20 72 65 | 73 70 6f 6e 73 69 62 69 |o.X * re|sponsibi|
|00004c50| 6c 69 74 79 20 69 73 20 | 61 73 73 75 6d 65 64 20 |lity is |assumed |
|00004c60| 62 79 20 74 68 65 20 61 | 75 74 68 6f 72 20 66 6f |by the a|uthor fo|
|00004c70| 72 20 61 6e 79 20 73 69 | 74 75 61 74 69 6f 6e 20 |r any si|tuation |
|00004c80| 77 68 69 63 68 20 61 72 | 69 73 65 73 0a 58 20 2a |which ar|ises.X *|
|00004c90| 20 66 72 6f 6d 20 74 68 | 65 20 75 73 65 20 6f 66 | from th|e use of|
|00004ca0| 20 74 68 69 73 20 63 6f | 64 65 2c 20 69 6e 63 6c | this co|de, incl|
|00004cb0| 75 64 69 6e 67 20 69 6e | 73 61 6e 69 74 79 2c 20 |uding in|sanity, |
|00004cc0| 6c 61 74 65 20 6e 69 67 | 68 74 73 2c 20 6f 72 20 |late nig|hts, or |
|00004cd0| 64 69 73 6b 0a 58 20 2a | 20 73 74 6f 72 61 67 65 |disk.X *| storage|
|00004ce0| 20 70 72 6f 62 6c 65 6d | 73 2e 0a 58 20 2a 2f 0a | problem|s..X */.|
|00004cf0| 58 0a 58 23 69 6e 63 6c | 75 64 65 20 22 61 73 70 |X.X#incl|ude "asp|
|00004d00| 2e 68 22 0a 58 0a 58 76 | 6f 69 64 0a 58 41 64 64 |.h".X.Xv|oid.XAdd|
|00004d10| 4f 62 6a 65 63 74 20 28 | 73 74 72 69 6e 67 29 0a |Object (|string).|
|00004d20| 58 20 20 20 20 63 68 61 | 72 20 2a 73 74 72 69 6e |X cha|r *strin|
|00004d30| 67 3b 0a 58 7b 0a 58 20 | 20 20 20 72 65 67 69 73 |g;.X{.X | regis|
|00004d40| 74 65 72 20 69 6e 74 20 | 69 3b 0a 58 20 20 20 20 |ter int |i;.X |
|00004d50| 69 6e 74 20 73 74 61 72 | 74 3b 0a 58 20 20 20 20 |int star|t;.X |
|00004d60| 69 6e 74 20 66 69 6e 69 | 73 68 3b 0a 58 20 20 20 |int fini|sh;.X |
|00004d70| 20 63 68 61 72 20 62 75 | 66 66 5b 53 43 52 45 45 | char bu|ff[SCREE|
|00004d80| 4e 57 49 44 54 48 5d 3b | 0a 58 20 20 20 20 63 68 |NWIDTH];|.X ch|
|00004d90| 61 72 20 2a 6f 62 6a 3b | 0a 58 0a 58 20 20 20 20 |ar *obj;|.X.X |
|00004da0| 73 73 63 61 6e 66 20 28 | 73 74 72 69 6e 67 2c 20 |sscanf (|string, |
|00004db0| 22 25 2a 73 20 25 73 20 | 25 64 20 25 64 22 2c 20 |"%*s %s |%d %d", |
|00004dc0| 62 75 66 66 2c 20 26 73 | 74 61 72 74 2c 20 26 66 |buff, &s|tart, &f|
|00004dd0| 69 6e 69 73 68 29 3b 0a | 58 0a 58 20 20 20 20 6f |inish);.|X.X o|
|00004de0| 62 6a 20 3d 20 43 6f 70 | 79 53 74 72 69 6e 67 20 |bj = Cop|yString |
|00004df0| 28 62 75 66 66 29 3b 0a | 58 0a 58 20 20 20 20 66 |(buff);.|X.X f|
|00004e00| 6f 72 20 28 69 20 3d 20 | 30 3b 20 61 6f 62 6a 65 |or (i = |0; aobje|
|00004e10| 63 74 73 5b 69 5d 2e 6f | 62 6a 65 63 74 20 26 26 |cts[i].o|bject &&|
|00004e20| 20 28 69 20 3c 20 4d 41 | 58 5f 41 4e 49 4d 5f 4f | (i < MA|X_ANIM_O|
|00004e30| 42 4a 53 20 2d 20 31 29 | 3b 20 69 2b 2b 29 3b 0a |BJS - 1)|; i++);.|
|00004e40| 58 0a 58 20 20 20 20 61 | 6f 62 6a 65 63 74 73 5b |X.X a|objects[|
|00004e50| 69 5d 2e 6f 62 6a 65 63 | 74 20 3d 20 6f 62 6a 3b |i].objec|t = obj;|
|00004e60| 0a 58 20 20 20 20 61 6f | 62 6a 65 63 74 73 5b 69 |.X ao|bjects[i|
|00004e70| 5d 2e 6c 6f 63 61 74 69 | 6f 6e 20 3d 20 73 74 61 |].locati|on = sta|
|00004e80| 72 74 3b 0a 58 20 20 20 | 20 61 6f 62 6a 65 63 74 |rt;.X | aobject|
|00004e90| 73 5b 69 5d 2e 64 65 73 | 74 69 6e 61 74 69 6f 6e |s[i].des|tination|
|00004ea0| 20 3d 20 66 69 6e 69 73 | 68 3b 0a 58 20 20 20 20 | = finis|h;.X |
|00004eb0| 61 6f 62 6a 65 63 74 73 | 5b 2b 2b 69 5d 2e 6f 62 |aobjects|[++i].ob|
|00004ec0| 6a 65 63 74 20 3d 20 4e | 55 4c 4c 3b 0a 58 7d 0a |ject = N|ULL;.X}.|
|00004ed0| 58 0a 58 76 6f 69 64 0a | 58 52 65 73 65 74 41 6e |X.Xvoid.|XResetAn|
|00004ee0| 69 6d 20 28 29 0a 58 7b | 0a 58 20 20 20 20 61 6f |im ().X{|.X ao|
|00004ef0| 62 6a 65 63 74 73 5b 30 | 5d 2e 6f 62 6a 65 63 74 |bjects[0|].object|
|00004f00| 20 3d 20 4e 55 4c 4c 3b | 0a 58 20 20 20 20 4e 75 | = NULL;|.X Nu|
|00004f10| 6c 6c 53 65 74 20 28 61 | 6e 69 6d 5f 62 75 66 66 |llSet (a|nim_buff|
|00004f20| 65 72 2c 20 73 69 7a 65 | 6f 66 20 28 61 6e 69 6d |er, size|of (anim|
|00004f30| 5f 62 75 66 66 65 72 29 | 29 3b 0a 58 7d 0a 58 0a |_buffer)|);.X}.X.|
|00004f40| 58 76 6f 69 64 0a 58 41 | 6e 69 6d 61 74 65 20 28 |Xvoid.XA|nimate (|
|00004f50| 29 0a 58 7b 0a 58 20 20 | 20 20 72 65 67 69 73 74 |).X{.X | regist|
|00004f60| 65 72 20 69 6e 74 20 69 | 3b 0a 58 20 20 20 20 73 |er int i|;.X s|
|00004f70| 74 72 75 63 74 20 61 6e | 69 6d 5f 6f 62 6a 65 63 |truct an|im_objec|
|00004f80| 74 20 2a 61 70 3b 0a 58 | 20 20 20 20 69 6e 74 20 |t *ap;.X| int |
|00004f90| 63 68 61 6e 67 65 64 3b | 0a 58 0a 58 20 20 20 20 |changed;|.X.X |
|00004fa0| 66 6f 72 20 28 63 68 61 | 6e 67 65 64 20 3d 20 31 |for (cha|nged = 1|
|00004fb0| 3b 20 63 68 61 6e 67 65 | 64 3b 20 2f 2a 20 6e 6f |; change|d; /* no|
|00004fc0| 74 68 69 6e 67 20 2a 2f | 20 29 0a 58 20 20 20 20 |thing */| ).X |
|00004fd0| 7b 0a 58 09 63 68 61 6e | 67 65 64 20 3d 20 30 3b |{.X.chan|ged = 0;|
|00004fe0| 0a 58 09 4e 75 6c 6c 53 | 65 74 20 28 61 6e 69 6d |.X.NullS|et (anim|
|00004ff0| 5f 62 75 66 66 65 72 2c | 20 73 69 7a 65 6f 66 20 |_buffer,| sizeof |
|00005000| 28 61 6e 69 6d 5f 62 75 | 66 66 65 72 29 29 3b 0a |(anim_bu|ffer));.|
|00005010| 58 09 53 70 61 63 65 46 | 6c 6f 6f 64 20 28 61 6e |X.SpaceF|lood (an|
|00005020| 69 6d 5f 62 75 66 66 65 | 72 2c 20 53 43 52 45 45 |im_buffe|r, SCREE|
|00005030| 4e 57 49 44 54 48 29 3b | 0a 58 0a 58 09 66 6f 72 |NWIDTH);|.X.X.for|
|00005040| 20 28 69 20 3d 20 30 3b | 20 61 6f 62 6a 65 63 74 | (i = 0;| aobject|
|00005050| 73 5b 69 5d 2e 6f 62 6a | 65 63 74 20 26 26 20 28 |s[i].obj|ect && (|
|00005060| 69 20 3c 20 4d 41 58 5f | 41 4e 49 4d 5f 4f 42 4a |i < MAX_|ANIM_OBJ|
|00005070| 53 20 2d 20 31 29 3b 20 | 69 2b 2b 29 0a 58 09 7b |S - 1); |i++).X.{|
|00005080| 0a 58 09 20 20 20 20 61 | 70 20 3d 20 26 61 6f 62 |.X. a|p = &aob|
|00005090| 6a 65 63 74 73 5b 69 5d | 3b 0a 58 0a 58 09 20 20 |jects[i]|;.X.X. |
|000050a0| 20 20 4c 69 6d 43 6f 70 | 79 20 28 61 6e 69 6d 5f | LimCop|y (anim_|
|000050b0| 62 75 66 66 65 72 2c 20 | 61 70 20 2d 3e 20 6f 62 |buffer, |ap -> ob|
|000050c0| 6a 65 63 74 2c 20 61 70 | 20 2d 3e 20 6c 6f 63 61 |ject, ap| -> loca|
|000050d0| 74 69 6f 6e 29 3b 0a 58 | 09 20 20 20 20 69 66 20 |tion);.X|. if |
|000050e0| 28 61 70 20 2d 3e 20 6c | 6f 63 61 74 69 6f 6e 20 |(ap -> l|ocation |
|000050f0| 3e 20 61 70 20 2d 3e 20 | 64 65 73 74 69 6e 61 74 |> ap -> |destinat|
|00005100| 69 6f 6e 29 0a 58 09 20 | 20 20 20 7b 0a 58 09 09 |ion).X. | {.X..|
|00005110| 61 70 20 2d 3e 20 6c 6f | 63 61 74 69 6f 6e 2d 2d |ap -> lo|cation--|
|00005120| 3b 0a 58 09 09 63 68 61 | 6e 67 65 64 2b 2b 3b 0a |;.X..cha|nged++;.|
|00005130| 58 09 20 20 20 20 7d 20 | 65 6c 73 65 20 69 66 20 |X. } |else if |
|00005140| 28 61 70 20 2d 3e 20 6c | 6f 63 61 74 69 6f 6e 20 |(ap -> l|ocation |
|00005150| 3c 20 61 70 20 2d 3e 20 | 64 65 73 74 69 6e 61 74 |< ap -> |destinat|
|00005160| 69 6f 6e 29 0a 58 09 20 | 20 20 20 7b 0a 58 09 09 |ion).X. | {.X..|
|00005170| 61 70 20 2d 3e 20 6c 6f | 63 61 74 69 6f 6e 2b 2b |ap -> lo|cation++|
|00005180| 3b 0a 58 09 09 63 68 61 | 6e 67 65 64 2b 2b 3b 0a |;.X..cha|nged++;.|
|00005190| 58 09 20 20 20 20 7d 0a | 58 09 7d 0a 58 09 2f 2a |X. }.|X.}.X./*|
|000051a0| 20 61 6e 69 6d 5f 62 75 | 66 66 65 72 20 69 73 20 | anim_bu|ffer is |
|000051b0| 64 65 61 6c 74 20 77 69 | 74 68 20 69 6e 20 55 70 |dealt wi|th in Up|
|000051c0| 64 61 74 65 28 29 20 66 | 6f 72 20 6d 61 73 6b 69 |date() f|or maski|
|000051d0| 6e 67 20 72 65 61 73 6f | 6e 73 20 2a 2f 0a 58 09 |ng reaso|ns */.X.|
|000051e0| 55 70 64 61 74 65 43 52 | 20 28 29 3b 0a 58 20 20 |UpdateCR| ();.X |
|000051f0| 20 20 7d 0a 58 7d 0a 45 | 4e 44 5f 4f 46 5f 46 49 | }.X}.E|ND_OF_FI|
|00005200| 4c 45 0a 69 66 20 74 65 | 73 74 20 31 36 32 31 20 |LE.if te|st 1621 |
|00005210| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 61 6e 69 |-ne `wc |-c <'ani|
|00005220| 6d 2e 63 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |m.c'`; t|hen. |
|00005230| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 61 6e |echo sha|r: \"'an|
|00005240| 69 6d 2e 63 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |im.c'\" |unpacked|
|00005250| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|00005260| 21 0a 66 69 0a 23 20 65 | 6e 64 20 6f 66 20 27 61 |!.fi.# e|nd of 'a|
|00005270| 6e 69 6d 2e 63 27 0a 66 | 69 0a 69 66 20 74 65 73 |nim.c'.f|i.if tes|
|00005280| 74 20 2d 66 20 27 61 73 | 70 2e 63 27 20 2d 61 20 |t -f 'as|p.c' -a |
|00005290| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|000052a0| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|000052b0| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|000052c0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|000052d0| 6c 65 20 5c 22 27 61 73 | 70 2e 63 27 5c 22 0a 65 |le \"'as|p.c'\".e|
|000052e0| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|000052f0| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 61 73 70 |xtractin|g \"'asp|
|00005300| 2e 63 27 5c 22 20 5c 28 | 36 37 33 34 20 63 68 61 |.c'\" \(|6734 cha|
|00005310| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00005320| 2f 5e 58 2f 2f 22 20 3e | 27 61 73 70 2e 63 27 20 |/^X//" >|'asp.c' |
|00005330| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|00005340| 58 2f 2a 0a 58 20 2a 20 | 54 68 69 73 20 63 6f 64 |X/*.X * |This cod|
|00005350| 65 20 69 73 20 63 6f 70 | 79 72 69 67 68 74 20 41 |e is cop|yright A|
|00005360| 44 45 20 4d 75 66 66 65 | 74 74 2c 20 53 65 70 74 |DE Muffe|tt, Sept|
|00005370| 65 6d 62 65 72 20 31 39 | 39 31 2c 20 61 6e 64 20 |ember 19|91, and |
|00005380| 69 73 20 64 69 73 74 72 | 69 62 75 74 65 64 20 61 |is distr|ibuted a|
|00005390| 73 0a 58 20 2a 20 70 61 | 72 74 20 6f 66 20 74 68 |s.X * pa|rt of th|
|000053a0| 65 20 41 53 50 20 2e 70 | 6c 61 6e 20 64 65 73 63 |e ASP .p|lan desc|
|000053b0| 72 69 70 74 69 6f 6e 20 | 6c 61 6e 67 75 61 67 65 |ription |language|
|000053c0| 20 63 6f 6d 70 69 6c 65 | 72 2e 20 20 54 68 69 73 | compile|r. This|
|000053d0| 20 63 6f 64 65 20 69 73 | 20 66 72 65 65 6c 79 0a | code is| freely.|
|000053e0| 58 20 2a 20 72 65 64 69 | 73 74 72 69 62 75 74 61 |X * redi|stributa|
|000053f0| 62 6c 65 20 61 73 20 6c | 6f 6e 67 20 61 73 20 74 |ble as l|ong as t|
|00005400| 68 69 73 20 63 6f 70 79 | 72 69 67 68 74 20 6e 6f |his copy|right no|
|00005410| 74 69 63 65 20 72 65 6d | 61 69 6e 73 20 69 6e 74 |tice rem|ains int|
|00005420| 61 63 74 2e 20 4e 6f 0a | 58 20 2a 20 72 65 73 70 |act. No.|X * resp|
|00005430| 6f 6e 73 69 62 69 6c 69 | 74 79 20 69 73 20 61 73 |onsibili|ty is as|
|00005440| 73 75 6d 65 64 20 62 79 | 20 74 68 65 20 61 75 74 |sumed by| the aut|
|00005450| 68 6f 72 20 66 6f 72 20 | 61 6e 79 20 73 69 74 75 |hor for |any situ|
|00005460| 61 74 69 6f 6e 20 77 68 | 69 63 68 20 61 72 69 73 |ation wh|ich aris|
|00005470| 65 73 0a 58 20 2a 20 66 | 72 6f 6d 20 74 68 65 20 |es.X * f|rom the |
|00005480| 75 73 65 20 6f 66 20 74 | 68 69 73 20 63 6f 64 65 |use of t|his code|
|00005490| 2c 20 69 6e 63 6c 75 64 | 69 6e 67 20 69 6e 73 61 |, includ|ing insa|
|000054a0| 6e 69 74 79 2c 20 6c 61 | 74 65 20 6e 69 67 68 74 |nity, la|te night|
|000054b0| 73 2c 20 6f 72 20 64 69 | 73 6b 0a 58 20 2a 20 73 |s, or di|sk.X * s|
|000054c0| 74 6f 72 61 67 65 20 70 | 72 6f 62 6c 65 6d 73 2e |torage p|roblems.|
|000054d0| 0a 58 20 2a 2f 0a 58 0a | 58 2f 2a 20 55 6e 69 78 |.X */.X.|X/* Unix|
|000054e0| 20 69 73 20 61 20 42 65 | 6c 6c 6d 61 72 6b 20 6f | is a Be|llmark o|
|000054f0| 66 20 4c 61 62 20 54 72 | 61 64 65 6f 72 61 74 6f |f Lab Tr|adeorato|
|00005500| 72 69 65 73 20 2a 2f 0a | 58 0a 58 23 69 6e 63 6c |ries */.|X.X#incl|
|00005510| 75 64 65 20 22 61 73 70 | 2e 68 22 0a 58 23 75 6e |ude "asp|.h".X#un|
|00005520| 64 65 66 20 54 45 53 54 | 49 4e 47 0a 58 0a 58 2f |def TEST|ING.X.X/|
|00005530| 2a 20 47 4c 4f 42 41 4c | 20 44 41 54 41 20 2a 2f |* GLOBAL| DATA */|
|00005540| 0a 58 69 6e 74 20 73 70 | 65 65 64 3b 0a 58 69 6e |.Xint sp|eed;.Xin|
|00005550| 74 20 73 6d 6f 6f 74 68 | 3b 0a 58 63 68 61 72 20 |t smooth|;.Xchar |
|00005560| 73 74 64 6c 69 6e 65 5b | 53 43 52 45 45 4e 57 49 |stdline[|SCREENWI|
|00005570| 44 54 48 20 2b 20 31 5d | 3b 0a 58 63 68 61 72 20 |DTH + 1]|;.Xchar |
|00005580| 61 6e 69 6d 5f 62 75 66 | 66 65 72 5b 53 43 52 45 |anim_buf|fer[SCRE|
|00005590| 45 4e 57 49 44 54 48 20 | 2b 20 31 5d 3b 0a 58 63 |ENWIDTH |+ 1];.Xc|
|000055a0| 68 61 72 20 66 6f 72 65 | 67 72 6f 75 6e 64 5b 53 |har fore|ground[S|
|000055b0| 43 52 45 45 4e 57 49 44 | 54 48 20 2b 20 31 5d 3b |CREENWID|TH + 1];|
|000055c0| 0a 58 63 68 61 72 20 62 | 61 63 6b 67 72 6f 75 6e |.Xchar b|ackgroun|
|000055d0| 64 5b 53 43 52 45 45 4e | 57 49 44 54 48 20 2b 20 |d[SCREEN|WIDTH + |
|000055e0| 31 5d 3b 0a 58 73 74 72 | 75 63 74 20 61 6e 69 6d |1];.Xstr|uct anim|
|000055f0| 5f 6f 62 6a 65 63 74 20 | 61 6f 62 6a 65 63 74 73 |_object |aobjects|
|00005600| 5b 4d 41 58 5f 41 4e 49 | 4d 5f 4f 42 4a 53 5d 3b |[MAX_ANI|M_OBJS];|
|00005610| 0a 58 2f 2a 20 45 4e 44 | 20 4f 46 20 47 4c 4f 42 |.X/* END| OF GLOB|
|00005620| 41 4c 20 44 41 54 41 20 | 2a 2f 0a 58 0a 58 73 74 |AL DATA |*/.X.Xst|
|00005630| 72 75 63 74 20 63 6f 6d | 6d 61 6e 64 5f 73 74 72 |ruct com|mand_str|
|00005640| 75 63 74 75 72 65 0a 58 | 7b 0a 58 20 20 20 20 63 |ucture.X|{.X c|
|00005650| 68 61 72 20 2a 63 6f 64 | 65 77 6f 72 64 3b 0a 58 |har *cod|eword;.X|
|00005660| 20 20 20 20 76 6f 69 64 | 20 28 2a 66 6e 29 20 28 | void| (*fn) (|
|00005670| 29 3b 0a 58 20 20 20 20 | 63 68 61 72 20 68 61 73 |);.X |char has|
|00005680| 5f 61 72 67 73 3b 0a 58 | 7d 3b 0a 58 0a 58 73 74 |_args;.X|};.X.Xst|
|00005690| 72 75 63 74 20 63 6f 6d | 6d 61 6e 64 5f 63 61 6c |ruct com|mand_cal|
|000056a0| 6c 0a 58 7b 0a 58 20 20 | 20 20 69 6e 74 20 63 5f |l.X{.X | int c_|
|000056b0| 69 6e 64 65 78 3b 0a 58 | 20 20 20 20 63 68 61 72 |index;.X| char|
|000056c0| 20 2a 69 6e 76 6f 63 61 | 74 69 6f 6e 3b 0a 58 7d | *invoca|tion;.X}|
|000056d0| 3b 0a 58 0a 58 73 74 61 | 74 69 63 20 46 49 4c 45 |;.X.Xsta|tic FILE|
|000056e0| 20 2a 66 70 3b 0a 58 73 | 74 61 74 69 63 20 63 68 | *fp;.Xs|tatic ch|
|000056f0| 61 72 20 76 65 72 73 69 | 6f 6e 5b 5d 20 3d 20 22 |ar versi|on[] = "|
|00005700| 61 73 70 33 2e 32 28 63 | 29 61 65 6d 40 61 62 65 |asp3.2(c|)aem@abe|
|00005710| 72 22 3b 0a 58 73 74 61 | 74 69 63 20 73 74 72 75 |r";.Xsta|tic stru|
|00005720| 63 74 20 63 6f 6d 6d 61 | 6e 64 5f 63 61 6c 6c 20 |ct comma|nd_call |
|00005730| 63 6f 6d 6d 61 6e 64 5f | 63 61 6c 6c 73 5b 43 4f |command_|calls[CO|
|00005740| 4d 4d 41 4e 44 5f 43 4f | 55 4e 54 5d 3b 0a 58 73 |MMAND_CO|UNT];.Xs|
|00005750| 74 61 74 69 63 20 73 74 | 72 75 63 74 20 63 6f 6d |tatic st|ruct com|
|00005760| 6d 61 6e 64 5f 73 74 72 | 75 63 74 75 72 65 20 63 |mand_str|ucture c|
|00005770| 6f 6d 6d 61 6e 64 5f 6e | 61 6d 65 5b 43 4f 4d 4d |ommand_n|ame[COMM|
|00005780| 41 4e 44 5f 43 4f 55 4e | 54 5d 3b 0a 58 0a 58 76 |AND_COUN|T];.X.Xv|
|00005790| 6f 69 64 0a 58 53 6d 6f | 6f 74 68 20 28 63 6f 6d |oid.XSmo|oth (com|
|000057a0| 6d 61 6e 64 29 0a 58 20 | 20 20 20 63 68 61 72 20 |mand).X | char |
|000057b0| 2a 63 6f 6d 6d 61 6e 64 | 3b 0a 58 7b 0a 58 20 20 |*command|;.X{.X |
|000057c0| 20 20 73 73 63 61 6e 66 | 20 28 63 6f 6d 6d 61 6e | sscanf| (comman|
|000057d0| 64 2c 20 22 25 2a 73 20 | 25 64 22 2c 20 26 73 6d |d, "%*s |%d", &sm|
|000057e0| 6f 6f 74 68 29 3b 0a 58 | 7d 0a 58 0a 58 76 6f 69 |ooth);.X|}.X.Xvoi|
|000057f0| 64 0a 58 53 70 65 65 64 | 20 28 63 6f 6d 6d 61 6e |d.XSpeed| (comman|
|00005800| 64 29 0a 58 20 20 20 20 | 63 68 61 72 20 2a 63 6f |d).X |char *co|
|00005810| 6d 6d 61 6e 64 3b 0a 58 | 7b 0a 58 20 20 20 20 73 |mmand;.X|{.X s|
|00005820| 73 63 61 6e 66 20 28 63 | 6f 6d 6d 61 6e 64 2c 20 |scanf (c|ommand, |
|00005830| 22 25 2a 73 20 25 64 22 | 2c 20 26 73 70 65 65 64 |"%*s %d"|, &speed|
|00005840| 29 3b 0a 58 7d 0a 58 0a | 58 76 6f 69 64 0a 58 46 |);.X}.X.|Xvoid.XF|
|00005850| 6c 75 73 68 20 28 29 0a | 58 7b 0a 58 20 20 20 20 |lush ().|X{.X |
|00005860| 63 6f 6d 6d 61 6e 64 5f | 63 61 6c 6c 73 5b 30 5d |command_|calls[0]|
|00005870| 2e 63 5f 69 6e 64 65 78 | 20 3d 20 30 3b 0a 58 7d |.c_index| = 0;.X}|
|00005880| 0a 58 0a 58 63 68 61 72 | 20 2a 0a 58 42 75 69 6c |.X.Xchar| *.XBuil|
|00005890| 64 41 72 67 73 20 28 63 | 6f 6d 6d 73 74 72 69 6e |dArgs (c|ommstrin|
|000058a0| 67 2c 20 6e 61 6d 65 5f | 69 6e 64 65 78 29 0a 58 |g, name_|index).X|
|000058b0| 20 20 20 20 63 68 61 72 | 20 2a 63 6f 6d 6d 73 74 | char| *commst|
|000058c0| 72 69 6e 67 3b 0a 58 20 | 20 20 20 69 6e 74 20 6e |ring;.X | int n|
|000058d0| 61 6d 65 5f 69 6e 64 65 | 78 3b 0a 58 7b 0a 58 20 |ame_inde|x;.X{.X |
|000058e0| 20 20 20 63 68 61 72 20 | 63 62 75 66 5b 32 35 35 | char |cbuf[255|
|000058f0| 5d 3b 0a 58 0a 58 20 20 | 20 20 69 66 20 28 21 73 |];.X.X | if (!s|
|00005900| 74 72 63 6d 70 20 28 63 | 6f 6d 6d 61 6e 64 5f 6e |trcmp (c|ommand_n|
|00005910| 61 6d 65 5b 6e 61 6d 65 | 5f 69 6e 64 65 78 5d 2e |ame[name|_index].|
|00005920| 63 6f 64 65 77 6f 72 64 | 2c 20 22 2e 6f 62 6a 65 |codeword|, ".obje|
|00005930| 63 74 22 29 20 7c 7c 0a | 58 09 21 73 74 72 63 6d |ct") ||.|X.!strcm|
|00005940| 70 20 28 63 6f 6d 6d 61 | 6e 64 5f 6e 61 6d 65 5b |p (comma|nd_name[|
|00005950| 6e 61 6d 65 5f 69 6e 64 | 65 78 5d 2e 63 6f 64 65 |name_ind|ex].code|
|00005960| 77 6f 72 64 2c 20 22 2e | 73 70 65 65 64 22 29 20 |word, ".|speed") |
|00005970| 7c 7c 0a 58 09 21 73 74 | 72 63 6d 70 20 28 63 6f |||.X.!st|rcmp (co|
|00005980| 6d 6d 61 6e 64 5f 6e 61 | 6d 65 5b 6e 61 6d 65 5f |mmand_na|me[name_|
|00005990| 69 6e 64 65 78 5d 2e 63 | 6f 64 65 77 6f 72 64 2c |index].c|odeword,|
|000059a0| 20 22 2e 73 6d 6f 6f 74 | 68 22 29 29 0a 58 20 20 | ".smoot|h")).X |
|000059b0| 20 20 7b 0a 58 09 72 65 | 74 75 72 6e 20 28 43 6f | {.X.re|turn (Co|
|000059c0| 70 79 53 74 72 69 6e 67 | 20 28 63 6f 6d 6d 73 74 |pyString| (commst|
|000059d0| 72 69 6e 67 29 29 3b 0a | 58 20 20 20 20 7d 0a 58 |ring));.|X }.X|
|000059e0| 20 20 20 20 69 66 20 28 | 21 73 74 72 63 6d 70 20 | if (|!strcmp |
|000059f0| 28 63 6f 6d 6d 61 6e 64 | 5f 6e 61 6d 65 5b 6e 61 |(command|_name[na|
|00005a00| 6d 65 5f 69 6e 64 65 78 | 5d 2e 63 6f 64 65 77 6f |me_index|].codewo|
|00005a10| 72 64 2c 20 22 2e 66 6f | 72 65 67 72 6f 75 6e 64 |rd, ".fo|reground|
|00005a20| 22 29 29 0a 58 20 20 20 | 20 7b 0a 58 09 66 67 65 |")).X | {.X.fge|
|00005a30| 74 73 20 28 63 62 75 66 | 2c 20 32 35 35 2c 20 66 |ts (cbuf|, 255, f|
|00005a40| 70 29 3b 0a 58 09 4e 75 | 6c 6c 53 65 74 20 28 66 |p);.X.Nu|llSet (f|
|00005a50| 6f 72 65 67 72 6f 75 6e | 64 2c 20 73 69 7a 65 6f |oregroun|d, sizeo|
|00005a60| 66 20 28 66 6f 72 65 67 | 72 6f 75 6e 64 29 29 3b |f (foreg|round));|
|00005a70| 0a 58 09 73 74 72 6e 63 | 70 79 20 28 66 6f 72 65 |.X.strnc|py (fore|
|00005a80| 67 72 6f 75 6e 64 2c 20 | 63 62 75 66 2c 20 53 43 |ground, |cbuf, SC|
|00005a90| 52 45 45 4e 57 49 44 54 | 48 29 3b 0a 58 09 72 65 |REENWIDT|H);.X.re|
|00005aa0| 74 75 72 6e 20 28 28 63 | 68 61 72 20 2a 29 20 4e |turn ((c|har *) N|
|00005ab0| 55 4c 4c 29 3b 0a 58 20 | 20 20 20 7d 0a 58 20 20 |ULL);.X | }.X |
|00005ac0| 20 20 69 66 20 28 21 73 | 74 72 63 6d 70 20 28 63 | if (!s|trcmp (c|
|00005ad0| 6f 6d 6d 61 6e 64 5f 6e | 61 6d 65 5b 6e 61 6d 65 |ommand_n|ame[name|
|00005ae0| 5f 69 6e 64 65 78 5d 2e | 63 6f 64 65 77 6f 72 64 |_index].|codeword|
|00005af0| 2c 20 22 2e 62 61 63 6b | 67 72 6f 75 6e 64 22 29 |, ".back|ground")|
|00005b00| 29 0a 58 20 20 20 20 7b | 0a 58 09 66 67 65 74 73 |).X {|.X.fgets|
|00005b10| 20 28 63 62 75 66 2c 20 | 32 35 35 2c 20 66 70 29 | (cbuf, |255, fp)|
|00005b20| 3b 0a 58 09 4e 75 6c 6c | 53 65 74 20 28 62 61 63 |;.X.Null|Set (bac|
|00005b30| 6b 67 72 6f 75 6e 64 2c | 20 73 69 7a 65 6f 66 20 |kground,| sizeof |
|00005b40| 28 62 61 63 6b 67 72 6f | 75 6e 64 29 29 3b 0a 58 |(backgro|und));.X|
|00005b50| 09 73 74 72 6e 63 70 79 | 20 28 62 61 63 6b 67 72 |.strncpy| (backgr|
|00005b60| 6f 75 6e 64 2c 20 63 62 | 75 66 2c 20 53 43 52 45 |ound, cb|uf, SCRE|
|00005b70| 45 4e 57 49 44 54 48 29 | 3b 0a 58 09 72 65 74 75 |ENWIDTH)|;.X.retu|
|00005b80| 72 6e 20 28 28 63 68 61 | 72 20 2a 29 20 4e 55 4c |rn ((cha|r *) NUL|
|00005b90| 4c 29 3b 0a 58 20 20 20 | 20 7d 0a 58 20 20 20 20 |L);.X | }.X |
|00005ba0| 66 70 72 69 6e 74 66 20 | 28 73 74 64 65 72 72 2c |fprintf |(stderr,|
|00005bb0| 20 22 25 73 3a 20 4e 59 | 49 5c 6e 22 2c 20 63 6f | "%s: NY|I\n", co|
|00005bc0| 6d 6d 73 74 72 69 6e 67 | 29 3b 0a 58 20 20 20 20 |mmstring|);.X |
|00005bd0| 72 65 74 75 72 6e 20 28 | 28 63 68 61 72 20 2a 29 |return (|(char *)|
|00005be0| 20 30 29 3b 0a 58 7d 0a | 58 0a 58 76 6f 69 64 0a | 0);.X}.|X.Xvoid.|
|00005bf0| 58 4e 65 77 46 75 6e 63 | 74 69 6f 6e 20 28 63 77 |XNewFunc|tion (cw|
|00005c00| 2c 20 66 6e 2c 20 61 72 | 67 73 29 0a 58 20 20 20 |, fn, ar|gs).X |
|00005c10| 20 63 68 61 72 20 2a 63 | 77 3b 0a 58 20 20 20 20 | char *c|w;.X |
|00005c20| 76 6f 69 64 20 28 2a 66 | 6e 29 20 28 29 3b 0a 58 |void (*f|n) ();.X|
|00005c30| 20 20 20 20 63 68 61 72 | 20 61 72 67 73 3b 0a 58 | char| args;.X|
|00005c40| 7b 0a 58 20 20 20 20 73 | 74 61 74 69 63 20 69 6e |{.X s|tatic in|
|00005c50| 74 20 63 6f 6d 6d 61 6e | 64 5f 63 6f 75 6e 74 20 |t comman|d_count |
|00005c60| 3d 20 31 3b 09 2f 2a 20 | 6c 6f 61 64 20 63 6f 6d |= 1;./* |load com|
|00005c70| 6d 61 6e 64 73 20 66 72 | 6f 6d 20 31 73 74 20 65 |mands fr|om 1st e|
|00005c80| 6c 65 6d 65 6e 74 20 2a | 2f 0a 58 0a 58 20 20 20 |lement *|/.X.X |
|00005c90| 20 63 6f 6d 6d 61 6e 64 | 5f 6e 61 6d 65 5b 63 6f | command|_name[co|
|00005ca0| 6d 6d 61 6e 64 5f 63 6f | 75 6e 74 5d 2e 63 6f 64 |mmand_co|unt].cod|
|00005cb0| 65 77 6f 72 64 20 3d 20 | 63 77 3b 0a 58 20 20 20 |eword = |cw;.X |
|00005cc0| 20 63 6f 6d 6d 61 6e 64 | 5f 6e 61 6d 65 5b 63 6f | command|_name[co|
|00005cd0| 6d 6d 61 6e 64 5f 63 6f | 75 6e 74 5d 2e 66 6e 20 |mmand_co|unt].fn |
|00005ce0| 3d 20 66 6e 3b 0a 58 20 | 20 20 20 63 6f 6d 6d 61 |= fn;.X | comma|
|00005cf0| 6e 64 5f 6e 61 6d 65 5b | 63 6f 6d 6d 61 6e 64 5f |nd_name[|command_|
|00005d00| 63 6f 75 6e 74 5d 2e 68 | 61 73 5f 61 72 67 73 20 |count].h|as_args |
|00005d10| 3d 20 61 72 67 73 3b 0a | 58 20 20 20 20 63 6f 6d |= args;.|X com|
|00005d20| 6d 61 6e 64 5f 63 6f 75 | 6e 74 2b 2b 3b 0a 58 20 |mand_cou|nt++;.X |
|00005d30| 20 20 20 63 6f 6d 6d 61 | 6e 64 5f 6e 61 6d 65 5b | comma|nd_name[|
|00005d40| 63 6f 6d 6d 61 6e 64 5f | 63 6f 75 6e 74 5d 2e 63 |command_|count].c|
|00005d50| 6f 64 65 77 6f 72 64 20 | 3d 20 4e 55 4c 4c 3b 0a |odeword |= NULL;.|
|00005d60| 58 7d 0a 58 0a 58 76 6f | 69 64 0a 58 50 61 72 73 |X}.X.Xvo|id.XPars|
|00005d70| 65 43 6f 6d 6d 61 6e 64 | 73 20 28 63 73 74 72 69 |eCommand|s (cstri|
|00005d80| 6e 67 29 0a 58 20 20 20 | 20 72 65 67 69 73 74 65 |ng).X | registe|
|00005d90| 72 20 63 68 61 72 20 2a | 63 73 74 72 69 6e 67 3b |r char *|cstring;|
|00005da0| 0a 58 7b 0a 58 20 20 20 | 20 69 6e 74 20 69 3b 0a |.X{.X | int i;.|
|00005db0| 58 20 20 20 20 69 6e 74 | 20 63 6f 6d 6d 5f 6e 75 |X int| comm_nu|
|00005dc0| 6d 62 65 72 3b 0a 58 20 | 20 20 20 63 68 61 72 20 |mber;.X | char |
|00005dd0| 2a 70 74 72 3b 0a 58 20 | 20 20 20 69 6e 74 20 67 |*ptr;.X | int g|
|00005de0| 65 74 5f 6e 65 78 74 5f | 6c 69 6e 65 3b 0a 58 20 |et_next_|line;.X |
|00005df0| 20 20 20 63 68 61 72 20 | 6f 74 68 65 72 62 75 66 | char |otherbuf|
|00005e00| 66 65 72 5b 32 35 35 5d | 3b 0a 58 20 20 20 20 73 |fer[255]|;.X s|
|00005e10| 74 61 74 69 63 20 63 68 | 61 72 20 64 6f 74 20 3d |tatic ch|ar dot =|
|00005e20| 20 27 2e 27 3b 0a 58 0a | 58 20 20 20 20 63 6f 6d | '.';.X.|X com|
|00005e30| 6d 5f 6e 75 6d 62 65 72 | 20 3d 20 30 3b 0a 58 20 |m_number| = 0;.X |
|00005e40| 20 20 20 63 6f 6d 6d 61 | 6e 64 5f 63 61 6c 6c 73 | comma|nd_calls|
|00005e50| 5b 63 6f 6d 6d 5f 6e 75 | 6d 62 65 72 5d 2e 63 5f |[comm_nu|mber].c_|
|00005e60| 69 6e 64 65 78 20 3d 20 | 30 3b 0a 58 0a 58 20 20 |index = |0;.X.X |
|00005e70| 73 74 61 72 74 5f 70 61 | 72 73 69 6e 67 3a 0a 58 |start_pa|rsing:.X|
|00005e80| 20 20 20 20 69 20 3d 20 | 73 74 72 6c 65 6e 20 28 | i = |strlen (|
|00005e90| 63 73 74 72 69 6e 67 29 | 20 2d 20 31 3b 0a 58 20 |cstring)| - 1;.X |
|00005ea0| 20 20 20 69 66 20 28 63 | 73 74 72 69 6e 67 5b 69 | if (c|string[i|
|00005eb0| 5d 20 3d 3d 20 27 5c 5c | 27 29 0a 58 20 20 20 20 |] == '\\|').X |
|00005ec0| 7b 0a 58 09 67 65 74 5f | 6e 65 78 74 5f 6c 69 6e |{.X.get_|next_lin|
|00005ed0| 65 20 3d 20 31 3b 0a 58 | 09 63 73 74 72 69 6e 67 |e = 1;.X|.cstring|
|00005ee0| 5b 69 5d 20 3d 20 27 5c | 30 27 3b 0a 58 20 20 20 |[i] = '\|0';.X |
|00005ef0| 20 7d 20 65 6c 73 65 0a | 58 20 20 20 20 7b 0a 58 | } else.|X {.X|
|00005f00| 09 67 65 74 5f 6e 65 78 | 74 5f 6c 69 6e 65 20 3d |.get_nex|t_line =|
|00005f10| 20 30 3b 0a 58 20 20 20 | 20 7d 0a 58 0a 58 20 20 | 0;.X | }.X.X |
|00005f20| 20 20 66 6f 72 20 28 70 | 74 72 20 3d 20 28 63 68 | for (p|tr = (ch|
|00005f30| 61 72 20 2a 29 20 73 74 | 72 63 68 72 20 28 63 73 |ar *) st|rchr (cs|
|00005f40| 74 72 69 6e 67 2c 20 64 | 6f 74 29 3b 0a 58 09 20 |tring, d|ot);.X. |
|00005f50| 70 74 72 3b 0a 58 09 20 | 70 74 72 20 3d 20 28 63 |ptr;.X. |ptr = (c|
|00005f60| 68 61 72 20 2a 29 20 73 | 74 72 63 68 72 20 28 70 |har *) s|trchr (p|
|00005f70| 74 72 2c 20 64 6f 74 29 | 29 0a 58 20 20 20 20 7b |tr, dot)|).X {|
|00005f80| 0a 58 09 69 66 20 28 21 | 2a 70 74 72 29 09 09 2f |.X.if (!|*ptr)../|
|00005f90| 2a 20 6e 6f 20 6d 6f 72 | 65 20 63 6f 6d 6d 61 6e |* no mor|e comman|
|00005fa0| 64 73 20 2a 2f 0a 58 09 | 7b 0a 58 09 20 20 20 20 |ds */.X.|{.X. |
|00005fb0| 62 72 65 61 6b 3b 0a 58 | 09 7d 0a 58 09 66 6f 72 |break;.X|.}.X.for|
|00005fc0| 20 28 69 20 3d 20 31 3b | 20 63 6f 6d 6d 61 6e 64 | (i = 1;| command|
|00005fd0| 5f 6e 61 6d 65 5b 69 5d | 2e 63 6f 64 65 77 6f 72 |_name[i]|.codewor|
|00005fe0| 64 3b 20 69 2b 2b 29 0a | 58 09 7b 0a 58 09 20 20 |d; i++).|X.{.X. |
|00005ff0| 20 20 69 66 20 28 21 73 | 74 72 6e 63 6d 70 20 28 | if (!s|trncmp (|
|00006000| 70 74 72 2c 20 63 6f 6d | 6d 61 6e 64 5f 6e 61 6d |ptr, com|mand_nam|
|00006010| 65 5b 69 5d 2e 63 6f 64 | 65 77 6f 72 64 2c 0a 58 |e[i].cod|eword,.X|
|00006020| 09 09 09 20 20 73 74 72 | 6c 65 6e 20 28 63 6f 6d |... str|len (com|
|00006030| 6d 61 6e 64 5f 6e 61 6d | 65 5b 69 5d 2e 63 6f 64 |mand_nam|e[i].cod|
|00006040| 65 77 6f 72 64 29 29 29 | 0a 58 09 20 20 20 20 7b |eword)))|.X. {|
|00006050| 0a 58 09 09 63 6f 6d 6d | 61 6e 64 5f 63 61 6c 6c |.X..comm|and_call|
|00006060| 73 5b 63 6f 6d 6d 5f 6e | 75 6d 62 65 72 5d 2e 63 |s[comm_n|umber].c|
|00006070| 5f 69 6e 64 65 78 20 3d | 20 69 3b 0a 58 0a 58 09 |_index =| i;.X.X.|
|00006080| 09 69 66 20 28 63 6f 6d | 6d 61 6e 64 5f 6e 61 6d |.if (com|mand_nam|
|00006090| 65 5b 69 5d 2e 68 61 73 | 5f 61 72 67 73 20 21 3d |e[i].has|_args !=|
|000060a0| 20 27 59 27 29 0a 58 09 | 09 7b 0a 58 09 09 20 20 | 'Y').X.|.{.X.. |
|000060b0| 20 20 63 6f 6d 6d 61 6e | 64 5f 63 61 6c 6c 73 5b | comman|d_calls[|
|000060c0| 63 6f 6d 6d 5f 6e 75 6d | 62 65 72 5d 2e 69 6e 76 |comm_num|ber].inv|
|000060d0| 6f 63 61 74 69 6f 6e 20 | 3d 20 28 63 68 61 72 20 |ocation |= (char |
|000060e0| 2a 29 20 30 3b 0a 58 09 | 09 20 20 20 20 63 6f 6d |*) 0;.X.|. com|
|000060f0| 6d 5f 6e 75 6d 62 65 72 | 2b 2b 3b 0a 58 09 09 20 |m_number|++;.X.. |
|00006100| 20 20 20 62 72 65 61 6b | 3b 0a 58 09 09 7d 20 65 | break|;.X..} e|
|00006110| 6c 73 65 0a 58 09 09 7b | 0a 58 09 09 20 20 20 20 |lse.X..{|.X.. |
|00006120| 63 6f 6d 6d 61 6e 64 5f | 63 61 6c 6c 73 5b 63 6f |command_|calls[co|
|00006130| 6d 6d 5f 6e 75 6d 62 65 | 72 5d 2e 69 6e 76 6f 63 |mm_numbe|r].invoc|
|00006140| 61 74 69 6f 6e 20 3d 20 | 42 75 69 6c 64 41 72 67 |ation = |BuildArg|
|00006150| 73 20 28 70 74 72 2c 20 | 69 29 3b 0a 58 09 09 20 |s (ptr, |i);.X.. |
|00006160| 20 20 20 63 6f 6d 6d 5f | 6e 75 6d 62 65 72 2b 2b | comm_|number++|
|00006170| 3b 0a 58 09 09 20 20 20 | 20 62 72 65 61 6b 3b 0a |;.X.. | break;.|
|00006180| 58 09 09 7d 0a 58 09 20 | 20 20 20 7d 0a 58 09 7d |X..}.X. | }.X.}|
|00006190| 0a 58 0a 58 09 69 66 20 | 28 21 63 6f 6d 6d 61 6e |.X.X.if |(!comman|
|000061a0| 64 5f 6e 61 6d 65 5b 69 | 5d 2e 63 6f 64 65 77 6f |d_name[i|].codewo|
|000061b0| 72 64 29 0a 58 09 7b 0a | 58 09 20 20 20 20 66 70 |rd).X.{.|X. fp|
|000061c0| 72 69 6e 74 66 20 28 73 | 74 64 65 72 72 2c 20 22 |rintf (s|tderr, "|
|000061d0| 45 72 72 6f 72 3a 20 75 | 6e 6b 6e 6f 77 6e 20 63 |Error: u|nknown c|
|000061e0| 6f 6d 6d 61 6e 64 20 27 | 25 73 27 5c 6e 22 2c 20 |ommand '|%s'\n", |
|000061f0| 70 74 72 29 3b 0a 58 09 | 7d 0a 58 09 70 74 72 2b |ptr);.X.|}.X.ptr+|
|00006200| 2b 3b 09 09 09 2f 2a 20 | 6d 61 6b 65 20 74 68 69 |+;.../* |make thi|
|00006210| 73 20 6e 65 61 74 65 72 | 20 2a 2f 0a 58 20 20 20 |s neater| */.X |
|00006220| 20 7d 0a 58 20 20 20 20 | 69 66 20 28 67 65 74 5f | }.X |if (get_|
|00006230| 6e 65 78 74 5f 6c 69 6e | 65 29 0a 58 20 20 20 20 |next_lin|e).X |
|00006240| 7b 0a 58 09 66 67 65 74 | 73 20 28 6f 74 68 65 72 |{.X.fget|s (other|
|00006250| 62 75 66 66 65 72 2c 20 | 32 35 35 2c 20 66 70 29 |buffer, |255, fp)|
|00006260| 3b 0a 58 09 54 72 69 6d | 20 28 6f 74 68 65 72 62 |;.X.Trim| (otherb|
|00006270| 75 66 66 65 72 29 3b 0a | 58 09 63 73 74 72 69 6e |uffer);.|X.cstrin|
|00006280| 67 20 3d 20 6f 74 68 65 | 72 62 75 66 66 65 72 3b |g = othe|rbuffer;|
|00006290| 0a 58 09 67 6f 74 6f 20 | 73 74 61 72 74 5f 70 61 |.X.goto |start_pa|
|000062a0| 72 73 69 6e 67 3b 0a 58 | 20 20 20 20 7d 0a 58 20 |rsing;.X| }.X |
|000062b0| 20 20 20 63 6f 6d 6d 61 | 6e 64 5f 63 61 6c 6c 73 | comma|nd_calls|
|000062c0| 5b 63 6f 6d 6d 5f 6e 75 | 6d 62 65 72 2b 2b 5d 2e |[comm_nu|mber++].|
|000062d0| 63 5f 69 6e 64 65 78 20 | 3d 20 30 3b 0a 58 7d 0a |c_index |= 0;.X}.|
|000062e0| 58 0a 58 76 6f 69 64 0a | 58 45 78 65 63 75 74 65 |X.Xvoid.|XExecute|
|000062f0| 43 6f 6d 6d 61 6e 64 73 | 4f 6e 20 28 64 73 74 72 |Commands|On (dstr|
|00006300| 69 6e 67 29 0a 58 20 20 | 20 20 72 65 67 69 73 74 |ing).X | regist|
|00006310| 65 72 20 63 68 61 72 20 | 2a 64 73 74 72 69 6e 67 |er char |*dstring|
|00006320| 3b 0a 58 7b 0a 58 20 20 | 20 20 72 65 67 69 73 74 |;.X{.X | regist|
|00006330| 65 72 20 69 6e 74 20 69 | 3b 0a 58 20 20 20 20 72 |er int i|;.X r|
|00006340| 65 67 69 73 74 65 72 20 | 69 6e 74 20 6a 3b 0a 58 |egister |int j;.X|
|00006350| 0a 58 20 20 20 20 66 6f | 72 20 28 69 20 3d 20 30 |.X fo|r (i = 0|
|00006360| 3b 20 63 6f 6d 6d 61 6e | 64 5f 63 61 6c 6c 73 5b |; comman|d_calls[|
|00006370| 69 5d 2e 63 5f 69 6e 64 | 65 78 3b 20 69 2b 2b 29 |i].c_ind|ex; i++)|
|00006380| 0a 58 20 20 20 20 7b 0a | 58 09 6a 20 3d 20 63 6f |.X {.|X.j = co|
|00006390| 6d 6d 61 6e 64 5f 63 61 | 6c 6c 73 5b 69 5d 2e 63 |mmand_ca|lls[i].c|
|000063a0| 5f 69 6e 64 65 78 3b 0a | 58 23 69 66 64 65 66 20 |_index;.|X#ifdef |
|000063b0| 54 45 53 54 49 4e 47 0a | 58 09 70 72 69 6e 74 66 |TESTING.|X.printf|
|000063c0| 20 28 22 65 78 65 63 75 | 74 69 6e 67 20 27 25 73 | ("execu|ting '%s|
|000063d0| 27 20 61 73 20 27 25 73 | 27 20 6f 6e 20 5c 6e 27 |' as '%s|' on \n'|
|000063e0| 25 73 27 5c 6e 22 2c 20 | 63 6f 6d 6d 61 6e 64 5f |%s'\n", |command_|
|000063f0| 6e 61 6d 65 5b 6a 5d 2e | 63 6f 64 65 77 6f 72 64 |name[j].|codeword|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.