home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / unix_c / languags / c / mw.tar < prev    next >
Tape Archive  |  1989-03-03  |  336.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: mw.tar

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file mw/, mode 751 , uid 243 , gid 12 , size 0 , seconds 3501242647 default
98% file data default
100% TrID Sybase iAnywhere database files default (weak)
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 6d 77 2f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |mw/.....|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 31 20 00 20 20 20 32 |.... 7|51 . 2|
|00000070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 33 35 30 31 32 34 32 | 0 | 3501242|
|00000090| 36 34 37 20 20 20 34 34 | 33 36 00 20 00 00 00 00 |647 44|36. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 6d 77 2f 57 49 53 48 4c | 49 53 54 00 00 00 00 00 |mw/WISHL|IST.....|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 34 30 20 00 20 20 20 32 |.... 6|40 . 2|
|00000270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000280| 20 20 20 20 35 36 35 20 | 20 33 31 33 30 32 36 34 | 565 | 3130264|
|00000290| 35 37 34 20 20 20 35 37 | 30 33 00 20 00 00 00 00 |574 57|03. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 49 66 20 74 68 65 72 65 | 20 77 61 73 20 6f 6e 6c |If there| was onl|
|00000410| 79 20 61 20 77 61 79 20 | 74 6f 20 6b 65 65 70 20 |y a way |to keep |
|00000420| 74 68 65 20 74 74 79 20 | 64 72 69 76 65 72 20 66 |the tty |driver f|
|00000430| 72 6f 6d 20 66 6c 75 73 | 68 69 6e 67 20 6f 75 74 |rom flus|hing out|
|00000440| 70 75 74 0a 77 68 65 6e | 20 79 6f 75 20 68 69 74 |put.when| you hit|
|00000450| 20 44 45 4c 2e 2e 2e 0a | 0a 48 50 32 36 34 3f 20 | DEL....|.HP264? |
|00000460| 74 65 72 6d 69 6e 61 6c | 73 20 73 74 61 6e 64 6f |terminal|s stando|
|00000470| 75 74 20 6a 75 73 74 20 | 44 4f 45 53 4e 27 54 20 |ut just |DOESN'T |
|00000480| 57 4f 52 4b 2e 2e 2e 2e | 0a 0a 54 68 65 20 67 65 |WORK....|..The ge|
|00000490| 6e 65 72 69 63 20 74 65 | 72 6d 69 6e 61 6c 20 68 |neric te|rminal h|
|000004a0| 61 6e 64 6c 65 72 20 6e | 65 65 64 73 20 74 6f 20 |andler n|eeds to |
|000004b0| 62 65 20 63 6f 6d 70 6c | 65 74 65 6c 79 20 72 65 |be compl|etely re|
|000004c0| 77 72 69 74 74 65 6e 2e | 20 20 49 74 27 73 0a 61 |written.| It's.a|
|000004d0| 20 62 69 67 20 43 50 55 | 20 68 6f 67 2c 20 61 6e | big CPU| hog, an|
|000004e0| 64 20 69 74 27 73 20 6a | 75 73 74 20 70 6c 61 69 |d it's j|ust plai|
|000004f0| 6e 20 69 6e 65 66 66 65 | 63 69 65 6e 74 2e 20 20 |n ineffe|cient. |
|00000500| 49 74 20 44 4f 45 53 2c | 20 68 6f 77 65 76 65 72 |It DOES,| however|
|00000510| 2c 20 57 4f 52 4b 0a 28 | 66 6f 72 20 74 68 65 20 |, WORK.(|for the |
|00000520| 6d 6f 73 74 20 70 61 72 | 74 29 2e 0a 0a 49 74 27 |most par|t)...It'|
|00000530| 64 20 62 65 20 6e 69 63 | 65 20 6e 6f 74 20 74 6f |d be nic|e not to|
|00000540| 20 68 61 76 65 20 74 6f | 20 63 6f 70 79 20 6c 69 | have to| copy li|
|00000550| 6e 65 73 20 69 6e 20 74 | 68 65 20 74 77 6f 20 73 |nes in t|he two s|
|00000560| 63 72 65 65 6e 73 20 69 | 6e 20 64 69 73 70 6c 61 |creens i|n displa|
|00000570| 79 2e 63 2e 0a 6e 73 6c | 69 6e 65 73 2e 63 00 00 |y.c..nsl|ines.c..|
|00000580| 1b b8 00 00 14 00 09 00 | 73 75 73 70 65 6e 64 2e |........|suspend.|
|00000590| 63 00 00 00 1c b8 00 00 | 14 00 09 00 63 6c 65 61 |c.......|....clea|
|000005a0| 6e 75 70 2e 63 00 00 00 | 1d b8 00 00 10 00 06 00 |nup.c...|........|
|000005b0| 69 6e 69 74 2e 63 00 00 | 1e b8 00 00 10 00 07 00 |init.c..|........|
|000005c0| 77 65 78 69 74 2e 63 00 | 1f b8 00 00 10 00 07 00 |wexit.c.|........|
|000005d0| 66 72 61 6d 65 2e 63 00 | 20 b8 00 00 14 00 0a 00 |frame.c.| .......|
|000005e0| 67 65 74 66 72 61 6d 65 | 2e 63 00 00 21 b8 00 00 |getframe|.c..!...|
|000005f0| 14 00 0a 00 73 65 74 66 | 72 61 6d 65 2e 63 00 00 |....setf|rame.c..|
|00000600| 6d 77 2f 52 45 41 44 4d | 45 00 00 00 00 00 00 00 |mw/READM|E.......|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 20 20 20 36 | 34 30 20 00 20 20 20 32 |.... 6|40 . 2|
|00000670| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000680| 20 20 20 36 34 36 37 20 | 20 33 34 37 31 37 36 34 | 6467 | 3471764|
|00000690| 33 32 32 20 20 20 35 34 | 32 35 00 20 00 00 00 00 |322 54|25. ....|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 4e 6f 74 65 3a 20 20 50 | 65 72 73 6f 6e 61 6c 20 |Note: P|ersonal |
|00000810| 6f 70 69 6e 69 6f 6e 73 | 20 61 72 65 20 69 6e 20 |opinions| are in |
|00000820| 5b 73 71 75 61 72 65 20 | 62 72 61 63 6b 65 74 73 |[square |brackets|
|00000830| 5d 2e 0a 0a 5b 4c 61 73 | 74 20 6d 6f 64 69 66 69 |]...[Las|t modifi|
|00000840| 65 64 3a 20 31 34 20 4d | 61 79 20 31 39 38 35 2c |ed: 14 M|ay 1985,|
|00000850| 20 43 68 72 69 73 20 54 | 6f 72 65 6b 5d 0a 0a 49 | Chris T|orek]..I|
|00000860| 6e 73 74 61 6c 6c 61 74 | 69 6f 6e 0a 2d 2d 2d 2d |nstallat|ion.----|
|00000870| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 0a 4c 6f 6f 6b 20 61 |--------|..Look a|
|00000880| 74 20 74 68 65 20 4d 61 | 6b 65 66 69 6c 65 20 66 |t the Ma|kefile f|
|00000890| 6f 72 20 69 6e 73 74 61 | 6c 6c 61 74 69 6f 6e 20 |or insta|llation |
|000008a0| 69 6e 73 74 72 75 63 74 | 69 6f 6e 73 2e 20 20 45 |instruct|ions. E|
|000008b0| 76 65 72 79 74 68 69 6e | 67 20 69 73 0a 73 65 74 |verythin|g is.set|
|000008c0| 20 75 70 20 66 6f 72 20 | 61 20 56 61 78 20 72 75 | up for |a Vax ru|
|000008d0| 6e 6e 69 6e 67 20 42 65 | 72 6b 65 6c 65 79 20 55 |nning Be|rkeley U|
|000008e0| 6e 69 78 2e 20 20 49 66 | 20 79 6f 75 27 72 65 20 |nix. If| you're |
|000008f0| 72 75 6e 6e 69 6e 67 20 | 34 2e 32 42 53 44 0a 55 |running |4.2BSD.U|
|00000900| 6e 69 78 2c 20 79 6f 75 | 20 73 68 6f 75 6c 64 20 |nix, you| should |
|00000910| 6f 6e 6c 79 20 6e 65 65 | 64 20 74 6f 20 60 60 6d |only nee|d to ``m|
|00000920| 61 6b 65 20 77 69 6e 6c | 69 62 2e 61 27 27 20 66 |ake winl|ib.a'' f|
|00000930| 6f 6c 6c 6f 77 65 64 20 | 62 79 20 61 20 60 60 6d |ollowed |by a ``m|
|00000940| 61 6b 65 0a 69 6e 73 74 | 61 6c 6c 27 27 2e 20 20 |ake.inst|all''. |
|00000950| 46 6f 72 20 34 2e 31 2c | 20 79 6f 75 20 6e 65 65 |For 4.1,| you nee|
|00000960| 64 20 74 6f 20 65 64 69 | 74 20 74 68 65 20 4d 61 |d to edi|t the Ma|
|00000970| 6b 65 66 69 6c 65 20 74 | 6f 20 63 68 61 6e 67 65 |kefile t|o change|
|00000980| 20 74 68 65 0a 64 65 66 | 69 6e 69 74 69 6f 6e 73 | the.def|initions|
|00000990| 20 6f 66 20 42 43 4f 50 | 59 20 61 6e 64 20 42 43 | of BCOP|Y and BC|
|000009a0| 4f 50 59 43 20 28 73 65 | 65 20 74 68 65 20 4d 61 |OPYC (se|e the Ma|
|000009b0| 6b 65 66 69 6c 65 29 20 | 61 6e 64 20 79 6f 75 20 |kefile) |and you |
|000009c0| 6e 65 65 64 0a 74 6f 20 | 63 6f 6d 6d 65 6e 74 20 |need.to |comment |
|000009d0| 6f 75 74 20 74 68 65 20 | 64 65 66 69 6e 69 74 69 |out the |definiti|
|000009e0| 6f 6e 73 20 69 6e 20 34 | 2e 32 6a 6f 62 73 2e 68 |ons in 4|.2jobs.h|
|000009f0| 2e 0a 0a 4e 6f 74 20 6f | 6e 20 61 20 56 61 78 3f |...Not o|n a Vax?|
|00000a00| 0a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 0a |.-------|------..|
|00000a10| 49 66 20 79 6f 75 27 72 | 65 20 6e 6f 74 20 6f 6e |If you'r|e not on|
|00000a20| 20 61 20 56 61 78 2c 20 | 73 65 76 65 72 61 6c 20 | a Vax, |several |
|00000a30| 63 68 61 6e 67 65 73 20 | 61 72 65 20 69 6e 20 6f |changes |are in o|
|00000a40| 72 64 65 72 2e 20 20 46 | 69 72 73 74 2c 20 74 61 |rder. F|irst, ta|
|00000a50| 6b 65 0a 6f 75 74 20 74 | 68 65 20 2d 44 56 41 58 |ke.out t|he -DVAX|
|00000a60| 20 66 6c 61 67 20 69 6e | 20 74 68 65 20 4d 61 6b | flag in| the Mak|
|00000a70| 65 66 69 6c 65 2e 20 20 | 53 65 63 6f 6e 64 2c 20 |efile. |Second, |
|00000a80| 66 69 6e 64 20 6f 75 74 | 20 77 68 65 74 68 65 72 |find out| whether|
|00000a90| 20 74 68 65 0a 64 65 66 | 69 6e 69 74 69 6f 6e 20 | the.def|inition |
|00000aa0| 6f 66 20 75 6e 69 6f 6e | 20 63 68 72 20 69 6e 20 |of union| chr in |
|00000ab0| 77 69 6e 2e 68 20 6d 75 | 73 74 20 62 65 20 63 68 |win.h mu|st be ch|
|00000ac0| 61 6e 67 65 64 2e 20 20 | 46 6f 72 20 61 20 36 38 |anged. |For a 68|
|00000ad0| 30 30 30 2c 0a 74 68 65 | 20 74 77 6f 20 63 68 61 |000,.the| two cha|
|00000ae0| 72 20 65 6c 65 6d 65 6e | 74 73 20 73 68 6f 75 6c |r elemen|ts shoul|
|00000af0| 64 20 62 65 20 72 65 76 | 65 72 73 65 64 2e 20 20 |d be rev|ersed. |
|00000b00| 54 68 69 72 64 2c 20 79 | 6f 75 27 6c 6c 20 70 72 |Third, y|ou'll pr|
|00000b10| 6f 62 61 62 6c 79 0a 67 | 65 74 20 61 20 6e 61 6d |obably.g|et a nam|
|00000b20| 65 20 63 6f 6e 66 6c 69 | 63 74 20 6f 6e 20 57 42 |e confli|ct on WB|
|00000b30| 63 6c 65 61 72 20 61 6e | 64 20 57 42 63 6c 65 61 |clear an|d WBclea|
|00000b40| 72 6c 69 6e 65 2c 20 61 | 6e 64 20 6f 6e 20 73 65 |rline, a|nd on se|
|00000b50| 74 6d 6f 64 65 20 61 6e | 64 0a 73 65 74 6d 6f 64 |tmode an|d.setmod|
|00000b60| 65 73 20 69 6e 20 54 72 | 6d 54 45 52 4d 2e 63 2e |es in Tr|mTERM.c.|
|00000b70| 20 20 5b 57 6f 6e 64 65 | 72 66 75 6c 20 68 6f 77 | [Wonde|rful how|
|00000b80| 20 74 68 65 20 65 69 67 | 68 74 2d 63 68 61 72 61 | the eig|ht-chara|
|00000b90| 63 74 65 72 20 6c 69 6d | 69 74 0a 74 75 72 6e 73 |cter lim|it.turns|
|00000ba0| 20 69 6e 74 6f 20 37 20 | 61 66 74 65 72 20 63 6f | into 7 |after co|
|00000bb0| 6d 70 69 6c 69 6e 67 5d | 20 20 46 6f 72 20 74 68 |mpiling]| For th|
|00000bc0| 65 20 66 69 72 73 74 2c | 20 61 64 64 20 74 68 65 |e first,| add the|
|00000bd0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 0a 6c 69 6e 65 20 | followi|ng.line |
|00000be0| 74 6f 20 77 69 6e 2e 68 | 3a 0a 0a 23 64 65 66 69 |to win.h|:..#defi|
|00000bf0| 6e 65 20 57 42 63 6c 65 | 61 72 6c 69 6e 65 20 20 |ne WBcle|arline |
|00000c00| 20 20 20 57 42 63 6c 72 | 6c 6e 0a 0a 46 6f 72 20 | WBclr|ln..For |
|00000c10| 74 68 65 20 73 65 63 6f | 6e 64 2c 20 61 64 64 20 |the seco|nd, add |
|00000c20| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6c 69 |the foll|owing li|
|00000c30| 6e 65 20 74 6f 20 74 68 | 65 20 74 6f 70 20 6f 66 |ne to th|e top of|
|00000c40| 20 54 72 6d 54 45 52 4d | 2e 63 3a 0a 0a 23 64 65 | TrmTERM|.c:..#de|
|00000c50| 66 69 6e 65 20 73 65 74 | 6d 6f 64 65 73 20 20 20 |fine set|modes |
|00000c60| 20 20 20 20 20 73 6d 6f | 64 65 73 0a 0a 46 6f 75 | smo|des..Fou|
|00000c70| 72 74 68 2c 20 79 6f 75 | 20 6d 61 79 20 67 65 74 |rth, you| may get|
|00000c80| 20 61 6e 20 65 72 72 6f | 72 20 69 6e 20 69 6e 69 | an erro|r in ini|
|00000c90| 74 2e 63 20 28 73 6f 6d | 65 74 68 69 6e 67 20 6c |t.c (som|ething l|
|00000ca0| 69 6b 65 20 22 55 6e 64 | 65 66 69 6e 65 64 3a 0a |ike "Und|efined:.|
|00000cb0| 5f 49 4f 4c 42 46 22 29 | 2e 20 20 49 66 20 73 6f |_IOLBF")|. If so|
|00000cc0| 2c 20 63 68 61 6e 67 65 | 20 74 68 65 20 61 70 70 |, change| the app|
|00000cd0| 72 6f 70 72 69 61 74 65 | 20 6c 69 6e 65 20 74 6f |ropriate| line to|
|00000ce0| 20 72 65 6d 6f 76 65 20 | 74 68 65 20 22 5f 49 4f | remove |the "_IO|
|00000cf0| 4c 42 46 7c 22 0a 66 72 | 6f 6d 20 69 74 2e 20 20 |LBF|".fr|om it. |
|00000d00| 5b 53 6f 20 6d 75 63 68 | 20 66 6f 72 20 22 73 74 |[So much| for "st|
|00000d10| 61 6e 64 61 72 64 22 20 | 49 2f 4f 5d 0a 0a 46 69 |andard" |I/O]..Fi|
|00000d20| 6e 61 6c 6c 79 2c 20 79 | 6f 75 20 6d 61 79 20 6e |nally, y|ou may n|
|00000d30| 6f 74 20 68 61 76 65 20 | 72 61 6e 6c 69 62 2e 20 |ot have |ranlib. |
|00000d40| 20 53 65 65 20 74 68 65 | 20 4d 61 6b 65 66 69 6c | See the| Makefil|
|00000d50| 65 20 66 6f 72 20 61 6e | 20 61 6c 74 65 72 6e 61 |e for an| alterna|
|00000d60| 74 69 76 65 2e 0a 0a 54 | 68 65 20 61 62 6f 76 65 |tive...T|he above|
|00000d70| 20 63 68 61 6e 67 65 73 | 20 77 65 72 65 20 73 75 | changes| were su|
|00000d80| 66 66 69 63 69 65 6e 74 | 20 74 6f 20 6d 61 6b 65 |fficient| to make|
|00000d90| 20 77 69 6e 6c 69 62 20 | 72 75 6e 20 6f 6e 20 61 | winlib |run on a|
|00000da0| 20 53 75 6e 0a 4d 69 63 | 72 6f 73 79 73 74 65 6d | Sun.Mic|rosystem|
|00000db0| 73 20 77 6f 72 6b 73 74 | 61 74 69 6f 6e 20 61 6e |s workst|ation an|
|00000dc0| 64 20 6f 6e 20 61 20 43 | 6f 64 61 74 61 20 43 54 |d on a C|odata CT|
|00000dd0| 57 2d 33 30 30 2e 20 20 | 28 42 6f 74 68 20 61 72 |W-300. |(Both ar|
|00000de0| 65 20 36 38 30 30 30 0a | 62 61 73 65 64 2e 29 0a |e 68000.|based.).|
|00000df0| 0a 42 65 72 6b 65 6c 65 | 79 20 32 2e 38 2c 20 41 |.Berkele|y 2.8, A|
|00000e00| 6e 79 6f 6e 65 3f 0a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |nyone?.-|--------|
|00000e10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 0a 4d 6f |--------|----..Mo|
|00000e20| 72 65 20 63 68 61 6e 67 | 65 73 20 77 65 72 65 20 |re chang|es were |
|00000e30| 73 65 6e 74 20 66 72 6f | 6d 20 73 6f 6d 65 6f 6e |sent fro|m someon|
|00000e40| 65 20 62 72 69 6e 67 69 | 6e 67 20 75 70 20 77 69 |e bringi|ng up wi|
|00000e50| 6e 64 6f 77 73 20 6f 6e | 20 61 20 50 44 50 31 31 |ndows on| a PDP11|
|00000e60| 0a 72 75 6e 6e 69 6e 67 | 20 42 65 72 6b 65 6c 65 |.running| Berkele|
|00000e70| 79 20 32 2e 38 2b 20 28 | 32 2e 38 20 77 69 74 68 |y 2.8+ (|2.8 with|
|00000e80| 20 6d 61 6e 79 20 34 2e | 31 61 20 66 65 61 74 75 | many 4.|1a featu|
|00000e90| 72 65 73 29 3a 0a 0a 31 | 2e 20 20 52 61 6e 6c 69 |res):..1|. Ranli|
|00000ea0| 62 20 64 69 64 6e 27 74 | 20 77 6f 72 6b 20 63 6f |b didn't| work co|
|00000eb0| 72 72 65 63 74 6c 79 3b | 20 75 73 69 6e 67 20 74 |rrectly;| using t|
|00000ec0| 68 65 20 54 53 4f 52 54 | 20 66 69 6c 65 20 77 6f |he TSORT| file wo|
|00000ed0| 72 6b 65 64 2e 0a 0a 32 | 2e 20 20 67 6c 6f 62 61 |rked...2|. globa|
|00000ee0| 6c 73 2e 63 20 64 69 64 | 6e 27 74 20 70 72 6f 70 |ls.c did|n't prop|
|00000ef0| 65 72 6c 79 20 64 65 66 | 69 6e 65 20 74 68 65 20 |erly def|ine the |
|00000f00| 67 6c 6f 62 61 6c 20 76 | 61 72 69 61 62 6c 65 73 |global v|ariables|
|00000f10| 20 62 65 63 61 75 73 65 | 0a 69 74 20 69 6e 63 6c | because|.it incl|
|00000f20| 75 64 65 73 20 77 69 6e | 2e 68 20 28 77 68 69 63 |udes win|.h (whic|
|00000f30| 68 20 6d 61 72 6b 73 20 | 74 68 65 6d 20 65 78 74 |h marks |them ext|
|00000f40| 65 72 6e 61 6c 29 2e 20 | 20 5b 54 68 69 73 20 73 |ernal). | [This s|
|00000f50| 6f 75 6e 64 73 20 6c 69 | 6b 65 0a 61 20 63 6f 6d |ounds li|ke.a com|
|00000f60| 70 69 6c 65 72 20 62 75 | 67 5d 20 20 54 68 65 20 |piler bu|g] The |
|00000f70| 73 6f 6c 75 74 69 6f 6e | 20 75 73 65 64 20 77 61 |solution| used wa|
|00000f80| 73 20 74 6f 20 65 78 74 | 72 61 63 74 20 74 68 65 |s to ext|ract the|
|00000f90| 20 74 79 70 65 20 64 65 | 66 69 6e 69 74 69 6f 6e | type de|finition|
|00000fa0| 73 0a 66 72 6f 6d 20 77 | 69 6e 2e 68 20 61 6e 64 |s.from w|in.h and|
|00000fb0| 20 70 75 74 20 74 68 65 | 6d 20 69 6e 20 67 6c 6f | put the|m in glo|
|00000fc0| 62 61 6c 73 2e 63 2c 20 | 61 6e 64 20 74 6f 20 64 |bals.c, |and to d|
|00000fd0| 65 66 69 6e 65 20 61 20 | 72 6f 75 74 69 6e 65 0a |efine a |routine.|
|00000fe0| 57 69 6e 64 75 6d 6d 79 | 28 29 7b 7d 20 69 6e 20 |Windummy|(){} in |
|00000ff0| 67 6c 6f 62 61 6c 73 2e | 63 20 61 6e 64 20 63 61 |globals.|c and ca|
|00001000| 6c 6c 20 69 74 20 66 72 | 6f 6d 20 69 6e 69 74 2e |ll it fr|om init.|
|00001010| 63 20 28 6f 74 68 65 72 | 77 69 73 65 20 74 68 65 |c (other|wise the|
|00001020| 0a 6c 69 6e 6b 65 72 20 | 69 67 6e 6f 72 65 64 20 |.linker |ignored |
|00001030| 67 6c 6f 62 61 6c 73 2e | 6f 20 5b 73 6f 75 6e 64 |globals.|o [sound|
|00001040| 73 20 6c 69 6b 65 20 61 | 20 6c 69 6e 6b 65 72 20 |s like a| linker |
|00001050| 62 75 67 5d 29 2e 20 20 | 5b 41 6e 6f 74 68 65 72 |bug]). |[Another|
|00001060| 0a 70 6f 73 73 69 62 69 | 6c 69 74 79 20 69 73 20 |.possibi|lity is |
|00001070| 74 6f 20 6d 6f 76 65 20 | 74 68 65 20 64 65 66 69 |to move |the defi|
|00001080| 6e 69 74 69 6f 6e 20 6f | 66 20 4e 6f 4f 70 65 72 |nition o|f NoOper|
|00001090| 61 74 69 6f 6e 20 74 6f | 20 67 6c 6f 62 61 6c 73 |ation to| globals|
|000010a0| 2e 63 2c 0a 61 6c 74 68 | 6f 75 67 68 20 69 74 20 |.c,.alth|ough it |
|000010b0| 64 6f 65 73 6e 27 74 20 | 72 65 61 6c 6c 79 20 62 |doesn't |really b|
|000010c0| 65 6c 6f 6e 67 20 74 68 | 65 72 65 2e 5d 0a 0a 54 |elong th|ere.]..T|
|000010d0| 6f 6f 20 62 69 67 3f 0a | 2d 2d 2d 2d 2d 2d 2d 2d |oo big?.|--------|
|000010e0| 0a 0a 57 69 6e 64 6f 77 | 73 20 69 73 20 75 6e 64 |..Window|s is und|
|000010f0| 65 6e 69 61 62 6c 79 20 | 6c 61 72 67 65 2e 20 20 |eniably |large. |
|00001100| 49 74 20 63 61 6e 20 62 | 65 20 73 68 72 75 6e 6b |It can b|e shrunk|
|00001110| 20 63 6f 6e 73 69 64 65 | 72 61 62 6c 79 20 62 79 | conside|rably by|
|00001120| 0a 63 68 61 6e 67 69 6e | 67 20 74 77 6f 20 63 6f |.changin|g two co|
|00001130| 6e 73 74 61 6e 74 73 20 | 64 65 66 69 6e 65 64 20 |nstants |defined |
|00001140| 69 6e 20 64 69 73 70 6c | 61 79 2e 63 2c 20 6e 61 |in displ|ay.c, na|
|00001150| 6d 65 6c 79 20 4d 53 63 | 72 65 65 6e 4c 65 6e 67 |mely MSc|reenLeng|
|00001160| 74 68 0a 61 6e 64 20 4d | 53 63 72 65 65 6e 57 69 |th.and M|ScreenWi|
|00001170| 64 74 68 2e 20 20 54 68 | 65 73 65 20 61 72 65 20 |dth. Th|ese are |
|00001180| 74 68 65 20 73 69 7a 65 | 73 2d 70 6c 75 73 2d 6f |the size|s-plus-o|
|00001190| 6e 65 20 6f 66 20 74 68 | 65 20 6c 61 72 67 65 73 |ne of th|e larges|
|000011a0| 74 0a 73 63 72 65 65 6e | 20 74 68 61 74 20 63 61 |t.screen| that ca|
|000011b0| 6e 20 62 65 20 68 61 6e | 64 6c 65 64 2e 20 20 49 |n be han|dled. I|
|000011c0| 74 27 73 20 63 75 72 72 | 65 6e 74 6c 79 20 73 65 |t's curr|ently se|
|000011d0| 74 20 75 70 20 74 6f 20 | 68 61 6e 64 6c 65 20 75 |t up to |handle u|
|000011e0| 70 20 74 6f 0a 36 30 20 | 6c 69 6e 65 73 20 61 6e |p to.60 |lines an|
|000011f0| 64 20 75 70 20 74 6f 20 | 31 33 35 20 63 6f 6c 75 |d up to |135 colu|
|00001200| 6d 6e 73 2e 0a 0a 41 6c | 73 6f 2c 20 79 6f 75 20 |mns...Al|so, you |
|00001210| 63 6f 75 6c 64 20 65 6c | 69 6d 69 6e 61 74 65 20 |could el|iminate |
|00001220| 73 6f 6d 65 20 6f 66 20 | 74 68 65 20 54 72 6d 2a |some of |the Trm*|
|00001230| 2e 63 20 74 65 72 6d 69 | 6e 61 6c 20 64 72 69 76 |.c termi|nal driv|
|00001240| 65 72 73 2e 0a 54 68 69 | 73 20 72 65 71 75 69 72 |ers..Thi|s requir|
|00001250| 65 73 20 61 20 62 69 74 | 20 6f 66 20 6d 6f 64 69 |es a bit| of modi|
|00001260| 66 69 63 61 74 69 6f 6e | 20 74 6f 20 64 69 73 70 |fication| to disp|
|00001270| 6c 61 79 2e 63 20 61 73 | 20 77 65 6c 6c 2e 20 20 |lay.c as| well. |
|00001280| 4e 65 61 72 0a 74 68 65 | 20 62 6f 74 74 6f 6d 20 |Near.the| bottom |
|00001290| 6f 66 20 64 69 73 70 6c | 61 79 2e 63 20 74 68 65 |of displ|ay.c the|
|000012a0| 72 65 20 69 73 20 61 20 | 74 61 62 6c 65 20 6f 66 |re is a |table of|
|000012b0| 20 74 65 72 6d 69 6e 61 | 6c 20 74 79 70 65 73 20 | termina|l types |
|000012c0| 61 6e 64 0a 64 72 69 76 | 65 72 73 2e 20 20 49 74 |and.driv|ers. It|
|000012d0| 20 73 68 6f 75 6c 64 20 | 62 65 20 72 65 61 73 6f | should |be reaso|
|000012e0| 6e 61 62 6c 79 20 6f 62 | 76 69 6f 75 73 20 68 6f |nably ob|vious ho|
|000012f0| 77 20 74 6f 20 6d 6f 64 | 69 66 79 20 74 68 69 73 |w to mod|ify this|
|00001300| 2e 0a 0a 42 75 74 20 69 | 74 27 73 20 73 6f 20 73 |...But i|t's so s|
|00001310| 6c 6f 77 21 0a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |low!.---|--------|
|00001320| 2d 2d 2d 2d 2d 2d 0a 0a | 54 68 65 20 54 72 6d 54 |------..|The TrmT|
|00001330| 45 52 4d 2e 63 20 63 6f | 64 65 20 66 6f 72 20 63 |ERM.c co|de for c|
|00001340| 75 72 73 6f 72 20 6d 6f | 74 69 6f 6e 20 69 73 20 |ursor mo|tion is |
|00001350| 72 69 64 69 63 75 6c 6f | 75 73 2e 20 20 49 20 77 |ridiculo|us. I w|
|00001360| 69 6c 6c 20 70 72 6f 62 | 61 62 6c 79 0a 65 76 65 |ill prob|ably.eve|
|00001370| 6e 74 75 61 6c 6c 79 20 | 72 65 77 72 69 74 65 20 |ntually |rewrite |
|00001380| 74 68 65 20 77 68 6f 6c | 65 20 6d 6f 64 75 6c 65 |the whol|e module|
|00001390| 2e 20 20 46 6f 72 20 6e | 6f 77 2c 20 69 66 20 79 |. For n|ow, if y|
|000013a0| 6f 75 20 68 61 76 65 20 | 61 0a 70 61 72 74 69 63 |ou have |a.partic|
|000013b0| 75 6c 61 72 20 74 65 72 | 6d 69 6e 61 6c 2c 20 77 |ular ter|minal, w|
|000013c0| 72 69 74 65 20 61 20 73 | 70 65 63 69 61 6c 20 64 |rite a s|pecial d|
|000013d0| 72 69 76 65 72 20 66 6f | 72 20 69 74 2e 20 20 53 |river fo|r it. S|
|000013e0| 65 65 20 74 68 65 20 73 | 65 63 6f 6e 64 0a 70 61 |ee the s|econd.pa|
|000013f0| 72 61 67 72 61 70 68 20 | 75 6e 64 65 72 20 22 54 |ragraph |under "T|
|00001400| 6f 6f 20 42 69 67 3f 22 | 20 66 6f 72 20 6d 6f 72 |oo Big?"| for mor|
|00001410| 65 20 69 6e 66 6f 2e 0a | 0a 28 54 68 65 20 66 6f |e info..|.(The fo|
|00001420| 6c 6c 6f 77 69 6e 67 20 | 70 61 72 61 67 72 61 70 |llowing |paragrap|
|00001430| 68 20 64 6f 65 73 6e 27 | 74 20 61 70 70 6c 79 20 |h doesn'|t apply |
|00001440| 74 6f 20 34 2e 32 42 53 | 44 2e 29 0a 0a 46 6f 72 |to 4.2BS|D.)..For|
|00001450| 20 67 72 65 61 74 65 72 | 20 73 70 65 65 64 2c 20 | greater| speed, |
|00001460| 79 6f 75 20 6d 61 79 20 | 77 61 6e 74 20 74 6f 20 |you may |want to |
|00001470| 74 72 79 20 72 65 77 72 | 69 74 69 6e 67 20 62 63 |try rewr|iting bc|
|00001480| 6f 70 79 20 28 62 63 6f | 70 79 2e 63 29 0a 61 6e |opy (bco|py.c).an|
|00001490| 64 2f 6f 72 20 43 6f 70 | 79 4c 69 6e 65 20 28 64 |d/or Cop|yLine (d|
|000014a0| 69 73 70 6c 61 79 2e 63 | 29 20 69 6e 20 61 73 73 |isplay.c|) in ass|
|000014b0| 65 6d 62 6c 79 20 63 6f | 64 65 2e 20 20 49 20 66 |embly co|de. I f|
|000014c0| 6f 75 6e 64 20 72 65 77 | 72 69 74 69 6e 67 0a 62 |ound rew|riting.b|
|000014d0| 63 6f 70 79 20 74 6f 20 | 63 6f 70 79 20 62 79 20 |copy to |copy by |
|000014e0| 77 6f 72 64 73 20 61 6e | 64 20 63 68 61 6e 67 69 |words an|d changi|
|000014f0| 6e 67 20 43 6f 70 79 4c | 69 6e 65 20 74 6f 20 63 |ng CopyL|ine to c|
|00001500| 61 6c 6c 20 62 63 6f 70 | 79 20 74 6f 20 63 6f 70 |all bcop|y to cop|
|00001510| 79 0a 74 68 65 20 6c 69 | 6e 65 20 74 65 78 74 20 |y.the li|ne text |
|00001520| 73 75 66 66 69 63 69 65 | 6e 74 20 6f 6e 20 74 68 |sufficie|nt on th|
|00001530| 65 20 53 75 6e 2e 0a 00 | 00 00 00 00 00 00 00 00 |e Sun...|........|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001600| 6d 77 2f 77 69 6e 64 6f | 77 73 2e 6e 72 00 00 00 |mw/windo|ws.nr...|
|00001610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001660| 00 00 00 00 20 20 20 36 | 34 30 20 00 20 20 20 32 |.... 6|40 . 2|
|00001670| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00001680| 20 32 34 37 32 32 36 20 | 20 33 33 37 37 37 36 30 | 247226 | 3377760|
|00001690| 33 35 33 20 20 20 36 36 | 34 35 00 20 00 00 00 00 |353 66|45. ....|
|000016a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 2e 5c 22 20 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.\" ****|********|
|00001810| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0a 2e 69 66 20 5c |********|**..if \|
|00001820| 6e 51 3d 30 20 5c 7b 5c | 0a 2e 74 6d 20 52 75 6e |nQ=0 \{\|..tm Run|
|00001830| 20 6d 65 20 6f 66 66 20 | 77 69 74 68 20 22 74 62 | me off |with "tb|
|00001840| 6c 20 3c 66 69 6c 65 3e | 20 7c 20 2a 72 6f 66 66 |l <file>| | *roff|
|00001850| 20 2d 6d 65 22 21 0a 2e | 74 6d 0a 2e 74 6d 20 59 | -me"!..|tm..tm Y|
|00001860| 6f 75 20 63 61 6e 20 73 | 68 75 74 20 6f 66 66 20 |ou can s|hut off |
|00001870| 74 68 65 73 65 20 61 6e | 6e 6f 79 69 6e 67 20 6d |these an|noying m|
|00001880| 65 73 73 61 67 65 73 0a | 2e 74 6d 20 62 79 20 65 |essages.|.tm by e|
|00001890| 64 69 74 69 6e 67 20 74 | 68 69 73 20 66 69 6c 65 |diting t|his file|
|000018a0| 20 61 6e 64 20 63 68 61 | 6e 67 69 6e 67 20 74 68 | and cha|nging th|
|000018b0| 65 0a 2e 74 6d 20 22 2e | 6e 72 20 51 20 30 22 20 |e..tm ".|nr Q 0" |
|000018c0| 6c 69 6e 65 20 74 6f 20 | 22 2e 6e 72 20 51 20 31 |line to |".nr Q 1|
|000018d0| 22 2c 20 6f 72 20 62 79 | 20 67 69 76 69 6e 67 0a |", or by| giving.|
|000018e0| 2e 74 6d 20 22 2d 72 51 | 31 22 20 74 6f 20 6e 72 |.tm "-rQ|1" to nr|
|000018f0| 6f 66 66 2f 74 72 6f 66 | 66 2e 0a 2e 74 6d 0a 2e |off/trof|f...tm..|
|00001900| 5c 7d 0a 2e 5c 22 20 2a | 2a 2a 2a 2a 2a 2a 2a 2a |\}..\" *|********|
|00001910| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 20 73 65 |********|***** se|
|00001920| 74 20 74 68 65 20 63 6f | 6e 73 74 61 6e 74 73 0a |t the co|nstants.|
|00001930| 2e 6e 72 20 4c 73 20 32 | 09 09 5c 22 20 32 20 66 |.nr Ls 2|..\" 2 f|
|00001940| 6f 72 20 64 6f 75 62 6c | 65 20 73 70 61 63 65 3b |or doubl|e space;|
|00001950| 20 31 20 74 6f 20 73 61 | 76 65 20 70 61 70 65 72 | 1 to sa|ve paper|
|00001960| 0a 2e 6e 72 20 4e 73 20 | 5c 6e 28 70 70 09 09 5c |..nr Ns |\n(pp..\|
|00001970| 22 20 53 61 76 65 20 22 | 6e 6f 72 6d 61 6c 22 20 |" Save "|normal" |
|00001980| 70 6f 69 6e 74 20 73 69 | 7a 65 0a 2e 6e 72 20 53 |point si|ze..nr S|
|00001990| 73 20 39 09 09 5c 22 20 | 73 6d 61 6c 6c 20 70 6f |s 9..\" |small po|
|000019a0| 69 6e 74 20 73 69 7a 65 | 20 2d 2d 20 75 73 65 64 |int size| -- used|
|000019b0| 20 69 66 20 5c 6e 28 4c | 73 3d 31 20 28 74 6f 20 | if \n(L|s=1 (to |
|000019c0| 73 61 76 65 20 70 61 70 | 65 72 29 0a 2e 6e 72 20 |save pap|er)..nr |
|000019d0| 56 76 20 31 09 09 5c 22 | 20 60 60 76 65 72 62 6f |Vv 1..\"| ``verbo|
|000019e0| 73 65 27 27 20 2d 2d 20 | 61 6e 6e 6f 75 6e 63 65 |se'' -- |announce|
|000019f0| 20 70 72 6f 67 72 65 73 | 73 20 74 68 72 75 20 74 | progres|s thru t|
|00001a00| 72 6f 66 66 0a 2e 5c 22 | 20 2a 2a 2a 2a 2a 2a 2a |roff..\"| *******|
|00001a10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0a |********|*******.|
|00001a20| 2e 69 65 20 5c 6e 51 3d | 30 20 5c 7b 5c 0a 2e 74 |.ie \nQ=|0 \{\..t|
|00001a30| 6d 20 54 77 69 64 64 6c | 61 62 6c 65 20 74 68 69 |m Twiddl|able thi|
|00001a40| 6e 67 73 3a 0a 2e 74 6d | 20 5c 74 4c 69 6e 65 20 |ngs:..tm| \tLine |
|00001a50| 73 70 61 63 69 6e 67 20 | 3d 20 5c 6e 28 4c 73 0a |spacing |= \n(Ls.|
|00001a60| 2e 69 66 20 5c 6e 28 4c | 73 3d 31 20 2e 74 6d 20 |.if \n(L|s=1 .tm |
|00001a70| 5c 74 53 6d 61 6c 6c 20 | 70 6f 69 6e 74 73 69 7a |\tSmall |pointsiz|
|00001a80| 65 20 3d 20 5c 6e 28 53 | 73 0a 2e 69 65 20 5c 6e |e = \n(S|s..ie \n|
|00001a90| 28 56 76 3d 31 20 2e 74 | 6d 20 5c 74 56 65 72 62 |(Vv=1 .t|m \tVerb|
|00001aa0| 6f 73 69 74 79 20 4f 4e | 20 28 6d 6f 6e 69 74 6f |osity ON| (monito|
|00001ab0| 72 69 6e 67 20 70 72 6f | 67 72 65 73 73 29 0a 2e |ring pro|gress)..|
|00001ac0| 65 6c 20 2e 74 6d 20 5c | 74 56 65 72 62 6f 73 69 |el .tm \|tVerbosi|
|00001ad0| 74 79 20 4f 46 46 0a 2e | 74 6d 0a 2e 5c 7d 0a 2e |ty OFF..|tm..\}..|
|00001ae0| 65 6c 20 2e 6e 72 20 56 | 76 20 30 09 09 5c 22 20 |el .nr V|v 0..\" |
|00001af0| 66 6f 72 63 65 20 6e 6f | 6e 2d 76 65 72 62 6f 73 |force no|n-verbos|
|00001b00| 65 20 66 6f 72 20 51 28 | 75 69 65 74 29 20 6d 6f |e for Q(|uiet) mo|
|00001b10| 64 65 0a 2e 5c 22 20 2a | 2a 2a 2a 2a 2a 2a 2a 2a |de..\" *|********|
|00001b20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 20 54 61 |********|***** Ta|
|00001b30| 62 6c 65 20 6f 66 20 43 | 6f 6e 74 65 6e 74 73 20 |ble of C|ontents |
|00001b40| 73 74 75 66 66 0a 2e 20 | 5c 22 20 6e 65 77 20 61 |stuff.. |\" new a|
|00001b50| 74 74 65 6d 70 74 20 61 | 74 20 73 74 75 66 66 20 |ttempt a|t stuff |
|00001b60| 74 6f 20 73 65 74 20 75 | 70 20 74 61 62 6c 65 73 |to set u|p tables|
|00001b70| 20 6f 66 20 63 6f 6e 74 | 65 6e 74 73 0a 2e 20 5c | of cont|ents.. \|
|00001b80| 22 20 6d 61 63 72 6f 20 | 74 6f 20 70 75 74 20 73 |" macro |to put s|
|00001b90| 65 63 74 69 6f 6e 73 20 | 69 6e 74 6f 20 74 61 62 |ections |into tab|
|00001ba0| 6c 65 20 6f 66 20 63 6f | 6e 74 65 6e 74 73 0a 2e |le of co|ntents..|
|00001bb0| 20 5c 22 20 66 61 69 6c | 73 20 6f 6e 20 66 69 72 | \" fail|s on fir|
|00001bc0| 73 74 20 73 65 63 74 69 | 6f 6e 20 69 66 20 69 74 |st secti|on if it|
|00001bd0| 20 69 73 20 61 20 2e 75 | 68 20 73 65 63 74 69 6f | is a .u|h sectio|
|00001be0| 6e 0a 2e 64 65 20 49 6d | 0a 2e 49 6e 20 5c 5c 24 |n..de Im|..In \\$|
|00001bf0| 31 20 0a 2e 74 69 20 2d | 5c 5c 24 32 6e 0a 2e 2e |1 ..ti -|\\$2n...|
|00001c00| 0a 2e 64 65 20 49 6e 0a | 27 62 61 20 5c 5c 24 31 |..de In.|'ba \\$1|
|00001c10| 6e 0a 27 69 6e 20 5c 5c | 6e 28 24 69 75 20 2b 20 |n.'in \\|n($iu + |
|00001c20| 5c 5c 6e 28 70 6f 75 0a | 2e 2e 0a 2e 64 65 20 24 |\\n(pou.|....de $|
|00001c30| 30 0a 2e 6e 61 0a 2e 28 | 78 20 74 0a 2e 54 63 20 |0..na..(|x t..Tc |
|00001c40| 22 5c 5c 24 31 22 20 5c | 5c 24 32 20 5c 5c 24 33 |"\\$1" \|\$2 \\$3|
|00001c50| 0a 2e 29 78 0a 2e 61 64 | 20 62 0a 2e 2e 0a 2e 64 |..)x..ad| b.....d|
|00001c60| 65 20 24 43 0a 2e 6e 61 | 0a 2e 28 78 20 74 0a 2e |e $C..na|..(x t..|
|00001c70| 54 63 20 22 5c 5c 24 33 | 22 20 5c 5c 24 32 20 31 |Tc "\\$3|" \\$2 1|
|00001c80| 0a 2e 29 78 0a 2e 61 64 | 20 62 0a 2e 2e 0a 2e 64 |..)x..ad| b.....d|
|00001c90| 65 20 42 49 0a 2e 78 6c | 20 2d 5c 5c 24 31 6e 0a |e BI..xl| -\\$1n.|
|00001ca0| 2e 49 4e 20 5c 5c 24 31 | 6e 0a 2e 2e 0a 2e 64 65 |.IN \\$1|n.....de|
|00001cb0| 20 42 4f 0a 2e 78 6c 20 | 2b 5c 5c 24 31 6e 0a 2e | BO..xl |+\\$1n..|
|00001cc0| 49 4e 20 2d 5c 5c 24 31 | 6e 0a 2e 2e 0a 2e 5c 22 |IN -\\$1|n.....\"|
|00001cd0| 20 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | *******|********|
|00001ce0| 2a 2a 2a 2a 2a 2a 2a 20 | 46 69 67 75 72 65 20 6d |******* |Figure m|
|00001cf0| 61 63 72 6f 73 0a 2e 64 | 65 20 42 66 09 09 09 5c |acros..d|e Bf...\|
|00001d00| 22 20 2a 2a 2a 20 62 65 | 67 69 6e 20 66 69 67 75 |" *** be|gin figu|
|00001d10| 72 65 20 6d 61 63 72 6f | 20 28 61 72 67 20 6d 65 |re macro| (arg me|
|00001d20| 61 6e 73 20 66 6c 6f 61 | 74 69 6e 67 20 66 69 67 |ans floa|ting fig|
|00001d30| 29 0a 2e 69 65 20 5c 5c | 6e 28 2e 24 20 5c 0a 5c |)..ie \\|n(.$ \.\|
|00001d40| 7b 5c 0a 2e 09 28 7a 0a | 2e 09 6e 72 20 46 74 20 |{\...(z.|..nr Ft |
|00001d50| 31 0a 2e 5c 7d 0a 2e 65 | 6c 20 5c 0a 5c 7b 5c 0a |1..\}..e|l \.\{\.|
|00001d60| 2e 09 28 62 20 4d 0a 2e | 09 6e 72 20 46 74 20 30 |..(b M..|.nr Ft 0|
|00001d70| 0a 2e 5c 7d 0a 2e 68 6c | 0a 2e 28 63 0a 2e 2e 0a |..\}..hl|..(c....|
|00001d80| 2e 64 65 20 45 66 09 09 | 09 5c 22 20 2a 2a 2a 20 |.de Ef..|.\" *** |
|00001d90| 65 6e 64 20 66 69 67 75 | 72 65 20 6d 61 63 72 6f |end figu|re macro|
|00001da0| 0a 2e 29 63 0a 2e 73 70 | 0a 2e 63 65 20 31 0a 46 |..)c..sp|..ce 1.F|
|00001db0| 69 67 75 72 65 20 5c 5c | 6e 28 46 6e 3a 20 5c 5c |igure \\|n(Fn: \\|
|00001dc0| 24 31 0a 2e 68 6c 0a 2e | 69 65 20 5c 5c 6e 28 46 |$1..hl..|ie \\n(F|
|00001dd0| 74 3d 31 20 2e 29 7a 0a | 2e 65 6c 20 2e 29 62 0a |t=1 .)z.|.el .)b.|
|00001de0| 2e 6e 72 20 46 6e 20 2b | 31 0a 2e 6e 72 20 46 62 |.nr Fn +|1..nr Fb|
|00001df0| 20 2b 31 0a 2e 46 73 0a | 2e 2e 0a 2e 6e 72 20 46 | +1..Fs.|....nr F|
|00001e00| 6e 20 31 20 09 09 5c 22 | 20 66 69 67 75 72 65 20 |n 1 ..\"| figure |
|00001e10| 6e 75 6d 62 65 72 20 63 | 6f 75 6e 74 65 72 0a 2e |number c|ounter..|
|00001e20| 6e 72 20 46 62 20 30 20 | 09 09 5c 22 20 66 69 67 |nr Fb 0 |..\" fig|
|00001e30| 75 72 65 20 6e 75 6d 62 | 65 72 20 63 6f 75 6e 74 |ure numb|er count|
|00001e40| 65 72 20 28 74 68 65 20 | 6f 6e 65 20 62 65 66 6f |er (the |one befo|
|00001e50| 72 65 29 0a 2e 64 65 20 | 49 4e 09 09 5c 22 20 69 |re)..de |IN..\" i|
|00001e60| 6e 64 65 6e 74 20 74 68 | 65 20 67 69 76 65 6e 20 |ndent th|e given |
|00001e70| 61 6d 6f 75 6e 74 20 28 | 75 73 69 6e 67 20 62 61 |amount (|using ba|
|00001e80| 73 65 20 69 6e 64 65 6e | 74 29 0a 2e 62 61 20 5c |se inden|t)..ba \|
|00001e90| 5c 24 31 6e 0a 2e 69 6e | 20 5c 5c 6e 28 24 69 75 |\$1n..in| \\n($iu|
|00001ea0| 20 2b 20 5c 5c 6e 28 70 | 6f 75 0a 2e 2e 0a 2e 64 | + \\n(p|ou.....d|
|00001eb0| 65 20 42 49 09 09 5c 22 | 20 62 72 69 6e 67 20 62 |e BI..\"| bring b|
|00001ec0| 6f 74 68 20 65 64 67 65 | 73 20 69 6e 0a 2e 78 6c |oth edge|s in..xl|
|00001ed0| 20 2d 5c 5c 24 31 6e 0a | 2e 49 4e 20 5c 5c 24 31 | -\\$1n.|.IN \\$1|
|00001ee0| 6e 0a 2e 2e 0a 2e 64 65 | 20 42 4f 09 09 5c 22 20 |n.....de| BO..\" |
|00001ef0| 62 72 69 6e 67 20 62 6f | 74 68 20 65 64 67 65 73 |bring bo|th edges|
|00001f00| 20 6f 75 74 20 28 75 73 | 75 61 6c 6c 20 61 66 74 | out (us|uall aft|
|00001f10| 65 72 20 61 20 42 49 29 | 0a 2e 78 6c 20 2b 5c 5c |er a BI)|..xl +\\|
|00001f20| 24 31 6e 0a 2e 49 4e 20 | 2d 5c 5c 24 31 6e 0a 2e |$1n..IN |-\\$1n..|
|00001f30| 2e 0a 2e 64 65 20 41 50 | 09 09 09 5c 22 20 2a 2a |...de AP|...\" **|
|00001f40| 2a 20 61 70 70 65 6e 64 | 69 78 20 65 6e 74 72 79 |* append|ix entry|
|00001f50| 0a 2e 62 70 0a 2e 75 68 | 20 22 41 70 70 65 6e 64 |..bp..uh| "Append|
|00001f60| 69 78 20 5c 5c 6e 28 41 | 6e 3a 20 5c 5c 24 31 22 |ix \\n(A|n: \\$1"|
|00001f70| 0a 2e 6e 72 20 41 6e 20 | 2b 31 0a 2e 2e 0a 2e 6e |..nr An |+1.....n|
|00001f80| 72 20 41 6e 20 31 0a 2e | 5c 22 20 2a 2a 2a 2a 2a |r An 1..|\" *****|
|00001f90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001fa0| 2a 20 46 75 6e 63 74 69 | 6f 6e 20 6d 61 63 72 6f |* Functi|on macro|
|00001fb0| 73 0a 2e 64 65 20 66 66 | 09 09 09 5c 22 20 44 65 |s..de ff|...\" De|
|00001fc0| 63 6c 61 72 65 20 43 20 | 66 75 6e 63 74 69 6f 6e |clare C |function|
|00001fd0| 0a 2e 6c 73 20 31 0a 2e | 73 70 20 32 2e 35 0a 2e |..ls 1..|sp 2.5..|
|00001fe0| 6e 65 20 36 0a 2e 6e 66 | 0a 2e 69 6e 20 2b 2e 35 |ne 6..nf|..in +.5|
|00001ff0| 69 0a 2e 2e 0a 2e 64 65 | 20 66 65 09 09 09 5c 22 |i.....de| fe...\"|
|00002000| 20 45 6e 64 20 43 20 66 | 75 6e 63 74 69 6f 6e 0a | End C f|unction.|
|00002010| 2e 69 6e 20 2d 2e 35 69 | 0a 2e 73 70 20 2e 35 0a |.in -.5i|..sp .5.|
|00002020| 2e 6c 73 20 5c 6e 28 4c | 73 0a 2e 66 69 0a 2e 6c |.ls \n(L|s..fi..l|
|00002030| 70 0a 2e 2e 0a 2e 5c 22 | 20 2a 2a 2a 2a 2a 2a 2a |p.....\"| *******|
|00002040| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 20 |********|******* |
|00002050| 2e 73 68 20 73 65 63 74 | 69 6f 6e 20 73 70 61 63 |.sh sect|ion spac|
|00002060| 69 6e 67 0a 2e 64 65 20 | 24 31 0a 2e 73 70 20 32 |ing..de |$1..sp 2|
|00002070| 0a 2e 2e 0a 2e 64 65 20 | 24 32 0a 2e 73 70 20 31 |.....de |$2..sp 1|
|00002080| 0a 2e 2e 0a 2e 5c 22 20 | 2a 2a 2a 2a 2a 2a 2a 2a |.....\" |********|
|00002090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 20 53 |********|****** S|
|000020a0| 74 61 72 74 20 74 68 65 | 20 62 61 6c 6c 20 72 6f |tart the| ball ro|
|000020b0| 6c 6c 69 6e 67 0a 2e 69 | 66 20 5c 6e 28 56 76 3d |lling..i|f \n(Vv=|
|000020c0| 31 20 2e 74 6d 20 53 74 | 61 72 74 69 6e 67 20 75 |1 .tm St|arting u|
|000020d0| 70 2e 2e 2e 0a 2e 70 6f | 20 31 2e 30 69 0a 2e 6c |p.....po| 1.0i..l|
|000020e0| 6c 20 36 2e 35 69 0a 2e | 74 70 0a 2e 68 65 20 27 |l 6.5i..|tp..he '|
|000020f0| 5c 66 42 54 68 65 20 4d | 61 72 79 6c 61 6e 64 20 |\fBThe M|aryland |
|00002100| 57 69 6e 64 6f 77 20 4c | 69 62 72 61 72 79 5c 66 |Window L|ibrary\f|
|00002110| 52 27 27 2d 20 25 20 2d | 27 0a 2e 73 70 20 30 2e |R''- % -|'..sp 0.|
|00002120| 35 69 0a 2e 63 65 20 31 | 30 30 0a 2e 73 7a 20 2b |5i..ce 1|00..sz +|
|00002130| 34 0a 54 68 65 20 4d 61 | 72 79 6c 61 6e 64 20 57 |4.The Ma|ryland W|
|00002140| 69 6e 64 6f 77 20 4c 69 | 62 72 61 72 79 0a 2e 73 |indow Li|brary..s|
|00002150| 7a 20 2d 32 0a 2e 73 70 | 20 32 0a 43 68 72 69 73 |z -2..sp| 2.Chris|
|00002160| 20 54 6f 72 65 6b 0a 2e | 73 70 20 32 0a 2e 73 7a | Torek..|sp 2..sz|
|00002170| 20 2d 32 0a 44 65 70 61 | 72 74 6d 65 6e 74 20 6f | -2.Depa|rtment o|
|00002180| 66 20 43 6f 6d 70 75 74 | 65 72 20 53 63 69 65 6e |f Comput|er Scien|
|00002190| 63 65 0a 55 6e 69 76 65 | 72 73 69 74 79 20 6f 66 |ce.Unive|rsity of|
|000021a0| 20 4d 61 72 79 6c 61 6e | 64 0a 43 6f 6c 6c 65 67 | Marylan|d.Colleg|
|000021b0| 65 20 50 61 72 6b 2c 20 | 4d 44 20 32 30 37 34 32 |e Park, |MD 20742|
|000021c0| 0a 2e 73 70 20 30 2e 35 | 69 0a 5c 66 42 41 42 53 |..sp 0.5|i.\fBABS|
|000021d0| 54 52 41 43 54 5c 66 52 | 0a 2e 63 65 20 30 0a 2e |TRACT\fR|..ce 0..|
|000021e0| 42 49 20 30 2e 37 35 69 | 0a 2e 70 70 0a 54 68 65 |BI 0.75i|..pp.The|
|000021f0| 72 65 20 61 72 65 20 6d | 61 6e 79 20 61 70 70 6c |re are m|any appl|
|00002200| 69 63 61 74 69 6f 6e 73 | 20 66 6f 72 20 77 69 6e |ications| for win|
|00002210| 64 6f 77 73 2c 20 62 75 | 74 20 74 68 65 20 69 6d |dows, bu|t the im|
|00002220| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 20 6f 66 0a |plementa|tion of.|
|00002230| 77 69 6e 64 6f 77 20 73 | 6f 66 74 77 61 72 65 20 |window s|oftware |
|00002240| 69 73 20 6e 6f 74 20 61 | 6e 20 65 61 73 79 20 74 |is not a|n easy t|
|00002250| 61 73 6b 2e 20 20 54 68 | 65 20 6a 6f 62 20 63 61 |ask. Th|e job ca|
|00002260| 6e 20 62 65 20 63 6f 6e | 73 69 64 65 72 61 62 6c |n be con|siderabl|
|00002270| 79 0a 73 69 6d 70 6c 69 | 66 69 65 64 20 62 79 20 |y.simpli|fied by |
|00002280| 65 6c 69 6d 69 6e 61 74 | 69 6e 67 20 73 6f 6d 65 |eliminat|ing some|
|00002290| 20 6f 66 20 74 68 65 20 | 63 61 70 61 62 69 6c 69 | of the |capabili|
|000022a0| 74 69 65 73 20 6f 66 20 | 61 20 66 75 6c 6c 20 73 |ties of |a full s|
|000022b0| 79 73 74 65 6d 2c 0a 66 | 6f 72 20 65 78 61 6d 70 |ystem,.f|or examp|
|000022c0| 6c 65 2c 20 72 65 71 75 | 69 72 69 6e 67 20 74 68 |le, requ|iring th|
|000022d0| 61 74 20 77 69 6e 64 6f | 77 73 20 64 6f 20 6e 6f |at windo|ws do no|
|000022e0| 74 20 6f 76 65 72 6c 61 | 70 2c 20 62 75 74 20 74 |t overla|p, but t|
|000022f0| 68 69 73 20 72 65 64 75 | 63 65 73 0a 74 68 65 20 |his redu|ces.the |
|00002300| 75 73 65 66 75 6c 6e 65 | 73 73 20 6f 66 20 74 68 |usefulne|ss of th|
|00002310| 65 20 72 65 73 75 6c 74 | 2e 20 20 54 68 69 73 20 |e result|. This |
|00002320| 70 61 70 65 72 20 64 65 | 73 63 72 69 62 65 73 20 |paper de|scribes |
|00002330| 74 68 65 20 55 6e 69 76 | 65 72 73 69 74 79 0a 6f |the Univ|ersity.o|
|00002340| 66 20 4d 61 72 79 6c 61 | 6e 64 20 57 69 6e 64 6f |f Maryla|nd Windo|
|00002350| 77 20 4c 69 62 72 61 72 | 79 2c 20 61 6e 20 69 6d |w Librar|y, an im|
|00002360| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 20 74 68 61 |plementa|tion tha|
|00002370| 74 20 73 75 70 70 6f 72 | 74 73 20 61 20 76 65 72 |t suppor|ts a ver|
|00002380| 79 0a 63 6f 6d 70 6c 65 | 74 65 20 63 68 61 72 61 |y.comple|te chara|
|00002390| 63 74 65 72 2d 62 61 73 | 65 64 20 77 69 6e 64 6f |cter-bas|ed windo|
|000023a0| 77 20 73 79 73 74 65 6d | 2e 0a 2e 42 4f 20 30 2e |w system|...BO 0.|
|000023b0| 37 35 69 0a 2e 73 70 20 | 32 0a 5c 2a 28 74 64 0a |75i..sp |2.\*(td.|
|000023c0| 2e 62 70 0a 2e 6c 73 20 | 5c 6e 28 4c 73 0a 2e 73 |.bp..ls |\n(Ls..s|
|000023d0| 68 20 31 20 22 49 6e 74 | 72 6f 64 75 63 74 69 6f |h 1 "Int|roductio|
|000023e0| 6e 22 0a 2e 70 70 0a 57 | 68 61 74 20 65 78 61 63 |n"..pp.W|hat exac|
|000023f0| 74 6c 79 20 69 73 20 61 | 20 77 69 6e 64 6f 77 3f |tly is a| window?|
|00002400| 20 20 49 74 20 69 73 20 | 6d 65 72 65 6c 79 20 61 | It is |merely a|
|00002410| 20 72 65 63 74 61 6e 67 | 75 6c 61 72 20 72 65 67 | rectang|ular reg|
|00002420| 69 6f 6e 20 74 68 61 74 | 20 63 61 6e 0a 64 69 73 |ion that| can.dis|
|00002430| 70 6c 61 79 20 74 65 78 | 74 2e 20 20 49 6e 20 66 |play tex|t. In f|
|00002440| 61 63 74 2c 20 69 74 20 | 69 73 20 76 65 72 79 20 |act, it |is very |
|00002450| 6d 75 63 68 20 6c 69 6b | 65 20 61 20 73 74 61 6e |much lik|e a stan|
|00002460| 64 61 72 64 20 74 65 72 | 6d 69 6e 61 6c 27 73 0a |dard ter|minal's.|
|00002470| 64 69 73 70 6c 61 79 2e | 20 20 48 6f 77 65 76 65 |display.| Howeve|
|00002480| 72 2c 20 73 69 6e 63 65 | 20 69 74 20 65 78 69 73 |r, since| it exis|
|00002490| 74 73 20 61 73 20 61 20 | 73 75 62 61 72 65 61 20 |ts as a |subarea |
|000024a0| 6f 66 20 61 20 72 65 61 | 6c 20 64 69 73 70 6c 61 |of a rea|l displa|
|000024b0| 79 2c 20 69 74 0a 63 61 | 6e 20 62 65 20 6d 6f 76 |y, it.ca|n be mov|
|000024c0| 65 64 20 61 72 6f 75 6e | 64 2c 20 6f 72 20 63 6f |ed aroun|d, or co|
|000024d0| 76 65 72 65 64 20 62 79 | 20 6f 74 68 65 72 20 77 |vered by| other w|
|000024e0| 69 6e 64 6f 77 73 2e 20 | 20 57 69 6e 64 6f 77 73 |indows. | Windows|
|000024f0| 20 63 61 6e 20 6e 65 76 | 65 72 20 62 65 0a 62 69 | can nev|er be.bi|
|00002500| 67 67 65 72 20 74 68 61 | 6e 20 74 68 65 20 72 65 |gger tha|n the re|
|00002510| 61 6c 20 64 69 73 70 6c | 61 79 2e 0a 2e 70 70 0a |al displ|ay...pp.|
|00002520| 4f 6e 65 20 75 73 65 66 | 75 6c 20 61 6e 61 6c 6f |One usef|ul analo|
|00002530| 67 79 20 66 6f 72 20 77 | 69 6e 64 6f 77 73 20 69 |gy for w|indows i|
|00002540| 73 20 67 6c 61 73 73 20 | 6f 76 65 72 20 61 20 72 |s glass |over a r|
|00002550| 6f 6f 6d 20 66 75 6c 6c | 20 6f 66 20 74 65 78 74 |oom full| of text|
|00002560| 2e 20 20 54 68 69 73 0a | 72 6f 6f 6d 20 69 73 20 |. This.|room is |
|00002570| 63 61 6c 6c 65 64 20 74 | 68 65 20 62 75 66 66 65 |called t|he buffe|
|00002580| 72 2e 20 20 54 68 65 20 | 62 75 66 66 65 72 20 63 |r. The |buffer c|
|00002590| 61 6e 20 62 65 20 62 69 | 67 67 65 72 20 74 68 61 |an be bi|gger tha|
|000025a0| 6e 20 74 68 65 20 77 69 | 6e 64 6f 77 2e 0a 48 6f |n the wi|ndow..Ho|
|000025b0| 77 65 76 65 72 2c 20 6f | 6e 6c 79 20 74 68 65 20 |wever, o|nly the |
|000025c0| 61 72 65 61 20 74 68 61 | 74 20 63 61 6e 20 62 65 |area tha|t can be|
|000025d0| 20 73 65 65 6e 20 74 68 | 72 6f 75 67 68 20 74 68 | seen th|rough th|
|000025e0| 65 20 77 69 6e 64 6f 77 | 20 69 73 20 76 69 73 69 |e window| is visi|
|000025f0| 62 6c 65 2e 0a 2e 70 70 | 0a 54 77 6f 20 73 65 70 |ble...pp|.Two sep|
|00002600| 61 72 61 74 65 20 77 69 | 6e 64 6f 77 73 20 63 61 |arate wi|ndows ca|
|00002610| 6e 20 6c 6f 6f 6b 20 69 | 6e 74 6f 20 74 68 65 20 |n look i|nto the |
|00002620| 73 61 6d 65 20 72 6f 6f | 6d 20 28 5c 66 49 62 75 |same roo|m (\fIbu|
|00002630| 66 66 65 72 5c 66 52 29 | 2e 20 20 54 68 65 20 73 |ffer\fR)|. The s|
|00002640| 61 6d 65 0a 72 6f 6f 6d | 20 69 73 20 72 65 76 65 |ame.room| is reve|
|00002650| 61 6c 65 64 20 74 68 72 | 6f 75 67 68 20 62 6f 74 |aled thr|ough bot|
|00002660| 68 20 77 69 6e 64 6f 77 | 73 2c 20 62 75 74 20 6e |h window|s, but n|
|00002670| 6f 74 20 6e 65 63 65 73 | 73 61 72 69 6c 79 20 74 |ot neces|sarily t|
|00002680| 68 65 20 73 61 6d 65 0a | 70 61 72 74 20 6f 66 20 |he same.|part of |
|00002690| 74 68 61 74 20 72 6f 6f | 6d 2e 20 20 54 68 65 73 |that roo|m. Thes|
|000026a0| 65 20 77 69 6e 64 6f 77 | 73 20 61 72 65 20 63 61 |e window|s are ca|
|000026b0| 6c 6c 65 64 20 5c 2a 28 | 6c 71 6c 69 6e 6b 65 64 |lled \*(|lqlinked|
|000026c0| 20 77 69 6e 64 6f 77 73 | 5c 2a 28 72 71 20 61 6c | windows|\*(rq al|
|000026d0| 74 68 6f 75 67 68 0a 5c | 2a 28 6c 71 6c 69 6e 6b |though.\|*(lqlink|
|000026e0| 65 64 20 62 75 66 66 65 | 72 73 5c 2a 28 72 71 20 |ed buffe|rs\*(rq |
|000026f0| 6d 69 67 68 74 20 68 61 | 76 65 20 62 65 65 6e 20 |might ha|ve been |
|00002700| 61 20 62 65 74 74 65 72 | 20 70 68 72 61 73 65 2e |a better| phrase.|
|00002710| 0a 2e 70 70 0a 54 68 75 | 73 20 74 68 65 72 65 20 |..pp.Thu|s there |
|00002720| 61 72 65 20 74 77 6f 20 | 62 61 73 69 63 0a 2e 71 |are two |basic..q|
|00002730| 20 70 61 72 74 73 0a 74 | 6f 20 61 20 77 69 6e 64 | parts.t|o a wind|
|00002740| 6f 77 3a 20 20 69 74 73 | 20 77 69 6e 64 6f 77 20 |ow: its| window |
|00002750| 64 65 73 63 72 69 70 74 | 6f 72 0a 28 69 74 73 20 |descript|or.(its |
|00002760| 70 6f 73 69 74 69 6f 6e | 20 61 6e 64 20 73 69 7a |position| and siz|
|00002770| 65 29 3b 20 61 6e 64 20 | 69 74 73 20 74 65 78 74 |e); and |its text|
|00002780| 20 62 75 66 66 65 72 20 | 6f 72 20 5c 66 49 74 65 | buffer |or \fIte|
|00002790| 78 74 62 75 66 5c 66 52 | 20 28 68 6f 6c 64 69 6e |xtbuf\fR| (holdin|
|000027a0| 67 0a 74 68 65 20 74 65 | 78 74 20 74 6f 20 62 65 |g.the te|xt to be|
|000027b0| 20 64 69 73 70 6c 61 79 | 65 64 20 77 69 74 68 69 | display|ed withi|
|000027c0| 6e 20 74 68 65 20 77 69 | 6e 64 6f 77 29 2e 20 20 |n the wi|ndow). |
|000027d0| 49 74 20 69 73 20 61 6c | 73 6f 20 75 73 65 66 75 |It is al|so usefu|
|000027e0| 6c 20 74 6f 20 68 61 76 | 65 0a 61 20 70 6f 72 74 |l to hav|e.a port|
|000027f0| 69 6f 6e 20 6f 66 20 61 | 20 77 69 6e 64 6f 77 20 |ion of a| window |
|00002800| 66 6f 72 20 6e 6f 6e 2d | 74 65 78 74 75 61 6c 20 |for non-|textual |
|00002810| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 2e 20 20 54 68 |informat|ion. Th|
|00002820| 69 73 20 69 73 20 63 61 | 6c 6c 65 64 20 74 68 65 |is is ca|lled the|
|00002830| 0a 5c 66 49 77 69 6e 62 | 75 66 5c 66 52 2c 20 6f |.\fIwinb|uf\fR, o|
|00002840| 72 20 5c 2a 28 6c 71 77 | 69 6e 64 6f 77 20 62 75 |r \*(lqw|indow bu|
|00002850| 66 66 65 72 5c 2a 28 72 | 71 2e 20 20 4e 6f 72 6d |ffer\*(r|q. Norm|
|00002860| 61 6c 6c 79 20 74 68 65 | 20 77 69 6e 62 75 66 20 |ally the| winbuf |
|00002870| 63 6f 6e 74 61 69 6e 73 | 20 6f 6e 6c 79 0a 2e 71 |contains| only..q|
|00002880| 20 67 6c 61 73 73 0a 28 | 65 6d 70 74 79 20 73 70 | glass.(|empty sp|
|00002890| 61 63 65 29 2c 20 62 75 | 74 20 69 74 20 63 61 6e |ace), bu|t it can|
|000028a0| 20 62 65 20 77 72 69 74 | 74 65 6e 20 6f 6e 2e 20 | be writ|ten on. |
|000028b0| 20 46 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 61 6e | For exa|mple, an|
|000028c0| 0a 6f 75 74 6c 69 6e 65 | 2c 20 6f 72 20 5c 66 49 |.outline|, or \fI|
|000028d0| 66 72 61 6d 65 5c 66 52 | 2c 20 6d 61 79 20 62 65 |frame\fR|, may be|
|000028e0| 20 77 72 69 74 74 65 6e | 20 6f 6e 74 6f 20 74 68 | written| onto th|
|000028f0| 65 20 67 6c 61 73 73 2c | 20 74 6f 20 73 68 6f 77 |e glass,| to show|
|00002900| 20 68 6f 77 20 6d 75 63 | 68 0a 73 70 61 63 65 20 | how muc|h.space |
|00002910| 69 73 20 61 76 61 69 6c | 61 62 6c 65 20 77 69 74 |is avail|able wit|
|00002920| 68 69 6e 20 74 68 65 20 | 77 69 6e 64 6f 77 20 28 |hin the |window (|
|00002930| 73 65 65 20 46 69 67 75 | 72 65 20 5c 6e 28 46 6e |see Figu|re \n(Fn|
|00002940| 29 2e 0a 2e 42 66 20 31 | 0a 2e 69 65 20 6e 20 5c |)...Bf 1|..ie n \|
|00002950| 7b 5c 0a 2b 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |{\.+----|--------|
|00002960| 2d 2d 2b 0a 7c 20 20 20 | 20 20 20 20 20 20 20 20 |--+.| | |
|00002970| 20 20 20 7c 0a 7c 20 20 | 53 6f 6d 65 20 74 65 78 | |.| |Some tex|
|00002980| 74 20 20 20 7c 0a 7c 20 | 69 6e 20 61 20 77 69 6e |t |.| |in a win|
|00002990| 64 6f 77 20 20 7c 0a 7c | 20 20 20 20 20 20 20 20 |dow |.|| |
|000029a0| 20 20 20 20 20 20 7c 0a | 2b 2d 2d 2d 2d 2d 2d 2d | |.|+-------|
|000029b0| 2d 2d 2d 2d 2d 2d 2d 2b | 0a 2e 5c 7d 0a 2e 65 6c |-------+|..\}..el|
|000029c0| 20 5c 7b 5c 0a 2e 54 53 | 0a 62 6f 78 3b 0a 63 2e | \{\..TS|.box;.c.|
|000029d0| 0a 0a 20 53 6f 6d 65 20 | 74 65 78 74 0a 20 69 6e |.. Some |text. in|
|000029e0| 20 61 20 77 69 6e 64 6f | 77 0a 0a 2e 54 45 0a 2e | a windo|w...TE..|
|000029f0| 5c 7d 0a 2e 45 66 20 22 | 46 72 61 6d 65 64 20 77 |\}..Ef "|Framed w|
|00002a00| 69 6e 64 6f 77 22 0a 2e | 70 70 0a 46 69 67 75 72 |indow"..|pp.Figur|
|00002a10| 65 20 5c 6e 28 46 62 20 | 73 68 6f 77 73 20 61 20 |e \n(Fb |shows a |
|00002a20| 73 69 78 74 65 65 6e 20 | 62 79 20 73 69 78 20 77 |sixteen |by six w|
|00002a30| 69 6e 64 6f 77 20 77 69 | 74 68 20 61 20 66 72 61 |indow wi|th a fra|
|00002a40| 6d 65 2e 0a 2e 69 65 20 | 6e 20 28 54 68 65 20 66 |me...ie |n (The f|
|00002a50| 72 61 6d 65 20 63 68 61 | 72 61 63 74 65 72 73 20 |rame cha|racters |
|00002a60| 73 68 6f 77 6e 20 61 72 | 65 20 74 68 6f 73 65 20 |shown ar|e those |
|00002a70| 75 73 65 64 20 6f 6e 20 | 6d 6f 73 74 20 64 69 73 |used on |most dis|
|00002a80| 70 6c 61 79 73 2e 0a 2e | 65 6c 20 5c 7b 5c 0a 28 |plays...|el \{\.(|
|00002a90| 54 68 65 20 66 72 61 6d | 65 20 63 68 61 72 61 63 |The fram|e charac|
|00002aa0| 74 65 72 73 20 75 73 65 | 64 20 6f 6e 20 6d 6f 73 |ters use|d on mos|
|00002ab0| 74 20 74 65 72 6d 69 6e | 61 6c 73 20 61 72 65 0a |t termin|als are.|
|00002ac0| 2e 71 20 2b 20 2c 0a 2e | 71 20 5c 2d 20 2c 0a 61 |.q + ,..|q \- ,.a|
|00002ad0| 6e 64 0a 2e 71 20 7c 20 | 2c 0a 66 6f 72 20 74 68 |nd..q | |,.for th|
|00002ae0| 65 20 63 6f 72 6e 65 72 | 73 2c 20 74 6f 70 20 61 |e corner|s, top a|
|00002af0| 6e 64 20 62 6f 74 74 6f | 6d 2c 20 61 6e 64 20 6c |nd botto|m, and l|
|00002b00| 65 66 74 20 61 6e 64 20 | 72 69 67 68 74 20 73 69 |eft and |right si|
|00002b10| 64 65 73 2e 0a 2e 5c 7d | 0a 4f 6e 20 64 69 73 70 |des...\}|.On disp|
|00002b20| 6c 61 79 73 20 74 68 61 | 74 0a 68 61 76 65 20 73 |lays tha|t.have s|
|00002b30| 6f 6d 65 20 67 72 61 70 | 68 69 63 73 20 63 61 70 |ome grap|hics cap|
|00002b40| 61 62 69 6c 69 74 79 2c | 20 6f 66 74 65 6e 20 74 |ability,| often t|
|00002b50| 68 65 20 66 72 61 6d 65 | 73 20 61 72 65 20 63 75 |he frame|s are cu|
|00002b60| 74 65 20 6c 69 74 74 6c | 65 20 63 6f 72 6e 65 72 |te littl|e corner|
|00002b70| 73 0a 61 6e 64 20 73 69 | 64 65 73 20 74 68 61 74 |s.and si|des that|
|00002b80| 20 6a 6f 69 6e 20 74 6f | 67 65 74 68 65 72 2c 20 | join to|gether, |
|00002b90| 67 69 76 69 6e 67 20 74 | 68 65 20 77 69 6e 64 6f |giving t|he windo|
|00002ba0| 77 20 61 20 76 65 72 79 | 20 73 6f 6c 69 64 0a 61 |w a very| solid.a|
|00002bb0| 70 70 65 61 72 61 6e 63 | 65 2e 29 20 20 54 68 65 |ppearanc|e.) The|
|00002bc0| 20 74 65 78 74 20 69 73 | 20 69 6e 20 74 68 65 20 | text is| in the |
|00002bd0| 74 65 78 74 20 62 75 66 | 66 65 72 2c 20 61 6e 64 |text buf|fer, and|
|00002be0| 20 74 68 65 20 66 72 61 | 6d 65 20 69 6e 20 74 68 | the fra|me in th|
|00002bf0| 65 0a 77 69 6e 64 6f 77 | 20 62 75 66 66 65 72 2e |e.window| buffer.|
|00002c00| 20 20 54 68 69 73 20 77 | 69 6e 64 6f 77 20 68 61 | This w|indow ha|
|00002c10| 73 20 61 20 64 65 73 63 | 72 69 70 74 6f 72 20 69 |s a desc|riptor i|
|00002c20| 6e 64 69 63 61 74 69 6e | 67 20 74 68 61 74 20 74 |ndicatin|g that t|
|00002c30| 68 65 20 77 69 6e 64 6f | 77 0a 69 73 20 73 69 78 |he windo|w.is six|
|00002c40| 74 65 65 6e 20 63 68 61 | 72 61 63 74 65 72 73 20 |teen cha|racters |
|00002c50| 61 63 72 6f 73 73 20 62 | 79 20 73 69 78 20 63 68 |across b|y six ch|
|00002c60| 61 72 61 63 74 65 72 73 | 20 68 69 67 68 2c 20 61 |aracters| high, a|
|00002c70| 6e 64 20 70 6f 69 6e 74 | 73 20 74 6f 20 74 68 65 |nd point|s to the|
|00002c80| 0a 77 69 6e 64 6f 77 27 | 73 20 77 69 6e 62 75 66 |.window'|s winbuf|
|00002c90| 20 61 6e 64 20 74 65 78 | 74 20 62 75 66 66 65 72 | and tex|t buffer|
|00002ca0| 2e 20 20 54 68 65 20 74 | 65 78 74 20 62 75 66 66 |. The t|ext buff|
|00002cb0| 65 72 20 63 6f 6e 74 61 | 69 6e 73 20 74 77 6f 20 |er conta|ins two |
|00002cc0| 62 6c 61 6e 6b 0a 6c 69 | 6e 65 73 2c 20 74 68 65 |blank.li|nes, the|
|00002cd0| 20 77 6f 72 64 73 20 5c | 2a 28 6c 71 53 6f 6d 65 | words \|*(lqSome|
|00002ce0| 20 74 65 78 74 5c 2a 28 | 72 71 20 6f 6e 20 74 68 | text\*(|rq on th|
|00002cf0| 65 20 74 68 69 72 64 0a | 6c 69 6e 65 2c 20 74 68 |e third.|line, th|
|00002d00| 65 20 77 6f 72 64 73 20 | 5c 2a 28 6c 71 69 6e 20 |e words |\*(lqin |
|00002d10| 61 20 77 69 6e 64 6f 77 | 5c 2a 28 72 71 0a 6f 6e |a window|\*(rq.on|
|00002d20| 20 74 68 65 20 66 6f 75 | 72 74 68 20 6c 69 6e 65 | the fou|rth line|
|00002d30| 2c 20 61 6e 64 20 74 77 | 6f 20 6d 6f 72 65 20 62 |, and tw|o more b|
|00002d40| 6c 61 6e 6b 20 6c 69 6e | 65 73 2e 20 20 54 68 65 |lank lin|es. The|
|00002d50| 20 77 69 6e 62 75 66 20 | 63 6f 6e 74 61 69 6e 73 | winbuf |contains|
|00002d60| 20 74 68 65 0a 66 72 61 | 6d 65 20 63 68 61 72 61 | the.fra|me chara|
|00002d70| 63 74 65 72 73 2c 20 77 | 69 74 68 20 74 68 65 20 |cters, w|ith the |
|00002d80| 69 6e 73 69 64 65 20 6f | 66 20 74 68 65 20 77 69 |inside o|f the wi|
|00002d90| 6e 62 75 66 20 62 65 69 | 6e 67 0a 2e 71 20 67 6c |nbuf bei|ng..q gl|
|00002da0| 61 73 73 0a 74 68 61 74 | 20 64 69 73 70 6c 61 79 |ass.that| display|
|00002db0| 73 20 74 68 65 20 74 65 | 78 74 20 62 75 66 66 65 |s the te|xt buffe|
|00002dc0| 72 2e 0a 2e 42 66 20 31 | 0a 2e 69 65 20 6e 20 5c |r...Bf 1|..ie n \|
|00002dd0| 7b 5c 0a 2b 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |{\.+----|--------|
|00002de0| 2d 2d 2d 2d 2d 2d 2d 2b | 0a 7c 20 20 20 20 20 20 |-------+|.| |
|00002df0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7c 0a 7c | | |.||
|00002e00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002e10| 20 20 20 7c 2d 2d 2d 2d | 2b 0a 7c 20 20 20 20 20 | |----|+.| |
|00002e20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 7c 20 | | | |
|00002e30| 20 20 20 7c 0a 2b 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | |.+--|--------|
|00002e40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2b 20 20 20 20 7c 0a |--------|-+ |.|
|00002e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7c 20 20 | | | |
|00002e60| 20 20 20 20 20 20 20 20 | 20 7c 0a 20 20 20 20 20 | | |. |
|00002e70| 20 20 20 20 20 20 20 20 | 2b 2d 2d 2d 2d 2d 2d 2d | |+-------|
|00002e80| 2d 2d 2d 2d 2b 0a 2e 5c | 7d 0a 2e 65 6c 20 5c 7b |----+..\|}..el \{|
|00002e90| 5c 0a 2e 5c 22 20 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |\..\" **|********|
|00002ea0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 20 57 68 79 |********|**** Why|
|00002eb0| 20 64 6f 65 73 6e 27 74 | 20 74 68 69 73 20 6a 6f | doesn't| this jo|
|00002ec0| 69 6e 20 73 6d 6f 6f 74 | 68 6c 79 2c 20 6c 69 6b |in smoot|hly, lik|
|00002ed0| 65 20 69 74 20 75 73 65 | 64 20 74 6f 3f 0a 5c 6c |e it use|d to?.\l|
|00002ee0| 27 31 2e 35 69 27 5c 4c | 27 31 69 27 5c 6c 27 2d |'1.5i'\L|'1i'\l'-|
|00002ef0| 31 2e 35 69 27 5c 68 27 | 2d 31 2e 35 69 27 5c 4c |1.5i'\h'|-1.5i'\L|
|00002f00| 27 2d 31 69 27 5c 76 27 | 31 69 27 5c 68 27 31 69 |'-1i'\v'|1i'\h'1i|
|00002f10| 27 5c 4c 27 2e 35 69 27 | 5c 6c 27 31 69 27 5c 4c |'\L'.5i'|\l'1i'\L|
|00002f20| 27 2d 31 69 27 5c 6c 27 | 2d 2e 35 69 27 5c 76 27 |'-1i'\l'|-.5i'\v'|
|00002f30| 2d 2e 35 69 27 0a 2e 73 | 70 20 31 2e 35 69 0a 2e |-.5i'..s|p 1.5i..|
|00002f40| 5c 7d 0a 2e 45 66 20 22 | 4f 76 65 72 6c 61 70 70 |\}..Ef "|Overlapp|
|00002f50| 69 6e 67 20 77 69 6e 64 | 6f 77 73 22 0a 2e 70 70 |ing wind|ows"..pp|
|00002f60| 0a 57 69 6e 64 6f 77 73 | 20 63 61 6e 20 6f 76 65 |.Windows| can ove|
|00002f70| 72 6c 61 70 2e 20 20 49 | 6e 20 46 69 67 75 72 65 |rlap. I|n Figure|
|00002f80| 20 5c 6e 28 46 62 20 74 | 77 6f 20 77 69 6e 64 6f | \n(Fb t|wo windo|
|00002f90| 77 73 20 6f 76 65 72 6c | 61 70 2e 20 20 54 68 65 |ws overl|ap. The|
|00002fa0| 20 6f 6e 6c 79 0a 64 69 | 66 66 65 72 65 6e 63 65 | only.di|fference|
|00002fb0| 20 62 65 74 77 65 65 6e | 20 6f 76 65 72 6c 61 70 | between| overlap|
|00002fc0| 70 65 64 2c 0a 6f 72 20 | 5c 66 49 63 6f 76 65 72 |ped,.or |\fIcover|
|00002fd0| 65 64 5c 66 52 2c 20 63 | 68 61 72 61 63 74 65 72 |ed\fR, c|haracter|
|00002fe0| 73 20 61 6e 64 20 6e 6f | 6e 2d 6f 76 65 72 6c 61 |s and no|n-overla|
|00002ff0| 70 70 65 64 20 63 68 61 | 72 61 63 74 65 72 73 0a |pped cha|racters.|
|00003000| 69 73 20 74 68 61 74 20 | 6f 76 65 72 6c 61 70 70 |is that |overlapp|
|00003010| 65 64 20 63 68 61 72 61 | 63 74 65 72 73 20 61 72 |ed chara|cters ar|
|00003020| 65 20 69 6e 76 69 73 69 | 62 6c 65 2e 20 20 49 66 |e invisi|ble. If|
|00003030| 20 61 20 77 69 6e 64 6f | 77 20 69 73 20 63 6f 76 | a windo|w is cov|
|00003040| 65 72 65 64 2c 0a 69 74 | 20 63 61 6e 20 62 65 20 |ered,.it| can be |
|00003050| 62 72 6f 75 67 68 74 20 | 74 6f 20 74 68 65 0a 2e |brought |to the..|
|00003060| 71 20 66 72 6f 6e 74 0a | 28 77 68 65 72 65 20 69 |q front.|(where i|
|00003070| 74 20 77 69 6c 6c 20 63 | 6f 76 65 72 20 77 68 61 |t will c|over wha|
|00003080| 74 65 76 65 72 20 75 73 | 65 64 20 74 6f 0a 63 6f |tever us|ed to.co|
|00003090| 76 65 72 20 69 74 29 2e | 20 20 57 69 6e 64 6f 77 |ver it).| Window|
|000030a0| 73 20 6d 61 79 20 61 6c | 73 6f 20 62 65 20 68 69 |s may al|so be hi|
|000030b0| 64 64 65 6e 20 74 6f 20 | 6d 61 6b 65 20 74 68 65 |dden to |make the|
|000030c0| 6d 20 74 6f 74 61 6c 6c | 79 20 69 6e 76 69 73 69 |m totall|y invisi|
|000030d0| 62 6c 65 2e 0a 48 69 64 | 69 6e 67 20 61 20 77 69 |ble..Hid|ing a wi|
|000030e0| 6e 64 6f 77 20 74 68 61 | 74 20 63 6f 76 65 72 73 |ndow tha|t covers|
|000030f0| 20 6f 74 68 65 72 73 20 | 77 69 6c 6c 20 65 78 70 | others |will exp|
|00003100| 6f 73 65 20 74 68 65 20 | 6f 74 68 65 72 73 3a 20 |ose the |others: |
|00003110| 20 68 69 64 69 6e 67 20 | 74 68 65 0a 75 70 70 65 | hiding |the.uppe|
|00003120| 72 20 77 69 6e 64 6f 77 | 20 69 6e 20 46 69 67 75 |r window| in Figu|
|00003130| 72 65 20 5c 6e 28 46 62 | 20 77 6f 75 6c 64 20 6d |re \n(Fb| would m|
|00003140| 61 6b 65 20 74 68 65 20 | 6c 6f 77 65 72 20 6f 6e |ake the |lower on|
|00003150| 65 20 63 6f 6d 70 6c 65 | 74 65 6c 79 0a 76 69 73 |e comple|tely.vis|
|00003160| 69 62 6c 65 2e 20 20 48 | 69 64 69 6e 67 20 61 20 |ible. H|iding a |
|00003170| 77 69 6e 64 6f 77 20 68 | 61 73 20 6e 6f 20 65 66 |window h|as no ef|
|00003180| 66 65 63 74 20 6f 6e 20 | 74 68 65 20 6f 70 65 72 |fect on |the oper|
|00003190| 61 74 69 6f 6e 73 20 74 | 68 61 74 20 63 61 6e 20 |ations t|hat can |
|000031a0| 62 65 0a 70 65 72 66 6f | 72 6d 65 64 20 6f 6e 20 |be.perfo|rmed on |
|000031b0| 69 74 3b 20 6f 6e 65 20 | 63 61 6e 27 74 20 73 65 |it; one |can't se|
|000031c0| 65 20 74 68 65 20 72 65 | 73 75 6c 74 73 2c 20 68 |e the re|sults, h|
|000031d0| 6f 77 65 76 65 72 2c 20 | 75 6e 74 69 6c 20 74 68 |owever, |until th|
|000031e0| 65 20 77 69 6e 64 6f 77 | 0a 69 73 20 75 6e 68 69 |e window|.is unhi|
|000031f0| 64 64 65 6e 2e 0a 2e 70 | 70 0a 49 6e 20 61 64 64 |dden...p|p.In add|
|00003200| 69 74 69 6f 6e 20 74 6f | 20 77 69 6e 64 6f 77 73 |ition to| windows|
|00003210| 2c 20 74 68 65 72 65 20 | 69 73 20 61 20 73 69 6e |, there |is a sin|
|00003220| 67 6c 65 0a 2e 71 20 62 | 6f 78 0a 74 68 61 74 20 |gle..q b|ox.that |
|00003230| 6d 61 79 20 62 65 20 74 | 75 72 6e 65 64 20 6f 6e |may be t|urned on|
|00003240| 2e 0a 49 74 20 69 73 20 | 61 20 68 6f 6c 6c 6f 77 |..It is |a hollow|
|00003250| 20 72 65 63 74 61 6e 67 | 75 6c 61 72 20 72 65 67 | rectang|ular reg|
|00003260| 69 6f 6e 20 6f 6e 20 74 | 68 65 20 64 69 73 70 6c |ion on t|he displ|
|00003270| 61 79 20 74 68 61 74 20 | 69 73 20 6d 61 64 65 20 |ay that |is made |
|00003280| 6f 66 0a 69 6e 76 65 72 | 73 65 20 76 69 64 65 6f |of.inver|se video|
|00003290| 20 63 68 61 72 61 63 74 | 65 72 73 2e 20 20 49 74 | charact|ers. It|
|000032a0| 20 63 61 6e 20 62 65 20 | 75 73 65 64 20 65 69 74 | can be |used eit|
|000032b0| 68 65 72 20 74 6f 20 6f | 75 74 6c 69 6e 65 20 61 |her to o|utline a|
|000032c0| 20 77 69 6e 64 6f 77 2c | 0a 6f 72 20 61 73 20 61 | window,|.or as a|
|000032d0| 20 72 6f 76 69 6e 67 20 | 62 6c 6f 63 6b 20 63 75 | roving |block cu|
|000032e0| 72 73 6f 72 2e 20 20 41 | 73 20 61 20 77 69 6e 64 |rsor. A|s a wind|
|000032f0| 6f 77 20 6f 75 74 6c 69 | 6e 65 2c 20 74 68 65 20 |ow outli|ne, the |
|00003300| 62 6f 78 20 63 61 6e 20 | 62 65 20 75 73 65 64 0a |box can |be used.|
|00003310| 74 6f 20 64 69 73 70 6c | 61 79 20 77 68 65 72 65 |to displ|ay where|
|00003320| 20 61 20 77 69 6e 64 6f | 77 20 6d 61 79 20 62 65 | a windo|w may be|
|00003330| 20 63 72 65 61 74 65 64 | 20 6f 72 20 6d 6f 76 65 | created| or move|
|00003340| 64 2e 20 20 41 73 20 61 | 20 63 75 72 73 6f 72 2c |d. As a| cursor,|
|00003350| 20 74 68 65 0a 62 6f 78 | 20 63 61 6e 20 62 65 20 | the.box| can be |
|00003360| 75 73 65 64 20 77 69 74 | 68 20 61 20 6d 6f 75 73 |used wit|h a mous|
|00003370| 65 20 6f 72 20 61 20 62 | 69 74 70 61 64 20 61 73 |e or a b|itpad as|
|00003380| 20 61 20 70 6f 69 6e 74 | 65 72 20 66 6f 72 20 73 | a point|er for s|
|00003390| 65 6c 65 63 74 69 6e 67 | 0a 77 69 6e 64 6f 77 73 |electing|.windows|
|000033a0| 2e 0a 2e 73 68 20 31 20 | 22 57 68 61 74 27 73 20 |...sh 1 |"What's |
|000033b0| 69 6e 20 61 20 77 69 6e | 64 6f 77 3f 22 0a 2e 73 |in a win|dow?"..s|
|000033c0| 68 20 32 20 22 43 75 72 | 73 6f 72 73 22 0a 2e 70 |h 2 "Cur|sors"..p|
|000033d0| 70 0a 4c 69 6b 65 20 61 | 20 74 65 72 6d 69 6e 61 |p.Like a| termina|
|000033e0| 6c 2c 20 61 20 77 69 6e | 64 6f 77 20 6e 65 65 64 |l, a win|dow need|
|000033f0| 73 20 61 20 63 75 72 73 | 6f 72 2e 20 20 54 68 65 |s a curs|or. The|
|00003400| 20 77 69 6e 64 6f 77 27 | 73 20 63 75 72 73 6f 72 | window'|s cursor|
|00003410| 20 73 68 6f 77 73 0a 77 | 68 65 72 65 20 74 68 65 | shows.w|here the|
|00003420| 20 6e 65 78 74 20 63 68 | 61 72 61 63 74 65 72 20 | next ch|aracter |
|00003430| 77 69 6c 6c 20 62 65 20 | 70 6c 61 63 65 64 20 77 |will be |placed w|
|00003440| 69 74 68 69 6e 20 74 68 | 61 74 20 77 69 6e 64 6f |ithin th|at windo|
|00003450| 77 2c 20 74 68 6f 75 67 | 68 0a 63 68 61 72 61 63 |w, thoug|h.charac|
|00003460| 74 65 72 73 20 61 72 65 | 20 61 63 74 75 61 6c 6c |ters are| actuall|
|00003470| 79 20 77 72 69 74 74 65 | 6e 20 69 6e 74 6f 20 74 |y writte|n into t|
|00003480| 68 65 20 74 65 78 74 20 | 62 75 66 66 65 72 2e 20 |he text |buffer. |
|00003490| 20 54 68 65 20 63 75 72 | 73 6f 72 20 69 73 0a 6e | The cur|sor is.n|
|000034a0| 6f 72 6d 61 6c 6c 79 20 | 76 69 73 69 62 6c 65 20 |ormally |visible |
|000034b0| 61 73 20 61 20 62 6c 69 | 6e 6b 69 6e 67 20 62 6c |as a bli|nking bl|
|000034c0| 6f 63 6b 2e 20 20 49 74 | 20 63 61 6e 20 62 65 20 |ock. It| can be |
|000034d0| 74 75 72 6e 65 64 20 6f | 66 66 20 69 66 20 64 65 |turned o|ff if de|
|000034e0| 73 69 72 65 64 2e 0a 2e | 70 70 0a 53 69 6e 63 65 |sired...|pp.Since|
|000034f0| 20 74 68 65 20 77 69 6e | 64 6f 77 20 61 63 74 75 | the win|dow actu|
|00003500| 61 6c 6c 79 20 68 61 73 | 20 74 77 6f 20 70 69 65 |ally has| two pie|
|00003510| 63 65 73 2c 20 74 68 65 | 20 77 69 6e 62 75 66 20 |ces, the| winbuf |
|00003520| 61 6e 64 20 74 68 65 20 | 74 65 78 74 62 75 66 2c |and the |textbuf,|
|00003530| 0a 69 74 20 61 6c 73 6f | 20 68 61 73 20 6d 6f 72 |.it also| has mor|
|00003540| 65 20 74 68 61 6e 20 6f | 6e 65 20 63 75 72 73 6f |e than o|ne curso|
|00003550| 72 2e 20 20 54 68 65 20 | 6e 6f 72 6d 61 6c 20 63 |r. The |normal c|
|00003560| 75 72 73 6f 72 20 28 5c | 66 49 77 69 6e 64 6f 77 |ursor (\|fIwindow|
|00003570| 20 63 75 72 73 6f 72 5c | 66 52 29 0a 69 73 20 74 | cursor\|fR).is t|
|00003580| 68 65 20 6f 6e 65 20 6a | 75 73 74 20 64 65 73 63 |he one j|ust desc|
|00003590| 72 69 62 65 64 2e 20 20 | 54 68 65 72 65 20 61 72 |ribed. |There ar|
|000035a0| 65 20 74 77 6f 20 6f 74 | 68 65 72 73 3a 20 20 74 |e two ot|hers: t|
|000035b0| 68 65 20 5c 66 49 61 75 | 78 20 63 75 72 73 6f 72 |he \fIau|x cursor|
|000035c0| 5c 66 52 20 61 6e 64 0a | 74 68 65 20 5c 66 49 62 |\fR and.|the \fIb|
|000035d0| 75 66 66 65 72 20 63 75 | 72 73 6f 72 5c 66 52 2e |uffer cu|rsor\fR.|
|000035e0| 20 20 54 68 65 20 61 75 | 78 20 63 75 72 73 6f 72 | The au|x cursor|
|000035f0| 20 61 6e 64 20 74 68 65 | 20 62 75 66 66 65 72 20 | and the| buffer |
|00003600| 63 75 72 73 6f 72 20 77 | 69 6c 6c 20 62 65 0a 64 |cursor w|ill be.d|
|00003610| 69 73 63 75 73 73 65 64 | 20 6c 61 74 65 72 3b 20 |iscussed| later; |
|00003620| 66 6f 72 20 6e 6f 77 20 | 69 74 20 69 73 20 65 6e |for now |it is en|
|00003630| 6f 75 67 68 20 74 6f 20 | 73 61 79 20 74 68 61 74 |ough to |say that|
|00003640| 20 74 68 65 79 20 61 72 | 65 20 6e 65 76 65 72 0a | they ar|e never.|
|00003650| 76 69 73 69 62 6c 65 2c | 20 61 6e 64 20 74 68 61 |visible,| and tha|
|00003660| 74 20 61 6c 6c 20 74 68 | 72 65 65 20 63 75 72 73 |t all th|ree curs|
|00003670| 6f 72 73 20 61 72 65 20 | 6d 75 74 75 61 6c 6c 79 |ors are |mutually|
|00003680| 20 69 6e 64 65 70 65 6e | 64 65 6e 74 2e 20 20 49 | indepen|dent. I|
|00003690| 6e 20 74 68 69 73 0a 64 | 6f 63 75 6d 65 6e 74 2c |n this.d|ocument,|
|000036a0| 20 5c 2a 28 6c 71 74 68 | 65 20 63 75 72 73 6f 72 | \*(lqth|e cursor|
|000036b0| 5c 2a 28 72 71 20 72 65 | 66 65 72 73 20 74 6f 20 |\*(rq re|fers to |
|000036c0| 74 68 65 20 77 69 6e 64 | 6f 77 20 63 75 72 73 6f |the wind|ow curso|
|000036d0| 72 2e 0a 2e 73 68 20 32 | 20 22 54 65 78 74 22 0a |r...sh 2| "Text".|
|000036e0| 2e 70 70 0a 43 68 61 72 | 61 63 74 65 72 73 20 77 |.pp.Char|acters w|
|000036f0| 69 74 68 69 6e 20 61 20 | 77 69 6e 64 6f 77 20 63 |ithin a |window c|
|00003700| 61 6e 20 62 65 20 69 6e | 20 61 6e 79 20 63 6f 6d |an be in| any com|
|00003710| 62 69 6e 61 74 69 6f 6e | 20 6f 66 20 66 6f 75 72 |bination| of four|
|00003720| 20 6d 6f 64 65 73 3a 0a | 62 6f 6c 64 2c 20 75 6e | modes:.|bold, un|
|00003730| 64 65 72 73 63 6f 72 65 | 64 2c 20 62 6c 69 6e 6b |derscore|d, blink|
|00003740| 69 6e 67 2c 20 61 6e 64 | 20 72 65 76 65 72 73 65 |ing, and| reverse|
|00003750| 20 76 69 64 65 6f 2e 20 | 20 54 68 65 72 65 20 69 | video. | There i|
|00003760| 73 20 61 20 5c 2a 28 6c | 71 63 75 72 72 65 6e 74 |s a \*(l|qcurrent|
|00003770| 0a 6d 6f 64 65 5c 2a 28 | 72 71 20 61 73 73 6f 63 |.mode\*(|rq assoc|
|00003780| 69 61 74 65 64 20 77 69 | 74 68 20 65 61 63 68 20 |iated wi|th each |
|00003790| 77 69 6e 64 6f 77 2e 20 | 20 54 68 69 73 20 69 73 |window. | This is|
|000037a0| 20 74 68 65 20 6d 6f 64 | 65 20 77 69 74 68 20 77 | the mod|e with w|
|000037b0| 68 69 63 68 20 66 75 74 | 75 72 65 0a 63 68 61 72 |hich fut|ure.char|
|000037c0| 61 63 74 65 72 73 20 77 | 69 6c 6c 20 62 65 20 70 |acters w|ill be p|
|000037d0| 72 69 6e 74 65 64 2e 20 | 20 49 6e 20 61 64 64 69 |rinted. | In addi|
|000037e0| 74 69 6f 6e 2c 20 74 68 | 65 72 65 20 69 73 20 74 |tion, th|ere is t|
|000037f0| 68 65 20 5c 2a 28 6c 71 | 67 6c 61 73 73 20 66 61 |he \*(lq|glass fa|
|00003800| 63 74 6f 72 5c 2a 28 72 | 71 0a 66 6f 72 20 63 68 |ctor\*(r|q.for ch|
|00003810| 61 72 61 63 74 65 72 73 | 20 77 69 74 68 69 6e 20 |aracters| within |
|00003820| 74 68 65 20 77 69 6e 62 | 75 66 3a 20 20 61 72 65 |the winb|uf: are|
|00003830| 20 74 68 65 79 20 72 65 | 61 6c 20 63 68 61 72 61 | they re|al chara|
|00003840| 63 74 65 72 73 2c 20 6f | 72 20 61 72 65 0a 74 68 |cters, o|r are.th|
|00003850| 65 79 20 6a 75 73 74 20 | 65 6d 70 74 79 20 73 6c |ey just |empty sl|
|00003860| 6f 74 73 20 74 68 72 6f | 75 67 68 20 77 68 69 63 |ots thro|ugh whic|
|00003870| 68 20 74 68 65 20 74 65 | 78 74 20 62 75 66 66 65 |h the te|xt buffe|
|00003880| 72 20 73 68 6f 75 6c 64 | 20 62 65 0a 64 69 73 70 |r should| be.disp|
|00003890| 6c 61 79 65 64 3f 20 20 | 46 72 61 6d 65 20 63 68 |layed? |Frame ch|
|000038a0| 61 72 61 63 74 65 72 73 | 20 61 72 65 20 6e 6f 74 |aracters| are not|
|000038b0| 20 67 6c 61 73 73 79 3b | 20 74 68 65 20 72 65 73 | glassy;| the res|
|000038c0| 74 20 6f 66 20 74 68 65 | 20 77 69 6e 62 75 66 20 |t of the| winbuf |
|000038d0| 69 73 0a 6e 6f 72 6d 61 | 6c 6c 79 20 66 69 6c 6c |is.norma|lly fill|
|000038e0| 65 64 20 77 69 74 68 20 | 67 6c 61 73 73 79 20 62 |ed with |glassy b|
|000038f0| 6c 61 6e 6b 73 2e 20 20 | 54 68 65 20 6f 6e 6c 79 |lanks. |The only|
|00003900| 20 77 61 79 20 74 6f 20 | 70 75 74 20 74 68 69 6e | way to |put thin|
|00003910| 67 73 20 69 6e 74 6f 0a | 74 68 65 20 77 69 6e 62 |gs into.|the winb|
|00003920| 75 66 20 69 73 20 77 69 | 74 68 20 74 68 65 20 61 |uf is wi|th the a|
|00003930| 75 78 20 63 75 72 73 6f | 72 20 6f 72 20 6f 6e 65 |ux curso|r or one|
|00003940| 20 6f 66 20 74 68 65 20 | 73 70 65 63 69 61 6c 20 | of the |special |
|00003950| 66 75 6e 63 74 69 6f 6e | 73 2c 0a 65 2e 67 2e 2c |function|s,.e.g.,|
|00003960| 20 66 72 61 6d 65 20 77 | 69 6e 64 6f 77 2e 0a 2e | frame w|indow...|
|00003970| 73 68 20 32 20 22 54 65 | 78 74 20 42 75 66 66 65 |sh 2 "Te|xt Buffe|
|00003980| 72 73 20 76 73 2e 20 57 | 69 6e 64 6f 77 20 42 75 |rs vs. W|indow Bu|
|00003990| 66 66 65 72 73 22 0a 2e | 70 70 0a 41 20 77 69 6e |ffers"..|pp.A win|
|000039a0| 64 6f 77 20 62 75 66 66 | 65 72 2c 20 61 73 20 73 |dow buff|er, as s|
|000039b0| 74 61 74 65 64 20 65 61 | 72 6c 69 65 72 2c 20 69 |tated ea|rlier, i|
|000039c0| 73 20 6e 6f 72 6d 61 6c | 6c 79 20 6a 75 73 74 0a |s normal|ly just.|
|000039d0| 2e 71 20 67 6c 61 73 73 | 0a 74 68 72 6f 75 67 68 |.q glass|.through|
|000039e0| 20 77 68 69 63 68 20 74 | 68 65 20 74 65 78 74 20 | which t|he text |
|000039f0| 62 75 66 66 65 72 20 69 | 73 20 64 69 73 70 6c 61 |buffer i|s displa|
|00003a00| 79 65 64 2e 20 20 48 6f | 77 65 76 65 72 2c 20 69 |yed. Ho|wever, i|
|00003a10| 74 20 69 73 20 70 6f 73 | 73 69 62 6c 65 20 74 6f |t is pos|sible to|
|00003a20| 0a 77 72 69 74 65 20 63 | 68 61 72 61 63 74 65 72 |.write c|haracter|
|00003a30| 73 2c 20 73 75 63 68 20 | 61 73 20 74 68 6f 73 65 |s, such |as those|
|00003a40| 20 6d 61 6b 69 6e 67 20 | 75 70 20 61 20 66 72 61 | making |up a fra|
|00003a50| 6d 65 2c 20 69 6e 74 6f | 20 74 68 65 20 77 69 6e |me, into| the win|
|00003a60| 62 75 66 2e 0a 54 68 65 | 73 65 20 63 68 61 72 61 |buf..The|se chara|
|00003a70| 63 74 65 72 73 20 74 68 | 65 6e 20 6f 62 73 63 75 |cters th|en obscu|
|00003a80| 72 65 20 73 6f 6d 65 20 | 6f 66 20 74 68 65 20 63 |re some |of the c|
|00003a90| 68 61 72 61 63 74 65 72 | 73 20 69 6e 20 74 68 65 |haracter|s in the|
|00003aa0| 20 74 65 78 74 20 62 75 | 66 66 65 72 2e 0a 49 74 | text bu|ffer..It|
|00003ab0| 20 69 73 20 61 6c 73 6f | 20 70 6f 73 73 69 62 6c | is also| possibl|
|00003ac0| 65 20 74 6f 20 77 72 69 | 74 65 20 6d 6f 64 65 73 |e to wri|te modes|
|00003ad0| 20 69 6e 74 6f 20 74 68 | 65 20 77 69 6e 62 75 66 | into th|e winbuf|
|00003ae0| 2e 20 20 54 68 65 73 65 | 20 6d 6f 64 65 73 20 63 |. These| modes c|
|00003af0| 61 6e 20 62 65 0a 63 6f | 6e 73 69 64 65 72 65 64 |an be.co|nsidered|
|00003b00| 20 5c 2a 28 6c 71 74 69 | 6e 74 65 64 20 67 6c 61 | \*(lqti|nted gla|
|00003b10| 73 73 5c 2a 28 72 71 3a | 20 20 74 68 65 79 20 61 |ss\*(rq:| they a|
|00003b20| 66 66 65 63 74 20 74 68 | 65 20 64 69 73 70 6c 61 |ffect th|e displa|
|00003b30| 79 20 6f 66 20 63 68 61 | 72 61 63 74 65 72 73 20 |y of cha|racters |
|00003b40| 62 65 69 6e 67 0a 76 69 | 65 77 65 64 2c 20 74 68 |being.vi|ewed, th|
|00003b50| 6f 75 67 68 20 74 68 65 | 20 63 68 61 72 61 63 74 |ough the| charact|
|00003b60| 65 72 73 20 74 68 65 6d | 73 65 6c 76 65 73 20 61 |ers them|selves a|
|00003b70| 72 65 20 6e 6f 74 20 63 | 68 61 6e 67 65 64 2e 20 |re not c|hanged. |
|00003b80| 20 46 6f 72 20 65 78 61 | 6d 70 6c 65 2c 0a 69 66 | For exa|mple,.if|
|00003b90| 20 69 6e 76 65 72 73 65 | 20 76 69 64 65 6f 20 68 | inverse| video h|
|00003ba0| 61 73 20 62 65 65 6e 0a | 2e 71 20 70 61 69 6e 74 |as been.|.q paint|
|00003bb0| 65 64 0a 6f 6e 74 6f 20 | 74 68 65 0a 2e 71 20 67 |ed.onto |the..q g|
|00003bc0| 6c 61 73 73 20 2c 0a 61 | 6c 6c 20 74 68 65 20 63 |lass ,.a|ll the c|
|00003bd0| 68 61 72 61 63 74 65 72 | 73 20 69 6e 20 74 68 65 |haracter|s in the|
|00003be0| 20 74 65 78 74 20 62 75 | 66 66 65 72 20 75 6e 64 | text bu|ffer und|
|00003bf0| 65 72 20 74 68 61 74 20 | 70 61 69 6e 74 20 61 72 |er that |paint ar|
|00003c00| 65 20 64 69 73 70 6c 61 | 79 65 64 20 69 6e 0a 69 |e displa|yed in.i|
|00003c10| 6e 76 65 72 73 65 20 76 | 69 64 65 6f 2e 20 20 49 |nverse v|ideo. I|
|00003c20| 66 20 74 68 65 20 67 6c | 61 73 73 20 69 73 20 77 |f the gl|ass is w|
|00003c30| 69 70 65 64 20 63 6c 65 | 61 6e 20 6f 66 20 69 74 |iped cle|an of it|
|00003c40| 73 20 69 6e 76 65 72 73 | 65 20 76 69 64 65 6f 20 |s invers|e video |
|00003c50| 70 61 69 6e 74 2c 0a 74 | 68 65 20 63 68 61 72 61 |paint,.t|he chara|
|00003c60| 63 74 65 72 73 20 77 69 | 6c 6c 20 62 65 20 72 65 |cters wi|ll be re|
|00003c70| 73 74 6f 72 65 64 20 74 | 6f 20 6e 6f 72 6d 61 6c |stored t|o normal|
|00003c80| 2e 20 20 54 68 65 20 6d | 6f 64 65 73 20 6f 6e 20 |. The m|odes on |
|00003c90| 74 68 65 20 67 6c 61 73 | 73 20 61 72 65 0a 65 78 |the glas|s are.ex|
|00003ca0| 63 6c 75 73 69 76 65 20 | 6f 72 27 65 64 20 77 69 |clusive |or'ed wi|
|00003cb0| 74 68 20 74 68 6f 73 65 | 20 69 6e 20 74 68 65 20 |th those| in the |
|00003cc0| 74 65 78 74 20 62 75 66 | 66 65 72 2e 0a 2e 70 70 |text buf|fer...pp|
|00003cd0| 0a 54 65 78 74 20 62 75 | 66 66 65 72 73 20 61 6c |.Text bu|ffers al|
|00003ce0| 73 6f 20 68 61 76 65 20 | 63 75 72 73 6f 72 73 2c |so have |cursors,|
|00003cf0| 20 6e 61 6d 65 6c 79 20 | 74 68 65 20 5c 2a 28 6c | namely |the \*(l|
|00003d00| 71 62 75 66 66 65 72 20 | 63 75 72 73 6f 72 5c 2a |qbuffer |cursor\*|
|00003d10| 28 72 71 2e 20 20 49 6e | 20 6c 69 6e 6b 65 64 0a |(rq. In| linked.|
|00003d20| 77 69 6e 64 6f 77 73 2c | 20 77 68 65 72 65 20 74 |windows,| where t|
|00003d30| 77 6f 20 77 69 6e 64 6f | 77 20 64 65 73 63 72 69 |wo windo|w descri|
|00003d40| 70 74 6f 72 73 20 73 68 | 61 72 65 20 61 20 74 65 |ptors sh|are a te|
|00003d50| 78 74 20 62 75 66 66 65 | 72 2c 20 74 68 65 72 65 |xt buffe|r, there|
|00003d60| 20 69 73 0a 6f 6e 6c 79 | 20 6f 6e 65 20 62 75 66 | is.only| one buf|
|00003d70| 66 65 72 20 63 75 72 73 | 6f 72 2e 20 20 49 6e 20 |fer curs|or. In |
|00003d80| 6f 74 68 65 72 20 77 6f | 72 64 73 2c 20 74 68 65 |other wo|rds, the|
|00003d90| 20 62 75 66 66 65 72 20 | 63 75 72 73 6f 72 20 69 | buffer |cursor i|
|00003da0| 73 20 73 68 61 72 65 64 | 0a 61 6c 6f 6e 67 20 77 |s shared|.along w|
|00003db0| 69 74 68 20 74 68 65 20 | 74 65 78 74 20 62 75 66 |ith the |text buf|
|00003dc0| 66 65 72 2e 0a 2e 73 68 | 20 33 20 22 4d 61 72 67 |fer...sh| 3 "Marg|
|00003dd0| 69 6e 20 53 65 74 74 69 | 6e 67 73 20 61 6e 64 20 |in Setti|ngs and |
|00003de0| 74 68 65 20 41 75 78 20 | 43 75 72 73 6f 72 22 0a |the Aux |Cursor".|
|00003df0| 2e 70 70 0a 57 69 6e 64 | 6f 77 20 62 75 66 66 65 |.pp.Wind|ow buffe|
|00003e00| 72 73 20 61 6c 73 6f 20 | 68 61 76 65 20 6d 61 72 |rs also |have mar|
|00003e10| 67 69 6e 20 73 65 74 74 | 69 6e 67 73 2e 20 20 54 |gin sett|ings. T|
|00003e20| 68 65 73 65 20 61 72 65 | 20 6d 61 69 6e 6c 79 20 |hese are| mainly |
|00003e30| 75 73 65 64 0a 69 6e 74 | 65 72 6e 61 6c 6c 79 20 |used.int|ernally |
|00003e40| 74 6f 20 6b 65 65 70 20 | 74 68 65 20 77 69 6e 64 |to keep |the wind|
|00003e50| 6f 77 20 63 75 72 73 6f | 72 20 66 72 6f 6d 20 6f |ow curso|r from o|
|00003e60| 76 65 72 77 72 69 74 69 | 6e 67 20 74 68 65 20 66 |verwriti|ng the f|
|00003e70| 72 61 6d 65 73 20 28 69 | 66 0a 74 68 65 72 65 20 |rames (i|f.there |
|00003e80| 61 72 65 20 61 6e 79 29 | 2c 20 62 75 74 20 63 61 |are any)|, but ca|
|00003e90| 6e 20 62 65 20 73 65 74 | 20 69 66 20 64 65 73 69 |n be set| if desi|
|00003ea0| 72 65 64 2e 20 20 4d 61 | 72 67 69 6e 73 20 64 65 |red. Ma|rgins de|
|00003eb0| 74 65 72 6d 69 6e 65 20 | 74 68 65 0a 61 6d 6f 75 |termine |the.amou|
|00003ec0| 6e 74 20 6f 66 20 67 6c | 61 73 73 20 69 6e 20 74 |nt of gl|ass in t|
|00003ed0| 68 65 20 77 69 6e 62 75 | 66 2e 20 20 41 6e 79 74 |he winbu|f. Anyt|
|00003ee0| 68 69 6e 67 20 6f 75 74 | 73 69 64 65 20 74 68 65 |hing out|side the|
|00003ef0| 20 6d 61 72 67 69 6e 73 | 20 69 73 0a 73 74 72 69 | margins| is.stri|
|00003f00| 63 74 6c 79 20 6f 66 66 | 2d 6c 69 6d 69 74 73 3b |ctly off|-limits;|
|00003f10| 20 74 68 65 20 73 70 61 | 63 65 20 69 6e 73 69 64 | the spa|ce insid|
|00003f20| 65 20 74 68 65 20 6d 61 | 72 67 69 6e 73 20 69 73 |e the ma|rgins is|
|00003f30| 20 74 68 65 20 67 6c 61 | 73 73 2e 0a 48 6f 77 65 | the gla|ss..Howe|
|00003f40| 76 65 72 2c 20 75 6e 77 | 72 69 74 61 62 6c 65 20 |ver, unw|ritable |
|00003f50| 6d 61 72 67 69 6e 73 20 | 77 6f 75 6c 64 20 6e 6f |margins |would no|
|00003f60| 74 20 62 65 20 70 61 72 | 74 69 63 75 6c 61 72 6c |t be par|ticularl|
|00003f70| 79 20 75 73 65 66 75 6c | 2e 20 20 54 68 65 20 61 |y useful|. The a|
|00003f80| 75 78 0a 63 75 72 73 6f | 72 20 69 73 20 70 65 72 |ux.curso|r is per|
|00003f90| 6d 69 74 74 65 64 20 74 | 6f 20 72 6f 61 6d 20 6f |mitted t|o roam o|
|00003fa0| 76 65 72 20 74 68 65 20 | 65 6e 74 69 72 65 20 77 |ver the |entire w|
|00003fb0| 69 6e 62 75 66 2e 20 20 | 49 74 20 63 61 6e 20 62 |inbuf. |It can b|
|00003fc0| 65 20 75 73 65 64 20 74 | 6f 0a 70 72 69 6e 74 20 |e used t|o.print |
|00003fd0| 63 68 61 72 61 63 74 65 | 72 73 20 64 69 72 65 63 |characte|rs direc|
|00003fe0| 74 6c 79 20 69 6e 74 6f | 20 74 68 65 20 77 69 6e |tly into| the win|
|00003ff0| 62 75 66 2e 20 20 41 6e | 79 20 63 68 61 72 61 63 |buf. An|y charac|
|00004000| 74 65 72 20 69 6e 20 74 | 68 65 20 77 69 6e 62 75 |ter in t|he winbu|
|00004010| 66 0a 77 69 6c 6c 20 74 | 61 6b 65 20 70 72 65 63 |f.will t|ake prec|
|00004020| 65 64 65 6e 63 65 20 6f | 76 65 72 20 74 68 65 20 |edence o|ver the |
|00004030| 63 68 61 72 61 63 74 65 | 72 20 75 6e 64 65 72 6e |characte|r undern|
|00004040| 65 61 74 68 20 69 74 20 | 69 6e 20 74 68 65 20 74 |eath it |in the t|
|00004050| 65 78 74 0a 62 75 66 66 | 65 72 2e 20 20 45 73 73 |ext.buff|er. Ess|
|00004060| 65 6e 74 69 61 6c 6c 79 | 2c 20 74 68 65 20 61 75 |entially|, the au|
|00004070| 78 20 63 75 72 73 6f 72 | 20 77 72 69 74 65 73 20 |x cursor| writes |
|00004080| 6f 6e 20 74 68 65 20 67 | 6c 61 73 73 2e 0a 2e 70 |on the g|lass...p|
|00004090| 70 0a 57 68 69 6c 65 20 | 74 68 65 20 61 75 78 20 |p.While |the aux |
|000040a0| 63 75 72 73 6f 72 20 63 | 61 6e 20 62 65 20 75 73 |cursor c|an be us|
|000040b0| 65 64 20 74 6f 20 77 72 | 69 74 65 20 69 6e 74 6f |ed to wr|ite into|
|000040c0| 20 74 68 65 20 77 69 6e | 62 75 66 2c 20 69 74 20 | the win|buf, it |
|000040d0| 63 61 6e 20 61 6c 73 6f | 0a 62 65 20 75 73 65 64 |can also|.be used|
|000040e0| 20 69 6e 20 61 20 73 6e | 65 61 6b 79 20 77 61 79 | in a sn|eaky way|
|000040f0| 20 74 6f 0a 2e 71 20 75 | 6e 2d 77 72 69 74 65 0a | to..q u|n-write.|
|00004100| 63 68 61 72 61 63 74 65 | 72 73 3a 20 20 74 68 65 |characte|rs: the|
|00004110| 20 61 75 78 20 63 75 72 | 73 6f 72 20 69 73 0a 70 | aux cur|sor is.p|
|00004120| 65 72 6d 69 74 74 65 64 | 20 74 6f 20 65 72 61 73 |ermitted| to eras|
|00004130| 65 20 66 72 6f 6d 20 74 | 68 65 20 67 6c 61 73 73 |e from t|he glass|
|00004140| 2e 20 20 45 72 61 73 69 | 6e 67 20 61 20 63 68 61 |. Erasi|ng a cha|
|00004150| 72 61 63 74 65 72 20 66 | 72 6f 6d 20 74 68 65 20 |racter f|rom the |
|00004160| 77 69 6e 62 75 66 0a 72 | 65 2d 65 78 70 6f 73 65 |winbuf.r|e-expose|
|00004170| 73 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 20 |s the ch|aracter |
|00004180| 75 6e 64 65 72 6e 65 61 | 74 68 20 69 6e 20 74 68 |undernea|th in th|
|00004190| 65 20 74 65 78 74 20 62 | 75 66 66 65 72 2e 20 20 |e text b|uffer. |
|000041a0| 54 69 6e 74 65 64 20 67 | 6c 61 73 73 0a 69 73 20 |Tinted g|lass.is |
|000041b0| 63 72 65 61 74 65 64 20 | 62 79 20 65 72 61 73 69 |created |by erasi|
|000041c0| 6e 67 20 77 69 74 68 20 | 61 20 6d 6f 64 65 20 6f |ng with |a mode o|
|000041d0| 74 68 65 72 20 74 68 61 | 6e 20 6e 6f 72 6d 61 6c |ther tha|n normal|
|000041e0| 20 28 69 2e 65 2e 20 20 | 61 6e 79 0a 63 6f 6d 62 | (i.e. |any.comb|
|000041f0| 69 6e 61 74 69 6f 6e 20 | 6f 66 20 62 6c 69 6e 6b |ination |of blink|
|00004200| 69 6e 67 2c 20 62 6f 6c | 64 2c 20 75 6e 64 65 72 |ing, bol|d, under|
|00004210| 73 63 6f 72 65 64 2c 20 | 61 6e 64 20 72 65 76 65 |scored, |and reve|
|00004220| 72 73 65 20 76 69 64 65 | 6f 29 2e 0a 2e 70 70 0a |rse vide|o)...pp.|
|00004230| 54 65 78 74 20 62 75 66 | 66 65 72 73 20 64 6f 20 |Text buf|fers do |
|00004240| 6e 6f 74 20 68 61 76 65 | 20 6d 61 72 67 69 6e 20 |not have| margin |
|00004250| 73 65 74 74 69 6e 67 73 | 2e 20 20 4e 6f 20 70 61 |settings|. No pa|
|00004260| 72 74 20 6f 66 20 74 68 | 65 20 74 65 78 74 20 62 |rt of th|e text b|
|00004270| 75 66 66 65 72 0a 69 73 | 20 70 72 6f 74 65 63 74 |uffer.is| protect|
|00004280| 65 64 2e 20 20 51 75 69 | 74 65 20 6f 66 74 65 6e |ed. Qui|te often|
|00004290| 2c 20 68 6f 77 65 76 65 | 72 2c 20 73 6f 6d 65 20 |, howeve|r, some |
|000042a0| 6f 66 20 74 68 65 20 74 | 65 78 74 20 62 75 66 66 |of the t|ext buff|
|000042b0| 65 72 20 69 73 20 6e 6f | 74 0a 76 69 73 69 62 6c |er is no|t.visibl|
|000042c0| 65 2e 20 20 49 6e 20 61 | 20 74 79 70 69 63 61 6c |e. In a| typical|
|000042d0| 20 66 72 61 6d 65 64 20 | 77 69 6e 64 6f 77 2c 20 | framed |window, |
|000042e0| 74 68 65 20 65 6e 74 69 | 72 65 20 74 6f 70 20 61 |the enti|re top a|
|000042f0| 6e 64 20 62 6f 74 74 6f | 6d 20 6c 69 6e 65 73 0a |nd botto|m lines.|
|00004300| 6f 66 20 74 68 65 20 62 | 75 66 66 65 72 2c 20 61 |of the b|uffer, a|
|00004310| 6e 64 20 74 68 65 20 6c | 65 66 74 20 61 6e 64 20 |nd the l|eft and |
|00004320| 72 69 67 68 74 20 65 64 | 67 65 73 2c 20 61 72 65 |right ed|ges, are|
|00004330| 20 6e 6f 74 20 76 69 73 | 69 62 6c 65 2c 20 73 69 | not vis|ible, si|
|00004340| 6e 63 65 0a 74 68 65 79 | 20 61 72 65 20 63 6f 76 |nce.they| are cov|
|00004350| 65 72 65 64 20 62 79 20 | 74 68 65 20 66 72 61 6d |ered by |the fram|
|00004360| 65 20 63 68 61 72 61 63 | 74 65 72 73 2e 20 20 28 |e charac|ters. (|
|00004370| 4e 6f 74 65 20 74 68 61 | 74 20 73 69 6e 63 65 20 |Note tha|t since |
|00004380| 74 68 65 20 61 75 78 0a | 63 75 72 73 6f 72 20 63 |the aux.|cursor c|
|00004390| 6f 75 6c 64 20 61 74 20 | 61 6e 79 20 74 69 6d 65 |ould at |any time|
|000043a0| 20 65 72 61 73 65 20 70 | 61 72 74 20 6f 66 20 74 | erase p|art of t|
|000043b0| 68 65 20 66 72 61 6d 65 | 73 2c 20 74 68 65 79 20 |he frame|s, they |
|000043c0| 6d 75 73 74 20 72 65 6d | 61 69 6e 0a 69 6e 76 69 |must rem|ain.invi|
|000043d0| 73 69 62 6c 65 20 75 6e | 74 69 6c 20 65 78 70 6c |sible un|til expl|
|000043e0| 69 63 69 74 6c 79 20 65 | 78 70 6f 73 65 64 2e 20 |icitly e|xposed. |
|000043f0| 20 54 68 65 79 20 63 61 | 6e 27 74 20 62 65 20 61 | They ca|n't be a|
|00004400| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 5c 2a 28 |utomatic|ally \*(|
|00004410| 6c 71 6d 6f 76 65 64 0a | 64 6f 77 6e 20 61 6e 64 |lqmoved.|down and|
|00004420| 20 72 69 67 68 74 5c 2a | 28 72 71 2e 29 20 20 46 | right\*|(rq.) F|
|00004430| 69 67 75 72 65 20 5c 6e | 28 46 6e 20 73 68 6f 75 |igure \n|(Fn shou|
|00004440| 6c 64 20 63 6c 65 61 72 | 20 73 6f 6d 65 20 6f 66 |ld clear| some of|
|00004450| 20 74 68 65 20 6d 75 64 | 2e 0a 2e 42 66 20 31 0a | the mud|...Bf 1.|
|00004460| 2e 29 63 0a 2e 63 65 0a | 41 20 77 69 6e 64 6f 77 |.)c..ce.|A window|
|00004470| 0a 2e 73 70 0a 2e 28 63 | 0a 2e 69 65 20 6e 20 5c |..sp..(c|..ie n \|
|00004480| 7b 5c 0a 2b 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |{\.+----|--------|
|00004490| 2d 2d 2d 2d 2d 2d 2b 0a | 7c 68 69 73 20 69 73 20 |------+.||his is |
|000044a0| 74 68 65 20 73 65 63 6f | 6e 64 20 7c 0a 7c 6e 65 |the seco|nd |.|ne|
|000044b0| 2c 20 74 68 69 72 64 20 | 6c 69 6e 65 2c 20 66 6f |, third |line, fo|
|000044c0| 7c 0a 7c 74 68 20 6c 69 | 6e 65 2c 2e 2e 2e 20 20 ||.|th li|ne,... |
|000044d0| 20 20 20 20 20 7c 0a 2b | 2d 2d 2d 2d 2d 2d 2d 2d | |.+|--------|
|000044e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2b 0a 2e 5c 7d 0a |--------|--+..\}.|
|000044f0| 2e 65 6c 20 5c 7b 5c 0a | 2e 54 53 0a 62 6f 78 3b |.el \{\.|.TS.box;|
|00004500| 0a 6c 2e 0a 5c 7a 68 5c | 68 27 2e 35 27 5c 7a 69 |.l..\zh\|h'.5'\zi|
|00004510| 5c 68 27 2e 35 27 5c 7a | 73 5c 68 27 2e 35 27 5c |\h'.5'\z|s\h'.5'\|
|00004520| 7a 20 5c 68 27 2e 35 27 | 5c 7a 69 5c 68 27 2e 35 |z \h'.5'|\zi\h'.5|
|00004530| 27 5c 7a 73 5c 68 27 2e | 35 27 5c 7a 20 5c 68 27 |'\zs\h'.|5'\z \h'|
|00004540| 2e 35 27 5c 7a 74 5c 68 | 27 2e 35 27 5c 7a 68 5c |.5'\zt\h|'.5'\zh\|
|00004550| 68 27 2e 35 27 5c 7a 65 | 5c 68 27 2e 35 27 5c 7a |h'.5'\ze|\h'.5'\z|
|00004560| 20 5c 68 27 2e 35 27 5c | 7a 73 5c 68 27 2e 35 27 | \h'.5'\|zs\h'.5'|
|00004570| 5c 7a 65 5c 68 27 2e 35 | 27 5c 7a 63 5c 68 27 2e |\ze\h'.5|'\zc\h'.|
|00004580| 35 27 5c 7a 6f 5c 68 27 | 2e 35 27 5c 7a 6e 5c 68 |5'\zo\h'|.5'\zn\h|
|00004590| 27 2e 35 27 5c 7a 64 0a | 5c 7a 6e 5c 68 27 2e 35 |'.5'\zd.|\zn\h'.5|
|000045a0| 27 5c 7a 65 5c 68 27 2e | 35 27 5c 7a 2c 5c 68 27 |'\ze\h'.|5'\z,\h'|
|000045b0| 2e 35 27 5c 7a 20 5c 68 | 27 2e 35 27 5c 7a 74 5c |.5'\z \h|'.5'\zt\|
|000045c0| 68 27 2e 35 27 5c 7a 68 | 5c 68 27 2e 35 27 5c 7a |h'.5'\zh|\h'.5'\z|
|000045d0| 69 5c 68 27 2e 35 27 5c | 7a 72 5c 68 27 2e 35 27 |i\h'.5'\|zr\h'.5'|
|000045e0| 5c 7a 64 5c 68 27 2e 35 | 27 5c 7a 20 5c 68 27 2e |\zd\h'.5|'\z \h'.|
|000045f0| 35 27 5c 7a 6c 5c 68 27 | 2e 35 27 5c 7a 69 5c 68 |5'\zl\h'|.5'\zi\h|
|00004600| 27 2e 35 27 5c 7a 6e 5c | 68 27 2e 35 27 5c 7a 65 |'.5'\zn\|h'.5'\ze|
|00004610| 5c 68 27 2e 35 27 5c 7a | 2c 5c 68 27 2e 35 27 5c |\h'.5'\z|,\h'.5'\|
|00004620| 7a 20 5c 68 27 2e 35 27 | 5c 7a 66 5c 68 27 2e 35 |z \h'.5'|\zf\h'.5|
|00004630| 27 5c 7a 6f 0a 5c 7a 74 | 5c 68 27 2e 35 27 5c 7a |'\zo.\zt|\h'.5'\z|
|00004640| 68 5c 68 27 2e 35 27 5c | 7a 20 5c 68 27 2e 35 27 |h\h'.5'\|z \h'.5'|
|00004650| 5c 7a 6c 5c 68 27 2e 35 | 27 5c 7a 69 5c 68 27 2e |\zl\h'.5|'\zi\h'.|
|00004660| 35 27 5c 7a 6e 5c 68 27 | 2e 35 27 5c 7a 65 5c 68 |5'\zn\h'|.5'\ze\h|
|00004670| 27 2e 35 27 5c 7a 2c 5c | 68 27 2e 35 27 5c 7a 2e |'.5'\z,\|h'.5'\z.|
|00004680| 5c 68 27 2e 35 27 5c 7a | 2e 5c 68 27 2e 35 27 5c |\h'.5'\z|.\h'.5'\|
|00004690| 7a 2e 0a 2e 54 45 0a 2e | 5c 7d 0a 2e 29 63 0a 2e |z...TE..|\}..)c..|
|000046a0| 73 70 0a 2e 63 65 0a 61 | 6e 64 20 69 74 73 20 74 |sp..ce.a|nd its t|
|000046b0| 65 78 74 20 62 75 66 66 | 65 72 0a 2e 73 70 0a 2e |ext buff|er..sp..|
|000046c0| 28 63 0a 2e 69 65 20 6e | 20 5c 7b 5c 0a 49 49 49 |(c..ie n| \{\.III|
|000046d0| 49 49 49 49 49 49 49 49 | 49 49 49 49 49 49 49 49 |IIIIIIII|IIIIIIII|
|000046e0| 49 0a 54 68 69 73 20 69 | 73 20 74 68 65 20 73 65 |I.This i|s the se|
|000046f0| 63 6f 6e 64 20 6c 0a 69 | 6e 65 2c 20 74 68 69 72 |cond l.i|ne, thir|
|00004700| 64 20 6c 69 6e 65 2c 20 | 66 6f 75 0a 72 74 68 20 |d line, |fou.rth |
|00004710| 6c 69 6e 65 2c 2e 2e 2e | 20 20 20 20 20 20 20 59 |line,...| Y|
|00004720| 0a 4a 4a 4a 4a 4a 4a 4a | 4a 4a 4a 4a 4a 4a 4a 4a |.JJJJJJJ|JJJJJJJJ|
|00004730| 4a 4a 4a 4a 4a 0a 2e 5c | 7d 0a 2e 65 6c 20 5c 7b |JJJJJ..\|}..el \{|
|00004740| 5c 0a 5c 7a 49 5c 68 27 | 2e 35 27 5c 7a 49 5c 68 |\.\zI\h'|.5'\zI\h|
|00004750| 27 2e 35 27 5c 7a 49 5c | 68 27 2e 35 27 5c 7a 49 |'.5'\zI\|h'.5'\zI|
|00004760| 5c 68 27 2e 35 27 5c 7a | 49 5c 68 27 2e 35 27 5c |\h'.5'\z|I\h'.5'\|
|00004770| 7a 49 5c 68 27 2e 35 27 | 5c 7a 49 5c 68 27 2e 35 |zI\h'.5'|\zI\h'.5|
|00004780| 27 5c 7a 49 5c 68 27 2e | 35 27 5c 7a 49 5c 68 27 |'\zI\h'.|5'\zI\h'|
|00004790| 2e 35 27 5c 7a 49 5c 68 | 27 2e 35 27 5c 7a 49 5c |.5'\zI\h|'.5'\zI\|
|000047a0| 68 27 2e 35 27 5c 7a 49 | 5c 68 27 2e 35 27 5c 7a |h'.5'\zI|\h'.5'\z|
|000047b0| 49 5c 68 27 2e 35 27 5c | 7a 49 5c 68 27 2e 35 27 |I\h'.5'\|zI\h'.5'|
|000047c0| 5c 7a 49 5c 68 27 2e 35 | 27 5c 7a 49 5c 68 27 2e |\zI\h'.5|'\zI\h'.|
|000047d0| 35 27 5c 7a 49 5c 68 27 | 2e 35 27 5c 7a 49 5c 68 |5'\zI\h'|.5'\zI\h|
|000047e0| 27 2e 35 27 5c 7a 49 5c | 68 27 2e 35 27 5c 7a 49 |'.5'\zI\|h'.5'\zI|
|000047f0| 0a 5c 7a 54 5c 68 27 2e | 35 27 5c 7a 68 5c 68 27 |.\zT\h'.|5'\zh\h'|
|00004800| 2e 35 27 5c 7a 69 5c 68 | 27 2e 35 27 5c 7a 73 5c |.5'\zi\h|'.5'\zs\|
|00004810| 68 27 2e 35 27 5c 7a 20 | 5c 68 27 2e 35 27 5c 7a |h'.5'\z |\h'.5'\z|
|00004820| 69 5c 68 27 2e 35 27 5c | 7a 73 5c 68 27 2e 35 27 |i\h'.5'\|zs\h'.5'|
|00004830| 5c 7a 20 5c 68 27 2e 35 | 27 5c 7a 74 5c 68 27 2e |\z \h'.5|'\zt\h'.|
|00004840| 35 27 5c 7a 68 5c 68 27 | 2e 35 27 5c 7a 65 5c 68 |5'\zh\h'|.5'\ze\h|
|00004850| 27 2e 35 27 5c 7a 20 5c | 68 27 2e 35 27 5c 7a 73 |'.5'\z \|h'.5'\zs|
|00004860| 5c 68 27 2e 35 27 5c 7a | 65 5c 68 27 2e 35 27 5c |\h'.5'\z|e\h'.5'\|
|00004870| 7a 63 5c 68 27 2e 35 27 | 5c 7a 6f 5c 68 27 2e 35 |zc\h'.5'|\zo\h'.5|
|00004880| 27 5c 7a 6e 5c 68 27 2e | 35 27 5c 7a 64 5c 68 27 |'\zn\h'.|5'\zd\h'|
|00004890| 2e 35 27 5c 7a 20 5c 68 | 27 2e 35 27 5c 7a 6c 0a |.5'\z \h|'.5'\zl.|
|000048a0| 5c 7a 69 5c 68 27 2e 35 | 27 5c 7a 6e 5c 68 27 2e |\zi\h'.5|'\zn\h'.|
|000048b0| 35 27 5c 7a 65 5c 68 27 | 2e 35 27 5c 7a 2c 5c 68 |5'\ze\h'|.5'\z,\h|
|000048c0| 27 2e 35 27 5c 7a 20 5c | 68 27 2e 35 27 5c 7a 74 |'.5'\z \|h'.5'\zt|
|000048d0| 5c 68 27 2e 35 27 5c 7a | 68 5c 68 27 2e 35 27 5c |\h'.5'\z|h\h'.5'\|
|000048e0| 7a 69 5c 68 27 2e 35 27 | 5c 7a 72 5c 68 27 2e 35 |zi\h'.5'|\zr\h'.5|
|000048f0| 27 5c 7a 64 5c 68 27 2e | 35 27 5c 7a 20 5c 68 27 |'\zd\h'.|5'\z \h'|
|00004900| 2e 35 27 5c 7a 6c 5c 68 | 27 2e 35 27 5c 7a 69 5c |.5'\zl\h|'.5'\zi\|
|00004910| 68 27 2e 35 27 5c 7a 6e | 5c 68 27 2e 35 27 5c 7a |h'.5'\zn|\h'.5'\z|
|00004920| 65 5c 68 27 2e 35 27 5c | 7a 2c 5c 68 27 2e 35 27 |e\h'.5'\|z,\h'.5'|
|00004930| 5c 7a 20 5c 68 27 2e 35 | 27 5c 7a 66 5c 68 27 2e |\z \h'.5|'\zf\h'.|
|00004940| 35 27 5c 7a 6f 5c 68 27 | 2e 35 27 5c 7a 75 0a 5c |5'\zo\h'|.5'\zu.\|
|00004950| 7a 72 5c 68 27 2e 35 27 | 5c 7a 74 5c 68 27 2e 35 |zr\h'.5'|\zt\h'.5|
|00004960| 27 5c 7a 68 5c 68 27 2e | 35 27 5c 7a 20 5c 68 27 |'\zh\h'.|5'\z \h'|
|00004970| 2e 35 27 5c 7a 6c 5c 68 | 27 2e 35 27 5c 7a 69 5c |.5'\zl\h|'.5'\zi\|
|00004980| 68 27 2e 35 27 5c 7a 6e | 5c 68 27 2e 35 27 5c 7a |h'.5'\zn|\h'.5'\z|
|00004990| 65 5c 68 27 2e 35 27 5c | 7a 2c 5c 68 27 2e 35 27 |e\h'.5'\|z,\h'.5'|
|000049a0| 5c 7a 2e 5c 68 27 2e 35 | 27 5c 7a 2e 5c 68 27 2e |\z.\h'.5|'\z.\h'.|
|000049b0| 35 27 5c 7a 2e 5c 68 27 | 2e 35 27 5c 68 27 33 2e |5'\z.\h'|.5'\h'3.|
|000049c0| 35 27 5c 7a 59 0a 5c 7a | 4a 5c 68 27 2e 35 27 5c |5'\zY.\z|J\h'.5'\|
|000049d0| 7a 4a 5c 68 27 2e 35 27 | 5c 7a 4a 5c 68 27 2e 35 |zJ\h'.5'|\zJ\h'.5|
|000049e0| 27 5c 7a 4a 5c 68 27 2e | 35 27 5c 7a 4a 5c 68 27 |'\zJ\h'.|5'\zJ\h'|
|000049f0| 2e 35 27 5c 7a 4a 5c 68 | 27 2e 35 27 5c 7a 4a 5c |.5'\zJ\h|'.5'\zJ\|
|00004a00| 68 27 2e 35 27 5c 7a 4a | 5c 68 27 2e 35 27 5c 7a |h'.5'\zJ|\h'.5'\z|
|00004a10| 4a 5c 68 27 2e 35 27 5c | 7a 4a 5c 68 27 2e 35 27 |J\h'.5'\|zJ\h'.5'|
|00004a20| 5c 7a 4a 5c 68 27 2e 35 | 27 5c 7a 4a 5c 68 27 2e |\zJ\h'.5|'\zJ\h'.|
|00004a30| 35 27 5c 7a 4a 5c 68 27 | 2e 35 27 5c 7a 4a 5c 68 |5'\zJ\h'|.5'\zJ\h|
|00004a40| 27 2e 35 27 5c 7a 4a 5c | 68 27 2e 35 27 5c 7a 4a |'.5'\zJ\|h'.5'\zJ|
|00004a50| 5c 68 27 2e 35 27 5c 7a | 4a 5c 68 27 2e 35 27 5c |\h'.5'\z|J\h'.5'\|
|00004a60| 7a 4a 5c 68 27 2e 35 27 | 5c 7a 4a 5c 68 27 2e 35 |zJ\h'.5'|\zJ\h'.5|
|00004a70| 27 5c 7a 4a 0a 2e 5c 7d | 0a 2e 45 66 20 22 41 20 |'\zJ..\}|..Ef "A |
|00004a80| 77 69 6e 64 6f 77 20 61 | 6e 64 20 62 75 66 66 65 |window a|nd buffe|
|00004a90| 72 22 0a 2e 73 68 20 33 | 20 22 4f 70 65 72 61 74 |r"..sh 3| "Operat|
|00004aa0| 69 6f 6e 73 22 0a 2e 70 | 70 0a 53 69 6e 63 65 20 |ions"..p|p.Since |
|00004ab0| 61 20 62 75 66 66 65 72 | 20 63 61 6e 20 62 65 20 |a buffer| can be |
|00004ac0| 6c 61 72 67 65 72 20 74 | 68 61 6e 20 69 74 73 20 |larger t|han its |
|00004ad0| 77 69 6e 64 6f 77 2c 20 | 74 68 65 72 65 20 61 72 |window, |there ar|
|00004ae0| 65 20 5c 2a 28 6c 71 62 | 75 66 66 65 72 0a 6f 70 |e \*(lqb|uffer.op|
|00004af0| 65 72 61 74 69 6f 6e 73 | 5c 2a 28 72 71 20 61 6e |erations|\*(rq an|
|00004b00| 64 20 5c 2a 28 6c 71 77 | 69 6e 64 6f 77 20 6f 70 |d \*(lqw|indow op|
|00004b10| 65 72 61 74 69 6f 6e 73 | 5c 2a 28 72 71 2e 20 20 |erations|\*(rq. |
|00004b20| 49 6e 20 67 65 6e 65 72 | 61 6c 2c 20 77 69 6e 64 |In gener|al, wind|
|00004b30| 6f 77 20 6f 70 65 72 61 | 74 69 6f 6e 73 0a 64 65 |ow opera|tions.de|
|00004b40| 61 6c 20 77 69 74 68 20 | 74 68 65 20 76 69 73 69 |al with |the visi|
|00004b50| 62 6c 65 20 70 6f 72 74 | 69 6f 6e 20 6f 66 20 74 |ble port|ion of t|
|00004b60| 68 65 20 74 65 78 74 20 | 62 75 66 66 65 72 2c 20 |he text |buffer, |
|00004b70| 61 6e 64 20 69 6e 20 6d | 61 6e 79 20 63 61 73 65 |and in m|any case|
|00004b80| 73 0a 77 69 74 68 20 74 | 68 65 20 67 6c 61 73 73 |s.with t|he glass|
|00004b90| 20 74 68 72 6f 75 67 68 | 20 77 68 69 63 68 20 73 | through| which s|
|00004ba0| 61 69 64 20 74 65 78 74 | 20 69 73 20 76 69 65 77 |aid text| is view|
|00004bb0| 65 64 2e 20 20 42 75 66 | 66 65 72 20 6f 70 65 72 |ed. Buf|fer oper|
|00004bc0| 61 74 69 6f 6e 73 0a 64 | 65 61 6c 20 65 78 63 6c |ations.d|eal excl|
|00004bd0| 75 73 69 76 65 6c 79 20 | 77 69 74 68 20 74 68 65 |usively |with the|
|00004be0| 20 74 65 78 74 20 62 75 | 66 66 65 72 2c 20 61 6e | text bu|ffer, an|
|00004bf0| 64 20 61 72 65 20 6e 6f | 74 20 6c 69 6d 69 74 65 |d are no|t limite|
|00004c00| 64 20 74 6f 20 74 68 65 | 0a 76 69 73 69 62 6c 65 |d to the|.visible|
|00004c10| 20 70 6f 72 74 69 6f 6e | 73 5c 2a 2a 2e 0a 2e 28 | portion|s\**...(|
|00004c20| 66 0a 5c 2a 2a 5c 2a 28 | 6c 71 56 69 73 69 62 6c |f.\**\*(|lqVisibl|
|00004c30| 65 20 70 6f 72 74 69 6f | 6e 73 5c 2a 28 72 71 20 |e portio|ns\*(rq |
|00004c40| 63 61 6e 20 69 6e 63 6c | 75 64 65 20 63 6f 76 65 |can incl|ude cove|
|00004c50| 72 65 64 20 6f 72 20 68 | 69 64 64 65 6e 20 70 6f |red or h|idden po|
|00004c60| 72 74 69 6f 6e 73 2e 0a | 2e 71 20 43 6f 76 65 72 |rtions..|.q Cover|
|00004c70| 65 64 0a 69 73 20 75 73 | 65 64 20 74 6f 20 64 65 |ed.is us|ed to de|
|00004c80| 73 63 72 69 62 65 20 77 | 69 6e 64 6f 77 73 20 6f |scribe w|indows o|
|00004c90| 72 20 63 68 61 72 61 63 | 74 65 72 73 20 74 68 61 |r charac|ters tha|
|00004ca0| 74 20 61 72 65 20 6f 62 | 73 63 75 72 65 64 20 62 |t are ob|scured b|
|00004cb0| 79 20 6f 74 68 65 72 20 | 77 69 6e 64 6f 77 73 2e |y other |windows.|
|00004cc0| 0a 2e 71 20 48 69 64 64 | 65 6e 0a 69 73 20 75 73 |..q Hidd|en.is us|
|00004cd0| 65 64 20 74 6f 20 64 65 | 73 63 72 69 62 65 20 77 |ed to de|scribe w|
|00004ce0| 69 6e 64 6f 77 73 20 6e | 6f 74 20 64 69 73 70 6c |indows n|ot displ|
|00004cf0| 61 79 65 64 0a 61 74 20 | 61 6c 6c 20 62 79 20 73 |ayed.at |all by s|
|00004d00| 70 65 63 69 66 69 63 20 | 72 65 71 75 65 73 74 2e |pecific |request.|
|00004d10| 20 20 54 68 65 20 76 69 | 73 69 62 6c 65 20 70 6f | The vi|sible po|
|00004d20| 72 74 69 6f 6e 20 6f 66 | 20 61 20 77 69 6e 64 6f |rtion of| a windo|
|00004d30| 77 27 73 20 74 65 78 74 | 62 75 66 0a 69 73 20 74 |w's text|buf.is t|
|00004d40| 68 65 20 61 72 65 61 20 | 74 68 61 74 20 69 73 20 |he area |that is |
|00004d50| 69 6e 73 69 64 65 20 74 | 68 65 20 77 69 6e 64 6f |inside t|he windo|
|00004d60| 77 27 73 20 6d 61 72 67 | 69 6e 73 3b 20 74 68 69 |w's marg|ins; thi|
|00004d70| 73 20 69 73 20 69 72 72 | 65 73 70 65 63 74 69 76 |s is irr|espectiv|
|00004d80| 65 0a 6f 66 20 77 68 65 | 74 68 65 72 20 74 68 65 |e.of whe|ther the|
|00004d90| 20 77 69 6e 64 6f 77 20 | 69 73 20 68 69 64 64 65 | window |is hidde|
|00004da0| 6e 20 61 6e 64 2f 6f 72 | 20 63 6f 76 65 72 65 64 |n and/or| covered|
|00004db0| 2e 0a 2e 29 66 0a 46 69 | 67 75 72 65 20 5c 6e 28 |...)f.Fi|gure \n(|
|00004dc0| 46 6e 20 73 68 6f 77 73 | 20 77 68 61 74 20 68 61 |Fn shows| what ha|
|00004dd0| 70 70 65 6e 73 20 77 68 | 65 6e 20 61 20 6c 69 6e |ppens wh|en a lin|
|00004de0| 65 20 64 65 6c 65 74 65 | 20 69 73 20 70 65 72 66 |e delete| is perf|
|00004df0| 6f 72 6d 65 64 20 61 73 | 20 62 6f 74 68 0a 61 20 |ormed as| both.a |
|00004e00| 77 69 6e 64 6f 77 20 6f | 70 65 72 61 74 69 6f 6e |window o|peration|
|00004e10| 20 61 6e 64 20 61 20 62 | 75 66 66 65 72 20 6f 70 | and a b|uffer op|
|00004e20| 65 72 61 74 69 6f 6e 20 | 6f 6e 20 61 20 77 69 6e |eration |on a win|
|00004e30| 64 6f 77 20 74 68 61 74 | 20 69 73 20 73 6d 61 6c |dow that| is smal|
|00004e40| 6c 65 72 0a 74 68 61 6e | 20 69 74 73 20 62 75 66 |ler.than| its buf|
|00004e50| 66 65 72 2e 0a 2e 42 66 | 20 31 0a 2e 69 65 20 6e |fer...Bf| 1..ie n|
|00004e60| 20 5c 7b 5c 0a 20 20 57 | 69 6e 64 6f 77 20 20 20 | \{\. W|indow |
|00004e70| 20 20 20 20 20 42 75 66 | 66 65 72 20 20 20 20 20 | Buf|fer |
|00004e80| 20 20 20 57 69 6e 64 6f | 77 20 20 20 20 20 20 20 | Windo|w |
|00004e90| 20 42 75 66 66 65 72 0a | 0a 20 2b 2d 2d 2d 2d 2d | Buffer.|. +-----|
|00004ea0| 2d 2b 20 20 20 20 20 30 | 31 32 33 34 35 36 37 38 |-+ 0|12345678|
|00004eb0| 39 20 20 20 20 20 2b 2d | 2d 2d 2d 2d 2d 2b 20 20 |9 +-|-----+ |
|00004ec0| 20 20 20 30 31 32 33 34 | 35 36 37 38 39 0a 20 7c | 01234|56789. ||
|00004ed0| 43 44 45 46 47 48 7c 20 | 20 20 20 20 41 42 43 44 |CDEFGH| | ABCD|
|00004ee0| 45 46 47 48 49 4a 20 20 | 20 20 20 7c 43 44 45 46 |EFGHIJ | |CDEF|
|00004ef0| 47 48 7c 20 20 20 20 20 | 41 42 43 44 45 46 47 48 |GH| |ABCDEFGH|
|00004f00| 49 4a 0a 20 7c 4d 4e 4f | 50 51 52 7c 20 20 20 20 |IJ. |MNO|PQR| |
|00004f10| 20 4b 4c 4d 4e 4f 50 51 | 52 53 54 20 20 20 20 20 | KLMNOPQ|RST |
|00004f20| 7c 4d 4e 4f 50 51 52 7c | 20 20 20 20 20 4b 4c 4d ||MNOPQR|| KLM|
|00004f30| 4e 4f 50 51 52 53 54 0a | 20 7c 57 58 59 5a 61 62 |NOPQRST.| |WXYZab|
|00004f40| 7c 20 20 20 20 20 55 56 | 57 58 59 5a 61 62 63 64 || UV|WXYZabcd|
|00004f50| 20 20 20 20 20 7c 57 58 | 59 5a 61 62 7c 20 20 20 | |WX|YZab| |
|00004f60| 20 20 55 56 57 58 59 5a | 61 62 63 64 0a 20 2b 2d | UVWXYZ|abcd. +-|
|00004f70| 2d 2d 2d 2d 2d 2b 20 20 | 20 20 20 65 66 67 68 69 |-----+ | efghi|
|00004f80| 6a 6b 6c 6d 6e 20 20 20 | 20 20 2b 2d 2d 2d 2d 2d |jklmn | +-----|
|00004f90| 2d 2b 20 20 20 20 20 65 | 66 67 68 69 6a 6b 6c 6d |-+ e|fghijklm|
|00004fa0| 6e 0a 0a 28 64 65 6c 65 | 74 65 20 6c 69 6e 65 20 |n..(dele|te line |
|00004fb0| 66 72 6f 6d 20 77 69 6e | 64 6f 77 29 20 20 20 28 |from win|dow) (|
|00004fc0| 64 65 6c 65 74 65 20 6c | 69 6e 65 20 66 72 6f 6d |delete l|ine from|
|00004fd0| 20 62 75 66 66 65 72 29 | 0a 0a 20 2b 2d 2d 2d 2d | buffer)|.. +----|
|00004fe0| 2d 2d 2b 20 20 20 20 20 | 30 31 32 33 34 35 36 37 |--+ |01234567|
|00004ff0| 38 39 20 20 20 20 20 2b | 2d 2d 2d 2d 2d 2d 2b 20 |89 +|------+ |
|00005000| 20 20 20 20 30 31 32 33 | 34 35 36 37 38 39 0a 20 | 0123|456789. |
|00005010| 7c 43 44 45 46 47 48 7c | 20 20 20 20 20 41 42 43 ||CDEFGH|| ABC|
|00005020| 44 45 46 47 48 49 4a 20 | 20 20 20 20 7c 43 44 45 |DEFGHIJ | |CDE|
|00005030| 46 47 48 7c 20 20 20 20 | 20 41 42 43 44 45 46 47 |FGH| | ABCDEFG|
|00005040| 48 49 4a 0a 20 7c 57 58 | 59 5a 61 62 7c 20 20 20 |HIJ. |WX|YZab| |
|00005050| 20 20 4b 4c 57 58 59 5a | 61 62 53 54 20 20 20 20 | KLWXYZ|abST |
|00005060| 20 7c 57 58 59 5a 61 62 | 7c 20 20 20 20 20 55 56 | |WXYZab|| UV|
|00005070| 57 58 59 5a 61 62 63 64 | 0a 20 7c 20 20 20 20 20 |WXYZabcd|. | |
|00005080| 20 7c 20 20 20 20 20 55 | 56 20 20 20 20 20 20 63 | | U|V c|
|00005090| 64 20 20 20 20 20 7c 67 | 68 69 6a 6b 6c 7c 20 20 |d |g|hijkl| |
|000050a0| 20 20 20 65 66 67 68 69 | 6a 6b 6c 6d 6e 0a 20 2b | efghi|jklmn. +|
|000050b0| 2d 2d 2d 2d 2d 2d 2b 20 | 20 20 20 20 65 66 67 68 |------+ | efgh|
|000050c0| 69 6a 6b 6c 6d 6e 20 20 | 20 20 20 2b 2d 2d 2d 2d |ijklmn | +----|
|000050d0| 2d 2d 2b 0a 2e 5c 7d 0a | 2e 65 6c 20 5c 7b 5c 0a |--+..\}.|.el \{\.|
|000050e0| 2e 29 63 0a 2e 74 61 20 | 31 2e 31 69 20 32 2e 31 |.)c..ta |1.1i 2.1|
|000050f0| 69 20 33 2e 35 69 20 34 | 2e 35 69 0a 09 57 69 6e |i 3.5i 4|.5i..Win|
|00005100| 64 6f 77 09 20 20 20 20 | 42 75 66 66 65 72 09 57 |dow. |Buffer.W|
|00005110| 69 6e 64 6f 77 09 20 20 | 20 20 42 75 66 66 65 72 |indow. | Buffer|
|00005120| 0a 0a 2e 5c 22 20 6c 69 | 6e 65 20 31 0a 09 09 5c |...\" li|ne 1...\|
|00005130| 7a 30 5c 68 27 2e 37 27 | 5c 7a 31 5c 68 27 2e 37 |z0\h'.7'|\z1\h'.7|
|00005140| 27 5c 7a 32 5c 68 27 2e | 37 27 5c 7a 33 5c 68 27 |'\z2\h'.|7'\z3\h'|
|00005150| 2e 37 27 5c 7a 34 5c 68 | 27 2e 37 27 5c 7a 35 5c |.7'\z4\h|'.7'\z5\|
|00005160| 68 27 2e 37 27 5c 0a 5c | 7a 36 5c 68 27 2e 37 27 |h'.7'\.\|z6\h'.7'|
|00005170| 5c 7a 37 5c 68 27 2e 37 | 27 5c 7a 38 5c 68 27 2e |\z7\h'.7|'\z8\h'.|
|00005180| 37 27 5c 7a 39 5c 68 27 | 2e 37 27 09 09 5c 7a 30 |7'\z9\h'|.7'..\z0|
|00005190| 5c 68 27 2e 37 27 5c 7a | 31 5c 68 27 2e 37 27 5c |\h'.7'\z|1\h'.7'\|
|000051a0| 7a 32 5c 68 27 2e 37 27 | 5c 0a 5c 7a 33 5c 68 27 |z2\h'.7'|\.\z3\h'|
|000051b0| 2e 37 27 5c 7a 34 5c 68 | 27 2e 37 27 5c 7a 35 5c |.7'\z4\h|'.7'\z5\|
|000051c0| 68 27 2e 37 27 5c 7a 36 | 5c 68 27 2e 37 27 5c 7a |h'.7'\z6|\h'.7'\z|
|000051d0| 37 5c 68 27 2e 37 27 5c | 7a 38 5c 68 27 2e 37 27 |7\h'.7'\|z8\h'.7'|
|000051e0| 5c 7a 39 0a 2e 6d 6b 20 | 31 20 5c 22 20 6c 69 6e |\z9..mk |1 \" lin|
|000051f0| 65 20 32 0a 2e 5c 22 20 | 72 65 67 69 73 74 65 72 |e 2..\" |register|
|00005200| 20 31 20 68 6f 6c 64 73 | 20 6c 69 6e 65 2c 20 32 | 1 holds| line, 2|
|00005210| 20 68 6f 6c 64 73 20 6c | 63 20 31 73 74 20 77 69 | holds l|c 1st wi|
|00005220| 6e 64 6f 77 2c 20 33 20 | 68 6f 6c 64 73 20 6c 63 |ndow, 3 |holds lc|
|00005230| 20 32 6e 64 20 77 69 6e | 64 6f 77 0a 09 5c 6b 32 | 2nd win|dow..\k2|
|00005240| 5c 0a 5c 7a 43 5c 68 27 | 2e 37 27 5c 7a 44 5c 68 |\.\zC\h'|.7'\zD\h|
|00005250| 27 2e 37 27 5c 7a 45 5c | 68 27 2e 37 27 5c 7a 46 |'.7'\zE\|h'.7'\zF|
|00005260| 5c 68 27 2e 37 27 5c 7a | 47 5c 68 27 2e 37 27 5c |\h'.7'\z|G\h'.7'\|
|00005270| 7a 48 5c 68 27 2e 37 27 | 09 5c 7a 41 5c 68 27 2e |zH\h'.7'|.\zA\h'.|
|00005280| 37 27 5c 0a 5c 7a 42 5c | 68 27 2e 37 27 5c 7a 43 |7'\.\zB\|h'.7'\zC|
|00005290| 5c 68 27 2e 37 27 5c 7a | 44 5c 68 27 2e 37 27 5c |\h'.7'\z|D\h'.7'\|
|000052a0| 7a 45 5c 68 27 2e 37 27 | 5c 7a 46 5c 68 27 2e 37 |zE\h'.7'|\zF\h'.7|
|000052b0| 27 5c 7a 47 5c 68 27 2e | 37 27 5c 7a 48 5c 68 27 |'\zG\h'.|7'\zH\h'|
|000052c0| 2e 37 27 5c 7a 49 5c 68 | 27 2e 37 27 5c 0a 5c 7a |.7'\zI\h|'.7'\.\z|
|000052d0| 4a 5c 68 27 2e 37 27 09 | 5c 6b 33 5c 0a 5c 7a 43 |J\h'.7'.|\k3\.\zC|
|000052e0| 5c 68 27 2e 37 27 5c 7a | 44 5c 68 27 2e 37 27 5c |\h'.7'\z|D\h'.7'\|
|000052f0| 7a 45 5c 68 27 2e 37 27 | 5c 7a 46 5c 68 27 2e 37 |zE\h'.7'|\zF\h'.7|
|00005300| 27 5c 7a 47 5c 68 27 2e | 37 27 5c 7a 48 5c 68 27 |'\zG\h'.|7'\zH\h'|
|00005310| 2e 37 27 09 5c 0a 5c 7a | 41 5c 68 27 2e 37 27 5c |.7'.\.\z|A\h'.7'\|
|00005320| 7a 42 5c 68 27 2e 37 27 | 5c 7a 43 5c 68 27 2e 37 |zB\h'.7'|\zC\h'.7|
|00005330| 27 5c 7a 44 5c 68 27 2e | 37 27 5c 7a 45 5c 68 27 |'\zD\h'.|7'\zE\h'|
|00005340| 2e 37 27 5c 7a 46 5c 68 | 27 2e 37 27 5c 7a 47 5c |.7'\zF\h|'.7'\zG\|
|00005350| 68 27 2e 37 27 5c 7a 48 | 5c 68 27 2e 37 27 5c 0a |h'.7'\zH|\h'.7'\.|
|00005360| 5c 7a 49 5c 68 27 2e 37 | 27 5c 7a 4a 0a 2e 5c 22 |\zI\h'.7|'\zJ..\"|
|00005370| 20 6c 69 6e 65 20 33 0a | 09 5c 7a 4d 5c 68 27 2e | line 3.|.\zM\h'.|
|00005380| 37 27 5c 7a 4e 5c 68 27 | 2e 37 27 5c 7a 4f 5c 68 |7'\zN\h'|.7'\zO\h|
|00005390| 27 2e 37 27 5c 7a 50 5c | 68 27 2e 37 27 5c 7a 51 |'.7'\zP\|h'.7'\zQ|
|000053a0| 5c 68 27 2e 37 27 5c 7a | 52 5c 68 27 2e 37 27 09 |\h'.7'\z|R\h'.7'.|
|000053b0| 5c 7a 4b 5c 68 27 2e 37 | 27 5c 0a 5c 7a 4c 5c 68 |\zK\h'.7|'\.\zL\h|
|000053c0| 27 2e 37 27 5c 7a 4d 5c | 68 27 2e 37 27 5c 7a 4e |'.7'\zM\|h'.7'\zN|
|000053d0| 5c 68 27 2e 37 27 5c 7a | 4f 5c 68 27 2e 37 27 5c |\h'.7'\z|O\h'.7'\|
|000053e0| 7a 50 5c 68 27 2e 37 27 | 5c 7a 51 5c 68 27 2e 37 |zP\h'.7'|\zQ\h'.7|
|000053f0| 27 5c 7a 52 5c 68 27 2e | 37 27 5c 7a 53 5c 68 27 |'\zR\h'.|7'\zS\h'|
|00005400| 2e 37 27 5c 0a 5c 7a 54 | 5c 68 27 2e 37 27 09 5c |.7'\.\zT|\h'.7'.\|
|00005410| 7a 4d 5c 68 27 2e 37 27 | 5c 7a 4e 5c 68 27 2e 37 |zM\h'.7'|\zN\h'.7|
|00005420| 27 5c 7a 4f 5c 68 27 2e | 37 27 5c 7a 50 5c 68 27 |'\zO\h'.|7'\zP\h'|
|00005430| 2e 37 27 5c 7a 51 5c 68 | 27 2e 37 27 5c 7a 52 5c |.7'\zQ\h|'.7'\zR\|
|00005440| 68 27 2e 37 27 09 5c 0a | 5c 7a 4b 5c 68 27 2e 37 |h'.7'.\.|\zK\h'.7|
|00005450| 27 5c 7a 4c 5c 68 27 2e | 37 27 5c 7a 4d 5c 68 27 |'\zL\h'.|7'\zM\h'|
|00005460| 2e 37 27 5c 7a 4e 5c 68 | 27 2e 37 27 5c 7a 4f 5c |.7'\zN\h|'.7'\zO\|
|00005470| 68 27 2e 37 27 5c 7a 50 | 5c 68 27 2e 37 27 5c 7a |h'.7'\zP|\h'.7'\z|
|00005480| 51 5c 68 27 2e 37 27 5c | 7a 52 5c 68 27 2e 37 27 |Q\h'.7'\|zR\h'.7'|
|00005490| 5c 0a 5c 7a 53 5c 68 27 | 2e 37 27 5c 7a 54 0a 2e |\.\zS\h'|.7'\zT..|
|000054a0| 5c 22 20 6c 69 6e 65 20 | 34 0a 09 5c 7a 57 5c 68 |\" line |4..\zW\h|
|000054b0| 27 2e 37 27 5c 7a 58 5c | 68 27 2e 37 27 5c 7a 59 |'.7'\zX\|h'.7'\zY|
|000054c0| 5c 68 27 2e 37 27 5c 7a | 5a 5c 68 27 2e 37 27 5c |\h'.7'\z|Z\h'.7'\|
|000054d0| 7a 61 5c 68 27 2e 37 27 | 5c 7a 62 5c 68 27 2e 37 |za\h'.7'|\zb\h'.7|
|000054e0| 27 09 5c 7a 55 5c 68 27 | 2e 37 27 5c 0a 5c 7a 56 |'.\zU\h'|.7'\.\zV|
|000054f0| 5c 68 27 2e 37 27 5c 7a | 57 5c 68 27 2e 37 27 5c |\h'.7'\z|W\h'.7'\|
|00005500| 7a 58 5c 68 27 2e 37 27 | 5c 7a 59 5c 68 27 2e 37 |zX\h'.7'|\zY\h'.7|
|00005510| 27 5c 7a 5a 5c 68 27 2e | 37 27 5c 7a 61 5c 68 27 |'\zZ\h'.|7'\za\h'|
|00005520| 2e 37 27 5c 7a 62 5c 68 | 27 2e 37 27 5c 7a 63 5c |.7'\zb\h|'.7'\zc\|
|00005530| 68 27 2e 37 27 5c 0a 5c | 7a 64 5c 68 27 2e 37 27 |h'.7'\.\|zd\h'.7'|
|00005540| 09 5c 7a 57 5c 68 27 2e | 37 27 5c 7a 58 5c 68 27 |.\zW\h'.|7'\zX\h'|
|00005550| 2e 37 27 5c 7a 59 5c 68 | 27 2e 37 27 5c 7a 5a 5c |.7'\zY\h|'.7'\zZ\|
|00005560| 68 27 2e 37 27 5c 7a 61 | 5c 68 27 2e 37 27 5c 7a |h'.7'\za|\h'.7'\z|
|00005570| 62 5c 68 27 2e 37 27 09 | 5c 0a 5c 7a 55 5c 68 27 |b\h'.7'.|\.\zU\h'|
|00005580| 2e 37 27 5c 7a 56 5c 68 | 27 2e 37 27 5c 7a 57 5c |.7'\zV\h|'.7'\zW\|
|00005590| 68 27 2e 37 27 5c 7a 58 | 5c 68 27 2e 37 27 5c 7a |h'.7'\zX|\h'.7'\z|
|000055a0| 59 5c 68 27 2e 37 27 5c | 7a 5a 5c 68 27 2e 37 27 |Y\h'.7'\|zZ\h'.7'|
|000055b0| 5c 7a 61 5c 68 27 2e 37 | 27 5c 7a 62 5c 68 27 2e |\za\h'.7|'\zb\h'.|
|000055c0| 37 27 5c 0a 5c 7a 63 5c | 68 27 2e 37 27 5c 7a 64 |7'\.\zc\|h'.7'\zd|
|000055d0| 0a 2e 5c 22 20 6c 69 6e | 65 20 35 0a 09 09 5c 7a |..\" lin|e 5...\z|
|000055e0| 65 5c 68 27 2e 37 27 5c | 7a 66 5c 68 27 2e 37 27 |e\h'.7'\|zf\h'.7'|
|000055f0| 5c 7a 67 5c 68 27 2e 37 | 27 5c 7a 68 5c 68 27 2e |\zg\h'.7|'\zh\h'.|
|00005600| 37 27 5c 7a 69 5c 68 27 | 2e 37 27 5c 7a 6a 5c 68 |7'\zi\h'|.7'\zj\h|
|00005610| 27 2e 37 27 5c 0a 5c 7a | 6b 5c 68 27 2e 37 27 5c |'.7'\.\z|k\h'.7'\|
|00005620| 7a 6c 5c 68 27 2e 37 27 | 5c 7a 6d 5c 68 27 2e 37 |zl\h'.7'|\zm\h'.7|
|00005630| 27 5c 7a 6e 5c 68 27 2e | 37 27 09 09 5c 7a 65 5c |'\zn\h'.|7'..\ze\|
|00005640| 68 27 2e 37 27 5c 7a 66 | 5c 68 27 2e 37 27 5c 0a |h'.7'\zf|\h'.7'\.|
|00005650| 5c 7a 67 5c 68 27 2e 37 | 27 5c 7a 68 5c 68 27 2e |\zg\h'.7|'\zh\h'.|
|00005660| 37 27 5c 7a 69 5c 68 27 | 2e 37 27 5c 7a 6a 5c 68 |7'\zi\h'|.7'\zj\h|
|00005670| 27 2e 37 27 5c 7a 6b 5c | 68 27 2e 37 27 5c 7a 6c |'.7'\zk\|h'.7'\zl|
|00005680| 5c 68 27 2e 37 27 5c 7a | 6d 5c 68 27 2e 37 27 5c |\h'.7'\z|m\h'.7'\|
|00005690| 7a 6e 0a 2e 5c 22 20 64 | 72 61 77 20 77 69 6e 64 |zn..\" d|raw wind|
|000056a0| 6f 77 73 0a 2e 73 70 20 | 2d 31 2e 35 0a 5c 68 27 |ows..sp |-1.5.\h'|
|000056b0| 7c 5c 6e 32 75 2d 2e 35 | 6e 27 5c 4c 27 7c 5c 6e ||\n2u-.5|n'\L'|\n|
|000056c0| 31 75 2d 31 2e 35 27 5c | 6c 27 34 2e 32 2b 31 6e |1u-1.5'\|l'4.2+1n|
|000056d0| 27 5c 4c 27 2d 7c 5c 6e | 31 75 2b 31 2e 35 27 5c |'\L'-|\n|1u+1.5'\|
|000056e0| 6c 27 7c 5c 6e 32 75 2d | 2e 35 6e 27 5c 0a 5c 68 |l'|\n2u-|.5n'\.\h|
|000056f0| 27 7c 5c 6e 33 75 2d 2e | 35 6e 27 5c 4c 27 7c 5c |'|\n3u-.|5n'\L'|\|
|00005700| 6e 31 75 2d 31 2e 35 27 | 5c 6c 27 34 2e 32 2b 31 |n1u-1.5'|\l'4.2+1|
|00005710| 6e 27 5c 4c 27 2d 7c 5c | 6e 31 75 2b 31 2e 35 27 |n'\L'-|\|n1u+1.5'|
|00005720| 5c 6c 27 7c 5c 6e 33 75 | 2d 2e 35 6e 27 0a 2e 73 |\l'|\n3u|-.5n'..s|
|00005730| 70 20 31 2e 35 0a 2e 63 | 65 0a 28 64 65 6c 65 74 |p 1.5..c|e.(delet|
|00005740| 65 20 6c 69 6e 65 20 66 | 72 6f 6d 20 77 69 6e 64 |e line f|rom wind|
|00005750| 6f 77 29 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ow) | |
|00005760| 20 20 20 20 20 28 64 65 | 6c 65 74 65 20 6c 69 6e | (de|lete lin|
|00005770| 65 20 66 72 6f 6d 20 62 | 75 66 66 65 72 29 0a 2e |e from b|uffer)..|
|00005780| 73 70 0a 2e 5c 22 20 6c | 69 6e 65 20 31 0a 09 09 |sp..\" l|ine 1...|
|00005790| 5c 7a 30 5c 68 27 2e 37 | 27 5c 7a 31 5c 68 27 2e |\z0\h'.7|'\z1\h'.|
|000057a0| 37 27 5c 7a 32 5c 68 27 | 2e 37 27 5c 7a 33 5c 68 |7'\z2\h'|.7'\z3\h|
|000057b0| 27 2e 37 27 5c 7a 34 5c | 68 27 2e 37 27 5c 7a 35 |'.7'\z4\|h'.7'\z5|
|000057c0| 5c 68 27 2e 37 27 5c 0a | 5c 7a 36 5c 68 27 2e 37 |\h'.7'\.|\z6\h'.7|
|000057d0| 27 5c 7a 37 5c 68 27 2e | 37 27 5c 7a 38 5c 68 27 |'\z7\h'.|7'\z8\h'|
|000057e0| 2e 37 27 5c 7a 39 5c 68 | 27 2e 37 27 09 09 5c 7a |.7'\z9\h|'.7'..\z|
|000057f0| 30 5c 68 27 2e 37 27 5c | 7a 31 5c 68 27 2e 37 27 |0\h'.7'\|z1\h'.7'|
|00005800| 5c 0a 5c 7a 32 5c 68 27 | 2e 37 27 5c 7a 33 5c 68 |\.\z2\h'|.7'\z3\h|
|00005810| 27 2e 37 27 5c 7a 34 5c | 68 27 2e 37 27 5c 7a 35 |'.7'\z4\|h'.7'\z5|
|00005820| 5c 68 27 2e 37 27 5c 7a | 36 5c 68 27 2e 37 27 5c |\h'.7'\z|6\h'.7'\|
|00005830| 7a 37 5c 68 27 2e 37 27 | 5c 7a 38 5c 68 27 2e 37 |z7\h'.7'|\z8\h'.7|
|00005840| 27 5c 7a 39 0a 2e 6d 6b | 20 34 20 2e 5c 22 20 6c |'\z9..mk| 4 .\" l|
|00005850| 69 6e 65 20 32 0a 09 5c | 6b 35 5c 0a 5c 7a 43 5c |ine 2..\|k5\.\zC\|
|00005860| 68 27 2e 37 27 5c 7a 44 | 5c 68 27 2e 37 27 5c 7a |h'.7'\zD|\h'.7'\z|
|00005870| 45 5c 68 27 2e 37 27 5c | 7a 46 5c 68 27 2e 37 27 |E\h'.7'\|zF\h'.7'|
|00005880| 5c 7a 47 5c 68 27 2e 37 | 27 5c 7a 48 5c 68 27 2e |\zG\h'.7|'\zH\h'.|
|00005890| 37 27 09 5c 7a 41 5c 68 | 27 2e 37 27 5c 0a 5c 7a |7'.\zA\h|'.7'\.\z|
|000058a0| 42 5c 68 27 2e 37 27 5c | 7a 43 5c 68 27 2e 37 27 |B\h'.7'\|zC\h'.7'|
|000058b0| 5c 7a 44 5c 68 27 2e 37 | 27 5c 7a 45 5c 68 27 2e |\zD\h'.7|'\zE\h'.|
|000058c0| 37 27 5c 7a 46 5c 68 27 | 2e 37 27 5c 7a 47 5c 68 |7'\zF\h'|.7'\zG\h|
|000058d0| 27 2e 37 27 5c 7a 48 5c | 68 27 2e 37 27 5c 7a 49 |'.7'\zH\|h'.7'\zI|
|000058e0| 5c 68 27 2e 37 27 5c 0a | 5c 7a 4a 5c 68 27 2e 37 |\h'.7'\.|\zJ\h'.7|
|000058f0| 27 09 5c 6b 36 5c 0a 5c | 7a 43 5c 68 27 2e 37 27 |'.\k6\.\|zC\h'.7'|
|00005900| 5c 7a 44 5c 68 27 2e 37 | 27 5c 7a 45 5c 68 27 2e |\zD\h'.7|'\zE\h'.|
|00005910| 37 27 5c 7a 46 5c 68 27 | 2e 37 27 5c 7a 47 5c 68 |7'\zF\h'|.7'\zG\h|
|00005920| 27 2e 37 27 5c 7a 48 5c | 68 27 2e 37 27 09 5c 0a |'.7'\zH\|h'.7'.\.|
|00005930| 5c 7a 41 5c 68 27 2e 37 | 27 5c 7a 42 5c 68 27 2e |\zA\h'.7|'\zB\h'.|
|00005940| 37 27 5c 7a 43 5c 68 27 | 2e 37 27 5c 7a 44 5c 68 |7'\zC\h'|.7'\zD\h|
|00005950| 27 2e 37 27 5c 7a 45 5c | 68 27 2e 37 27 5c 7a 46 |'.7'\zE\|h'.7'\zF|
|00005960| 5c 68 27 2e 37 27 5c 7a | 47 5c 68 27 2e 37 27 5c |\h'.7'\z|G\h'.7'\|
|00005970| 7a 48 5c 68 27 2e 37 27 | 5c 0a 5c 7a 49 5c 68 27 |zH\h'.7'|\.\zI\h'|
|00005980| 2e 37 27 5c 7a 4a 0a 2e | 5c 22 20 6c 69 6e 65 20 |.7'\zJ..|\" line |
|00005990| 33 0a 09 5c 7a 57 5c 68 | 27 2e 37 27 5c 7a 58 5c |3..\zW\h|'.7'\zX\|
|000059a0| 68 27 2e 37 27 5c 7a 59 | 5c 68 27 2e 37 27 5c 7a |h'.7'\zY|\h'.7'\z|
|000059b0| 5a 5c 68 27 2e 37 27 5c | 7a 61 5c 68 27 2e 37 27 |Z\h'.7'\|za\h'.7'|
|000059c0| 5c 7a 62 5c 68 27 2e 37 | 27 09 5c 7a 4b 5c 68 27 |\zb\h'.7|'.\zK\h'|
|000059d0| 2e 37 27 5c 0a 5c 7a 4c | 5c 68 27 2e 37 27 5c 7a |.7'\.\zL|\h'.7'\z|
|000059e0| 57 5c 68 27 2e 37 27 5c | 7a 58 5c 68 27 2e 37 27 |W\h'.7'\|zX\h'.7'|
|000059f0| 5c 7a 59 5c 68 27 2e 37 | 27 5c 7a 5a 5c 68 27 2e |\zY\h'.7|'\zZ\h'.|
|00005a00| 37 27 5c 7a 61 5c 68 27 | 2e 37 27 5c 7a 62 5c 68 |7'\za\h'|.7'\zb\h|
|00005a10| 27 2e 37 27 5c 7a 53 5c | 68 27 2e 37 27 5c 0a 5c |'.7'\zS\|h'.7'\.\|
|00005a20| 7a 54 5c 68 27 2e 37 27 | 09 5c 7a 57 5c 68 27 2e |zT\h'.7'|.\zW\h'.|
|00005a30| 37 27 5c 7a 58 5c 68 27 | 2e 37 27 5c 7a 59 5c 68 |7'\zX\h'|.7'\zY\h|
|00005a40| 27 2e 37 27 5c 7a 5a 5c | 68 27 2e 37 27 5c 7a 61 |'.7'\zZ\|h'.7'\za|
|00005a50| 5c 68 27 2e 37 27 5c 7a | 62 5c 68 27 2e 37 27 09 |\h'.7'\z|b\h'.7'.|
|00005a60| 5c 0a 5c 7a 55 5c 68 27 | 2e 37 27 5c 7a 56 5c 68 |\.\zU\h'|.7'\zV\h|
|00005a70| 27 2e 37 27 5c 7a 57 5c | 68 27 2e 37 27 5c 7a 58 |'.7'\zW\|h'.7'\zX|
|00005a80| 5c 68 27 2e 37 27 5c 7a | 59 5c 68 27 2e 37 27 5c |\h'.7'\z|Y\h'.7'\|
|00005a90| 7a 5a 5c 68 27 2e 37 27 | 5c 7a 61 5c 68 27 2e 37 |zZ\h'.7'|\za\h'.7|
|00005aa0| 27 5c 7a 62 5c 68 27 2e | 37 27 5c 0a 5c 7a 63 5c |'\zb\h'.|7'\.\zc\|
|00005ab0| 68 27 2e 37 27 5c 7a 64 | 0a 2e 5c 22 20 6c 69 6e |h'.7'\zd|..\" lin|
|00005ac0| 65 20 34 0a 09 09 5c 7a | 55 5c 68 27 2e 37 27 5c |e 4...\z|U\h'.7'\|
|00005ad0| 7a 56 5c 68 27 2e 37 27 | 5c 7a 20 5c 68 27 2e 37 |zV\h'.7'|\z \h'.7|
|00005ae0| 27 5c 7a 20 5c 68 27 2e | 37 27 5c 7a 20 5c 68 27 |'\z \h'.|7'\z \h'|
|00005af0| 2e 37 27 5c 7a 20 5c 68 | 27 2e 37 27 5c 0a 5c 7a |.7'\z \h|'.7'\.\z|
|00005b00| 20 5c 68 27 2e 37 27 5c | 7a 20 5c 68 27 2e 37 27 | \h'.7'\|z \h'.7'|
|00005b10| 5c 7a 63 5c 68 27 2e 37 | 27 5c 7a 64 5c 68 27 2e |\zc\h'.7|'\zd\h'.|
|00005b20| 37 27 09 5c 7a 67 5c 68 | 27 2e 37 27 5c 7a 68 5c |7'.\zg\h|'.7'\zh\|
|00005b30| 68 27 2e 37 27 5c 7a 69 | 5c 68 27 2e 37 27 5c 0a |h'.7'\zi|\h'.7'\.|
|00005b40| 5c 7a 6a 5c 68 27 2e 37 | 27 5c 7a 6b 5c 68 27 2e |\zj\h'.7|'\zk\h'.|
|00005b50| 37 27 5c 7a 6c 5c 68 27 | 2e 37 27 09 5c 7a 65 5c |7'\zl\h'|.7'.\ze\|
|00005b60| 68 27 2e 37 27 5c 7a 66 | 5c 68 27 2e 37 27 5c 7a |h'.7'\zf|\h'.7'\z|
|00005b70| 67 5c 68 27 2e 37 27 5c | 7a 68 5c 68 27 2e 37 27 |g\h'.7'\|zh\h'.7'|
|00005b80| 5c 0a 5c 7a 69 5c 68 27 | 2e 37 27 5c 7a 6a 5c 68 |\.\zi\h'|.7'\zj\h|
|00005b90| 27 2e 37 27 5c 7a 6b 5c | 68 27 2e 37 27 5c 7a 6c |'.7'\zk\|h'.7'\zl|
|00005ba0| 5c 68 27 2e 37 27 5c 7a | 6d 5c 68 27 2e 37 27 5c |\h'.7'\z|m\h'.7'\|
|00005bb0| 7a 6e 0a 2e 5c 22 20 6c | 69 6e 65 20 35 0a 09 09 |zn..\" l|ine 5...|
|00005bc0| 5c 7a 65 5c 68 27 2e 37 | 27 5c 7a 66 5c 68 27 2e |\ze\h'.7|'\zf\h'.|
|00005bd0| 37 27 5c 7a 67 5c 68 27 | 2e 37 27 5c 7a 68 5c 68 |7'\zg\h'|.7'\zh\h|
|00005be0| 27 2e 37 27 5c 7a 69 5c | 68 27 2e 37 27 5c 7a 6a |'.7'\zi\|h'.7'\zj|
|00005bf0| 5c 68 27 2e 37 27 5c 0a | 5c 7a 6b 5c 68 27 2e 37 |\h'.7'\.|\zk\h'.7|
|00005c00| 27 5c 7a 6c 5c 68 27 2e | 37 27 5c 7a 6d 5c 68 27 |'\zl\h'.|7'\zm\h'|
|00005c10| 2e 37 27 5c 7a 6e 0a 2e | 5c 22 20 64 72 61 77 20 |.7'\zn..|\" draw |
|00005c20| 77 69 6e 64 6f 77 73 0a | 2e 73 70 20 2d 31 2e 35 |windows.|.sp -1.5|
|00005c30| 0a 5c 68 27 7c 5c 6e 35 | 75 2d 2e 35 6e 27 5c 4c |.\h'|\n5|u-.5n'\L|
|00005c40| 27 7c 5c 6e 34 75 2d 31 | 2e 35 27 5c 6c 27 34 2e |'|\n4u-1|.5'\l'4.|
|00005c50| 32 2b 31 6e 27 5c 4c 27 | 2d 7c 5c 6e 34 75 2b 31 |2+1n'\L'|-|\n4u+1|
|00005c60| 2e 35 27 5c 6c 27 7c 5c | 6e 35 75 2d 2e 35 6e 27 |.5'\l'|\|n5u-.5n'|
|00005c70| 5c 0a 5c 68 27 7c 5c 6e | 36 75 2d 2e 35 6e 27 5c |\.\h'|\n|6u-.5n'\|
|00005c80| 4c 27 7c 5c 6e 34 75 2d | 31 2e 35 27 5c 6c 27 34 |L'|\n4u-|1.5'\l'4|
|00005c90| 2e 32 2b 31 6e 27 5c 4c | 27 2d 7c 5c 6e 34 75 2b |.2+1n'\L|'-|\n4u+|
|00005ca0| 31 2e 35 27 5c 6c 27 7c | 5c 6e 36 75 2d 2e 35 6e |1.5'\l'||\n6u-.5n|
|00005cb0| 27 0a 2e 73 70 20 31 2e | 35 0a 2e 28 63 0a 2e 5c |'..sp 1.|5..(c..\|
|00005cc0| 7d 0a 2e 45 66 20 22 57 | 69 6e 64 6f 77 20 61 6e |}..Ef "W|indow an|
|00005cd0| 64 20 42 75 66 66 65 72 | 20 4f 70 65 72 61 74 69 |d Buffer| Operati|
|00005ce0| 6f 6e 73 3a 20 4c 69 6e | 65 20 44 65 6c 65 74 65 |ons: Lin|e Delete|
|00005cf0| 22 0a 2e 69 66 20 74 20 | 2e 69 66 20 5c 6e 28 56 |"..if t |.if \n(V|
|00005d00| 76 3d 31 20 2e 74 6d 20 | 4a 75 73 74 20 73 65 74 |v=1 .tm |Just set|
|00005d10| 20 75 70 20 62 69 67 20 | 67 6f 72 79 20 66 69 67 | up big |gory fig|
|00005d20| 75 72 65 2e 2e 2e 0a 2e | 70 70 0a 57 68 65 6e 20 |ure.....|pp.When |
|00005d30| 74 68 65 20 63 75 72 73 | 6f 72 20 70 6f 73 69 74 |the curs|or posit|
|00005d40| 69 6f 6e 20 69 73 20 72 | 65 6c 65 76 61 6e 74 20 |ion is r|elevant |
|00005d50| 74 6f 20 74 68 65 20 6f | 70 65 72 61 74 69 6f 6e |to the o|peration|
|00005d60| 2c 20 77 69 6e 64 6f 77 | 0a 6f 70 65 72 61 74 69 |, window|.operati|
|00005d70| 6f 6e 73 20 61 72 65 20 | 64 6f 6e 65 20 61 74 20 |ons are |done at |
|00005d80| 74 68 65 20 77 69 6e 64 | 6f 77 20 63 75 72 73 6f |the wind|ow curso|
|00005d90| 72 2c 20 61 6e 64 20 62 | 75 66 66 65 72 20 6f 70 |r, and b|uffer op|
|00005da0| 65 72 61 74 69 6f 6e 73 | 20 61 74 20 74 68 65 0a |erations| at the.|
|00005db0| 62 75 66 66 65 72 20 63 | 75 72 73 6f 72 2e 20 20 |buffer c|ursor. |
|00005dc0| 4f 6e 6c 79 20 74 77 6f | 20 6f 70 65 72 61 74 69 |Only two| operati|
|00005dd0| 6f 6e 73 20 28 61 75 78 | 20 70 72 69 6e 74 20 61 |ons (aux| print a|
|00005de0| 6e 64 20 61 75 78 20 72 | 65 61 64 29 20 61 72 65 |nd aux r|ead) are|
|00005df0| 20 64 6f 6e 65 0a 61 74 | 20 74 68 65 20 61 75 78 | done.at| the aux|
|00005e00| 20 63 75 72 73 6f 72 20 | 70 6f 73 69 74 69 6f 6e | cursor |position|
|00005e10| 2e 0a 2e 73 68 20 32 20 | 22 53 63 72 6f 6c 6c 69 |...sh 2 |"Scrolli|
|00005e20| 6e 67 22 0a 2e 70 70 0a | 54 68 65 20 72 65 61 6c |ng"..pp.|The real|
|00005e30| 20 72 65 61 73 6f 6e 20 | 66 6f 72 20 68 61 76 69 | reason |for havi|
|00005e40| 6e 67 20 73 65 70 61 72 | 61 74 65 20 74 65 78 74 |ng separ|ate text|
|00005e50| 20 62 75 66 66 65 72 73 | 20 61 6e 64 20 77 69 6e | buffers| and win|
|00005e60| 64 6f 77 20 62 75 66 66 | 65 72 73 20 69 73 0a 74 |dow buff|ers is.t|
|00005e70| 6f 20 61 6c 6c 6f 77 20 | 74 68 65 20 73 74 6f 72 |o allow |the stor|
|00005e80| 61 67 65 20 6f 66 20 6d | 6f 72 65 20 74 65 78 74 |age of m|ore text|
|00005e90| 20 74 68 61 6e 20 69 73 | 20 76 69 73 69 62 6c 65 | than is| visible|
|00005ea0| 2e 20 20 54 68 61 74 20 | 69 73 2c 20 62 75 66 66 |. That |is, buff|
|00005eb0| 65 72 73 0a 63 61 6e 20 | 62 65 20 6d 75 63 68 20 |ers.can |be much |
|00005ec0| 6c 61 72 67 65 72 20 74 | 68 61 6e 20 74 68 65 20 |larger t|han the |
|00005ed0| 77 69 6e 64 6f 77 20 74 | 68 72 6f 75 67 68 20 77 |window t|hrough w|
|00005ee0| 68 69 63 68 20 74 68 65 | 79 20 61 72 65 20 76 69 |hich the|y are vi|
|00005ef0| 65 77 65 64 2e 20 20 54 | 68 69 73 0a 6d 65 61 6e |ewed. T|his.mean|
|00005f00| 73 20 74 68 61 74 20 61 | 20 77 69 6e 64 6f 77 20 |s that a| window |
|00005f10| 63 61 6e 20 62 65 20 6d | 6f 76 65 64 20 6f 76 65 |can be m|oved ove|
|00005f20| 72 20 74 68 65 20 62 75 | 66 66 65 72 2e 20 20 54 |r the bu|ffer. T|
|00005f30| 6f 20 67 6f 20 62 61 63 | 6b 20 74 6f 20 74 68 65 |o go bac|k to the|
|00005f40| 0a 72 6f 6f 6d 2d 6f 66 | 2d 74 65 78 74 20 61 6e |.room-of|-text an|
|00005f50| 61 6c 6f 67 79 2c 20 74 | 68 65 20 77 61 6c 6c 20 |alogy, t|he wall |
|00005f60| 69 73 20 66 6c 65 78 69 | 62 6c 65 2c 20 61 6e 64 |is flexi|ble, and|
|00005f70| 20 74 68 65 20 67 6c 61 | 73 73 20 6f 66 20 74 68 | the gla|ss of th|
|00005f80| 65 20 77 69 6e 64 6f 77 | 0a 63 61 6e 20 62 65 20 |e window|.can be |
|00005f90| 70 75 6c 6c 65 64 20 61 | 72 6f 75 6e 64 20 6f 6e |pulled a|round on|
|00005fa0| 20 69 74 2e 20 20 49 6e | 20 74 68 65 20 77 69 6e | it. In| the win|
|00005fb0| 64 6f 77 20 6c 69 62 72 | 61 72 79 2c 20 6d 6f 76 |dow libr|ary, mov|
|00005fc0| 69 6e 67 20 74 68 65 20 | 77 69 6e 64 6f 77 0a 6f |ing the |window.o|
|00005fd0| 76 65 72 20 69 74 73 20 | 74 65 78 74 20 62 75 66 |ver its |text buf|
|00005fe0| 66 65 72 20 69 73 20 63 | 61 6c 6c 65 64 20 73 63 |fer is c|alled sc|
|00005ff0| 72 6f 6c 6c 69 6e 67 2e | 20 20 54 68 75 73 20 79 |rolling.| Thus y|
|00006000| 6f 75 20 63 61 6e 20 73 | 63 72 6f 6c 6c 20 61 20 |ou can s|croll a |
|00006010| 77 69 6e 64 6f 77 0a 75 | 70 2c 20 64 6f 77 6e 2c |window.u|p, down,|
|00006020| 20 6c 65 66 74 2c 20 6f | 72 20 72 69 67 68 74 2c | left, o|r right,|
|00006030| 20 6f 76 65 72 20 69 74 | 73 20 62 75 66 66 65 72 | over it|s buffer|
|00006040| 2e 20 20 54 68 65 72 65 | 20 61 72 65 20 6c 69 6d |. There| are lim|
|00006050| 69 74 73 2c 20 68 6f 77 | 65 76 65 72 3a 0a 74 68 |its, how|ever:.th|
|00006060| 65 20 61 6d 6f 75 6e 74 | 20 6f 66 20 73 63 72 6f |e amount| of scro|
|00006070| 6c 6c 69 6e 67 20 70 65 | 72 6d 69 74 74 65 64 20 |lling pe|rmitted |
|00006080| 64 65 70 65 6e 64 73 20 | 6f 6e 20 6a 75 73 74 20 |depends |on just |
|00006090| 68 6f 77 20 6d 75 63 68 | 20 6d 6f 72 65 20 73 70 |how much| more sp|
|000060a0| 61 63 65 0a 74 68 65 72 | 65 20 69 73 20 69 6e 20 |ace.ther|e is in |
|000060b0| 74 68 65 20 62 75 66 66 | 65 72 20 74 68 61 6e 20 |the buff|er than |
|000060c0| 74 68 65 20 77 69 6e 64 | 6f 77 2e 20 20 59 6f 75 |the wind|ow. You|
|000060d0| 20 63 61 6e 27 74 20 70 | 75 6c 6c 20 74 68 65 20 | can't p|ull the |
|000060e0| 67 6c 61 73 73 20 70 61 | 73 74 0a 74 68 65 20 65 |glass pa|st.the e|
|000060f0| 64 67 65 20 6f 66 20 74 | 68 65 20 77 61 6c 6c 2e |dge of t|he wall.|
|00006100| 0a 2e 70 70 0a 54 68 65 | 20 6d 6f 72 65 20 63 6f |..pp.The| more co|
|00006110| 6e 76 65 6e 74 69 6f 6e | 61 6c 20 64 65 66 69 6e |nvention|al defin|
|00006120| 69 74 69 6f 6e 20 6f 66 | 20 73 63 72 6f 6c 6c 69 |ition of| scrolli|
|00006130| 6e 67 20 69 73 20 6d 6f | 76 69 6e 67 20 74 68 65 |ng is mo|ving the|
|00006140| 20 65 78 69 73 74 69 6e | 67 0a 74 65 78 74 20 75 | existin|g.text u|
|00006150| 70 77 61 72 64 20 6f 72 | 20 64 6f 77 6e 77 61 72 |pward or| downwar|
|00006160| 64 2c 20 64 69 73 63 61 | 72 64 69 6e 67 20 6f 6e |d, disca|rding on|
|00006170| 65 20 6c 69 6e 65 20 61 | 74 20 74 68 65 20 74 6f |e line a|t the to|
|00006180| 70 20 6f 72 20 62 6f 74 | 74 6f 6d 2c 20 61 6e 64 |p or bot|tom, and|
|00006190| 0a 6d 61 6b 69 6e 67 20 | 72 6f 6f 6d 20 66 6f 72 |.making |room for|
|000061a0| 20 6e 65 77 20 74 65 78 | 74 2e 20 20 54 68 65 20 | new tex|t. The |
|000061b0| 77 69 6e 64 6f 77 20 6c | 69 62 72 61 72 79 20 70 |window l|ibrary p|
|000061c0| 72 6f 76 69 64 65 73 20 | 74 68 69 73 20 62 79 20 |rovides |this by |
|000061d0| 6d 61 6b 69 6e 67 0a 61 | 6e 20 65 78 63 65 70 74 |making.a|n except|
|000061e0| 69 6f 6e 20 74 6f 20 74 | 68 65 20 73 63 72 6f 6c |ion to t|he scrol|
|000061f0| 6c 69 6e 67 20 6c 69 6d | 69 74 73 2e 20 20 49 66 |ling lim|its. If|
|00006200| 20 74 68 65 20 77 69 6e | 64 6f 77 20 69 73 20 73 | the win|dow is s|
|00006210| 63 72 6f 6c 6c 65 64 20 | 70 61 73 74 0a 74 68 65 |crolled |past.the|
|00006220| 20 65 6e 64 20 6f 66 20 | 74 68 65 20 62 75 66 66 | end of |the buff|
|00006230| 65 72 2c 20 74 68 65 20 | 62 75 66 66 65 72 20 69 |er, the |buffer i|
|00006240| 73 0a 2e 71 20 65 78 74 | 65 6e 64 65 64 0a 6f 6e |s..q ext|ended.on|
|00006250| 65 20 6c 69 6e 65 20 61 | 74 20 74 68 65 20 62 6f |e line a|t the bo|
|00006260| 74 74 6f 6d 2c 20 61 6e | 64 20 61 20 6c 69 6e 65 |ttom, an|d a line|
|00006270| 20 69 73 0a 2e 71 20 65 | 72 61 73 65 64 0a 66 72 | is..q e|rased.fr|
|00006280| 6f 6d 20 74 68 65 20 74 | 6f 70 2c 20 6d 61 6b 69 |om the t|op, maki|
|00006290| 6e 67 20 74 68 65 20 77 | 69 6e 64 6f 77 20 66 69 |ng the w|indow fi|
|000062a0| 74 20 6f 6e 63 65 20 61 | 67 61 69 6e 2e 0a 28 54 |t once a|gain..(T|
|000062b0| 68 65 20 61 63 74 75 61 | 6c 20 61 6c 67 6f 72 69 |he actua|l algori|
|000062c0| 74 68 6d 20 69 73 20 74 | 6f 20 63 6f 70 79 20 74 |thm is t|o copy t|
|000062d0| 68 65 20 74 65 78 74 20 | 75 70 77 61 72 64 2c 20 |he text |upward, |
|000062e0| 6b 65 65 70 69 6e 67 20 | 74 68 65 20 77 69 6e 64 |keeping |the wind|
|000062f0| 6f 77 20 61 74 0a 74 68 | 65 20 62 6f 74 74 6f 6d |ow at.th|e bottom|
|00006300| 20 6f 66 20 74 68 65 20 | 62 75 66 66 65 72 2e 29 | of the |buffer.)|
|00006310| 20 20 41 20 73 69 6d 69 | 6c 61 72 20 65 78 63 65 | A simi|lar exce|
|00006320| 70 74 69 6f 6e 20 69 73 | 20 6d 61 64 65 20 66 6f |ption is| made fo|
|00006330| 72 20 73 63 72 6f 6c 6c | 69 6e 67 0a 70 61 73 74 |r scroll|ing.past|
|00006340| 20 74 68 65 20 62 65 67 | 69 6e 6e 69 6e 67 20 6f | the beg|inning o|
|00006350| 66 20 74 68 65 20 62 75 | 66 66 65 72 2e 20 20 54 |f the bu|ffer. T|
|00006360| 68 69 73 20 61 63 74 69 | 6f 6e 20 28 6d 6f 76 69 |his acti|on (movi|
|00006370| 6e 67 20 74 68 65 20 74 | 65 78 74 20 75 70 77 61 |ng the t|ext upwa|
|00006380| 72 64 73 0a 6f 72 20 64 | 6f 77 6e 77 61 72 64 73 |rds.or d|ownwards|
|00006390| 2c 20 6c 6f 73 69 6e 67 | 20 61 20 6c 69 6e 65 20 |, losing| a line |
|000063a0| 6f 66 66 20 74 68 65 20 | 74 6f 70 20 6f 72 20 62 |off the |top or b|
|000063b0| 6f 74 74 6f 6d 29 20 69 | 73 20 63 61 6c 6c 65 64 |ottom) i|s called|
|000063c0| 20 5c 2a 28 6c 71 73 63 | 72 6f 6c 6c 69 6e 67 0a | \*(lqsc|rolling.|
|000063d0| 74 68 65 20 62 75 66 66 | 65 72 5c 2a 28 72 71 2c |the buff|er\*(rq,|
|000063e0| 20 61 6e 64 20 6d 61 79 | 20 62 65 20 64 6f 6e 65 | and may| be done|
|000063f0| 20 64 69 72 65 63 74 6c | 79 2c 20 77 69 74 68 6f | directl|y, witho|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.