home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1998-07-15 | 10.0 KB | [TEXT/MSET] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: TextEdit
Confidence | Program | Detection | Match Type | Support
|
---|
20%
| dexvert
| Blazing Paddles (image/blazingPaddles)
| fileSize
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Wed Jul 15 19:13:38 1998, modified Wed Jul 15 19:13:38 1998, creator 'MSET', type ASCII, 9664 bytes "TextEdit" , at 0x2640 381 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MSET] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 54 65 78 74 45 64 | 69 74 00 00 00 00 00 00 |..TextEd|it......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 53 45 | 54 01 00 00 00 00 00 00 |.TEXTMSE|T.......|
|00000050| 00 00 00 00 00 25 c0 00 | 00 01 7d b1 d2 e8 22 b1 |.....%..|..}...".|
|00000060| d2 e8 22 00 00 0c 00 00 | 00 00 00 00 00 00 00 00 |..".....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 f0 07 00 00 |........|........|
|00000080| 5c 20 4f 63 74 39 35 20 | 4a 52 46 20 41 64 64 65 |\ Oct95 |JRF Adde|
|00000090| 64 20 6e 6f 43 6c 69 70 | 20 74 6f 20 41 63 74 69 |d noClip| to Acti|
|000000a0| 76 61 74 65 3a 20 26 20 | 44 65 61 63 74 69 76 61 |vate: & |Deactiva|
|000000b0| 74 65 3a 20 70 65 72 20 | 4d 52 48 20 73 75 67 67 |te: per |MRH sugg|
|000000c0| 65 73 74 69 6f 6e 0d 09 | 5c 20 6d 6f 64 69 66 69 |estion..|\ modifi|
|000000d0| 65 64 20 4e 65 77 3a 20 | 74 6f 20 65 6e 61 62 6c |ed New: |to enabl|
|000000e0| 65 20 6f 75 74 6c 69 6e | 65 20 68 69 67 68 6c 69 |e outlin|e highli|
|000000f0| 74 69 6e 67 20 6f 66 20 | 69 6e 61 63 74 69 76 65 |ting of |inactive|
|00000100| 20 54 45 0d 0d 5c 20 32 | 35 4d 61 79 39 33 20 44 | TE..\ 2|5May93 D|
|00000110| 42 48 20 20 41 64 64 65 | 64 20 6c 61 73 74 63 68 |BH Adde|d lastch|
|00000120| 61 72 3a 20 74 6f 20 63 | 6f 6d 6d 6f 6e 69 7a 65 |ar: to c|ommonize|
|00000130| 20 61 20 72 6f 75 74 69 | 6e 65 2e 0d 09 5c 20 61 | a routi|ne...\ a|
|00000140| 64 64 65 64 20 6b 6c 75 | 64 67 65 20 74 6f 20 23 |dded klu|dge to #|
|00000150| 6c 69 6e 65 73 3a 20 74 | 6f 20 66 69 78 20 61 20 |lines: t|o fix a |
|00000160| 62 75 67 2e 0d 09 5c 20 | 43 6f 6d 70 6c 65 74 65 |bug...\ |Complete|
|00000170| 6c 79 20 72 65 77 6f 72 | 6b 65 64 20 63 75 72 72 |ly rewor|ked curr|
|00000180| 65 6e 74 6c 69 6e 65 3a | 20 74 6f 20 66 69 78 20 |entline:| to fix |
|00000190| 61 20 73 70 65 65 64 20 | 70 72 6f 62 6c 65 6d 2e |a speed |problem.|
|000001a0| 0d 0d 5c 20 31 35 4d 61 | 79 39 33 20 44 42 48 20 |..\ 15Ma|y93 DBH |
|000001b0| 20 41 64 64 65 64 20 74 | 65 78 74 61 64 64 72 3a | Added t|extaddr:|
|000001c0| 20 6d 65 74 68 6f 64 20 | 74 6f 20 69 6d 70 72 6f | method |to impro|
|000001d0| 76 65 20 72 65 61 64 61 | 62 69 6c 69 74 79 20 61 |ve reada|bility a|
|000001e0| 6e 64 20 63 6f 64 65 20 | 72 65 75 73 65 2e 0d 09 |nd code |reuse...|
|000001f0| 5c 20 55 73 65 20 74 65 | 78 74 61 64 64 72 3a 20 |\ Use te|xtaddr: |
|00000200| 73 65 6c 66 20 69 6e 20 | 67 65 74 6c 69 6e 65 3a |self in |getline:|
|00000210| 20 2e 0d 09 5c 20 44 65 | 6c 65 74 65 64 20 61 64 | ...\ De|leted ad|
|00000220| 64 72 6c 69 6e 65 73 74 | 61 72 74 3a 20 6d 65 74 |drlinest|art: met|
|00000230| 68 6f 64 20 62 65 63 61 | 75 73 65 20 69 74 20 69 |hod beca|use it i|
|00000240| 73 20 6e 65 76 65 72 20 | 72 65 75 73 65 64 2e 0d |s never |reused..|
|00000250| 09 5c 20 41 64 64 65 64 | 20 6c 69 6e 65 45 6e 64 |.\ Added| lineEnd|
|00000260| 3a 20 6d 65 74 68 6f 64 | 2c 20 73 6f 20 77 65 20 |: method|, so we |
|00000270| 63 61 6e 20 6d 6f 76 65 | 20 74 68 65 72 65 20 65 |can move| there e|
|00000280| 61 73 69 6c 79 2e 0d 09 | 5c 20 44 65 6c 74 65 20 |asily...|\ Delte |
|00000290| 67 65 6e 65 72 61 6c 20 | 63 6c 61 73 73 20 64 65 |general |class de|
|000002a0| 63 6c 61 72 61 74 69 6f | 6e 2e 0d 5c 20 31 31 4d |claratio|n..\ 11M|
|000002b0| 61 79 39 33 20 44 42 48 | 20 20 66 69 78 65 64 20 |ay93 DBH| fixed |
|000002c0| 67 65 74 4c 69 6e 65 3a | 20 73 6f 20 6e 75 6c 6c |getLine:| so null|
|000002d0| 20 69 73 20 72 65 74 75 | 72 6e 65 64 20 69 66 20 | is retu|rned if |
|000002e0| 6c 61 73 74 20 63 68 61 | 72 20 69 6e 20 54 45 20 |last cha|r in TE |
|000002f0| 69 73 0d 09 5c 20 61 20 | 63 61 72 72 69 61 67 65 |is..\ a |carriage|
|00000300| 20 72 65 74 75 72 6e 2e | 20 20 41 64 64 65 64 20 | return.| Added |
|00000310| 67 65 74 70 6f 69 6e 74 | 3a 20 61 6e 64 20 69 64 |getpoint|: and id|
|00000320| 6c 65 3a 20 6d 65 74 68 | 6f 64 73 2e 0d 0d 5c 20 |le: meth|ods...\ |
|00000330| 33 53 65 70 39 36 20 6d | 72 68 20 20 61 64 64 65 |3Sep96 m|rh adde|
|00000340| 64 20 76 61 6c 75 65 73 | 20 6c 69 6e 65 53 74 61 |d values| lineSta|
|00000350| 72 74 20 61 6e 64 20 6c | 69 6e 65 45 6e 64 2c 20 |rt and l|ineEnd, |
|00000360| 73 65 74 20 62 79 20 61 | 20 67 65 74 4c 69 6e 65 |set by a| getLine|
|00000370| 3a 20 63 61 6c 6c 0d 5c | 20 4a 61 6e 20 39 38 20 |: call.\| Jan 98 |
|00000380| 6d 72 68 20 20 66 69 78 | 65 64 20 54 45 20 73 63 |mrh fix|ed TE sc|
|00000390| 72 61 70 20 73 74 75 66 | 66 20 66 6f 72 20 50 6f |rap stuf|f for Po|
|000003a0| 77 65 72 50 43 0d 0d 0d | 50 50 43 3f 20 5b 49 46 |werPC...|PPC? [IF|
|000003b0| 5d 20 20 73 79 73 63 61 | 6c 6c 20 54 45 53 65 74 |] sysca|ll TESet|
|000003c0| 53 63 72 61 70 4c 65 6e | 67 74 68 20 20 5b 54 48 |ScrapLen|gth [TH|
|000003d0| 45 4e 5d 09 09 5c 20 6e | 6f 74 20 61 20 63 61 6c |EN]..\ n|ot a cal|
|000003e0| 6c 20 6f 6e 20 36 38 6b | 0d 0d 6e 65 65 64 20 74 |l on 68k|..need t|
|000003f0| 65 72 65 63 6f 72 64 0d | 0d 76 61 72 69 61 62 6c |erecord.|.variabl|
|00000400| 65 20 4f 46 46 53 45 54 | 20 20 5c 20 75 73 65 64 |e OFFSET| \ used|
|00000410| 20 69 6e 20 47 65 74 53 | 63 72 61 70 20 63 61 6c | in GetS|crap cal|
|00000420| 6c 0d 0d 30 09 76 61 6c | 75 65 09 4c 49 4e 45 53 |l..0.val|ue.LINES|
|00000430| 54 41 52 54 09 5c 20 74 | 68 65 73 65 20 61 72 65 |TART.\ t|hese are|
|00000440| 20 73 65 74 20 77 68 65 | 6e 20 77 65 20 63 61 6c | set whe|n we cal|
|00000450| 6c 20 67 65 74 4c 69 6e | 65 3a 20 2d 20 75 73 65 |l getLin|e: - use|
|00000460| 66 75 6c 20 73 6f 6d 65 | 74 69 6d 65 73 0d 30 09 |ful some|times.0.|
|00000470| 76 61 6c 75 65 09 4c 49 | 4e 45 45 4e 44 0d 0d 0d |value.LI|NEEND...|
|00000480| 5c 20 73 6f 6d 65 20 72 | 6f 75 74 69 6e 65 73 20 |\ some r|outines |
|00000490| 74 6f 20 68 61 6e 64 6c | 65 20 74 68 65 20 63 6c |to handl|e the cl|
|000004a0| 69 70 62 6f 61 72 64 0d | 0d 3a 20 54 4f 44 45 53 |ipboard.|.: TODES|
|000004b0| 4b 20 20 20 20 20 20 20 | 20 28 20 2d 2d 20 6f 73 |K | ( -- os|
|000004c0| 65 72 72 20 29 0d 09 5a | 65 72 6f 53 63 72 61 70 |err )..Z|eroScrap|
|000004d0| 20 3f 45 58 49 54 09 09 | 09 09 09 5c 20 6f 75 74 | ?EXIT..|...\ out|
|000004e0| 20 69 66 20 65 72 72 6f | 72 0d 5b 20 70 70 63 3f | if erro|r.[ ppc?|
|000004f0| 20 5d 20 5b 69 66 5d 0d | 09 54 45 47 65 74 53 63 | ] [if].|.TEGetSc|
|00000500| 72 61 70 4c 65 6e 67 74 | 68 09 09 09 09 5c 20 6c |rapLengt|h....\ l|
|00000510| 65 6e 67 74 68 0d 5b 65 | 6c 73 65 5d 0d 09 67 6c |ength.[e|lse]..gl|
|00000520| 6f 62 61 6c 20 54 45 53 | 63 72 70 4c 65 6e 67 74 |obal TES|crpLengt|
|00000530| 68 20 77 40 0d 5b 74 68 | 65 6e 5d 0d 09 27 74 79 |h w@.[th|en]..'ty|
|00000540| 70 65 20 54 45 58 54 20 | 20 20 20 20 20 09 09 09 |pe TEXT | ...|
|00000550| 09 5c 20 74 68 65 54 79 | 70 65 0d 09 54 45 53 63 |.\ theTy|pe..TESc|
|00000560| 72 61 70 48 61 6e 64 6c | 65 20 20 40 0d 09 50 75 |rapHandl|e @..Pu|
|00000570| 74 53 63 72 61 70 0d 3b | 0d 0d 0d 20 3a 20 46 52 |tScrap.;|... : FR|
|00000580| 4f 4d 44 45 53 4b 20 20 | 20 20 20 28 20 2d 2d 20 |OMDESK | ( -- |
|00000590| 6f 73 65 72 72 20 29 0d | 09 54 45 53 63 72 61 70 |oserr ).|.TEScrap|
|000005a0| 48 61 6e 64 6c 65 0d 09 | 27 74 79 70 65 20 54 45 |Handle..|'type TE|
|000005b0| 58 54 20 20 20 20 20 20 | 5c 20 74 68 65 54 79 70 |XT |\ theTyp|
|000005c0| 65 0d 09 6f 66 66 73 65 | 74 0d 09 47 65 74 53 63 |e..offse|t..GetSc|
|000005d0| 72 61 70 0d 5b 20 70 70 | 63 3f 20 5d 20 5b 69 66 |rap.[ pp|c? ] [if|
|000005e0| 5d 0d 09 64 75 70 20 30 | 3e 3d 20 49 46 20 20 54 |]..dup 0|>= IF T|
|000005f0| 45 53 65 74 53 63 72 61 | 70 4c 65 6e 67 74 68 0d |ESetScra|pLength.|
|00000600| 09 09 09 09 30 09 09 09 | 09 09 09 09 5c 20 6e 6f |....0...|....\ no|
|00000610| 20 65 72 72 6f 72 0d 09 | 09 09 54 48 45 4e 0d 5b | error..|..THEN.[|
|00000620| 65 6c 73 65 5d 0d 09 64 | 75 70 20 30 3e 3d 09 49 |else]..d|up 0>=.I|
|00000630| 46 20 20 67 6c 6f 62 61 | 6c 20 54 45 53 63 72 70 |F globa|l TEScrp|
|00000640| 4c 65 6e 67 74 68 20 77 | 21 09 09 5c 20 73 74 6f |Length w|!..\ sto|
|00000650| 72 65 20 73 63 72 61 70 | 20 6c 65 6e 67 74 68 0d |re scrap| length.|
|00000660| 09 09 09 09 30 09 09 09 | 09 09 09 09 5c 20 6e 6f |....0...|....\ no|
|00000670| 20 65 72 72 6f 72 0d 09 | 09 09 54 48 45 4e 0d 5b | error..|..THEN.[|
|00000680| 74 68 65 6e 5d 0d 3b 20 | 0d 0d 0d 0d 3a 20 53 45 |then].; |....: SE|
|00000690| 4c 43 55 54 0d 20 20 20 | 20 20 20 20 20 61 63 74 |LCUT. | act|
|000006a0| 57 20 49 46 20 63 75 74 | 3a 20 5b 20 61 63 74 57 |W IF cut|: [ actW|
|000006b0| 20 5d 20 54 48 45 4e 20 | 3b 0d 0d 3a 20 53 45 4c | ] THEN |;..: SEL|
|000006c0| 43 4f 50 59 0d 20 20 20 | 20 20 20 20 20 61 63 74 |COPY. | act|
|000006d0| 57 20 49 46 20 63 6f 70 | 79 3a 20 5b 20 61 63 74 |W IF cop|y: [ act|
|000006e0| 57 20 5d 20 54 48 45 4e | 20 3b 0d 0d 3a 20 53 45 |W ] THEN| ;..: SE|
|000006f0| 4c 50 41 53 54 45 0d 09 | 61 63 74 57 20 49 46 20 |LPASTE..|actW IF |
|00000700| 20 70 61 73 74 65 3a 20 | 5b 20 61 63 74 57 20 5d | paste: |[ actW ]|
|00000710| 20 20 54 48 45 4e 20 3b | 0d 0d 3a 20 53 45 4c 43 | THEN ;|..: SELC|
|00000720| 4c 45 41 52 0d 09 61 63 | 74 57 20 49 46 20 20 63 |LEAR..ac|tW IF c|
|00000730| 6c 65 61 72 3a 20 5b 20 | 61 63 74 57 20 5d 20 20 |lear: [ |actW ] |
|00000740| 54 48 45 4e 20 3b 0d 0d | 0d 3a 63 6c 61 73 73 20 |THEN ;..|.:class |
|00000750| 20 52 47 42 43 6f 6c 6f | 72 20 20 73 75 70 65 72 | RGBColo|r super|
|00000760| 7b 20 6f 62 6a 65 63 74 | 20 7d 0d 36 38 6b 5f 72 |{ object| }.68k_r|
|00000770| 65 63 6f 72 64 0d 7b 09 | 75 69 6e 74 09 72 65 64 |ecord.{.|uint.red|
|00000780| 0d 09 75 69 6e 74 09 67 | 72 65 65 6e 0d 09 75 69 |..uint.g|reen..ui|
|00000790| 6e 74 09 62 6c 75 65 0d | 7d 0d 0d 3a 6d 20 53 45 |nt.blue.|}..:m SE|
|000007a0| 54 43 4f 4c 4f 52 3a 09 | 5c 20 28 20 72 65 64 20 |TCOLOR:.|\ ( red |
|000007b0| 67 72 65 65 6e 20 62 6c | 75 65 20 2d 2d 20 29 0d |green bl|ue -- ).|
|000007c0| 09 70 75 74 3a 20 62 6c | 75 65 20 20 70 75 74 3a |.put: bl|ue put:|
|000007d0| 20 67 72 65 65 6e 20 20 | 70 75 74 3a 20 72 65 64 | green |put: red|
|000007e0| 20 20 3b 6d 0d 0d 3a 6d | 20 47 45 54 43 4f 4c 4f | ;m..:m| GETCOLO|
|000007f0| 52 3a 09 5c 20 28 20 2d | 2d 20 72 65 64 20 67 72 |R:.\ ( -|- red gr|
|00000800| 65 65 6e 20 62 6c 75 65 | 20 29 0d 09 67 65 74 3a |een blue| )..get:|
|00000810| 20 72 65 64 20 20 67 65 | 74 3a 20 67 72 65 65 6e | red ge|t: green|
|00000820| 20 20 67 65 74 3a 20 62 | 6c 75 65 20 20 3b 6d 0d | get: b|lue ;m.|
|00000830| 0d 3b 63 6c 61 73 73 0d | 0d 5c 20 4e 6f 74 65 20 |.;class.|.\ Note |
|00000840| 61 6e 20 6f 62 6a 65 63 | 74 20 6f 66 20 63 6c 61 |an objec|t of cla|
|00000850| 73 73 20 52 47 42 43 6f | 6c 6f 72 20 77 69 6c 6c |ss RGBCo|lor will|
|00000860| 20 73 74 61 72 74 20 6f | 66 66 20 62 6c 61 63 6b | start o|ff black|
|00000870| 2c 20 75 6e 6c 65 73 73 | 20 77 65 20 63 68 61 6e |, unless| we chan|
|00000880| 67 65 20 69 74 2e 0d 0d | 0d 3a 63 6c 61 73 73 20 |ge it...|.:class |
|00000890| 54 65 78 74 53 74 79 6c | 65 20 20 73 75 70 65 72 |TextStyl|e super|
|000008a0| 7b 20 6f 62 6a 65 63 74 | 20 7d 0d 0d 70 75 62 6c |{ object| }..publ|
|000008b0| 69 63 0d 36 38 6b 5f 72 | 65 63 6f 72 64 0d 7b 09 |ic.68k_r|ecord.{.|
|000008c0| 69 6e 74 09 09 09 74 73 | 46 6f 6e 74 0d 09 62 79 |int...ts|Font..by|
|000008d0| 74 65 09 09 74 73 46 61 | 63 65 0d 09 69 6e 74 09 |te..tsFa|ce..int.|
|000008e0| 09 09 74 73 53 69 7a 65 | 0d 09 52 47 42 43 6f 6c |..tsSize|..RGBCol|
|000008f0| 6f 72 09 74 73 43 6f 6c | 6f 72 0d 7d 0d 0d 3a 6d |or.tsCol|or.}..:m|
|00000900| 20 63 6c 61 73 73 69 6e | 69 74 3a 09 39 20 70 75 | classin|it:.9 pu|
|00000910| 74 3a 20 74 73 53 69 7a | 65 20 20 3b 6d 0d 0d 3b |t: tsSiz|e ;m..;|
|00000920| 63 6c 61 73 73 0d 0d 54 | 65 78 74 53 74 79 6c 65 |class..T|extStyle|
|00000930| 09 74 68 65 53 74 79 6c | 65 0d 0d 5c 20 73 79 73 |.theStyl|e..\ sys|
|00000940| 63 61 6c 6c 20 54 45 4e | 65 77 0d 5c 20 73 79 73 |call TEN|ew.\ sys|
|00000950| 63 61 6c 6c 20 54 45 53 | 74 79 6c 65 4e 65 77 0d |call TES|tyleNew.|
|00000960| 5c 20 73 79 73 63 61 6c | 6c 20 54 65 78 74 46 6f |\ syscal|l TextFo|
|00000970| 6e 74 0d 5c 20 73 79 73 | 63 61 6c 6c 20 54 65 78 |nt.\ sys|call Tex|
|00000980| 74 53 69 7a 65 0d 5c 20 | 73 79 73 63 61 6c 6c 09 |tSize.\ |syscall.|
|00000990| 54 45 53 65 74 53 74 79 | 6c 65 0d 0d 68 61 6e 64 |TESetSty|le..hand|
|000009a0| 6c 65 09 74 65 78 74 48 | 61 6e 64 6c 65 0d 0d 0d |le.textH|andle...|
|000009b0| 3a 43 4c 41 53 53 20 54 | 65 78 74 45 64 69 74 20 |:CLASS T|extEdit |
|000009c0| 73 75 70 65 72 7b 20 6f | 62 6a 65 63 74 20 7d 0d |super{ o|bject }.|
|000009d0| 0d 09 68 61 6e 64 6c 65 | 09 54 45 48 61 6e 64 6c |..handle|.TEHandl|
|000009e0| 65 0d 70 75 62 6c 69 63 | 0d 09 62 6f 6f 6c 09 73 |e.public|..bool.s|
|000009f0| 74 79 6c 65 73 3f 0d 65 | 6e 64 5f 70 75 62 6c 69 |tyles?.e|nd_publi|
|00000a00| 63 0d 0d 3a 6d 20 75 73 | 65 53 74 79 6c 65 73 3a |c..:m us|eStyles:|
|00000a10| 09 73 65 74 3a 20 73 74 | 79 6c 65 73 3f 20 20 3b |.set: st|yles? ;|
|00000a20| 6d 09 09 5c 20 67 65 74 | 20 72 69 64 20 6f 66 20 |m..\ get| rid of |
|00000a30| 69 74 20 77 68 65 6e 20 | 49 20 66 69 78 20 74 68 |it when |I fix th|
|00000a40| 65 20 62 75 67 21 0d 0d | 3a 6d 20 6e 65 77 3a 09 |e bug!..|:m new:.|
|00000a50| 7b 20 64 65 73 74 20 76 | 69 65 77 20 2d 2d 20 7d |{ dest v|iew -- }|
|00000a60| 0d 0d 09 39 20 54 65 78 | 74 53 69 7a 65 09 09 09 |...9 Tex|tSize...|
|00000a70| 09 5c 20 6e 65 65 64 20 | 61 20 73 6d 61 6c 6c 69 |.\ need |a smalli|
|00000a80| 73 68 20 69 6e 69 74 69 | 61 6c 20 64 65 66 61 75 |sh initi|al defau|
|00000a90| 6c 74 20 76 61 6c 75 65 | 0d 09 64 65 73 74 0d 09 |lt value|..dest..|
|00000aa0| 76 69 65 77 0d 09 67 65 | 74 3a 20 73 74 79 6c 65 |view..ge|t: style|
|00000ab0| 73 3f 0d 09 49 46 09 09 | 54 45 53 74 79 6c 65 4e |s?..IF..|TEStyleN|
|00000ac0| 65 77 0d 09 45 4c 53 45 | 09 54 45 4e 65 77 0d 09 |ew..ELSE|.TENew..|
|00000ad0| 54 48 45 4e 20 20 70 75 | 74 3a 20 54 45 48 61 6e |THEN pu|t: TEHan|
|00000ae0| 64 6c 65 0d 0d 09 32 20 | 31 09 09 09 09 09 5c 20 |dle...2 |1.....\ |
|00000af0| 32 20 73 65 6c 65 63 74 | 73 20 4f 75 74 6c 69 6e |2 select|s Outlin|
|00000b00| 65 48 69 6c 69 74 65 20 | 66 65 61 74 75 72 65 0d |eHilite |feature.|
|00000b10| 09 67 65 74 3a 20 54 45 | 48 61 6e 64 6c 65 09 09 |.get: TE|Handle..|
|00000b20| 5c 20 31 20 73 65 74 73 | 20 69 74 73 20 66 6c 61 |\ 1 sets| its fla|
|00000b30| 67 0d 09 54 45 46 65 61 | 74 75 72 65 46 6c 61 67 |g..TEFea|tureFlag|
|00000b40| 0d 09 64 72 6f 70 09 09 | 09 09 5c 20 64 6f 6e 27 |..drop..|..\ don'|
|00000b50| 74 20 77 61 6e 74 20 74 | 68 65 20 72 65 74 75 72 |t want t|he retur|
|00000b60| 6e 65 64 20 72 65 73 75 | 6c 74 0d 3b 6d 0d 0d 3a |ned resu|lt.;m..:|
|00000b70| 6d 20 68 61 6e 64 6c 65 | 3a 09 28 20 2d 2d 20 74 |m handle|:.( -- t|
|00000b80| 65 68 61 6e 64 6c 65 20 | 29 0d 09 67 65 74 3a 20 |ehandle |)..get: |
|00000b90| 54 45 48 61 6e 64 6c 65 | 20 3b 6d 0d 0d 3a 6d 20 |TEHandle| ;m..:m |
|00000ba0| 70 74 72 3a 09 28 20 2d | 2d 20 74 65 52 65 63 6f |ptr:.( -|- teReco|
|00000bb0| 72 64 20 29 0d 09 70 74 | 72 3a 20 54 45 48 61 6e |rd )..pt|r: TEHan|
|00000bc0| 64 6c 65 20 3b 6d 0d 0d | 0d 3a 6d 20 6e 6f 57 72 |dle ;m..|.:m noWr|
|00000bd0| 61 70 3a 0d 09 70 74 72 | 3a 20 73 65 6c 66 20 20 |ap:..ptr|: self |
|00000be0| 6e 6f 57 72 61 70 3a 20 | 74 65 52 65 63 6f 72 64 |noWrap: |teRecord|
|00000bf0| 20 20 3b 6d 0d 0d 3a 6d | 20 57 72 61 70 49 74 3a | ;m..:m| WrapIt:|
|00000c00| 0d 09 70 74 72 3a 20 73 | 65 6c 66 20 20 77 72 61 |..ptr: s|elf wra|
|00000c10| 70 49 74 3a 20 74 65 52 | 65 63 6f 72 64 20 20 3b |pIt: teR|ecord ;|
|00000c20| 6d 0d 0d 0d 3a 6d 20 3e | 66 6f 6e 74 3a 20 20 28 |m...:m >|font: (|
|00000c30| 20 66 6f 6e 74 23 20 2d | 2d 20 29 0d 09 70 75 74 | font# -|- )..put|
|00000c40| 3a 20 69 76 61 72 3e 20 | 74 73 46 6f 6e 74 20 69 |: ivar> |tsFont i|
|00000c50| 6e 20 74 68 65 53 74 79 | 6c 65 0d 09 31 20 28 20 |n theSty|le..1 ( |
|00000c60| 66 6f 6e 74 20 29 20 20 | 74 68 65 53 74 79 6c 65 |font ) |theStyle|
|00000c70| 20 20 66 61 6c 73 65 20 | 20 67 65 74 3a 20 54 45 | false | get: TE|
|00000c80| 48 61 6e 64 6c 65 20 20 | 54 45 53 65 74 53 74 79 |Handle |TESetSty|
|00000c90| 6c 65 0d 3b 6d 0d 0d 3a | 6d 20 3e 66 6f 6e 74 53 |le.;m..:|m >fontS|
|00000ca0| 69 7a 65 3a 20 20 28 20 | 6e 20 2d 2d 20 29 0d 09 |ize: ( |n -- )..|
|00000cb0| 70 75 74 3a 20 69 76 61 | 72 3e 20 74 73 53 69 7a |put: iva|r> tsSiz|
|00000cc0| 65 20 69 6e 20 74 68 65 | 53 74 79 6c 65 0d 09 34 |e in the|Style..4|
|00000cd0| 20 28 20 73 69 7a 65 20 | 29 20 20 74 68 65 53 74 | ( size |) theSt|
|00000ce0| 79 6c 65 20 20 66 61 6c | 73 65 20 20 67 65 74 3a |yle fal|se get:|
|00000cf0| 20 54 45 48 61 6e 64 6c | 65 20 20 54 45 53 65 74 | TEHandl|e TESet|
|00000d00| 53 74 79 6c 65 0d 3b 6d | 0d 0d 3a 6d 20 3e 63 6f |Style.;m|..:m >co|
|00000d10| 6c 6f 72 3a 20 20 28 20 | 72 65 64 20 67 72 65 65 |lor: ( |red gree|
|00000d20| 6e 20 62 6c 75 65 20 2d | 2d 20 29 0d 09 73 65 74 |n blue -|- )..set|
|00000d30| 43 6f 6c 6f 72 3a 20 69 | 76 61 72 3e 20 74 73 43 |Color: i|var> tsC|
|00000d40| 6f 6c 6f 72 20 69 6e 20 | 74 68 65 53 74 79 6c 65 |olor in |theStyle|
|00000d50| 0d 09 38 20 28 20 63 6f | 6c 6f 72 20 29 20 20 74 |..8 ( co|lor ) t|
|00000d60| 68 65 53 74 79 6c 65 20 | 20 66 61 6c 73 65 20 20 |heStyle | false |
|00000d70| 67 65 74 3a 20 54 45 48 | 61 6e 64 6c 65 20 20 54 |get: TEH|andle T|
|00000d80| 45 53 65 74 53 74 79 6c | 65 0d 3b 6d 0d 0d 3a 6d |ESetStyl|e.;m..:m|
|00000d90| 20 3e 73 74 79 6c 65 3a | 20 20 28 20 6e 20 2d 2d | >style:| ( n --|
|00000da0| 20 29 0d 09 70 75 74 3a | 20 69 76 61 72 3e 20 74 | )..put:| ivar> t|
|00000db0| 73 46 61 63 65 20 69 6e | 20 74 68 65 53 74 79 6c |sFace in| theStyl|
|00000dc0| 65 0d 09 32 20 28 20 66 | 61 63 65 20 29 20 20 74 |e..2 ( f|ace ) t|
|00000dd0| 68 65 53 74 79 6c 65 20 | 20 66 61 6c 73 65 20 20 |heStyle | false |
|00000de0| 67 65 74 3a 20 54 45 48 | 61 6e 64 6c 65 20 20 54 |get: TEH|andle T|
|00000df0| 45 53 65 74 53 74 79 6c | 65 0d 3b 6d 0d 0d 3a 6d |ESetStyl|e.;m..:m|
|00000e00| 20 53 45 54 56 49 45 57 | 52 45 43 54 3a 20 20 7b | SETVIEW|RECT: {|
|00000e10| 20 6c 65 66 74 20 74 6f | 70 20 72 74 20 62 6f 74 | left to|p rt bot|
|00000e20| 20 5c 20 61 64 72 20 2d | 2d 20 7d 0d 09 70 74 72 | \ adr -|- }..ptr|
|00000e30| 3a 20 54 45 48 61 6e 64 | 6c 65 20 20 2d 3e 20 61 |: TEHand|le -> a|
|00000e40| 64 72 09 5c 20 70 74 72 | 3a 20 54 45 48 61 6e 64 |dr.\ ptr|: TEHand|
|00000e50| 6c 65 20 73 65 74 76 69 | 65 77 3a 20 74 65 52 65 |le setvi|ew: teRe|
|00000e60| 63 6f 72 64 20 3b 6d 20 | 20 3f 3f 09 5c 20 31 39 |cord ;m | ??.\ 19|
|00000e70| 4d 61 79 39 33 20 44 42 | 48 0d 09 74 6f 70 20 20 |May93 DB|H..top |
|00000e80| 61 64 72 20 20 38 20 2b | 20 20 77 21 20 20 6c 65 |adr 8 +| w! le|
|00000e90| 66 74 20 20 61 64 72 20 | 31 30 20 2b 20 77 21 0d |ft adr |10 + w!.|
|00000ea0| 09 62 6f 74 20 20 61 64 | 72 20 31 32 20 2b 20 20 |.bot ad|r 12 + |
|00000eb0| 77 21 20 20 20 20 72 74 | 20 20 61 64 72 20 31 34 |w! rt| adr 14|
|00000ec0| 20 2b 20 77 21 20 20 3b | 6d 0d 0d 0d 3a 6d 20 4c | + w! ;|m...:m L|
|00000ed0| 49 4e 45 48 45 49 47 48 | 54 3a 20 20 28 20 2d 2d |INEHEIGH|T: ( --|
|00000ee0| 20 6e 20 29 0d 09 70 74 | 72 3a 20 54 45 48 61 6e | n )..pt|r: TEHan|
|00000ef0| 64 6c 65 20 6c 69 6e 65 | 48 65 69 67 68 74 3a 20 |dle line|Height: |
|00000f00| 74 65 52 65 63 6f 72 64 | 20 3b 6d 0d 0d 5c 20 3a |teRecord| ;m..\ :|
|00000f10| 6d 20 23 6c 69 6e 65 73 | 3a 09 28 20 2d 2d 20 6e |m #lines|:.( -- n|
|00000f20| 29 0d 5c 09 70 74 72 3a | 20 54 45 48 61 6e 64 6c |).\.ptr:| TEHandl|
|00000f30| 65 20 20 23 6c 69 6e 65 | 73 3a 20 74 65 52 65 63 |e #line|s: teRec|
|00000f40| 6f 72 64 09 5c 20 6e 6f | 74 65 20 6d 65 73 73 61 |ord.\ no|te messa|
|00000f50| 67 65 20 74 6f 20 63 6c | 61 73 73 0d 5c 09 3b 6d |ge to cl|ass.\.;m|
|00000f60| 0d 0d 3a 6d 20 63 75 74 | 3a 0d 09 67 65 74 3a 20 |..:m cut|:..get: |
|00000f70| 54 45 48 61 6e 64 6c 65 | 20 20 54 45 43 75 74 0d |TEHandle| TECut.|
|00000f80| 09 74 6f 64 65 73 6b 20 | 20 64 72 6f 70 20 3b 6d |.todesk | drop ;m|
|00000f90| 09 09 09 5c 20 6e 6f 74 | 20 6c 6f 6f 6b 69 6e 67 |...\ not| looking|
|00000fa0| 20 61 74 20 65 72 72 6f | 72 0d 0d 3a 6d 20 63 6f | at erro|r..:m co|
|00000fb0| 70 79 3a 0d 09 67 65 74 | 3a 20 54 45 48 61 6e 64 |py:..get|: TEHand|
|00000fc0| 6c 65 20 20 54 45 43 6f | 70 79 0d 09 74 6f 64 65 |le TECo|py..tode|
|00000fd0| 73 6b 20 64 72 6f 70 20 | 3b 6d 09 09 09 5c 20 6e |sk drop |;m...\ n|
|00000fe0| 6f 74 20 6c 6f 6f 6b 69 | 6e 67 20 61 74 20 65 72 |ot looki|ng at er|
|00000ff0| 72 6f 72 0d 0d 3a 6d 20 | 70 61 73 74 65 3a 0d 09 |ror..:m |paste:..|
|00001000| 66 72 6f 6d 64 65 73 6b | 20 20 3f 45 58 49 54 09 |fromdesk| ?EXIT.|
|00001010| 09 09 5c 20 6f 75 74 20 | 69 66 20 65 72 72 6f 72 |..\ out |if error|
|00001020| 0d 09 67 65 74 3a 20 54 | 45 48 61 6e 64 6c 65 20 |..get: T|EHandle |
|00001030| 20 54 45 50 61 73 74 65 | 20 3b 6d 0d 0d 3a 6d 20 | TEPaste| ;m..:m |
|00001040| 63 6c 65 61 72 3a 0d 09 | 30 20 30 20 20 53 65 74 |clear:..|0 0 Set|
|00001050| 4f 72 69 67 69 6e 0d 09 | 67 65 74 3a 20 54 45 48 |Origin..|get: TEH|
|00001060| 61 6e 64 6c 65 20 20 54 | 45 44 65 6c 65 74 65 20 |andle T|EDelete |
|00001070| 20 3b 6d 0d 0d 0d 3a 6d | 20 75 70 64 61 74 65 3a | ;m...:m| update:|
|00001080| 09 5c 20 28 20 72 70 74 | 72 20 2d 2d 20 29 0d 09 |.\ ( rpt|r -- )..|
|00001090| 30 20 30 20 20 53 65 74 | 4f 72 69 67 69 6e 0d 09 |0 0 Set|Origin..|
|000010a0| 67 65 74 3a 20 54 45 48 | 61 6e 64 6c 65 20 20 54 |get: TEH|andle T|
|000010b0| 45 55 70 64 61 74 65 0d | 3b 6d 0d 09 0d 0d 3a 6d |EUpdate.|;m....:m|
|000010c0| 20 53 43 52 4f 4c 4c 3a | 09 09 5c 20 28 20 64 78 | SCROLL:|..\ ( dx|
|000010d0| 20 64 79 20 2d 2d 20 29 | 0d 09 30 20 30 20 20 53 | dy -- )|..0 0 S|
|000010e0| 65 74 4f 72 69 67 69 6e | 0d 09 67 65 74 3a 20 54 |etOrigin|..get: T|
|000010f0| 45 48 61 6e 64 6c 65 20 | 20 54 45 53 63 72 6f 6c |EHandle | TEScrol|
|00001100| 6c 20 20 3b 6d 0d 0d 0d | 3a 6d 20 73 69 7a 65 3a |l ;m...|:m size:|
|00001110| 20 28 20 2d 2d 20 6c 65 | 6e 20 29 20 20 5c 20 72 | ( -- le|n ) \ r|
|00001120| 65 74 75 72 6e 73 20 74 | 68 65 20 6c 65 6e 67 74 |eturns t|he lengt|
|00001130| 68 20 6f 66 20 74 68 65 | 20 74 65 78 74 0d 09 70 |h of the| text..p|
|00001140| 74 72 3a 20 54 45 48 61 | 6e 64 6c 65 20 20 73 69 |tr: TEHa|ndle si|
|00001150| 7a 65 3a 20 74 65 52 65 | 63 6f 72 64 20 3b 6d 20 |ze: teRe|cord ;m |
|00001160| 09 09 5c 20 6e 6f 74 65 | 20 6d 65 73 73 61 67 65 |..\ note| message|
|00001170| 20 74 6f 20 63 6c 61 73 | 73 0d 0d 3a 6d 20 54 65 | to clas|s..:m Te|
|00001180| 78 74 48 61 6e 64 6c 65 | 3a 09 09 5c 20 28 20 2d |xtHandle|:..\ ( -|
|00001190| 2d 20 68 6e 64 6c 20 29 | 0d 09 67 65 74 3a 20 54 |- hndl )|..get: T|
|000011a0| 45 68 61 6e 64 6c 65 20 | 20 54 45 47 65 74 54 65 |Ehandle | TEGetTe|
|000011b0| 78 74 20 20 64 75 70 20 | 70 75 74 3a 20 74 65 78 |xt dup |put: tex|
|000011c0| 74 48 61 6e 64 6c 65 20 | 20 3b 6d 0d 0d 3a 6d 20 |tHandle | ;m..:m |
|000011d0| 74 65 78 74 61 64 64 72 | 3a 09 09 5c 20 28 20 2d |textaddr|:..\ ( -|
|000011e0| 2d 20 61 64 64 72 20 29 | 09 5c 20 61 64 64 72 20 |- addr )|.\ addr |
|000011f0| 6f 66 20 74 68 65 20 66 | 69 72 73 74 20 63 68 61 |of the f|irst cha|
|00001200| 72 20 6f 66 20 74 68 65 | 20 54 45 20 74 65 78 74 |r of the| TE text|
|00001210| 0d 09 74 65 78 74 48 61 | 6e 64 6c 65 3a 20 73 65 |..textHa|ndle: se|
|00001220| 6c 66 20 20 40 20 20 3b | 6d 0d 0d 3a 6d 20 67 65 |lf @ ;|m..:m ge|
|00001230| 74 3a 09 28 20 2d 2d 20 | 24 61 64 64 72 20 6c 65 |t:.( -- |$addr le|
|00001240| 6e 20 29 0d 09 74 65 78 | 74 61 64 64 72 3a 20 73 |n )..tex|taddr: s|
|00001250| 65 6c 66 0d 09 73 69 7a | 65 3a 20 73 65 6c 66 20 |elf..siz|e: self |
|00001260| 20 3b 6d 0d 0d 3a 6d 20 | 67 65 74 54 65 78 74 26 | ;m..:m |getText&|
|00001270| 6c 6f 63 6b 3a 20 20 28 | 20 2d 2d 20 68 53 74 61 |lock: (| -- hSta|
|00001280| 74 65 20 61 64 64 72 20 | 6c 65 6e 20 29 0d 09 67 |te addr |len )..g|
|00001290| 65 74 3a 20 73 65 6c 66 | 09 09 09 09 5c 20 49 27 |et: self|....\ I'|
|000012a0| 6c 6c 20 64 6f 20 74 68 | 69 73 20 66 69 72 73 74 |ll do th|is first|
|000012b0| 2c 20 62 65 66 6f 72 65 | 20 6c 6f 63 6b 69 6e 67 |, before| locking|
|000012c0| 20 74 68 65 20 68 61 6e | 64 6c 65 2c 20 73 69 6e | the han|dle, sin|
|000012d0| 63 65 0d 09 09 09 09 09 | 09 09 5c 20 20 49 20 63 |ce......|..\ I c|
|000012e0| 61 6e 27 74 20 61 73 73 | 75 6d 65 20 54 45 20 77 |an't ass|ume TE w|
|000012f0| 6f 6e 27 74 20 75 6e 6c | 6f 63 6b 20 69 74 0d 09 |on't unl|ock it..|
|00001300| 67 65 74 53 74 61 74 65 | 3a 20 74 65 78 74 48 61 |getState|: textHa|
|00001310| 6e 64 6c 65 20 20 64 6f | 77 6e 0d 09 6c 6f 63 6b |ndle do|wn..lock|
|00001320| 3a 20 74 65 78 74 48 61 | 6e 64 6c 65 20 20 3b 6d |: textHa|ndle ;m|
|00001330| 0d 0d 3a 6d 20 3e 68 53 | 74 61 74 65 3a 20 20 28 |..:m >hS|tate: (|
|00001340| 20 68 53 74 61 74 65 20 | 2d 2d 20 29 0d 09 74 65 | hState |-- )..te|
|00001350| 78 74 48 61 6e 64 6c 65 | 3a 20 73 65 6c 66 20 64 |xtHandle|: self d|
|00001360| 72 6f 70 0d 09 73 65 74 | 53 74 61 74 65 3a 20 74 |rop..set|State: t|
|00001370| 65 78 74 48 61 6e 64 6c | 65 0d 3b 6d 0d 0d 3a 6d |extHandl|e.;m..:m|
|00001380| 20 70 75 74 3a 20 28 20 | 24 61 64 64 72 20 6c 65 | put: ( |$addr le|
|00001390| 6e 20 2d 2d 20 29 0d 09 | 67 65 74 3a 20 54 45 48 |n -- )..|get: TEH|
|000013a0| 61 6e 64 6c 65 20 20 54 | 45 53 65 74 54 65 78 74 |andle T|ESetText|
|000013b0| 0d 09 75 70 64 61 74 65 | 3a 20 73 65 6c 66 20 20 |..update|: self |
|000013c0| 3b 6d 0d 0d 3a 6d 20 69 | 6e 73 65 72 74 3a 20 20 |;m..:m i|nsert: |
|000013d0| 28 20 61 64 64 72 20 6c | 65 6e 20 2d 2d 20 29 0d |( addr l|en -- ).|
|000013e0| 09 67 65 74 3a 20 54 45 | 48 61 6e 64 6c 65 20 20 |.get: TE|Handle |
|000013f0| 54 45 49 6e 73 65 72 74 | 0d 3b 6d 0d 0d 3a 6d 20 |TEInsert|.;m..:m |
|00001400| 61 63 74 69 76 61 74 65 | 3a 0d 09 6e 6f 43 6c 69 |activate|:..noCli|
|00001410| 70 0d 09 67 65 74 3a 20 | 54 45 48 61 6e 64 6c 65 |p..get: |TEHandle|
|00001420| 20 20 54 45 41 63 74 69 | 76 61 74 65 20 3b 6d 0d | TEActi|vate ;m.|
|00001430| 0d 3a 6d 20 64 65 61 63 | 74 69 76 61 74 65 3a 0d |.:m deac|tivate:.|
|00001440| 09 6e 6f 43 6c 69 70 0d | 09 67 65 74 3a 20 54 45 |.noClip.|.get: TE|
|00001450| 48 61 6e 64 6c 65 20 20 | 54 45 44 65 61 63 74 69 |Handle |TEDeacti|
|00001460| 76 61 74 65 20 3b 6d 0d | 0d 3a 6d 20 72 65 6c 65 |vate ;m.|.:m rele|
|00001470| 61 73 65 3a 0d 09 67 65 | 74 3a 20 54 45 48 61 6e |ase:..ge|t: TEHan|
|00001480| 64 6c 65 20 20 54 45 44 | 69 73 70 6f 73 65 0d 09 |dle TED|ispose..|
|00001490| 63 6c 65 61 72 3a 20 54 | 45 48 61 6e 64 6c 65 20 |clear: T|EHandle |
|000014a0| 3b 6d 0d 0d 3a 6d 20 63 | 6c 69 63 6b 3a 0d 09 77 |;m..:m c|lick:..w|
|000014b0| 68 65 72 65 3a 20 66 45 | 76 65 6e 74 20 20 67 2d |here: fE|vent g-|
|000014c0| 3e 6c 0d 09 6d 6f 64 73 | 3a 20 66 65 76 65 6e 74 |>l..mods|: fevent|
|000014d0| 20 24 20 32 30 30 20 61 | 6e 64 20 20 30 3c 3e 20 | $ 200 a|nd 0<> |
|000014e0| 6e 65 67 61 74 65 09 5c | 20 65 78 74 65 6e 64 20 |negate.\| extend |
|000014f0| 69 66 20 73 68 69 66 74 | 20 6b 65 79 20 28 6e 65 |if shift| key (ne|
|00001500| 65 64 20 61 0d 09 09 09 | 09 09 09 09 09 09 09 5c |ed a....|.......\|
|00001510| 20 20 50 61 73 63 61 6c | 2d 73 74 79 6c 65 20 62 | Pascal|-style b|
|00001520| 6f 6f 6c 65 61 6e 0d 09 | 68 61 6e 64 6c 65 3a 20 |oolean..|handle: |
|00001530| 73 65 6c 66 20 20 54 45 | 43 6c 69 63 6b 0d 09 3b |self TE|Click..;|
|00001540| 6d 0d 0d 3a 6d 20 73 65 | 6c 65 63 74 3a 20 20 28 |m..:m se|lect: (|
|00001550| 20 73 74 61 72 74 20 65 | 6e 64 20 2d 2d 20 29 20 | start e|nd -- ) |
|00001560| 20 5c 20 68 69 6c 69 74 | 65 73 20 74 68 65 20 67 | \ hilit|es the g|
|00001570| 69 76 65 6e 20 72 61 6e | 67 65 0d 09 67 65 74 3a |iven ran|ge..get:|
|00001580| 20 54 45 48 61 6e 64 6c | 65 20 20 54 45 53 65 74 | TEHandl|e TESet|
|00001590| 53 65 6c 65 63 74 20 3b | 6d 0d 0d 3a 6d 20 73 65 |Select ;|m..:m se|
|000015a0| 6c 65 63 74 41 6c 6c 3a | 20 20 5c 20 68 69 6c 69 |lectAll:| \ hili|
|000015b0| 74 65 73 20 61 6c 6c 20 | 6f 66 20 74 68 65 20 74 |tes all |of the t|
|000015c0| 65 78 74 0d 09 30 20 28 | 20 73 74 61 72 74 29 0d |ext..0 (| start).|
|000015d0| 09 73 69 7a 65 3a 20 73 | 65 6c 66 20 20 28 20 65 |.size: s|elf ( e|
|000015e0| 6e 64 29 0d 09 73 65 6c | 65 63 74 3a 20 73 65 6c |nd)..sel|ect: sel|
|000015f0| 66 20 3b 6d 0d 0d 3a 6d | 20 73 65 6c 53 74 61 72 |f ;m..:m| selStar|
|00001600| 74 3a 20 20 28 20 2d 2d | 20 6e 20 29 0d 09 70 74 |t: ( --| n )..pt|
|00001610| 72 3a 20 54 45 48 61 6e | 64 6c 65 20 73 65 6c 53 |r: TEHan|dle selS|
|00001620| 74 61 72 74 3a 20 74 65 | 52 65 63 6f 72 64 20 3b |tart: te|Record ;|
|00001630| 6d 0d 0d 3a 6d 20 73 65 | 6c 45 6e 64 3a 20 20 28 |m..:m se|lEnd: (|
|00001640| 20 2d 2d 20 6e 20 29 0d | 09 70 74 72 3a 20 54 45 | -- n ).|.ptr: TE|
|00001650| 48 61 6e 64 6c 65 20 73 | 65 6c 45 6e 64 3a 20 74 |Handle s|elEnd: t|
|00001660| 65 52 65 63 6f 72 64 20 | 3b 6d 0d 0d 3a 6d 20 6c |eRecord |;m..:m l|
|00001670| 61 73 74 63 68 61 72 3a | 20 20 28 20 2d 2d 20 63 |astchar:| ( -- c|
|00001680| 68 61 72 20 29 09 5c 20 | 72 65 74 75 72 6e 20 6c |har ).\ |return l|
|00001690| 61 73 74 20 63 68 61 72 | 61 63 74 65 72 20 69 6e |ast char|acter in|
|000016a0| 20 54 45 0d 09 74 65 78 | 74 61 64 64 72 3a 20 73 | TE..tex|taddr: s|
|000016b0| 65 6c 66 20 20 73 69 7a | 65 3a 20 73 65 6c 66 20 |elf siz|e: self |
|000016c0| 31 2d 20 2b 20 63 40 20 | 20 3b 6d 0d 0d 0d 3a 6d |1- + c@ | ;m...:m|
|000016d0| 20 6b 65 79 3a 20 20 7b | 20 63 68 61 72 20 5c 20 | key: {| char \ |
|000016e0| 62 53 65 6c 20 65 53 65 | 6c 20 2d 2d 20 7d 0d 09 |bSel eSe|l -- }..|
|000016f0| 09 5c 20 54 45 20 66 6f | 72 20 73 6f 6d 65 20 72 |.\ TE fo|r some r|
|00001700| 65 61 73 6f 6e 20 64 6f | 65 73 6e 27 74 20 68 61 |eason do|esn't ha|
|00001710| 6e 64 6c 65 20 66 6f 72 | 77 61 72 64 20 64 65 6c |ndle for|ward del|
|00001720| 65 74 65 2c 20 73 6f 20 | 77 65 0d 09 09 5c 20 20 |ete, so |we...\ |
|00001730| 68 61 76 65 20 74 6f 20 | 73 70 65 63 69 61 6c 2d |have to |special-|
|00001740| 63 61 73 65 20 69 74 2e | 0d 0d 09 63 68 61 72 20 |case it.|...char |
|00001750| 31 32 37 20 3d 0d 09 49 | 46 09 09 09 09 09 09 09 |127 =..I|F.......|
|00001760| 5c 20 79 65 73 2c 20 69 | 74 27 73 20 66 6f 72 77 |\ yes, i|t's forw|
|00001770| 61 72 64 20 64 65 6c 65 | 74 65 0d 09 09 73 65 6c |ard dele|te...sel|
|00001780| 53 74 61 72 74 3a 20 73 | 65 6c 66 20 2d 3e 20 62 |Start: s|elf -> b|
|00001790| 53 65 6c 0d 09 09 73 65 | 6c 45 6e 64 3a 20 73 65 |Sel...se|lEnd: se|
|000017a0| 6c 66 20 20 20 2d 3e 20 | 65 53 65 6c 0d 09 09 62 |lf -> |eSel...b|
|000017b0| 53 65 6c 20 65 53 65 6c | 20 3d 0d 09 09 49 46 09 |Sel eSel| =...IF.|
|000017c0| 65 53 65 6c 20 20 73 69 | 7a 65 3a 20 73 65 6c 66 |eSel si|ze: self|
|000017d0| 20 20 3e 3d 20 20 3f 45 | 58 49 54 0d 09 09 09 65 | >= ?E|XIT....e|
|000017e0| 53 65 6c 20 31 2b 20 64 | 75 70 20 20 73 65 6c 65 |Sel 1+ d|up sele|
|000017f0| 63 74 3a 20 73 65 6c 66 | 0d 09 09 45 4c 53 45 0d |ct: self|...ELSE.|
|00001800| 09 09 09 65 53 65 6c 20 | 20 73 69 7a 65 3a 20 73 |...eSel | size: s|
|00001810| 65 6c 66 20 3c 0d 09 09 | 09 49 46 20 20 62 53 65 |elf <...|.IF bSe|
|00001820| 6c 20 65 53 65 6c 20 31 | 2b 20 20 73 65 6c 65 63 |l eSel 1|+ selec|
|00001830| 74 3a 20 73 65 6c 66 20 | 20 54 48 45 4e 0d 09 09 |t: self | THEN...|
|00001840| 54 48 45 4e 0d 09 09 38 | 20 20 2d 3e 20 63 68 61 |THEN...8| -> cha|
|00001850| 72 0d 09 54 48 45 4e 0d | 09 63 68 61 72 20 20 67 |r..THEN.|.char g|
|00001860| 65 74 3a 20 54 45 48 61 | 6e 64 6c 65 20 20 54 45 |et: TEHa|ndle TE|
|00001870| 4b 65 79 0d 3b 6d 0d 0d | 0d 30 20 76 61 6c 75 65 |Key.;m..|.0 value|
|00001880| 20 6b 6c 75 64 67 65 0d | 0d 3a 6d 20 23 6c 69 6e | kludge.|.:m #lin|
|00001890| 65 73 3a 09 28 20 2d 2d | 20 6e 20 29 0d 09 30 20 |es:.( --| n )..0 |
|000018a0| 2d 3e 20 6b 6c 75 64 67 | 65 0d 09 70 74 72 3a 20 |-> kludg|e..ptr: |
|000018b0| 54 45 48 61 6e 64 6c 65 | 20 20 23 6c 69 6e 65 73 |TEHandle| #lines|
|000018c0| 3a 20 63 6c 61 73 73 5f | 61 73 3e 20 74 65 52 65 |: class_|as> teRe|
|000018d0| 63 6f 72 64 0d 09 6c 61 | 73 74 63 68 61 72 3a 20 |cord..la|stchar: |
|000018e0| 73 65 6c 66 20 20 72 65 | 74 20 3d 20 49 46 20 2d |self re|t = IF -|
|000018f0| 31 20 2d 3e 20 6b 6c 75 | 64 67 65 20 31 2b 20 54 |1 -> klu|dge 1+ T|
|00001900| 48 45 4e 09 5c 20 6b 6c | 75 64 67 65 20 41 70 70 |HEN.\ kl|udge App|
|00001910| 6c 65 20 6c 69 6e 65 20 | 6e 75 6d 62 65 72 69 6e |le line |numberin|
|00001920| 67 20 73 63 68 65 6d 65 | 21 21 0d 3b 6d 0d 0d 5c |g scheme|!!.;m..\|
|00001930| 20 67 69 76 65 6e 20 74 | 68 65 20 7a 65 72 6f 2d | given t|he zero-|
|00001940| 62 61 73 65 64 20 6c 69 | 6e 65 20 6e 75 6d 62 65 |based li|ne numbe|
|00001950| 72 2c 20 72 65 74 75 72 | 6e 20 74 68 65 20 63 68 |r, retur|n the ch|
|00001960| 61 72 61 63 74 65 72 23 | 20 6f 66 20 74 68 65 20 |aracter#| of the |
|00001970| 73 74 61 72 74 20 6f 66 | 0d 5c 20 74 68 61 74 20 |start of|.\ that |
|00001980| 6c 69 6e 65 0d 0d 3a 6d | 20 61 74 3a 20 20 7b 20 |line..:m| at: { |
|00001990| 6e 20 2d 2d 20 6c 69 6e | 65 73 74 61 72 74 20 7d |n -- lin|estart }|
|000019a0| 0d 09 6e 20 28 20 6b 6c | 75 64 67 65 20 2b 20 29 |..n ( kl|udge + )|
|000019b0| 20 31 2b 20 20 23 6c 69 | 6e 65 73 3a 20 73 65 6c | 1+ #li|nes: sel|
|000019c0| 66 20 3e 20 09 5c 20 61 | 62 6f 72 74 22 20 54 45 |f > .\ a|bort" TE|
|000019d0| 20 6c 69 6e 65 73 74 61 | 72 74 20 69 6e 64 65 78 | linesta|rt index|
|000019e0| 20 6f 75 74 20 6f 66 20 | 72 61 6e 67 65 22 0d 09 | out of |range"..|
|000019f0| 49 46 20 20 23 6c 69 6e | 65 73 3a 20 73 65 6c 66 |IF #lin|es: self|
|00001a00| 20 20 31 2d 20 2d 3e 20 | 6e 20 20 54 48 45 4e 0d | 1- -> |n THEN.|
|00001a10| 09 70 74 72 3a 20 54 45 | 48 61 6e 64 6c 65 20 20 |.ptr: TE|Handle |
|00001a20| 61 64 64 72 4c 69 6e 65 | 53 74 61 72 74 3a 20 63 |addrLine|Start: c|
|00001a30| 6c 61 73 73 5f 61 73 3e | 20 74 65 52 65 63 6f 72 |lass_as>| teRecor|
|00001a40| 64 0d 09 6e 20 32 2a 20 | 2b 20 77 40 0d 5c 09 64 |d..n 2* |+ w@.\.d|
|00001a50| 75 70 20 74 65 78 74 61 | 64 64 72 3a 20 73 65 6c |up texta|ddr: sel|
|00001a60| 66 20 2b 20 63 40 20 20 | 72 65 74 20 3d 20 20 49 |f + c@ |ret = I|
|00001a70| 46 20 31 2b 20 54 48 45 | 4e 0d 3b 6d 0d 0d 0d 5c |F 1+ THE|N.;m...\|
|00001a80| 20 49 6e 20 74 68 65 20 | 69 6e 69 74 69 61 6c 20 | In the |initial |
|00001a90| 53 79 73 74 65 6d 20 38 | 2c 20 74 68 65 72 65 27 |System 8|, there'|
|00001aa0| 73 20 61 20 62 75 67 20 | 69 6e 20 54 45 47 65 74 |s a bug |in TEGet|
|00001ab0| 50 6f 69 6e 74 20 2d 20 | 69 74 20 65 78 70 65 63 |Point - |it expec|
|00001ac0| 74 73 20 61 0d 5c 20 20 | 73 70 75 72 69 6f 75 73 |ts a.\ |spurious|
|00001ad0| 20 69 6e 69 74 69 61 6c | 20 70 61 72 61 6d 65 74 | initial| paramet|
|00001ae0| 65 72 21 20 20 53 6f 20 | 66 6f 72 20 6e 6f 77 20 |er! So |for now |
|00001af0| 49 27 76 65 20 6b 6c 75 | 64 67 65 64 20 78 63 61 |I've klu|dged xca|
|00001b00| 6c 6c 73 20 74 6f 20 73 | 61 79 0d 5c 20 20 69 74 |lls to s|ay.\ it|
|00001b10| 20 68 61 73 20 33 20 70 | 61 72 6d 73 2e 0d 0d 3a | has 3 p|arms...:|
|00001b20| 6d 20 47 45 54 50 4f 49 | 4e 54 3a 20 20 7b 20 6f |m GETPOI|NT: { o|
|00001b30| 66 66 73 65 74 20 2d 2d | 20 78 20 79 20 7d 09 5c |ffset --| x y }.\|
|00001b40| 20 67 69 76 65 6e 20 74 | 68 65 20 63 68 61 72 20 | given t|he char |
|00001b50| 6f 66 66 73 65 74 20 69 | 6e 74 6f 20 74 68 65 20 |offset i|nto the |
|00001b60| 74 65 78 74 2c 20 72 65 | 74 75 72 6e 20 74 68 65 |text, re|turn the|
|00001b70| 0d 09 09 09 09 09 09 09 | 09 5c 20 63 6f 72 72 65 |........|.\ corre|
|00001b80| 73 70 6f 6e 64 69 6e 67 | 20 78 20 79 20 6c 6f 63 |sponding| x y loc|
|00001b90| 61 74 69 6f 6e 20 20 53 | 65 65 20 49 4d 20 56 2d |ation S|ee IM V-|
|00001ba0| 32 36 39 2e 0d 5c 20 24 | 24 24 24 24 24 24 24 24 |269..\ $|$$$$$$$$|
|00001bb0| 24 24 24 24 24 24 24 24 | 24 24 24 24 24 24 24 24 |$$$$$$$$|$$$$$$$$|
|00001bc0| 24 24 24 24 24 24 24 24 | 24 24 24 24 24 24 24 24 |$$$$$$$$|$$$$$$$$|
|00001bd0| 24 24 24 24 24 24 24 24 | 24 24 24 24 24 24 24 24 |$$$$$$$$|$$$$$$$$|
|00001be0| 24 24 24 24 24 24 24 24 | 24 24 24 24 24 24 0d 5c |$$$$$$$$|$$$$$$.\|
|00001bf0| 20 41 70 70 61 72 65 6e | 74 6c 79 20 74 68 65 20 | Apparen|tly the |
|00001c00| 63 61 6c 6c 20 54 45 47 | 65 74 50 6f 69 6e 74 20 |call TEG|etPoint |
|00001c10| 68 61 73 20 61 20 62 75 | 67 20 69 6e 20 63 75 72 |has a bu|g in cur|
|00001c20| 72 65 6e 74 20 50 50 43 | 20 69 6d 70 6c 65 6d 65 |rent PPC| impleme|
|00001c30| 6e 74 61 74 69 6f 6e 73 | 0d 5c 20 2d 20 74 68 65 |ntations|.\ - the|
|00001c40| 20 32 20 70 61 72 6d 73 | 20 61 72 65 20 72 65 71 | 2 parms| are req|
|00001c50| 75 69 72 65 64 20 74 6f | 20 62 65 20 69 6e 20 72 |uired to| be in r|
|00001c60| 34 20 61 6e 64 20 72 35 | 2c 20 69 6e 73 74 65 61 |4 and r5|, instea|
|00001c70| 64 20 6f 66 20 72 33 20 | 61 6e 64 20 72 34 21 0d |d of r3 |and r4!.|
|00001c80| 5c 20 53 6f 20 77 65 20 | 68 61 76 65 20 74 6f 20 |\ So we |have to |
|00001c90| 6b 6c 75 64 67 65 20 74 | 68 69 73 20 70 61 72 74 |kludge t|his part|
|00001ca0| 69 63 75 6c 61 72 20 63 | 61 6c 6c 20 74 6f 20 74 |icular c|all to t|
|00001cb0| 68 69 6e 6b 20 69 74 20 | 74 61 6b 65 73 20 6f 6e |hink it |takes on|
|00001cc0| 65 20 6d 6f 72 65 0d 5c | 20 63 65 6c 6c 20 74 68 |e more.\| cell th|
|00001cd0| 61 6e 20 69 74 20 72 65 | 61 6c 6c 79 20 64 6f 65 |an it re|ally doe|
|00001ce0| 73 2e 20 20 49 66 20 41 | 70 70 6c 65 20 66 69 78 |s. If A|pple fix|
|00001cf0| 65 73 20 74 68 65 20 62 | 75 67 2c 20 77 65 27 6c |es the b|ug, we'l|
|00001d00| 6c 20 6e 65 65 64 20 74 | 6f 20 64 65 6c 65 74 65 |l need t|o delete|
|00001d10| 0d 5c 20 74 68 69 73 20 | 6c 69 6e 65 2e 20 20 54 |.\ this |line. T|
|00001d20| 68 65 72 65 27 73 20 61 | 6c 73 6f 20 32 20 6c 69 |here's a|lso 2 li|
|00001d30| 6e 65 73 20 69 6e 20 7a | 43 61 6c 6c 73 4d 6f 64 |nes in z|CallsMod|
|00001d40| 2e 74 78 74 2e 0d 0d 5b | 20 70 70 63 3f 20 5d 20 |.txt...[| ppc? ] |
|00001d50| 5b 69 66 5d 20 20 30 20 | 20 5b 74 68 65 6e 5d 0d |[if] 0 | [then].|
|00001d60| 09 0d 5c 20 24 24 24 24 | 24 24 24 24 24 24 24 24 |..\ $$$$|$$$$$$$$|
|00001d70| 24 24 24 24 24 24 24 24 | 24 24 24 24 24 24 24 24 |$$$$$$$$|$$$$$$$$|
|00001d80| 24 24 24 24 24 24 24 24 | 24 24 24 24 24 24 24 24 |$$$$$$$$|$$$$$$$$|
|00001d90| 24 24 24 24 24 24 24 24 | 24 24 24 24 24 24 24 24 |$$$$$$$$|$$$$$$$$|
|00001da0| 24 24 24 24 24 24 24 24 | 24 24 24 0d 0d 09 6f 66 |$$$$$$$$|$$$...of|
|00001db0| 66 73 65 74 20 20 67 65 | 74 3a 20 54 45 48 61 6e |fset ge|t: TEHan|
|00001dc0| 64 6c 65 20 20 54 45 47 | 65 74 50 6f 69 6e 74 20 |dle TEG|etPoint |
|00001dd0| 20 75 6e 70 61 63 6b 20 | 20 3b 6d 0d 0d 0d 3a 6d | unpack | ;m...:m|
|00001de0| 20 63 75 72 72 65 6e 74 | 4c 69 6e 65 3a 09 20 28 | current|Line:. (|
|00001df0| 20 2d 2d 20 6e 20 29 0d | 09 73 65 6c 65 6e 64 3a | -- n ).|.selend:|
|00001e00| 20 73 65 6c 66 20 20 67 | 65 74 70 6f 69 6e 74 3a | self g|etpoint:|
|00001e10| 20 73 65 6c 66 20 20 28 | 20 78 20 79 20 29 20 6e | self (| x y ) n|
|00001e20| 69 70 20 20 09 09 28 20 | 63 75 72 73 6f 72 2e 79 |ip ..( |cursor.y|
|00001e30| 20 29 0d 09 70 74 72 3a | 20 54 45 48 61 6e 64 6c | )..ptr:| TEHandl|
|00001e40| 65 20 28 20 64 65 73 74 | 29 20 67 65 74 74 6f 70 |e ( dest|) gettop|
|00001e50| 79 3a 20 72 65 63 74 20 | 20 2d 09 09 09 28 20 63 |y: rect | -...( c|
|00001e60| 75 72 73 6f 72 2e 79 20 | 2d 20 64 65 73 74 2e 74 |ursor.y |- dest.t|
|00001e70| 6f 70 20 29 0d 09 0d 09 | 6c 69 6e 65 68 65 69 67 |op )....|lineheig|
|00001e80| 68 74 3a 20 73 65 6c 66 | 20 2f 20 31 2d 0d 09 0d |ht: self| / 1-...|
|00001e90| 09 73 65 6c 65 6e 64 3a | 20 73 65 6c 66 20 20 73 |.selend:| self s|
|00001ea0| 69 7a 65 3a 20 73 65 6c | 66 20 3d 20 09 5c 20 74 |ize: sel|f = .\ t|
|00001eb0| 72 75 65 20 69 66 20 61 | 74 20 6c 61 73 74 20 63 |rue if a|t last c|
|00001ec0| 68 61 72 0d 09 73 69 7a | 65 3a 20 73 65 6c 66 20 |har..siz|e: self |
|00001ed0| 20 61 6e 64 09 5c 20 61 | 6e 64 20 69 66 20 6e 6f | and.\ a|nd if no|
|00001ee0| 74 20 61 6e 20 65 6d 70 | 74 79 20 73 69 7a 65 0d |t an emp|ty size.|
|00001ef0| 09 49 46 0d 09 09 6c 61 | 73 74 63 68 61 72 3a 20 |.IF...la|stchar: |
|00001f00| 73 65 6c 66 20 20 72 65 | 74 20 3d 0d 09 09 49 46 |self re|t =...IF|
|00001f10| 09 5c 20 75 68 2d 6f 68 | 2c 20 68 61 6e 64 6c 65 |.\ uh-oh|, handle|
|00001f20| 20 73 70 65 63 69 61 6c | 20 63 61 73 65 20 77 68 | special| case wh|
|00001f30| 65 72 65 20 6c 61 73 74 | 20 63 68 61 72 20 69 73 |ere last| char is|
|00001f40| 20 61 20 72 65 74 0d 09 | 09 09 31 2b 0d 09 09 54 | a ret..|..1+...T|
|00001f50| 48 45 4e 0d 09 54 48 45 | 4e 0d 09 3b 6d 0d 0d 0d |HEN..THE|N..;m...|
|00001f60| 3a 6d 20 67 65 74 4c 69 | 6e 65 4e 3a 20 20 7b 20 |:m getLi|neN: { |
|00001f70| 6e 20 2d 2d 20 61 64 64 | 72 20 6c 65 6e 20 7d 0d |n -- add|r len }.|
|00001f80| 09 6e 20 61 74 3a 20 73 | 65 6c 66 20 64 75 70 20 |.n at: s|elf dup |
|00001f90| 20 2d 3e 20 6c 69 6e 65 | 53 74 61 72 74 20 20 2d | -> line|Start -|
|00001fa0| 3e 20 6c 69 6e 65 45 6e | 64 0d 09 09 5c 20 73 65 |> lineEn|d...\ se|
|00001fb0| 74 20 6c 69 6e 65 53 74 | 61 72 74 20 61 6e 64 20 |t lineSt|art and |
|00001fc0| 6c 69 6e 65 45 6e 64 20 | 74 6f 20 63 68 61 72 20 |lineEnd |to char |
|00001fd0| 6f 66 66 73 20 6f 66 20 | 63 75 72 72 20 6c 69 6e |offs of |curr lin|
|00001fe0| 65 20 73 74 61 72 74 20 | 69 6e 20 63 61 73 65 20 |e start |in case |
|00001ff0| 77 65 20 45 58 49 54 0d | 0d 09 74 65 78 74 61 64 |we EXIT.|..textad|
|00002000| 64 72 3a 20 73 65 6c 66 | 20 20 6c 69 6e 65 53 74 |dr: self| lineSt|
|00002010| 61 72 74 20 2b 20 20 09 | 09 5c 20 61 64 64 72 20 |art + .|.\ addr |
|00002020| 6f 66 20 6c 69 6e 65 20 | 73 74 61 72 74 0d 0d 09 |of line |start...|
|00002030| 23 6c 69 6e 65 73 3a 20 | 73 65 6c 66 20 31 20 2d |#lines: |self 1 -|
|00002040| 20 6e 20 3d 0d 09 49 46 | 09 09 09 09 09 09 09 09 | n =..IF|........|
|00002050| 09 5c 20 77 65 20 61 72 | 65 20 6f 6e 20 74 68 65 |.\ we ar|e on the|
|00002060| 20 6c 61 73 74 20 6c 69 | 6e 65 0d 09 09 6c 61 73 | last li|ne...las|
|00002070| 74 63 68 61 72 3a 20 73 | 65 6c 66 0d 09 09 72 65 |tchar: s|elf...re|
|00002080| 74 20 3d 0d 09 09 09 49 | 46 09 09 5c 20 77 65 20 |t =....I|F..\ we |
|00002090| 61 72 65 20 6f 6e 20 74 | 68 65 20 6c 61 73 74 20 |are on t|he last |
|000020a0| 6c 69 6e 65 20 41 4e 44 | 20 6a 75 73 74 20 62 65 |line AND| just be|
|000020b0| 79 6f 6e 64 20 61 20 63 | 61 72 72 69 61 67 65 20 |yond a c|arriage |
|000020c0| 72 65 74 75 72 6e 21 0d | 09 09 09 09 30 20 20 45 |return!.|....0 E|
|000020d0| 58 49 54 09 09 09 09 09 | 5c 20 72 65 74 75 72 6e |XIT.....|\ return|
|000020e0| 20 7a 65 72 6f 20 6c 65 | 6e 20 61 6e 64 20 67 65 | zero le|n and ge|
|000020f0| 74 20 6f 75 74 0d 09 09 | 09 54 48 45 4e 0d 0d 09 |t out...|.THEN...|
|00002100| 09 73 69 7a 65 3a 20 73 | 65 6c 66 0d 09 09 6c 69 |.size: s|elf...li|
|00002110| 6e 65 53 74 61 72 74 20 | 2d 20 20 28 20 6c 65 6e |neStart |- ( len|
|00002120| 20 29 0d 09 0d 09 45 4c | 53 45 09 09 0d 09 09 6c | )....EL|SE.....l|
|00002130| 69 6e 65 73 74 61 72 74 | 20 64 72 6f 70 0d 09 09 |inestart| drop...|
|00002140| 6e 20 31 20 2b 20 61 74 | 3a 20 73 65 6c 66 0d 09 |n 1 + at|: self..|
|00002150| 09 6c 69 6e 65 53 74 61 | 72 74 20 2d 20 31 20 2d |.lineSta|rt - 1 -|
|00002160| 20 20 28 20 6c 65 6e 20 | 29 0d 09 54 48 45 4e 0d | ( len |)..THEN.|
|00002170| 09 28 20 6c 65 6e 20 29 | 20 20 64 75 70 20 6c 69 |.( len )| dup li|
|00002180| 6e 65 53 74 61 72 74 20 | 2b 20 20 2d 3e 20 6c 69 |neStart |+ -> li|
|00002190| 6e 65 45 6e 64 0d 3b 6d | 0d 0d 3a 6d 20 67 65 74 |neEnd.;m|..:m get|
|000021a0| 4c 69 6e 65 3a 20 20 7b | 20 5c 20 6e 20 2d 2d 20 |Line: {| \ n -- |
|000021b0| 61 64 64 72 20 6c 65 6e | 20 7d 09 5c 20 72 65 74 |addr len| }.\ ret|
|000021c0| 75 72 6e 73 20 74 68 65 | 20 6c 69 6e 65 20 77 69 |urns the| line wi|
|000021d0| 74 68 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 73 |th the c|urrent s|
|000021e0| 65 6c 65 63 74 69 6f 6e | 2e 0d 0d 09 73 69 7a 65 |election|....size|
|000021f0| 3a 20 73 65 6c 66 20 30 | 3d 20 49 46 20 74 65 78 |: self 0|= IF tex|
|00002200| 74 61 64 64 72 3a 20 73 | 65 6c 66 20 30 20 45 58 |taddr: s|elf 0 EX|
|00002210| 49 54 09 54 48 45 4e 09 | 5c 20 6f 75 74 20 69 66 |IT.THEN.|\ out if|
|00002220| 20 6e 6f 20 74 65 78 74 | 0d 0d 09 63 75 72 72 65 | no text|...curre|
|00002230| 6e 74 4c 69 6e 65 3a 20 | 73 65 6c 66 20 2d 3e 20 |ntLine: |self -> |
|00002240| 6e 0d 09 6e 20 67 65 74 | 4c 69 6e 65 4e 3a 20 73 |n..n get|LineN: s|
|00002250| 65 6c 66 0d 3b 6d 0d 0d | 0d 3a 6d 20 4c 49 4e 45 |elf.;m..|.:m LINE|
|00002260| 45 4e 44 3a 20 7b 20 5c | 20 6c 65 6e 20 70 6f 73 |END: { \| len pos|
|00002270| 20 2d 2d 20 70 6f 73 20 | 7d 09 5c 20 72 65 74 75 | -- pos |}.\ retu|
|00002280| 72 6e 20 74 68 65 20 63 | 68 61 72 61 63 74 65 72 |rn the c|haracter|
|00002290| 20 70 6f 73 69 74 69 6f | 6e 20 63 6f 72 72 65 73 | positio|n corres|
|000022a0| 70 6f 6e 64 69 6e 67 20 | 74 6f 20 74 68 65 0d 09 |ponding |to the..|
|000022b0| 09 09 09 09 09 09 09 09 | 5c 20 65 6e 64 20 6f 66 |........|\ end of|
|000022c0| 20 74 68 65 20 6c 61 73 | 74 20 6c 69 6e 65 20 6f | the las|t line o|
|000022d0| 66 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 73 65 |f the cu|rrent se|
|000022e0| 6c 65 63 74 69 6f 6e 2e | 0d 09 73 65 6c 65 6e 64 |lection.|..selend|
|000022f0| 3a 20 73 65 6c 66 20 73 | 69 7a 65 3a 20 73 65 6c |: self s|ize: sel|
|00002300| 66 20 3d 0d 09 49 46 09 | 5c 20 77 65 20 61 72 65 |f =..IF.|\ we are|
|00002310| 20 61 74 20 74 68 65 20 | 65 6e 64 20 6f 66 20 74 | at the |end of t|
|00002320| 68 65 20 74 65 78 74 0d | 09 09 73 69 7a 65 3a 20 |he text.|..size: |
|00002330| 73 65 6c 66 0d 09 45 4c | 53 45 0d 09 09 63 75 72 |self..EL|SE...cur|
|00002340| 72 65 6e 74 6c 69 6e 65 | 3a 20 73 65 6c 66 20 20 |rentline|: self |
|00002350| 61 74 3a 20 73 65 6c 66 | 20 20 28 20 6c 69 6e 65 |at: self| ( line|
|00002360| 73 74 61 72 74 20 29 20 | 2d 3e 20 70 6f 73 0d 09 |start ) |-> pos..|
|00002370| 09 67 65 74 6c 69 6e 65 | 3a 20 73 65 6c 66 20 6e |.getline|: self n|
|00002380| 69 70 20 2d 3e 20 6c 65 | 6e 0d 09 09 70 6f 73 20 |ip -> le|n...pos |
|00002390| 6c 65 6e 20 2b 0d 09 54 | 48 45 4e 20 3b 6d 0d 0d |len +..T|HEN ;m..|
|000023a0| 3a 6d 20 67 65 74 73 65 | 6c 65 63 74 3a 20 28 20 |:m getse|lect: ( |
|000023b0| 2d 2d 20 61 64 64 72 20 | 6c 65 6e 20 29 09 5c 20 |-- addr |len ).\ |
|000023c0| 72 65 74 75 72 6e 73 20 | 68 69 6c 69 74 65 64 20 |returns |hilited |
|000023d0| 73 65 6c 65 63 74 69 6f | 6e 0d 09 70 74 72 3a 20 |selectio|n..ptr: |
|000023e0| 54 45 48 61 6e 64 6c 65 | 09 67 65 74 73 65 6c 65 |TEHandle|.getsele|
|000023f0| 63 74 3a 20 74 65 52 65 | 63 6f 72 64 20 20 3b 6d |ct: teRe|cord ;m|
|00002400| 0d 0d 3a 6d 20 67 65 74 | 53 65 6c 65 63 74 26 6c |..:m get|Select&l|
|00002410| 6f 63 6b 3a 20 20 28 20 | 68 53 74 61 74 65 20 61 |ock: ( |hState a|
|00002420| 64 64 72 20 6c 65 6e 20 | 2d 2d 20 29 0d 09 67 65 |ddr len |-- )..ge|
|00002430| 74 53 65 6c 65 63 74 3a | 20 73 65 6c 66 09 09 09 |tSelect:| self...|
|00002440| 5c 20 49 27 6c 6c 20 64 | 6f 20 74 68 69 73 20 66 |\ I'll d|o this f|
|00002450| 69 72 73 74 2c 20 62 65 | 66 6f 72 65 20 6c 6f 63 |irst, be|fore loc|
|00002460| 6b 69 6e 67 20 74 68 65 | 20 68 61 6e 64 6c 65 2c |king the| handle,|
|00002470| 20 73 69 6e 63 65 0d 09 | 09 09 09 09 09 09 5c 20 | since..|......\ |
|00002480| 20 49 20 63 61 6e 27 74 | 20 61 73 73 75 6d 65 20 | I can't| assume |
|00002490| 54 45 20 77 6f 6e 27 74 | 20 75 6e 6c 6f 63 6b 20 |TE won't| unlock |
|000024a0| 69 74 0d 09 74 65 78 74 | 48 61 6e 64 6c 65 3a 20 |it..text|Handle: |
|000024b0| 73 65 6c 66 20 64 72 6f | 70 0d 09 67 65 74 53 74 |self dro|p..getSt|
|000024c0| 61 74 65 3a 20 74 65 78 | 74 48 61 6e 64 6c 65 20 |ate: tex|tHandle |
|000024d0| 20 64 6f 77 6e 0d 09 6c | 6f 63 6b 3a 20 74 65 78 | down..l|ock: tex|
|000024e0| 74 48 61 6e 64 6c 65 0d | 3b 6d 0d 0d 0d 3a 6d 20 |tHandle.|;m...:m |
|000024f0| 49 44 4c 45 3a 09 5c 20 | 4d 61 79 39 34 20 6d 68 |IDLE:.\ |May94 mh|
|00002500| 20 2d 20 53 65 74 74 69 | 6e 67 20 63 75 72 73 6f | - Setti|ng curso|
|00002510| 72 20 6e 6f 77 20 6d 6f | 76 65 64 20 74 6f 20 54 |r now mo|ved to T|
|00002520| 45 53 63 72 6f 6c 6c 65 | 72 0d 09 67 65 74 3a 20 |EScrolle|r..get: |
|00002530| 54 45 48 61 6e 64 6c 65 | 20 20 54 45 49 64 6c 65 |TEHandle| TEIdle|
|00002540| 09 0d 20 3b 6d 0d 0d 3a | 6d 20 44 55 4d 50 3a 0d |.. ;m..:|m DUMP:.|
|00002550| 09 73 65 6c 73 74 61 72 | 74 3a 20 73 65 6c 66 0d |.selstar|t: self.|
|00002560| 09 73 65 6c 65 6e 64 3a | 20 73 65 6c 66 0d 09 63 |.selend:| self..c|
|00002570| 75 72 72 65 6e 74 6c 69 | 6e 65 3a 20 73 65 6c 66 |urrentli|ne: self|
|00002580| 0d 09 6c 69 6e 65 45 6e | 64 3a 20 73 65 6c 66 0d |..lineEn|d: self.|
|00002590| 09 73 69 7a 65 3a 20 73 | 65 6c 66 20 20 7b 20 73 |.size: s|elf { s|
|000025a0| 73 20 73 65 20 63 6c 20 | 6c 65 20 73 7a 20 2d 2d |s se cl |le sz --|
|000025b0| 20 7d 0d 5c 09 73 73 20 | 22 20 73 65 6c 73 74 61 | }.\.ss |" selsta|
|000025c0| 72 74 20 22 09 09 3e 64 | 65 62 75 67 0d 5c 09 73 |rt "..>d|ebug.\.s|
|000025d0| 65 20 22 20 73 65 6c 65 | 6e 64 20 22 09 09 09 3e |e " sele|nd "...>|
|000025e0| 64 65 62 75 67 0d 5c 09 | 63 6c 20 22 20 63 75 72 |debug.\.|cl " cur|
|000025f0| 72 65 6e 74 6c 69 6e 65 | 20 22 20 09 3e 64 65 62 |rentline| " .>deb|
|00002600| 75 67 0d 5c 09 6c 65 20 | 22 20 6c 69 6e 65 45 6e |ug.\.le |" lineEn|
|00002610| 64 20 22 20 09 09 3e 64 | 65 62 75 67 0d 5c 09 73 |d " ..>d|ebug.\.s|
|00002620| 7a 20 22 20 73 69 7a 65 | 20 22 20 09 09 09 3e 64 |z " size| " ...>d|
|00002630| 65 62 75 67 0d 3b 6d 0d | 0d 3b 43 4c 41 53 53 0d |ebug.;m.|.;CLASS.|
|00002640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002680| 00 00 01 00 00 00 01 42 | 00 00 00 42 00 00 00 3b |.......B|...B...;|
|00002690| 2b 72 42 5f 44 8c 4d 34 | 92 33 7a 5f 29 01 14 22 |+rB_D.M4|.3z_).."|
|000026a0| 34 01 00 6c 33 02 26 6d | f6 26 51 01 1e 28 b1 48 |4..l3.&m|.&Q..(.H|
|000026b0| 08 54 65 78 74 45 64 69 | 74 78 02 00 00 00 50 61 |.TextEdi|tx....Pa|
|000026c0| 72 74 53 49 54 21 00 00 | 00 00 00 00 00 00 00 01 |rtSIT!..|........|
|000026d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000026e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026f0| 00 00 b3 66 c2 7a 00 00 | 00 00 00 00 01 7d 4e 50 |...f.z..|.....}NP|
|00002700| 01 08 82 7a 5f 29 01 08 | 82 30 02 e3 88 22 2e 5f |...z_)..|.0..."._|
|00002710| 04 74 30 92 82 b2 80 5e | c0 13 02 40 00 01 48 c0 |.t0....^|...@..H.|
|00002720| 84 d6 05 3c 2d f9 e8 e2 | 46 47 ed f9 e8 f7 04 3c |...<-...|FG.....<|
|00002730| 2d f9 e6 47 ed f9 e6 35 | 78 01 e7 80 f1 01 50 87 |-..G...5|x.....P.|
|00002740| 35 01 c1 fc 75 07 2a 00 | 70 2e da 80 4a 04 67 1a |5...u.*.|p...J.g.|
|00002750| 3c 2d f9 e8 7d 01 c0 46 | 8b 02 32 00 4a 81 df b7 |<-..}..F|..2.J...|
|00002760| 5f 01 e2 80 78 03 de 80 | 30 13 52 53 bd 4d 02 6d |_...x...|0.RS.M.m|
|00002770| 02 42 53 29 04 08 8a 28 | 00 38 85 39 47 69 03 30 |.BS)...(|.8.9Gi.0|
|00002780| 00 00 00 3e 00 00 00 00 | 00 00 00 00 00 00 00 00 |...>....|........|
|00002790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 1c b3 |........|........|
|000027b0| 00 00 1c b3 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027c0| 00 00 00 00 01 00 00 00 | 01 42 00 00 00 42 00 00 |........|.B...B..|
|000027d0| 00 3b 02 7c 6e f8 24 ba | 00 00 00 1c 00 32 00 00 |.;.|n.$.|.....2..|
|000027e0| 4d 49 46 4f 00 00 00 0a | 00 80 00 00 00 00 00 00 |MIFO....|........|
|000027f0| 02 7c 75 88 08 4d 69 73 | 63 49 6e 66 6f 00 00 00 |.|u..Mis|cInfo...|
+--------+-------------------------+-------------------------+--------+--------+