home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| default
| |
100%
| TrID
| E-Mail message (Var. 2)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 54 6f | 6d 20 54 72 75 73 63 6f |From: To|m Trusco|
|00000010| 74 74 20 3c 64 65 63 76 | 61 78 21 6d 63 6e 63 21 |tt <decv|ax!mcnc!|
|00000020| 72 74 69 2d 73 65 6c 21 | 74 72 74 3e 0a 53 75 62 |rti-sel!|trt>.Sub|
|00000030| 6a 65 63 74 3a 20 77 6d | 20 2d 20 61 20 77 69 6e |ject: wm| - a win|
|00000040| 64 6f 77 20 6d 61 6e 61 | 67 65 72 20 28 70 61 72 |dow mana|ger (par|
|00000050| 74 20 31 20 6f 66 20 34 | 29 0a 4e 65 77 73 67 72 |t 1 of 4|).Newsgr|
|00000060| 6f 75 70 73 3a 20 6d 6f | 64 2e 73 6f 75 72 63 65 |oups: mo|d.source|
|00000070| 73 0a 41 70 70 72 6f 76 | 65 64 3a 20 6a 6f 68 6e |s.Approv|ed: john|
|00000080| 40 67 65 6e 72 61 64 2e | 55 55 43 50 0a 0a 4d 6f |@genrad.|UUCP..Mo|
|00000090| 64 2e 73 6f 75 72 63 65 | 73 3a 20 20 56 6f 6c 75 |d.source|s: Volu|
|000000a0| 6d 65 20 32 2c 20 49 73 | 73 75 65 20 33 31 0a 53 |me 2, Is|sue 31.S|
|000000b0| 75 62 6d 69 74 74 65 64 | 20 62 79 3a 20 54 6f 6d |ubmitted| by: Tom|
|000000c0| 20 54 72 75 73 63 6f 74 | 74 20 3c 64 65 63 76 61 | Truscot|t <decva|
|000000d0| 78 21 6d 63 6e 63 21 72 | 74 69 2d 73 65 6c 21 74 |x!mcnc!r|ti-sel!t|
|000000e0| 72 74 3e 0a 0a 0a 23 21 | 20 2f 62 69 6e 2f 73 68 |rt>...#!| /bin/sh|
|000000f0| 0a 23 20 54 68 69 73 20 | 69 73 20 61 20 73 68 65 |.# This |is a she|
|00000100| 6c 6c 20 61 72 63 68 69 | 76 65 2c 20 6d 65 61 6e |ll archi|ve, mean|
|00000110| 69 6e 67 3a 0a 23 20 31 | 2e 20 52 65 6d 6f 76 65 |ing:.# 1|. Remove|
|00000120| 20 65 76 65 72 79 74 68 | 69 6e 67 20 61 62 6f 76 | everyth|ing abov|
|00000130| 65 20 74 68 65 20 23 21 | 20 2f 62 69 6e 2f 73 68 |e the #!| /bin/sh|
|00000140| 20 6c 69 6e 65 2e 0a 23 | 20 32 2e 20 53 61 76 65 | line..#| 2. Save|
|00000150| 20 74 68 65 20 72 65 73 | 75 6c 74 69 6e 67 20 74 | the res|ulting t|
|00000160| 65 78 74 20 69 6e 20 61 | 20 66 69 6c 65 2e 0a 23 |ext in a| file..#|
|00000170| 20 33 2e 20 45 78 65 63 | 75 74 65 20 74 68 65 20 | 3. Exec|ute the |
|00000180| 66 69 6c 65 20 77 69 74 | 68 20 2f 62 69 6e 2f 73 |file wit|h /bin/s|
|00000190| 68 20 28 6e 6f 74 20 63 | 73 68 29 20 74 6f 20 63 |h (not c|sh) to c|
|000001a0| 72 65 61 74 65 20 74 68 | 65 20 66 69 6c 65 73 3a |reate th|e files:|
|000001b0| 0a 23 09 52 45 41 44 4d | 45 0a 23 09 77 6d 2e 31 |.#.READM|E.#.wm.1|
|000001c0| 0a 23 09 55 53 49 4e 47 | 57 4d 0a 23 09 50 61 70 |.#.USING|WM.#.Pap|
|000001d0| 65 72 2e 6a 61 63 6f 62 | 0a 23 20 54 68 69 73 20 |er.jacob|.# This |
|000001e0| 61 72 63 68 69 76 65 20 | 63 72 65 61 74 65 64 3a |archive |created:|
|000001f0| 20 46 72 69 20 41 75 67 | 20 20 32 20 31 33 3a 31 | Fri Aug| 2 13:1|
|00000200| 33 3a 31 33 20 31 39 38 | 35 0a 65 78 70 6f 72 74 |3:13 198|5.export|
|00000210| 20 50 41 54 48 3b 20 50 | 41 54 48 3d 2f 62 69 6e | PATH; P|ATH=/bin|
|00000220| 3a 24 50 41 54 48 0a 65 | 63 68 6f 20 73 68 61 72 |:$PATH.e|cho shar|
|00000230| 3a 20 65 78 74 72 61 63 | 74 69 6e 67 20 22 27 52 |: extrac|ting "'R|
|00000240| 45 41 44 4d 45 27 22 20 | 27 28 31 36 30 36 20 63 |EADME'" |'(1606 c|
|00000250| 68 61 72 61 63 74 65 72 | 73 29 27 0a 69 66 20 74 |haracter|s)'.if t|
|00000260| 65 73 74 20 2d 66 20 27 | 52 45 41 44 4d 45 27 0a |est -f '|README'.|
|00000270| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|00000280| 20 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 | will no|t over-w|
|00000290| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|000002a0| 6c 65 20 22 27 52 45 41 | 44 4d 45 27 22 0a 65 6c |le "'REA|DME'".el|
|000002b0| 73 65 0a 73 65 64 20 27 | 73 2f 5e 58 2f 2f 27 20 |se.sed '|s/^X//' |
|000002c0| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|000002d0| 52 45 41 44 4d 45 27 0a | 09 41 20 52 65 76 69 73 |README'.|.A Revis|
|000002e0| 65 64 20 45 64 69 74 69 | 6f 6e 20 6f 66 20 74 68 |ed Editi|on of th|
|000002f0| 65 20 60 77 6d 27 20 77 | 69 6e 64 6f 77 20 6d 61 |e `wm' w|indow ma|
|00000300| 6e 61 67 65 72 0a 09 09 | 4d 61 74 74 20 4c 65 6e |nager...|Matt Len|
|00000310| 6e 6f 6e 09 28 39 31 39 | 29 20 35 34 31 2d 36 39 |non.(919|) 541-69|
|00000320| 31 39 0a 09 09 54 6f 6d | 20 54 72 75 73 63 6f 74 |19...Tom| Truscot|
|00000330| 74 09 28 39 31 39 29 20 | 35 34 31 2d 37 30 30 35 |t.(919) |541-7005|
|00000340| 0a 09 09 52 65 73 65 61 | 72 63 68 20 54 72 69 61 |...Resea|rch Tria|
|00000350| 6e 67 6c 65 20 49 6e 73 | 74 69 74 75 74 65 2c 20 |ngle Ins|titute, |
|00000360| 4e 43 0a 09 09 50 2e 4f | 2e 20 42 6f 78 20 31 32 |NC...P.O|. Box 12|
|00000370| 31 39 34 0a 09 09 52 54 | 50 2c 20 4e 43 20 20 32 |194...RT|P, NC 2|
|00000380| 37 37 30 39 0a 0a 0a 54 | 6f 20 69 6e 73 74 61 6c |7709...T|o instal|
|00000390| 6c 20 57 4d 3a 0a 0a 31 | 29 20 49 6e 73 74 61 6c |l WM:..1|) Instal|
|000003a0| 6c 20 74 68 65 20 70 72 | 6f 76 69 64 65 64 20 76 |l the pr|ovided v|
|000003b0| 65 72 73 69 6f 6e 20 6f | 66 20 74 68 65 20 43 75 |ersion o|f the Cu|
|000003c0| 72 73 65 73 20 6c 69 62 | 72 61 72 79 2e 20 54 68 |rses lib|rary. Th|
|000003d0| 69 73 20 6c 69 62 72 61 | 72 79 0a 20 20 20 68 61 |is libra|ry. ha|
|000003e0| 73 20 62 75 67 20 66 69 | 78 65 73 20 2a 6e 65 63 |s bug fi|xes *nec|
|000003f0| 65 73 73 61 72 79 2a 20 | 74 6f 20 74 68 65 20 70 |essary* |to the p|
|00000400| 72 6f 70 65 72 20 6f 70 | 65 72 61 74 69 6f 6e 20 |roper op|eration |
|00000410| 6f 66 20 57 4d 2e 0a 20 | 20 20 49 66 20 79 6f 75 |of WM.. | If you|
|00000420| 20 64 6f 6e 27 74 20 61 | 63 74 75 61 6c 6c 79 20 | don't a|ctually |
|00000430| 69 6e 73 74 61 6c 6c 20 | 6c 69 62 63 75 72 73 65 |install |libcurse|
|00000440| 73 2e 61 20 69 6e 20 2f | 75 73 72 2f 6c 69 62 2c |s.a in /|usr/lib,|
|00000450| 20 79 6f 75 0a 20 20 20 | 6d 75 73 74 20 69 6e 64 | you. |must ind|
|00000460| 69 63 61 74 65 20 74 68 | 69 73 20 69 6e 20 74 68 |icate th|is in th|
|00000470| 65 20 57 4d 20 4d 61 6b | 65 66 69 6c 65 20 28 74 |e WM Mak|efile (t|
|00000480| 68 65 20 4c 49 42 43 55 | 52 53 45 53 20 6d 61 63 |he LIBCU|RSES mac|
|00000490| 72 6f 29 2c 0a 20 20 20 | 61 6e 64 20 79 6f 75 20 |ro),. |and you |
|000004a0| 6d 75 73 74 20 63 6f 70 | 79 20 74 68 65 20 70 72 |must cop|y the pr|
|000004b0| 6f 76 69 64 65 64 20 63 | 75 72 73 65 73 2e 68 20 |ovided c|urses.h |
|000004c0| 74 6f 20 74 68 69 73 20 | 64 69 72 65 63 74 6f 72 |to this |director|
|000004d0| 79 0a 20 20 20 73 6f 20 | 74 68 61 74 20 69 74 20 |y. so |that it |
|000004e0| 77 69 6c 6c 20 62 65 20 | 69 6e 63 6c 75 64 65 64 |will be |included|
|000004f0| 20 64 75 72 69 6e 67 20 | 63 6f 6d 70 69 6c 61 74 | during |compilat|
|00000500| 69 6f 6e 2e 0a 0a 32 29 | 20 53 65 74 20 74 68 65 |ion...2)| Set the|
|00000510| 20 76 61 6c 75 65 20 6f | 66 20 42 49 4e 20 69 6e | value o|f BIN in|
|00000520| 20 74 68 65 20 57 4d 20 | 6d 61 6b 65 66 69 6c 65 | the WM |makefile|
|00000530| 20 74 6f 20 74 68 65 0a | 20 20 20 64 69 72 65 63 | to the.| direc|
|00000540| 74 6f 72 79 20 77 68 65 | 72 65 20 74 68 65 20 57 |tory whe|re the W|
|00000550| 4d 20 70 72 6f 67 72 61 | 6d 20 73 68 6f 75 6c 64 |M progra|m should|
|00000560| 20 72 65 73 69 64 65 2e | 0a 0a 33 29 20 54 79 70 | reside.|..3) Typ|
|00000570| 65 20 27 6d 61 6b 65 20 | 69 6e 73 74 61 6c 6c 27 |e 'make |install'|
|00000580| 2e 0a 0a 34 29 20 49 6e | 73 74 61 6c 6c 20 74 68 |...4) In|stall th|
|00000590| 65 20 57 4d 20 6d 61 6e | 75 61 6c 20 70 61 67 65 |e WM man|ual page|
|000005a0| 2c 20 77 6d 2e 31 2c 20 | 69 6e 20 74 68 65 20 61 |, wm.1, |in the a|
|000005b0| 70 70 72 6f 70 72 69 61 | 74 65 20 70 6c 61 63 65 |ppropria|te place|
|000005c0| 2e 0a 0a 0a 4e 6f 74 65 | 20 31 3a 20 54 68 69 73 |....Note| 1: This|
|000005d0| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 57 4d 20 69 | version| of WM i|
|000005e0| 73 20 68 6f 72 72 69 62 | 6c 79 20 34 2e 32 62 73 |s horrib|ly 4.2bs|
|000005f0| 64 2d 64 65 70 65 6e 64 | 65 6e 74 2c 20 75 73 69 |d-depend|ent, usi|
|00000600| 6e 67 20 70 73 65 75 64 | 6f 2d 74 74 79 73 2c 0a |ng pseud|o-ttys,.|
|00000610| 20 20 20 20 20 20 20 20 | 74 68 65 20 27 73 65 6c | |the 'sel|
|00000620| 65 63 74 28 29 27 20 73 | 79 73 74 65 6d 20 63 61 |ect()' s|ystem ca|
|00000630| 6c 6c 2c 20 34 2e 32 2d | 73 70 65 63 69 66 69 63 |ll, 4.2-|specific|
|00000640| 20 69 6f 63 74 6c 27 73 | 2c 20 65 74 63 2e 0a 20 | ioctl's|, etc.. |
|00000650| 20 20 20 20 20 20 20 43 | 6f 6e 63 65 69 76 61 62 | C|onceivab|
|00000660| 6c 79 2c 20 69 74 20 63 | 6f 75 6c 64 20 62 65 20 |ly, it c|ould be |
|00000670| 6d 61 64 65 20 74 6f 20 | 72 75 6e 20 75 6e 64 65 |made to |run unde|
|00000680| 72 20 34 2e 31 62 73 64 | 20 77 69 74 68 20 73 6f |r 4.1bsd| with so|
|00000690| 6d 65 0a 20 20 20 20 20 | 20 20 20 6d 69 6e 6f 72 |me. | minor|
|000006a0| 20 6d 6f 64 73 2c 20 62 | 75 74 20 70 6f 72 74 69 | mods, b|ut porti|
|000006b0| 6e 67 20 74 6f 20 6f 74 | 68 65 72 20 76 65 72 73 |ng to ot|her vers|
|000006c0| 69 6f 6e 73 20 6f 66 20 | 55 4e 49 58 20 77 6f 75 |ions of |UNIX wou|
|000006d0| 6c 64 0a 20 20 20 20 20 | 20 20 20 70 72 6f 62 61 |ld. | proba|
|000006e0| 62 6c 79 20 65 6e 74 61 | 69 6c 20 61 20 6d 61 6a |bly enta|il a maj|
|000006f0| 6f 72 20 72 65 77 72 69 | 74 65 2e 0a 0a 4e 6f 74 |or rewri|te...Not|
|00000700| 65 20 32 3a 20 54 68 65 | 20 70 61 70 65 72 20 27 |e 2: The| paper '|
|00000710| 55 53 49 4e 47 57 4d 27 | 20 69 73 20 61 20 62 72 |USINGWM'| is a br|
|00000720| 69 65 66 20 65 73 73 61 | 79 20 6f 6e 20 68 6f 77 |ief essa|y on how|
|00000730| 20 77 65 20 75 73 65 20 | 57 4d 0a 09 68 65 72 65 | we use |WM..here|
|00000740| 20 61 74 20 52 54 49 2c | 20 61 6e 64 20 73 68 6f | at RTI,| and sho|
|00000750| 75 6c 64 20 70 72 6f 76 | 65 20 68 65 6c 70 66 75 |uld prov|e helpfu|
|00000760| 6c 20 69 6e 20 67 65 74 | 74 69 6e 67 20 75 73 65 |l in get|ting use|
|00000770| 64 20 74 6f 0a 09 74 68 | 65 20 57 4d 20 73 74 79 |d to..th|e WM sty|
|00000780| 6c 65 20 6f 66 20 64 6f | 69 6e 67 20 74 68 69 6e |le of do|ing thin|
|00000790| 67 73 2e 20 20 49 74 20 | 61 6c 73 6f 20 64 65 73 |gs. It |also des|
|000007a0| 63 72 69 62 65 73 20 73 | 6f 6d 65 0a 09 70 72 6f |cribes s|ome..pro|
|000007b0| 62 6c 65 6d 73 2f 67 6c | 69 74 63 68 65 73 20 77 |blems/gl|itches w|
|000007c0| 69 74 68 20 57 4d 20 74 | 68 61 74 20 79 6f 75 20 |ith WM t|hat you |
|000007d0| 73 68 6f 75 6c 64 20 62 | 65 20 61 77 61 72 65 20 |should b|e aware |
|000007e0| 6f 66 2e 0a 0a 4e 6f 74 | 65 20 33 3a 20 49 6e 63 |of...Not|e 3: Inc|
|000007f0| 6c 75 64 65 64 20 69 6e | 20 74 68 69 73 20 64 69 |luded in| this di|
|00000800| 73 74 72 69 62 75 74 69 | 6f 6e 20 69 73 20 61 20 |stributi|on is a |
|00000810| 70 61 70 65 72 20 28 50 | 61 70 65 72 2e 6a 61 63 |paper (P|aper.jac|
|00000820| 6f 62 29 0a 20 20 20 20 | 20 20 20 20 62 79 20 74 |ob). | by t|
|00000830| 68 65 20 6f 72 69 67 69 | 6e 61 6c 20 57 4d 20 61 |he origi|nal WM a|
|00000840| 75 74 68 6f 72 20 74 68 | 61 74 20 64 65 73 63 72 |uthor th|at descr|
|00000850| 69 62 65 20 57 4d 27 73 | 0a 20 20 20 20 20 20 20 |ibe WM's|. |
|00000860| 20 64 65 76 65 6c 6f 70 | 6d 65 6e 74 20 61 6e 64 | develop|ment and|
|00000870| 20 73 74 72 75 63 74 75 | 72 65 2e 20 20 57 68 69 | structu|re. Whi|
|00000880| 6c 65 20 74 68 65 20 64 | 65 73 63 72 69 70 74 69 |le the d|escripti|
|00000890| 6f 6e 20 6f 66 0a 20 20 | 20 20 20 20 20 20 74 68 |on of. | th|
|000008a0| 65 20 34 2e 32 62 73 64 | 20 76 65 72 73 69 6f 6e |e 4.2bsd| version|
|000008b0| 20 6f 66 20 57 4d 20 70 | 65 72 74 61 69 6e 73 20 | of WM p|ertains |
|000008c0| 74 6f 20 61 6e 20 65 61 | 72 6c 69 65 72 20 76 65 |to an ea|rlier ve|
|000008d0| 72 73 69 6f 6e 2c 0a 20 | 20 20 20 20 20 20 20 74 |rsion,. | t|
|000008e0| 68 65 20 62 61 73 69 63 | 73 20 61 72 65 20 73 74 |he basic|s are st|
|000008f0| 69 6c 6c 20 74 68 65 20 | 73 61 6d 65 2c 20 61 6e |ill the |same, an|
|00000900| 64 20 74 68 69 73 20 70 | 61 70 65 72 20 69 73 20 |d this p|aper is |
|00000910| 67 6f 6f 64 20 72 65 61 | 64 69 6e 67 2e 0a 53 48 |good rea|ding..SH|
|00000920| 41 52 5f 45 4f 46 0a 69 | 66 20 74 65 73 74 20 31 |AR_EOF.i|f test 1|
|00000930| 36 30 36 20 2d 6e 65 20 | 22 60 77 63 20 2d 63 20 |606 -ne |"`wc -c |
|00000940| 3c 20 27 52 45 41 44 4d | 45 27 60 22 0a 74 68 65 |< 'READM|E'`".the|
|00000950| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 65 72 |n..echo |shar: er|
|00000960| 72 6f 72 20 74 72 61 6e | 73 6d 69 74 74 69 6e 67 |ror tran|smitting|
|00000970| 20 22 27 52 45 41 44 4d | 45 27 22 20 27 28 73 68 | "'READM|E'" '(sh|
|00000980| 6f 75 6c 64 20 68 61 76 | 65 20 62 65 65 6e 20 31 |ould hav|e been 1|
|00000990| 36 30 36 20 63 68 61 72 | 61 63 74 65 72 73 29 27 |606 char|acters)'|
|000009a0| 0a 66 69 0a 66 69 20 23 | 20 65 6e 64 20 6f 66 20 |.fi.fi #| end of |
|000009b0| 6f 76 65 72 77 72 69 74 | 69 6e 67 20 63 68 65 63 |overwrit|ing chec|
|000009c0| 6b 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 65 78 74 |k.echo s|har: ext|
|000009d0| 72 61 63 74 69 6e 67 20 | 22 27 77 6d 2e 31 27 22 |racting |"'wm.1'"|
|000009e0| 20 27 28 35 36 33 35 20 | 63 68 61 72 61 63 74 65 | '(5635 |characte|
|000009f0| 72 73 29 27 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |rs)'.if |test -f |
|00000a00| 27 77 6d 2e 31 27 0a 74 | 68 65 6e 0a 09 65 63 68 |'wm.1'.t|hen..ech|
|00000a10| 6f 20 73 68 61 72 3a 20 | 77 69 6c 6c 20 6e 6f 74 |o shar: |will not|
|00000a20| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00000a30| 74 69 6e 67 20 66 69 6c | 65 20 22 27 77 6d 2e 31 |ting fil|e "'wm.1|
|00000a40| 27 22 0a 65 6c 73 65 0a | 73 65 64 20 27 73 2f 5e |'".else.|sed 's/^|
|00000a50| 58 2f 2f 27 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |X//' << |\SHAR_EO|
|00000a60| 46 20 3e 20 27 77 6d 2e | 31 27 0a 58 2e 54 48 20 |F > 'wm.|1'.X.TH |
|00000a70| 57 4d 20 6c 6f 63 61 6c | 20 77 6d 0a 58 2e 53 48 |WM local| wm.X.SH|
|00000a80| 20 4e 41 4d 45 0a 77 6d | 20 5c 2d 20 77 69 6e 64 | NAME.wm| \- wind|
|00000a90| 6f 77 20 6d 61 6e 61 67 | 65 72 0a 58 2e 53 48 20 |ow manag|er.X.SH |
|00000aa0| 53 59 4e 4f 50 53 49 53 | 0a 58 2e 42 20 77 6d 0a |SYNOPSIS|.X.B wm.|
|00000ab0| 5b 20 5c 66 42 5c 2d 6e | 5c 66 50 20 5d 20 20 5b |[ \fB\-n|\fP ] [|
|00000ac0| 20 5c 66 42 5c 2d 66 5c | 66 50 20 72 66 69 6c 65 | \fB\-f\|fP rfile|
|00000ad0| 20 5d 0a 58 2e 53 48 20 | 44 45 53 43 52 49 50 54 | ].X.SH |DESCRIPT|
|00000ae0| 49 4f 4e 0a 58 2e 49 20 | 57 6d 0a 6d 61 6e 61 67 |ION.X.I |Wm.manag|
|00000af0| 65 73 20 61 20 63 6f 6c | 6c 65 63 74 69 6f 6e 20 |es a col|lection |
|00000b00| 6f 66 20 77 69 6e 64 6f | 77 73 20 6f 6e 20 61 20 |of windo|ws on a |
|00000b10| 64 69 73 70 6c 61 79 20 | 74 65 72 6d 69 6e 61 6c |display |terminal|
|00000b20| 2e 0a 58 2e 50 50 0a 49 | 74 20 64 65 74 65 72 6d |..X.PP.I|t determ|
|00000b30| 69 6e 65 73 20 77 68 61 | 74 20 74 79 70 65 20 6f |ines wha|t type o|
|00000b40| 66 20 74 65 72 6d 69 6e | 61 6c 20 79 6f 75 20 61 |f termin|al you a|
|00000b50| 72 65 20 75 73 69 6e 67 | 20 66 72 6f 6d 0a 74 68 |re using| from.th|
|00000b60| 65 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 70 61 |e enviro|nment pa|
|00000b70| 72 61 6d 65 74 65 72 20 | 24 54 45 52 4d 0a 28 73 |rameter |$TERM.(s|
|00000b80| 65 65 0a 58 2e 49 52 20 | 65 6e 76 69 72 6f 6e 20 |ee.X.IR |environ |
|00000b90| 28 35 29 29 0a 61 6e 64 | 20 74 68 65 6e 20 75 73 |(5)).and| then us|
|00000ba0| 65 73 0a 58 2e 49 52 20 | 63 75 72 73 65 73 20 28 |es.X.IR |curses (|
|00000bb0| 33 29 0a 74 6f 20 61 64 | 61 70 74 20 74 6f 20 69 |3).to ad|apt to i|
|00000bc0| 74 2e 0a 58 2e 50 50 0a | 45 61 63 68 20 77 69 6e |t..X.PP.|Each win|
|00000bd0| 64 6f 77 20 68 61 73 20 | 69 74 73 20 6f 77 6e 20 |dow has |its own |
|00000be0| 55 4e 49 58 20 73 68 65 | 6c 6c 0a 28 61 73 20 73 |UNIX she|ll.(as s|
|00000bf0| 70 65 63 69 66 69 65 64 | 20 62 79 20 74 68 65 20 |pecified| by the |
|00000c00| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 20 70 61 72 61 |environm|ent para|
|00000c10| 6d 65 74 65 72 20 24 53 | 48 45 4c 4c 3b 0a 74 68 |meter $S|HELL;.th|
|00000c20| 65 20 64 65 66 61 75 6c | 74 20 69 73 0a 58 2e 49 |e defaul|t is.X.I|
|00000c30| 52 20 73 68 20 28 31 29 | 29 2c 0a 72 75 6e 6e 69 |R sh (1)|),.runni|
|00000c40| 6e 67 20 69 6e 20 70 61 | 72 61 6c 6c 65 6c 20 77 |ng in pa|rallel w|
|00000c50| 69 74 68 20 74 68 6f 73 | 65 20 69 6e 20 74 68 65 |ith thos|e in the|
|00000c60| 20 6f 74 68 65 72 20 77 | 69 6e 64 6f 77 73 2e 0a | other w|indows..|
|00000c70| 54 68 65 20 69 64 65 61 | 20 62 65 68 69 6e 64 20 |The idea| behind |
|00000c80| 74 68 69 73 20 73 63 68 | 65 6d 65 20 69 73 20 74 |this sch|eme is t|
|00000c90| 68 61 74 20 79 6f 75 20 | 63 61 6e 20 75 73 65 20 |hat you |can use |
|00000ca0| 65 61 63 68 20 77 69 6e | 64 6f 77 0a 66 6f 72 20 |each win|dow.for |
|00000cb0| 61 20 73 65 72 69 65 73 | 20 6f 66 20 63 6f 6d 6d |a series| of comm|
|00000cc0| 61 6e 64 73 20 64 65 61 | 6c 69 6e 67 20 77 69 74 |ands dea|ling wit|
|00000cd0| 68 20 61 20 73 69 6e 67 | 6c 65 20 74 6f 70 69 63 |h a sing|le topic|
|00000ce0| 2e 0a 54 68 65 6e 2c 20 | 79 6f 75 20 63 61 6e 20 |..Then, |you can |
|00000cf0| 63 68 61 6e 67 65 20 62 | 61 63 6b 20 61 6e 64 20 |change b|ack and |
|00000d00| 66 6f 72 74 68 20 62 65 | 74 77 65 65 6e 20 74 68 |forth be|tween th|
|00000d10| 65 20 77 69 6e 64 6f 77 | 73 20 77 69 74 68 6f 75 |e window|s withou|
|00000d20| 74 0a 6c 6f 73 69 6e 67 | 20 79 6f 75 72 20 70 6c |t.losing| your pl|
|00000d30| 61 63 65 20 69 6e 20 61 | 6e 79 20 6f 66 20 74 68 |ace in a|ny of th|
|00000d40| 65 6d 2e 0a 58 2e 50 50 | 0a 41 74 20 61 6e 79 20 |em..X.PP|.At any |
|00000d50| 74 69 6d 65 2c 20 79 6f | 75 20 63 61 6e 20 67 69 |time, yo|u can gi|
|00000d60| 76 65 20 63 6f 6d 6d 61 | 6e 64 73 20 74 6f 20 63 |ve comma|nds to c|
|00000d70| 68 61 6e 67 65 20 74 68 | 65 20 77 69 6e 64 6f 77 |hange th|e window|
|00000d80| 20 79 6f 75 20 61 72 65 | 20 74 79 70 69 6e 67 20 | you are| typing |
|00000d90| 69 6e 2c 0a 74 6f 20 6d | 6f 76 65 20 61 20 77 69 |in,.to m|ove a wi|
|00000da0| 6e 64 6f 77 20 6f 72 20 | 63 68 61 6e 67 65 20 69 |ndow or |change i|
|00000db0| 74 73 20 73 69 7a 65 2c | 0a 6f 72 20 74 6f 20 63 |ts size,|.or to c|
|00000dc0| 72 65 61 74 65 20 6f 72 | 20 6b 69 6c 6c 20 61 20 |reate or| kill a |
|00000dd0| 77 69 6e 64 6f 77 2e 0a | 57 69 6e 64 6f 77 73 20 |window..|Windows |
|00000de0| 63 61 6e 20 6f 76 65 72 | 6c 61 70 20 6f 72 20 63 |can over|lap or c|
|00000df0| 6f 6d 70 6c 65 74 65 6c | 79 20 6f 62 73 63 75 72 |ompletel|y obscur|
|00000e00| 65 20 6f 6e 65 20 61 6e | 6f 74 68 65 72 2e 0a 4f |e one an|other..O|
|00000e10| 62 73 63 75 72 65 64 20 | 77 69 6e 64 6f 77 73 20 |bscured |windows |
|00000e20| 63 61 6e 20 73 75 62 73 | 65 71 75 65 6e 74 6c 79 |can subs|equently|
|00000e30| 20 62 65 20 22 6c 69 66 | 74 65 64 22 20 75 70 0a | be "lif|ted" up.|
|00000e40| 61 6e 64 20 70 6c 61 63 | 65 64 20 6f 6e 20 74 6f |and plac|ed on to|
|00000e50| 70 20 6f 66 20 74 68 65 | 20 6f 74 68 65 72 20 77 |p of the| other w|
|00000e60| 69 6e 64 6f 77 73 2e 0a | 57 68 65 6e 20 61 20 77 |indows..|When a w|
|00000e70| 69 6e 64 6f 77 20 69 73 | 20 70 61 72 74 69 61 6c |indow is| partial|
|00000e80| 6c 79 20 6f 72 20 63 6f | 6d 70 6c 65 74 65 6c 79 |ly or co|mpletely|
|00000e90| 20 6f 62 73 63 75 72 65 | 64 2c 0a 73 75 62 73 65 | obscure|d,.subse|
|00000ea0| 71 75 65 6e 74 20 6f 75 | 74 70 75 74 20 74 6f 20 |quent ou|tput to |
|00000eb0| 74 68 61 74 20 77 69 6e | 64 6f 77 20 77 69 6c 6c |that win|dow will|
|00000ec0| 20 62 65 20 68 65 6c 64 | 20 75 6e 74 69 6c 20 74 | be held| until t|
|00000ed0| 68 65 20 77 69 6e 64 6f | 77 0a 62 65 63 6f 6d 65 |he windo|w.become|
|00000ee0| 73 20 63 6f 6d 70 6c 65 | 74 65 6c 79 20 76 69 73 |s comple|tely vis|
|00000ef0| 69 62 6c 65 20 61 67 61 | 69 6e 2c 20 65 66 66 65 |ible aga|in, effe|
|00000f00| 63 74 69 76 65 6c 79 20 | 73 75 73 70 65 6e 64 69 |ctively |suspendi|
|00000f10| 6e 67 20 74 68 65 20 6a | 6f 62 0a 72 75 6e 6e 69 |ng the j|ob.runni|
|00000f20| 6e 67 20 69 6e 20 74 68 | 65 20 6f 62 73 63 75 72 |ng in th|e obscur|
|00000f30| 65 64 20 77 69 6e 64 6f | 77 2e 0a 58 2e 50 50 0a |ed windo|w..X.PP.|
|00000f40| 57 68 65 6e 20 74 68 65 | 20 70 72 6f 67 72 61 6d |When the| program|
|00000f50| 20 69 73 20 73 74 61 72 | 74 65 64 2c 0a 69 74 20 | is star|ted,.it |
|00000f60| 77 69 6c 6c 20 61 74 74 | 65 6d 70 74 20 74 6f 20 |will att|empt to |
|00000f70| 72 65 73 74 6f 72 65 20 | 74 68 65 20 73 69 7a 65 |restore |the size|
|00000f80| 73 20 61 6e 64 20 70 6f | 73 69 74 69 6f 6e 73 20 |s and po|sitions |
|00000f90| 6f 66 20 74 68 65 20 77 | 69 6e 64 6f 77 73 0a 69 |of the w|indows.i|
|00000fa0| 6e 20 75 73 65 20 77 68 | 65 6e 20 79 6f 75 20 6c |n use wh|en you l|
|00000fb0| 61 73 74 20 72 61 6e 0a | 58 2e 49 52 20 77 6d 0a |ast ran.|X.IR wm.|
|00000fc0| 28 75 6e 6c 65 73 73 20 | 79 6f 75 20 75 73 65 0a |(unless |you use.|
|00000fd0| 58 2e 42 20 5c 2d 6e 0a | 6f 70 74 69 6f 6e 29 2e |X.B \-n.|option).|
|00000fe0| 0a 49 66 20 79 6f 75 20 | 67 69 76 65 20 74 68 65 |.If you |give the|
|00000ff0| 0a 58 2e 42 20 5c 2d 66 | 0a 58 2e 49 20 72 66 69 |.X.B \-f|.X.I rfi|
|00001000| 6c 65 0a 6f 70 74 69 6f | 6e 2c 0a 58 2e 49 20 77 |le.optio|n,.X.I w|
|00001010| 6d 0a 74 72 69 65 73 20 | 74 6f 20 72 65 73 74 6f |m.tries |to resto|
|00001020| 72 65 20 77 69 6e 64 6f | 77 73 20 66 72 6f 6d 20 |re windo|ws from |
|00001030| 74 68 65 20 66 69 6c 65 | 0a 58 2e 49 20 72 66 69 |the file|.X.I rfi|
|00001040| 6c 65 2e 0a 4f 74 68 65 | 72 77 69 73 65 2c 20 69 |le..Othe|rwise, i|
|00001050| 74 20 66 69 72 73 74 20 | 74 72 69 65 73 20 74 68 |t first |tries th|
|00001060| 65 20 66 69 6c 65 0a 58 | 2e 49 20 2e 77 6d 72 63 |e file.X|.I .wmrc|
|00001070| 0a 69 6e 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |.in the |current |
|00001080| 64 69 72 65 63 74 6f 72 | 79 2c 0a 74 68 65 6e 2c |director|y,.then,|
|00001090| 20 69 66 20 6e 65 63 65 | 73 73 61 72 79 2c 0a 58 | if nece|ssary,.X|
|000010a0| 2e 49 20 2e 77 6d 72 63 | 0a 69 6e 20 79 6f 75 72 |.I .wmrc|.in your|
|000010b0| 20 68 6f 6d 65 20 64 69 | 72 65 63 74 6f 72 79 2e | home di|rectory.|
|000010c0| 0a 58 46 61 69 6c 69 6e | 67 20 61 6c 6c 20 74 68 |.XFailin|g all th|
|000010d0| 69 73 2c 0a 58 2e 49 20 | 77 6d 0a 77 69 6c 6c 20 |is,.X.I |wm.will |
|000010e0| 67 69 76 65 20 79 6f 75 | 20 61 20 77 69 6e 64 6f |give you| a windo|
|000010f0| 77 20 74 68 65 20 73 69 | 7a 65 20 6f 66 20 79 6f |w the si|ze of yo|
|00001100| 75 72 20 73 63 72 65 65 | 6e 2e 0a 4e 6f 77 2c 20 |ur scree|n..Now, |
|00001110| 79 6f 75 20 63 61 6e 20 | 74 79 70 65 20 55 4e 49 |you can |type UNI|
|00001120| 58 20 63 6f 6d 6d 61 6e | 64 73 20 69 6e 20 74 68 |X comman|ds in th|
|00001130| 65 20 6e 65 77 20 77 69 | 6e 64 6f 77 2e 0a 58 2e |e new wi|ndow..X.|
|00001140| 50 50 0a 58 2e 49 20 57 | 6d 0a 63 6f 6d 6d 61 6e |PP.X.I W|m.comman|
|00001150| 64 73 20 63 61 6e 20 62 | 65 20 69 73 73 75 65 64 |ds can b|e issued|
|00001160| 20 61 74 20 61 6e 79 20 | 74 69 6d 65 2e 0a 45 76 | at any |time..Ev|
|00001170| 65 72 79 0a 58 2e 49 20 | 77 6d 0a 63 6f 6d 6d 61 |ery.X.I |wm.comma|
|00001180| 6e 64 20 63 6f 6e 73 69 | 73 74 73 20 6f 66 20 61 |nd consi|sts of a|
|00001190| 20 70 72 65 66 69 78 20 | 63 68 61 72 61 63 74 65 | prefix |characte|
|000011a0| 72 20 5c 66 49 3c 77 6d | 2d 65 73 63 3e 5c 66 50 |r \fI<wm|-esc>\fP|
|000011b0| 20 66 6f 6c 6c 6f 77 65 | 64 20 62 79 20 6f 6e 65 | followe|d by one|
|000011c0| 0a 6d 6f 72 65 20 63 68 | 61 72 61 63 74 65 72 2c |.more ch|aracter,|
|000011d0| 20 70 6f 73 73 69 62 6c | 79 20 66 6f 6c 6c 6f 77 | possibl|y follow|
|000011e0| 65 64 20 62 79 20 73 6f | 6d 65 20 61 72 67 75 6d |ed by so|me argum|
|000011f0| 65 6e 74 73 2e 0a 41 6e | 79 20 6f 74 68 65 72 20 |ents..An|y other |
|00001200| 63 68 61 72 61 63 74 65 | 72 73 20 74 79 70 65 64 |characte|rs typed|
|00001210| 20 6f 6e 20 74 68 65 20 | 74 65 72 6d 69 6e 61 6c | on the |terminal|
|00001220| 20 61 72 65 20 74 72 65 | 61 74 65 64 20 61 73 20 | are tre|ated as |
|00001230| 69 6e 70 75 74 0a 74 6f | 20 74 68 65 20 70 72 6f |input.to| the pro|
|00001240| 67 72 61 6d 20 69 6e 20 | 74 68 65 20 63 75 72 72 |gram in |the curr|
|00001250| 65 6e 74 20 77 69 6e 64 | 6f 77 2e 0a 54 6f 20 65 |ent wind|ow..To e|
|00001260| 6e 74 65 72 20 5c 66 49 | 3c 77 6d 2d 65 73 63 3e |nter \fI|<wm-esc>|
|00001270| 5c 66 50 20 69 74 73 65 | 6c 66 20 61 73 20 69 6e |\fP itse|lf as in|
|00001280| 70 75 74 20 74 6f 20 61 | 20 70 72 6f 67 72 61 6d |put to a| program|
|00001290| 2c 20 74 79 70 65 20 69 | 74 20 74 77 69 63 65 2e |, type i|t twice.|
|000012a0| 0a 54 68 65 20 5c 66 49 | 3c 77 6d 2d 65 73 63 3e |.The \fI|<wm-esc>|
|000012b0| 5c 66 50 20 69 73 20 69 | 6e 69 74 69 61 6c 6c 79 |\fP is i|nitially|
|000012c0| 20 73 65 74 20 74 6f 20 | 41 53 43 49 49 20 45 53 | set to |ASCII ES|
|000012d0| 43 2c 20 62 75 74 20 74 | 68 65 72 65 20 69 73 0a |C, but t|here is.|
|000012e0| 61 20 63 6f 6d 6d 61 6e | 64 20 66 6f 72 20 63 68 |a comman|d for ch|
|000012f0| 61 6e 67 69 6e 67 20 69 | 74 2e 0a 58 2e 50 50 0a |anging i|t..X.PP.|
|00001300| 54 68 65 20 61 76 61 69 | 6c 61 62 6c 65 0a 58 2e |The avai|lable.X.|
|00001310| 49 20 77 6d 0a 63 6f 6d | 6d 61 6e 64 73 20 61 72 |I wm.com|mands ar|
|00001320| 65 20 5c 66 49 3c 77 6d | 2d 65 73 63 3e 5c 66 50 |e \fI<wm|-esc>\fP|
|00001330| 20 66 6f 6c 6c 6f 77 65 | 64 20 62 79 3a 0a 58 2e | followe|d by:.X.|
|00001340| 49 50 20 5c 66 42 6e 5c | 66 50 0a 43 72 65 61 74 |IP \fBn\|fP.Creat|
|00001350| 65 20 61 20 6e 65 77 20 | 77 69 6e 64 6f 77 2e 0a |e a new |window..|
|00001360| 54 6f 20 64 6f 20 74 68 | 69 73 2c 20 6d 6f 76 65 |To do th|is, move|
|00001370| 20 74 68 65 20 63 75 72 | 73 6f 72 20 74 6f 20 74 | the cur|sor to t|
|00001380| 68 65 20 70 6f 73 69 74 | 69 6f 6e 20 79 6f 75 20 |he posit|ion you |
|00001390| 77 61 6e 74 20 74 68 65 | 0a 6c 6f 77 65 72 20 6c |want the|.lower l|
|000013a0| 65 66 74 20 63 6f 72 6e | 65 72 20 6f 66 20 79 6f |eft corn|er of yo|
|000013b0| 75 72 20 77 69 6e 64 6f | 77 0a 74 6f 20 6f 63 63 |ur windo|w.to occ|
|000013c0| 75 70 79 2c 0a 75 73 69 | 6e 67 20 74 68 65 20 6b |upy,.usi|ng the k|
|000013d0| 65 79 73 0a 58 2e 42 20 | 6b 0a 28 75 70 29 2c 0a |eys.X.B |k.(up),.|
|000013e0| 58 2e 42 20 6a 0a 28 64 | 6f 77 6e 29 2c 0a 58 2e |X.B j.(d|own),.X.|
|000013f0| 42 20 68 0a 28 6c 65 66 | 74 29 2c 20 61 6e 64 0a |B h.(lef|t), and.|
|00001400| 58 2e 42 20 6c 0a 28 72 | 69 67 68 74 29 0a 61 6e |X.B l.(r|ight).an|
|00001410| 64 20 61 6c 73 6f 0a 58 | 2e 42 52 20 4b 20 2c 0a |d also.X|.BR K ,.|
|00001420| 58 2e 42 52 20 4a 20 2c | 0a 58 2e 42 52 20 48 20 |X.BR J ,|.X.BR H |
|00001430| 2c 0a 61 6e 64 0a 58 2e | 42 20 4c 0a 28 66 6f 72 |,.and.X.|B L.(for|
|00001440| 20 6c 61 72 67 65 20 69 | 6e 63 72 65 6d 65 6e 74 | large i|ncrement|
|00001450| 73 20 69 6e 20 74 68 65 | 20 72 65 73 70 65 63 74 |s in the| respect|
|00001460| 69 76 65 20 64 69 72 65 | 63 74 69 6f 6e 73 29 2e |ive dire|ctions).|
|00001470| 0a 54 68 65 6e 20 74 79 | 70 65 20 61 6e 0a 58 2e |.Then ty|pe an.X.|
|00001480| 42 52 20 78 20 2e 0a 54 | 68 65 6e 20 6d 6f 76 65 |BR x ..T|hen move|
|00001490| 20 74 68 65 20 63 75 72 | 73 6f 72 20 28 75 73 69 | the cur|sor (usi|
|000014a0| 6e 67 20 74 68 65 20 73 | 61 6d 65 20 63 6f 6d 6d |ng the s|ame comm|
|000014b0| 61 6e 64 73 29 20 74 6f | 20 74 68 65 20 75 70 70 |ands) to| the upp|
|000014c0| 65 72 0a 72 69 67 68 74 | 20 63 6f 72 6e 65 72 2c |er.right| corner,|
|000014d0| 20 61 6e 64 20 74 79 70 | 65 20 61 6e 6f 74 68 65 | and typ|e anothe|
|000014e0| 72 0a 58 2e 42 52 20 78 | 20 2e 0a 58 2e 49 50 20 |r.X.BR x| ..X.IP |
|000014f0| 5c 66 42 69 5c 66 50 0a | 49 64 65 6e 74 69 66 79 |\fBi\fP.|Identify|
|00001500| 20 65 61 63 68 20 77 69 | 6e 64 6f 77 20 62 79 20 | each wi|ndow by |
|00001510| 6f 75 74 6c 69 6e 69 6e | 67 20 69 74 20 77 69 74 |outlinin|g it wit|
|00001520| 68 20 69 74 73 20 77 69 | 6e 64 6f 77 20 6e 75 6d |h its wi|ndow num|
|00001530| 62 65 72 0a 28 65 61 63 | 68 20 77 69 6e 64 6f 77 |ber.(eac|h window|
|00001540| 20 68 61 73 20 61 20 6f | 6e 65 20 64 69 67 69 74 | has a o|ne digit|
|00001550| 20 6e 61 6d 65 2c 20 65 | 2e 67 2e 0a 23 5c 66 42 | name, e|.g..#\fB|
|00001560| 31 5c 66 50 2c 20 23 5c | 66 42 32 5c 66 50 2c 20 |1\fP, #\|fB2\fP, |
|00001570| 23 5c 66 42 33 5c 66 50 | 2c 0a 75 73 65 64 20 69 |#\fB3\fP|,.used i|
|00001580| 6e 20 72 65 66 65 72 72 | 69 6e 67 20 74 6f 20 74 |n referr|ing to t|
|00001590| 68 61 74 20 77 69 6e 64 | 6f 77 29 2e 0a 58 2e 49 |hat wind|ow)..X.I|
|000015a0| 50 20 5c 66 49 64 69 67 | 69 74 5c 66 50 0a 43 68 |P \fIdig|it\fP.Ch|
|000015b0| 61 6e 67 65 20 74 68 65 | 20 63 75 72 72 65 6e 74 |ange the| current|
|000015c0| 20 77 69 6e 64 6f 77 2e | 0a 54 68 65 20 6e 61 6d | window.|.The nam|
|000015d0| 65 64 20 77 69 6e 64 6f | 77 20 69 73 20 70 6c 61 |ed windo|w is pla|
|000015e0| 63 65 64 20 6f 6e 20 22 | 74 6f 70 22 20 6f 66 20 |ced on "|top" of |
|000015f0| 74 68 65 20 73 63 72 65 | 65 6e 0a 28 74 68 61 74 |the scre|en.(that|
|00001600| 20 69 73 2c 20 69 6e 20 | 66 72 6f 6e 74 20 6f 66 | is, in |front of|
|00001610| 20 61 6e 79 20 6f 74 68 | 65 72 20 77 69 6e 64 6f | any oth|er windo|
|00001620| 77 73 20 74 68 61 74 20 | 68 61 64 20 62 65 65 6e |ws that |had been|
|00001630| 20 6f 62 73 63 75 72 69 | 6e 67 20 69 74 29 2e 0a | obscuri|ng it)..|
|00001640| 49 6e 70 75 74 20 66 72 | 6f 6d 20 74 68 65 20 6b |Input fr|om the k|
|00001650| 65 79 62 6f 61 72 64 20 | 77 69 6c 6c 20 6e 6f 77 |eyboard |will now|
|00001660| 20 62 65 20 73 65 6e 74 | 20 74 6f 20 74 68 69 73 | be sent| to this|
|00001670| 20 77 69 6e 64 6f 77 2e | 0a 28 44 65 6c 61 79 65 | window.|.(Delaye|
|00001680| 64 20 72 65 73 70 6f 6e | 73 65 73 20 74 6f 20 63 |d respon|ses to c|
|00001690| 6f 6d 6d 61 6e 64 73 20 | 65 6e 74 65 72 65 64 20 |ommands |entered |
|000016a0| 69 6e 20 6f 74 68 65 72 | 20 77 69 6e 64 6f 77 73 |in other| windows|
|000016b0| 20 77 69 6c 6c 2c 0a 6f | 66 20 63 6f 75 72 73 65 | will,.o|f course|
|000016c0| 2c 20 63 6f 6e 74 69 6e | 75 65 20 74 6f 20 62 65 |, contin|ue to be|
|000016d0| 20 72 6f 75 74 65 64 20 | 74 6f 20 74 68 65 69 72 | routed |to their|
|000016e0| 20 63 6f 72 72 65 63 74 | 20 77 69 6e 64 6f 77 73 | correct| windows|
|000016f0| 2e 29 0a 58 2e 49 50 20 | 5c 66 42 6c 5c 66 50 0a |.).X.IP |\fBl\fP.|
|00001700| 43 68 61 6e 67 65 20 74 | 6f 20 74 68 65 20 6c 61 |Change t|o the la|
|00001710| 73 74 2d 75 73 65 64 20 | 77 69 6e 64 6f 77 2e 0a |st-used |window..|
|00001720| 43 68 61 6e 67 65 20 62 | 61 63 6b 20 74 6f 20 74 |Change b|ack to t|
|00001730| 68 65 20 77 69 6e 64 6f | 77 20 74 68 61 74 20 68 |he windo|w that h|
|00001740| 61 64 20 6d 6f 73 74 20 | 72 65 63 65 6e 74 6c 79 |ad most |recently|
|00001750| 20 62 65 65 6e 20 74 68 | 65 20 63 75 72 72 65 6e | been th|e curren|
|00001760| 74 20 77 69 6e 64 6f 77 | 2e 0a 58 2e 49 50 20 5c |t window|..X.IP \|
|00001770| 66 42 6d 5c 66 50 0a 4d | 6f 76 65 20 61 6e 64 2f |fBm\fP.M|ove and/|
|00001780| 6f 72 20 63 68 61 6e 67 | 65 20 74 68 65 20 73 69 |or chang|e the si|
|00001790| 7a 65 20 6f 66 20 74 68 | 65 20 63 75 72 72 65 6e |ze of th|e curren|
|000017a0| 74 20 77 69 6e 64 6f 77 | 2e 0a 58 2e 49 20 57 6d |t window|..X.I Wm|
|000017b0| 0a 61 73 6b 73 20 66 6f | 72 20 74 68 65 20 6c 6f |.asks fo|r the lo|
|000017c0| 77 65 72 20 6c 65 66 74 | 20 61 6e 64 20 75 70 70 |wer left| and upp|
|000017d0| 65 72 20 72 69 67 68 74 | 20 63 6f 72 6e 65 72 73 |er right| corners|
|000017e0| 20 6f 66 20 64 65 73 69 | 72 65 64 0a 6e 65 77 20 | of desi|red.new |
|000017f0| 70 6f 73 69 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |position| of the |
|00001800| 77 69 6e 64 6f 77 20 28 | 73 61 6d 65 20 63 6f 6e |window (|same con|
|00001810| 76 65 6e 74 69 6f 6e 20 | 61 73 20 66 6f 72 20 6e |vention |as for n|
|00001820| 65 77 20 77 69 6e 64 6f | 77 73 29 2e 0a 49 74 20 |ew windo|ws)..It |
|00001830| 69 73 20 6e 6f 74 20 61 | 64 76 69 73 61 62 6c 65 |is not a|dvisable|
|00001840| 20 74 6f 20 6d 6f 76 65 | 20 61 20 77 69 6e 64 6f | to move| a windo|
|00001850| 77 20 65 78 63 65 70 74 | 20 77 68 65 6e 0a 74 68 |w except| when.th|
|00001860| 65 20 70 72 6f 67 72 61 | 6d 20 72 75 6e 6e 69 6e |e progra|m runnin|
|00001870| 67 20 69 6e 20 69 74 20 | 69 73 20 61 74 20 74 68 |g in it |is at th|
|00001880| 65 20 73 68 65 6c 6c 20 | 70 72 6f 6d 70 74 20 6c |e shell |prompt l|
|00001890| 65 76 65 6c 2e 0a 49 6e | 20 70 61 72 74 69 63 75 |evel..In| particu|
|000018a0| 6c 61 72 2c 20 73 63 72 | 65 65 6e 2d 6f 72 69 65 |lar, scr|een-orie|
|000018b0| 6e 74 65 64 20 70 72 6f | 67 72 61 6d 73 20 73 75 |nted pro|grams su|
|000018c0| 63 68 20 61 73 0a 58 2e | 49 20 76 69 0a 63 61 6e |ch as.X.|I vi.can|
|000018d0| 20 67 65 74 20 76 65 72 | 79 20 63 6f 6e 66 75 73 | get ver|y confus|
|000018e0| 65 64 20 69 66 20 74 68 | 65 69 72 20 77 69 6e 64 |ed if th|eir wind|
|000018f0| 6f 77 20 73 69 7a 65 20 | 69 73 20 63 68 61 6e 67 |ow size |is chang|
|00001900| 65 64 20 77 68 69 6c 65 | 20 74 68 65 79 20 61 72 |ed while| they ar|
|00001910| 65 20 72 75 6e 6e 69 6e | 67 2e 0a 58 2e 49 50 20 |e runnin|g..X.IP |
|00001920| 5c 66 42 74 5c 66 50 0a | 52 65 73 65 74 20 74 68 |\fBt\fP.|Reset th|
|00001930| 65 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 76 61 |e enviro|nment va|
|00001940| 72 69 61 62 6c 65 73 20 | 24 54 45 52 4d 20 61 6e |riables |$TERM an|
|00001950| 64 20 24 54 45 52 4d 43 | 41 50 20 66 6f 72 20 74 |d $TERMC|AP for t|
|00001960| 68 65 20 63 75 72 72 65 | 6e 74 20 77 69 6e 64 6f |he curre|nt windo|
|00001970| 77 2e 0a 54 68 69 73 20 | 6d 61 79 20 62 65 20 6e |w..This |may be n|
|00001980| 65 63 65 73 73 61 72 79 | 20 69 66 20 74 68 65 73 |ecessary| if thes|
|00001990| 65 20 76 61 72 69 61 62 | 6c 65 73 20 67 65 74 20 |e variab|les get |
|000019a0| 75 6e 73 65 74 20 6f 72 | 20 73 63 72 61 6d 62 6c |unset or| scrambl|
|000019b0| 65 64 2c 0a 66 6f 72 20 | 69 6e 73 74 61 6e 63 65 |ed,.for |instance|
|000019c0| 20 64 75 72 69 6e 67 20 | 61 20 72 65 6d 6f 74 65 | during |a remote|
|000019d0| 20 6c 6f 67 69 6e 2e 0a | 54 68 69 73 20 63 6f 6d | login..|This com|
|000019e0| 6d 61 6e 64 20 73 68 6f | 75 6c 64 20 6f 6e 6c 79 |mand sho|uld only|
|000019f0| 20 62 65 20 69 6e 76 6f | 6b 65 64 20 77 68 65 6e | be invo|ked when|
|00001a00| 0a 74 68 65 20 70 72 6f | 67 72 61 6d 20 72 75 6e |.the pro|gram run|
|00001a10| 6e 69 6e 67 20 69 6e 20 | 69 74 20 69 73 20 61 74 |ning in |it is at|
|00001a20| 20 74 68 65 20 73 68 65 | 6c 6c 20 70 72 6f 6d 70 | the she|ll promp|
|00001a30| 74 20 6c 65 76 65 6c 20 | 62 65 63 61 75 73 65 0a |t level |because.|
|00001a40| 69 74 20 6f 70 65 72 61 | 74 65 73 20 62 79 20 73 |it opera|tes by s|
|00001a50| 65 6e 64 69 6e 67 20 63 | 6f 6d 6d 61 6e 64 73 20 |ending c|ommands |
|00001a60| 74 6f 20 74 68 65 20 73 | 68 65 6c 6c 20 61 73 20 |to the s|hell as |
|00001a70| 69 66 0a 74 68 65 79 20 | 77 65 72 65 20 74 79 70 |if.they |were typ|
|00001a80| 65 64 20 69 6e 20 66 72 | 6f 6d 20 74 68 65 20 6b |ed in fr|om the k|
|00001a90| 65 79 62 6f 61 72 64 2e | 0a 58 2e 49 50 20 5c 66 |eyboard.|.X.IP \f|
|00001aa0| 42 64 5c 66 50 0a 44 75 | 6d 70 20 63 75 72 72 65 |Bd\fP.Du|mp curre|
|00001ab0| 6e 74 20 77 69 6e 64 6f | 77 20 63 6f 6e 74 65 6e |nt windo|w conten|
|00001ac0| 74 73 2e 20 41 6e 20 69 | 6d 61 67 65 20 6f 66 20 |ts. An i|mage of |
|00001ad0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 77 69 6e 64 |the curr|ent wind|
|00001ae0| 6f 77 20 69 73 0a 77 72 | 69 74 74 65 6e 20 74 6f |ow is.wr|itten to|
|00001af0| 20 74 68 65 20 66 69 6c | 65 0a 58 2e 49 20 77 6d | the fil|e.X.I wm|
|00001b00| 64 75 6d 70 0a 69 6e 20 | 74 68 65 20 63 75 72 72 |dump.in |the curr|
|00001b10| 65 6e 74 20 64 69 72 65 | 63 74 6f 72 79 2e 0a 58 |ent dire|ctory..X|
|00001b20| 2e 49 50 20 5c 66 42 6b | 5c 66 50 0a 4b 69 6c 6c |.IP \fBk|\fP.Kill|
|00001b30| 20 74 68 65 20 6e 61 6d | 65 64 20 77 69 6e 64 6f | the nam|ed windo|
|00001b40| 77 2e 0a 58 53 65 6e 64 | 73 20 74 68 65 20 73 69 |w..XSend|s the si|
|00001b50| 67 6e 61 6c 20 53 49 47 | 48 55 50 20 28 68 61 6e |gnal SIG|HUP (han|
|00001b60| 67 75 70 29 20 74 6f 20 | 74 68 65 20 70 72 6f 63 |gup) to |the proc|
|00001b70| 65 73 73 65 73 20 61 73 | 73 6f 63 69 61 74 65 64 |esses as|sociated|
|00001b80| 20 77 69 74 68 20 74 68 | 65 20 77 69 6e 64 6f 77 | with th|e window|
|00001b90| 2c 0a 74 68 65 6e 20 65 | 72 61 73 65 73 20 74 68 |,.then e|rases th|
|00001ba0| 65 20 77 69 6e 64 6f 77 | 2e 0a 28 54 68 65 0a 58 |e window|..(The.X|
|00001bb0| 2e 49 20 6e 61 6d 65 0a | 6f 66 20 74 68 69 73 20 |.I name.|of this |
|00001bc0| 77 69 6e 64 6f 77 20 6d | 61 79 20 6c 61 74 65 72 |window m|ay later|
|00001bd0| 20 62 65 20 72 65 2d 75 | 73 65 64 20 69 6e 20 63 | be re-u|sed in c|
|00001be0| 72 65 61 74 69 6e 67 20 | 61 20 6e 65 77 20 77 69 |reating |a new wi|
|00001bf0| 6e 64 6f 77 2e 29 0a 58 | 2e 49 50 20 5c 66 42 70 |ndow.).X|.IP \fBp|
|00001c00| 5c 66 50 0a 43 68 61 6e | 67 65 20 74 68 65 20 70 |\fP.Chan|ge the p|
|00001c10| 72 65 66 69 78 20 63 68 | 61 72 61 63 74 65 72 2e |refix ch|aracter.|
|00001c20| 0a 58 2e 49 50 20 5c 66 | 42 72 5c 66 50 0a 52 65 |.X.IP \f|Br\fP.Re|
|00001c30| 64 72 61 77 20 74 68 65 | 20 73 63 72 65 65 6e 2e |draw the| screen.|
|00001c40| 0a 43 6c 65 61 72 73 20 | 74 68 65 20 65 6e 74 69 |.Clears |the enti|
|00001c50| 72 65 20 73 63 72 65 65 | 6e 20 61 6e 64 20 72 65 |re scree|n and re|
|00001c60| 64 72 61 77 73 20 77 68 | 61 74 20 73 68 6f 75 6c |draws wh|at shoul|
|00001c70| 64 20 62 65 20 74 68 65 | 72 65 2e 0a 48 65 6c 70 |d be the|re..Help|
|00001c80| 66 75 6c 20 61 66 74 65 | 72 20 67 61 72 62 61 67 |ful afte|r garbag|
|00001c90| 65 20 28 6c 69 6b 65 20 | 61 20 62 72 6f 61 64 63 |e (like |a broadc|
|00001ca0| 61 73 74 20 6d 65 73 73 | 61 67 65 29 20 68 61 73 |ast mess|age) has|
|00001cb0| 20 61 72 72 69 76 65 64 | 2e 0a 58 2e 49 50 20 5c | arrived|..X.IP \|
|00001cc0| 66 42 71 5c 66 50 0a 51 | 75 69 74 2e 0a 45 6e 64 |fBq\fP.Q|uit..End|
|00001cd0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 0a 58 2e | the cur|rent .X.|
|00001ce0| 49 20 77 6d 0a 73 65 73 | 73 69 6f 6e 2e 0a 58 46 |I wm.ses|sion..XF|
|00001cf0| 69 72 73 74 20 74 65 72 | 6d 69 6e 61 74 65 73 20 |irst ter|minates |
|00001d00| 74 68 65 20 70 72 6f 63 | 65 73 73 65 73 20 61 73 |the proc|esses as|
|00001d10| 73 6f 63 69 61 74 65 64 | 20 77 69 74 68 20 65 61 |sociated| with ea|
|00001d20| 63 68 0a 58 2e 49 20 77 | 6d 2c 0a 77 69 6e 64 6f |ch.X.I w|m,.windo|
|00001d30| 77 20 62 79 20 73 65 6e | 64 69 6e 67 20 74 68 65 |w by sen|ding the|
|00001d40| 6d 20 74 68 65 20 73 69 | 67 6e 61 6c 20 53 49 47 |m the si|gnal SIG|
|00001d50| 48 55 50 20 28 68 61 6e | 67 75 70 29 2e 0a 54 68 |HUP (han|gup)..Th|
|00001d60| 65 6e 2c 20 69 66 20 79 | 6f 75 20 68 61 76 65 20 |en, if y|ou have |
|00001d70| 63 68 61 6e 67 65 64 20 | 74 68 65 20 77 69 6e 64 |changed |the wind|
|00001d80| 6f 77 20 63 6f 6e 66 69 | 67 75 72 61 74 69 6f 6e |ow confi|guration|
|00001d90| 20 64 75 72 69 6e 67 20 | 74 68 65 20 73 65 73 73 | during |the sess|
|00001da0| 69 6f 6e 0a 28 61 6e 64 | 20 64 69 64 6e 27 74 20 |ion.(and| didn't |
|00001db0| 73 70 65 63 69 66 79 20 | 74 68 65 20 27 6e 6f 20 |specify |the 'no |
|00001dc0| 72 65 73 74 6f 72 65 27 | 20 28 5c 66 42 5c 2d 6e |restore'| (\fB\-n|
|00001dd0| 5c 66 50 29 20 6f 70 74 | 69 6f 6e 29 2c 0a 61 73 |\fP) opt|ion),.as|
|00001de0| 6b 73 20 79 6f 75 20 69 | 66 20 79 6f 75 20 77 61 |ks you i|f you wa|
|00001df0| 6e 74 20 74 6f 20 73 61 | 76 65 20 74 68 65 20 63 |nt to sa|ve the c|
|00001e00| 75 72 72 65 6e 74 20 77 | 69 6e 64 6f 77 20 63 6f |urrent w|indow co|
|00001e10| 6e 66 69 67 75 72 61 74 | 69 6f 6e 0a 66 6f 72 20 |nfigurat|ion.for |
|00001e20| 74 68 65 20 6e 65 78 74 | 20 73 65 73 73 69 6f 6e |the next| session|
|00001e30| 2e 0a 54 68 65 6e 20 65 | 78 69 74 73 2e 0a 58 2e |..Then e|xits..X.|
|00001e40| 49 50 20 5c 66 42 7a 5c | 66 50 0a 58 53 75 73 70 |IP \fBz\|fP.XSusp|
|00001e50| 65 6e 64 0a 58 2e 49 20 | 77 6d 0a 62 79 20 75 73 |end.X.I |wm.by us|
|00001e60| 69 6e 67 20 74 68 65 20 | 42 65 72 6b 65 6c 65 79 |ing the |Berkeley|
|00001e70| 20 6a 6f 62 20 63 6f 6e | 74 72 6f 6c 20 73 79 73 | job con|trol sys|
|00001e80| 74 65 6d 2c 0a 6f 72 20 | 70 65 72 68 61 70 73 20 |tem,.or |perhaps |
|00001e90| 62 79 20 73 70 61 77 6e | 69 6e 67 20 61 20 6e 6f |by spawn|ing a no|
|00001ea0| 6e 2d 77 69 6e 64 6f 77 | 20 73 75 62 73 68 65 6c |n-window| subshel|
|00001eb0| 6c 2e 0a 58 2e 49 50 20 | 22 5c 66 42 68 5c 66 50 |l..X.IP |"\fBh\fP|
|00001ec0| 20 6f 72 20 5c 66 42 3f | 5c 66 50 22 0a 48 65 6c | or \fB?|\fP".Hel|
|00001ed0| 70 2e 0a 44 69 73 70 6c | 61 79 73 20 61 20 73 75 |p..Displ|ays a su|
|00001ee0| 6d 6d 61 72 79 20 6f 66 | 0a 58 2e 49 20 77 6d 0a |mmary of|.X.I wm.|
|00001ef0| 63 6f 6d 6d 61 6e 64 73 | 2e 0a 58 2e 53 48 20 46 |commands|..X.SH F|
|00001f00| 49 4c 45 53 0a 58 2e 49 | 50 20 5c 66 49 2e 77 6d |ILES.X.I|P \fI.wm|
|00001f10| 72 63 5c 66 50 0a 58 2e | 49 50 20 5c 66 49 24 48 |rc\fP.X.|IP \fI$H|
|00001f20| 4f 4d 45 2f 2e 77 6d 72 | 63 5c 66 50 0a 75 73 65 |OME/.wmr|c\fP.use|
|00001f30| 64 20 74 6f 20 73 61 76 | 65 20 74 68 65 20 61 72 |d to sav|e the ar|
|00001f40| 72 61 6e 67 65 6d 65 6e | 74 20 6f 66 20 79 6f 75 |rangemen|t of you|
|00001f50| 72 20 77 69 6e 64 6f 77 | 73 20 66 72 6f 6d 20 6f |r window|s from o|
|00001f60| 6e 65 20 73 65 73 73 69 | 6f 6e 20 74 6f 20 74 68 |ne sessi|on to th|
|00001f70| 65 20 6e 65 78 74 2e 0a | 58 2e 53 48 20 42 55 47 |e next..|X.SH BUG|
|00001f80| 53 0a 49 74 27 6c 6c 20 | 6e 65 76 65 72 20 62 65 |S.It'll |never be|
|00001f90| 61 74 20 61 20 42 4c 49 | 54 2e 0a 58 2e 53 48 20 |at a BLI|T..X.SH |
|00001fa0| 22 53 45 45 20 41 4c 53 | 4f 22 0a 52 2e 4a 2e 4b |"SEE ALS|O".R.J.K|
|00001fb0| 2e 20 4a 61 63 6f 62 2c | 0a 22 55 73 65 72 2d 4c |. Jacob,|."User-L|
|00001fc0| 65 76 65 6c 20 57 69 6e | 64 6f 77 20 4d 61 6e 61 |evel Win|dow Mana|
|00001fd0| 67 65 72 73 20 66 6f 72 | 20 55 4e 49 58 2c 22 0a |gers for| UNIX,".|
|00001fe0| 58 2e 49 20 22 50 72 6f | 63 2e 20 55 6e 69 46 6f |X.I "Pro|c. UniFo|
|00001ff0| 72 75 6d 20 49 6e 74 65 | 72 6e 61 74 69 6f 6e 61 |rum Inte|rnationa|
|00002000| 6c 20 43 6f 6e 66 65 72 | 65 6e 63 65 20 6f 6e 20 |l Confer|ence on |
|00002010| 55 4e 49 58 2c 22 0a 70 | 70 2e 20 31 32 33 2d 31 |UNIX,".p|p. 123-1|
|00002020| 33 33 20 28 31 39 38 34 | 29 2e 0a 58 2e 53 48 20 |33 (1984|)..X.SH |
|00002030| 41 55 54 48 4f 52 0a 52 | 6f 62 65 72 74 20 4a 2e |AUTHOR.R|obert J.|
|00002040| 4b 2e 20 4a 61 63 6f 62 | 0a 58 2e 62 72 0a 4e 61 |K. Jacob|.X.br.Na|
|00002050| 76 61 6c 20 52 65 73 65 | 61 72 63 68 20 4c 61 62 |val Rese|arch Lab|
|00002060| 6f 72 61 74 6f 72 79 0a | 58 2e 73 70 0a 52 65 76 |oratory.|X.sp.Rev|
|00002070| 69 73 65 64 20 62 79 20 | 4d 61 74 74 20 4c 65 6e |ised by |Matt Len|
|00002080| 6e 6f 6e 20 61 6e 64 20 | 54 6f 6d 20 54 72 75 73 |non and |Tom Trus|
|00002090| 63 6f 74 74 0a 58 2e 62 | 72 0a 52 65 73 65 61 72 |cott.X.b|r.Resear|
|000020a0| 63 68 20 54 72 69 61 6e | 67 6c 65 20 49 6e 73 74 |ch Trian|gle Inst|
|000020b0| 69 74 75 74 65 0a 53 48 | 41 52 5f 45 4f 46 0a 69 |itute.SH|AR_EOF.i|
|000020c0| 66 20 74 65 73 74 20 35 | 36 33 35 20 2d 6e 65 20 |f test 5|635 -ne |
|000020d0| 22 60 77 63 20 2d 63 20 | 3c 20 27 77 6d 2e 31 27 |"`wc -c |< 'wm.1'|
|000020e0| 60 22 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |`".then.|.echo sh|
|000020f0| 61 72 3a 20 65 72 72 6f | 72 20 74 72 61 6e 73 6d |ar: erro|r transm|
|00002100| 69 74 74 69 6e 67 20 22 | 27 77 6d 2e 31 27 22 20 |itting "|'wm.1'" |
|00002110| 27 28 73 68 6f 75 6c 64 | 20 68 61 76 65 20 62 65 |'(should| have be|
|00002120| 65 6e 20 35 36 33 35 20 | 63 68 61 72 61 63 74 65 |en 5635 |characte|
|00002130| 72 73 29 27 0a 66 69 0a | 66 69 20 23 20 65 6e 64 |rs)'.fi.|fi # end|
|00002140| 20 6f 66 20 6f 76 65 72 | 77 72 69 74 69 6e 67 20 | of over|writing |
|00002150| 63 68 65 63 6b 0a 65 63 | 68 6f 20 73 68 61 72 3a |check.ec|ho shar:|
|00002160| 20 65 78 74 72 61 63 74 | 69 6e 67 20 22 27 55 53 | extract|ing "'US|
|00002170| 49 4e 47 57 4d 27 22 20 | 27 28 31 37 33 31 39 20 |INGWM'" |'(17319 |
|00002180| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 69 66 20 |characte|rs)'.if |
|00002190| 74 65 73 74 20 2d 66 20 | 27 55 53 49 4e 47 57 4d |test -f |'USINGWM|
|000021a0| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|000021b0| 72 3a 20 77 69 6c 6c 20 | 6e 6f 74 20 6f 76 65 72 |r: will |not over|
|000021c0| 2d 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 20 |-write e|xisting |
|000021d0| 66 69 6c 65 20 22 27 55 | 53 49 4e 47 57 4d 27 22 |file "'U|SINGWM'"|
|000021e0| 0a 65 6c 73 65 0a 73 65 | 64 20 27 73 2f 5e 58 2f |.else.se|d 's/^X/|
|000021f0| 2f 27 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |/' << \S|HAR_EOF |
|00002200| 3e 20 27 55 53 49 4e 47 | 57 4d 27 0a 58 2e 54 4c |> 'USING|WM'.X.TL|
|00002210| 0a 48 6f 77 20 49 20 75 | 73 65 20 57 4d 0a 58 2e |.How I u|se WM.X.|
|00002220| 41 55 0a 54 6f 6d 20 54 | 72 75 73 63 6f 74 74 0a |AU.Tom T|ruscott.|
|00002230| 58 2e 41 49 0a 52 65 73 | 65 61 72 63 68 20 54 72 |X.AI.Res|earch Tr|
|00002240| 69 61 6e 67 6c 65 20 49 | 6e 73 74 69 74 75 74 65 |iangle I|nstitute|
|00002250| 0a 50 2e 4f 2e 20 42 6f | 78 20 31 32 31 39 34 0a |.P.O. Bo|x 12194.|
|00002260| 52 54 50 2c 20 4e 43 20 | 20 32 37 37 30 39 0a 28 |RTP, NC | 27709.(|
|00002270| 39 31 39 29 20 35 34 31 | 2d 37 30 30 35 0a 58 2e |919) 541|-7005.X.|
|00002280| 53 48 0a 58 53 74 61 72 | 74 69 6e 67 20 75 70 20 |SH.XStar|ting up |
|00002290| 77 6d 0a 58 2e 50 50 0a | 54 68 65 20 6c 61 73 74 |wm.X.PP.|The last|
|000022a0| 20 6c 69 6e 65 20 69 6e | 20 6d 79 20 2e 70 72 6f | line in| my .pro|
|000022b0| 66 69 6c 65 20 69 73 0a | 58 2e 44 53 0a 58 2e 66 |file is.|X.DS.X.f|
|000022c0| 74 20 50 4f 0a 65 78 65 | 63 20 77 6d 0a 58 2e 66 |t PO.exe|c wm.X.f|
|000022d0| 74 20 50 0a 58 2e 44 45 | 0a 77 68 69 63 68 20 70 |t P.X.DE|.which p|
|000022e0| 75 74 73 20 6d 65 20 69 | 6e 74 6f 20 74 68 65 20 |uts me i|nto the |
|000022f0| 77 69 6e 64 6f 77 20 6d | 61 6e 61 67 65 72 2c 0a |window m|anager,.|
|00002300| 73 6f 20 49 20 61 6d 20 | 61 6c 77 61 79 73 20 69 |so I am |always i|
|00002310| 6e 20 69 74 2e 0a 57 68 | 65 6e 20 49 20 6e 65 65 |n it..Wh|en I nee|
|00002320| 64 20 61 20 72 65 61 6c | 20 74 65 72 6d 69 6e 61 |d a real| termina|
|00002330| 6c 0a 28 65 2e 67 2e 20 | 74 6f 20 72 75 6e 20 60 |l.(e.g. |to run `|
|00002340| 74 61 6c 6b 27 29 0a 49 | 20 63 61 6e 20 74 79 70 |talk').I| can typ|
|00002350| 65 20 5c 66 49 3c 77 6d | 2d 65 73 63 3e 5c 66 50 |e \fI<wm|-esc>\fP|
|00002360| 7a 2e 0a 58 53 69 6e 63 | 65 20 49 20 67 6f 20 72 |z..XSinc|e I go r|
|00002370| 69 67 68 74 20 69 6e 74 | 6f 20 77 6d 0a 69 74 20 |ight int|o wm.it |
|00002380| 69 73 20 69 6d 70 6f 72 | 74 61 6e 74 0a 74 68 61 |is impor|tant.tha|
|00002390| 74 20 54 45 52 4d 20 62 | 65 20 73 65 74 20 63 6f |t TERM b|e set co|
|000023a0| 72 72 65 63 74 6c 79 2e | 0a 45 61 72 6c 69 65 72 |rrectly.|.Earlier|
|000023b0| 20 69 6e 20 6d 79 20 2e | 70 72 6f 66 69 6c 65 20 | in my .|profile |
|000023c0| 49 20 68 61 76 65 0a 58 | 2e 44 53 0a 58 2e 66 74 |I have.X|.DS.X.ft|
|000023d0| 20 50 4f 0a 65 78 70 6f | 72 74 20 54 45 52 4d 0a | PO.expo|rt TERM.|
|000023e0| 63 61 73 65 20 22 24 54 | 45 52 4d 22 20 69 6e 0a |case "$T|ERM" in.|
|000023f0| 73 77 7c 73 75 29 09 54 | 45 52 4d 3d 60 77 68 61 |sw|su).T|ERM=`wha|
|00002400| 74 74 65 72 6d 60 3b 3b | 0a 65 73 61 63 0a 58 2e |tterm`;;|.esac.X.|
|00002410| 66 74 20 50 0a 58 2e 44 | 45 0a 58 53 6f 20 74 68 |ft P.X.D|E.XSo th|
|00002420| 61 74 20 69 66 20 74 68 | 65 20 54 45 52 4d 20 76 |at if th|e TERM v|
|00002430| 61 72 69 61 62 6c 65 20 | 69 73 20 73 75 20 6f 72 |ariable |is su or|
|00002440| 20 73 77 20 28 64 61 74 | 61 53 57 69 74 63 68 29 | sw (dat|aSWitch)|
|00002450| 0a 4a 6f 68 6e 20 4d 65 | 6e 67 65 73 27 20 77 68 |.John Me|nges' wh|
|00002460| 61 74 74 65 72 6d 20 70 | 72 6f 67 72 61 6d 20 69 |atterm p|rogram i|
|00002470| 73 20 69 6e 76 6f 6b 65 | 64 20 74 6f 20 66 69 67 |s invoke|d to fig|
|00002480| 75 72 65 20 74 68 69 6e | 67 73 20 6f 75 74 2e 0a |ure thin|gs out..|
|00002490| 28 57 68 61 74 74 65 72 | 6d 20 64 65 70 65 6e 64 |(Whatter|m depend|
|000024a0| 73 20 6f 6e 20 74 68 65 | 0a 72 65 73 70 6f 6e 73 |s on the|.respons|
|000024b0| 65 20 63 68 61 72 61 63 | 74 65 72 69 73 74 69 63 |e charac|teristic|
|000024c0| 73 20 6f 66 20 61 20 64 | 6f 7a 65 6e 20 6f 72 20 |s of a d|ozen or |
|000024d0| 73 6f 20 74 65 72 6d 69 | 6e 61 6c 73 2e 0a 41 20 |so termi|nals..A |
|000024e0| 6d 6f 72 65 20 67 65 6e | 65 72 61 6c 20 76 65 72 |more gen|eral ver|
|000024f0| 73 69 6f 6e 2c 20 75 73 | 69 6e 67 20 61 20 60 72 |sion, us|ing a `r|
|00002500| 65 73 70 6f 6e 73 65 63 | 61 70 27 20 64 61 74 61 |esponsec|ap' data|
|00002510| 62 61 73 65 2c 0a 69 73 | 20 70 6c 61 6e 6e 65 64 |base,.is| planned|
|00002520| 2e 29 0a 57 68 61 74 74 | 65 72 6d 20 69 73 20 64 |.).Whatt|erm is d|
|00002530| 6f 6f 6d 65 64 20 74 6f | 20 66 61 69 6c 20 6f 6e |oomed to| fail on|
|00002540| 20 61 6e 20 41 44 4d 20 | 74 65 72 6d 69 6e 61 6c | an ADM |terminal|
|00002550| 0a 28 75 6e 6c 65 73 73 | 20 69 74 20 68 61 73 20 |.(unless| it has |
|00002560| 74 68 65 20 48 45 52 45 | 2d 49 53 20 6f 70 74 69 |the HERE|-IS opti|
|00002570| 6f 6e 29 0a 61 6e 64 20 | 61 6c 73 6f 20 66 61 69 |on).and |also fai|
|00002580| 6c 73 0a 69 66 20 74 68 | 65 20 75 73 65 72 20 69 |ls.if th|e user i|
|00002590| 73 20 61 6c 72 65 61 64 | 79 20 69 6e 20 77 6d 20 |s alread|y in wm |
|000025a0| 61 6e 64 20 61 6e 64 20 | 6c 6f 67 67 69 6e 67 20 |and and |logging |
|000025b0| 69 6e 20 74 6f 20 61 6e | 6f 74 68 65 72 20 63 6f |in to an|other co|
|000025c0| 6d 70 75 74 65 72 2c 0a | 62 65 63 61 75 73 65 20 |mputer,.|because |
|000025d0| 60 77 6d 27 20 69 74 73 | 65 6c 66 20 64 6f 65 73 |`wm' its|elf does|
|000025e0| 20 6e 6f 74 20 72 65 73 | 70 6f 6e 64 20 74 6f 20 | not res|pond to |
|000025f0| 61 6e 79 20 65 73 63 61 | 70 65 20 73 65 71 75 65 |any esca|pe seque|
|00002600| 6e 63 65 73 2e 0a 49 74 | 20 70 72 6f 62 61 62 6c |nces..It| probabl|
|00002610| 79 20 73 68 6f 75 6c 64 | 2c 20 73 6f 20 77 68 61 |y should|, so wha|
|00002620| 74 74 65 72 6d 20 77 69 | 6c 6c 20 77 6f 72 6b 21 |tterm wi|ll work!|
|00002630| 0a 41 63 74 75 61 6c 6c | 79 2c 20 6e 65 73 74 65 |.Actuall|y, neste|
|00002640| 64 20 69 6e 76 6f 63 61 | 74 69 6f 6e 73 20 6f 66 |d invoca|tions of|
|00002650| 20 77 6d 2c 20 77 68 69 | 6c 65 20 61 6d 75 73 69 | wm, whi|le amusi|
|00002660| 6e 67 2c 0a 61 72 65 20 | 70 72 6f 62 61 62 6c 79 |ng,.are |probably|
|00002670| 20 75 6e 6e 65 63 65 73 | 73 61 72 69 6c 79 20 63 | unneces|sarily c|
|00002680| 6f 6e 66 75 73 69 6e 67 | 2e 0a 58 2e 53 48 0a 43 |onfusing|..X.SH.C|
|00002690| 68 6f 6f 73 69 6e 67 20 | 77 69 6e 64 6f 77 20 6c |hoosing |window l|
|000026a0| 61 79 6f 75 74 0a 58 2e | 50 50 0a 54 68 61 74 20 |ayout.X.|PP.That |
|000026b0| 69 73 20 6c 61 72 67 65 | 6c 79 20 61 20 6d 61 74 |is large|ly a mat|
|000026c0| 74 65 72 20 6f 66 20 69 | 6e 64 69 76 69 64 75 61 |ter of i|ndividua|
|000026d0| 6c 20 74 61 73 74 65 2e | 0a 4d 79 20 60 60 23 31 |l taste.|.My ``#1|
|000026e0| 27 27 20 77 69 6e 64 6f | 77 20 69 73 20 66 75 6c |'' windo|w is ful|
|000026f0| 6c 2d 73 63 72 65 65 6e | 20 28 65 78 63 65 70 74 |l-screen| (except|
|00002700| 20 66 6f 72 20 74 68 65 | 20 62 6f 74 74 6f 6d 20 | for the| bottom |
|00002710| 6c 69 6e 65 29 2c 0a 6d | 79 20 23 32 20 77 69 6e |line),.m|y #2 win|
|00002720| 64 6f 77 20 69 73 20 74 | 68 65 20 74 6f 70 20 68 |dow is t|he top h|
|00002730| 61 6c 66 20 6f 66 20 74 | 68 65 20 73 63 72 65 65 |alf of t|he scree|
|00002740| 6e 20 61 6e 64 20 6d 79 | 20 23 33 0a 77 69 6e 64 |n and my| #3.wind|
|00002750| 6f 77 20 69 73 20 74 68 | 65 20 62 6f 74 74 6f 6d |ow is th|e bottom|
|00002760| 20 68 61 6c 66 20 28 77 | 69 74 68 20 61 6e 20 75 | half (w|ith an u|
|00002770| 6e 75 73 65 64 20 6c 69 | 6e 65 20 62 65 74 77 65 |nused li|ne betwe|
|00002780| 65 6e 20 74 68 65 6d 29 | 2c 0a 61 6e 64 20 6d 79 |en them)|,.and my|
|00002790| 20 23 34 20 77 69 6e 64 | 6f 77 20 69 73 20 6a 75 | #4 wind|ow is ju|
|000027a0| 73 74 20 6c 69 6b 65 20 | 23 31 2e 0a 49 20 61 6d |st like |#1..I am|
|000027b0| 20 6e 6f 72 6d 61 6c 6c | 79 20 28 39 39 25 29 20 | normall|y (99%) |
|000027c0| 69 6e 20 74 68 65 20 23 | 31 20 77 69 6e 64 6f 77 |in the #|1 window|
|000027d0| 20 61 6e 64 20 61 6d 20 | 67 65 6e 65 72 61 6c 6c | and am |generall|
|000027e0| 79 0a 75 6e 61 77 61 72 | 65 20 6f 66 20 74 68 65 |y.unawar|e of the|
|000027f0| 20 65 78 69 73 74 65 6e | 63 65 20 6f 66 20 77 6d | existen|ce of wm|
|00002800| 2e 0a 42 75 74 20 77 68 | 65 6e 20 49 20 77 61 6e |..But wh|en I wan|
|00002810| 74 0a 74 6f 20 65 73 63 | 61 70 65 20 66 72 6f 6d |t.to esc|ape from|
|00002820| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 77 69 6e | the cur|rent win|
|00002830| 64 6f 77 20 49 20 63 61 | 6e 20 63 68 61 6e 67 65 |dow I ca|n change|
|00002840| 20 74 6f 20 77 69 6e 64 | 6f 77 20 23 34 0a 74 6f | to wind|ow #4.to|
|00002850| 20 67 65 74 20 61 20 66 | 72 65 73 68 20 73 63 72 | get a f|resh scr|
|00002860| 65 65 6e 20 28 6f 6e 65 | 20 77 6d 20 6e 75 69 73 |een (one| wm nuis|
|00002870| 61 6e 63 65 20 69 73 0a | 74 68 61 74 20 69 74 20 |ance is.|that it |
|00002880| 70 75 74 73 20 6d 65 20 | 62 61 63 6b 20 69 6e 20 |puts me |back in |
|00002890| 6d 79 20 68 6f 6d 65 20 | 64 69 72 65 63 74 6f 72 |my home |director|
|000028a0| 79 20 6f 6e 20 6d 79 20 | 68 6f 6d 65 20 6d 61 63 |y on my |home mac|
|000028b0| 68 69 6e 65 29 2e 0a 4f | 72 20 69 66 20 49 20 77 |hine)..O|r if I w|
|000028c0| 61 6e 74 20 73 70 6c 69 | 74 20 73 63 72 65 65 6e |ant spli|t screen|
|000028d0| 73 2c 20 73 61 79 20 66 | 6f 72 20 64 65 62 75 67 |s, say f|or debug|
|000028e0| 67 69 6e 67 20 6f 72 20 | 66 69 6c 65 20 63 6f 6d |ging or |file com|
|000028f0| 70 61 72 69 73 6f 6e 2c | 0a 49 20 63 61 6e 20 63 |parison,|.I can c|
|00002900| 68 61 6e 67 65 20 74 6f | 20 77 69 6e 64 6f 77 20 |hange to| window |
|00002910| 23 32 20 61 6e 64 20 74 | 68 65 6e 20 61 6c 74 65 |#2 and t|hen alte|
|00002920| 72 6e 61 74 65 20 62 65 | 74 77 65 65 6e 20 23 32 |rnate be|tween #2|
|00002930| 20 61 6e 64 20 23 33 2e | 0a 49 20 74 68 69 6e 6b | and #3.|.I think|
|00002940| 20 6f 66 20 68 61 76 69 | 6e 67 20 74 68 72 65 65 | of havi|ng three|
|00002950| 20 77 69 6e 64 6f 77 20 | 6c 61 79 65 72 73 2c 20 | window |layers, |
|00002960| 74 68 65 20 23 31 20 6c | 61 79 65 72 2c 0a 74 68 |the #1 l|ayer,.th|
|00002970| 65 20 23 32 2f 23 33 20 | 6c 61 79 65 72 2c 20 61 |e #2/#3 |layer, a|
|00002980| 6e 64 20 74 68 65 20 23 | 34 20 6c 61 79 65 72 2e |nd the #|4 layer.|
|00002990| 0a 28 49 6e 20 72 65 61 | 6c 69 74 79 2c 20 77 6d |.(In rea|lity, wm|
|000029a0| 20 6d 61 69 6e 74 61 69 | 6e 73 20 61 20 77 69 6e | maintai|ns a win|
|000029b0| 64 6f 77 20 64 69 73 70 | 6c 61 79 20 6f 72 64 65 |dow disp|lay orde|
|000029c0| 72 2c 0a 61 6e 64 20 63 | 68 61 6e 67 69 6e 67 20 |r,.and c|hanging |
|000029d0| 74 6f 20 61 20 77 69 6e | 64 6f 77 20 70 75 74 73 |to a win|dow puts|
|000029e0| 20 74 68 61 74 20 77 69 | 6e 64 6f 77 20 6f 6e 20 | that wi|ndow on |
|000029f0| 60 74 6f 70 27 2c 0a 73 | 6f 20 74 68 65 72 65 20 |`top',.s|o there |
|00002a00| 69 73 20 6e 6f 74 20 72 | 65 61 6c 6c 79 20 61 20 |is not r|eally a |
|00002a10| 23 32 2f 23 33 20 6c 61 | 79 65 72 2e 29 0a 4f 6e |#2/#3 la|yer.).On|
|00002a20| 20 61 20 36 36 20 6c 69 | 6e 65 20 64 69 73 70 6c | a 66 li|ne displ|
|00002a30| 61 79 20 49 20 62 65 74 | 20 74 68 69 6e 67 73 20 |ay I bet| things |
|00002a40| 77 6f 75 6c 64 20 62 65 | 20 6d 75 63 68 20 6e 69 |would be| much ni|
|00002a50| 63 65 72 2e 0a 58 53 6f | 6d 65 20 70 65 6f 70 6c |cer..XSo|me peopl|
|00002a60| 65 20 68 61 76 65 20 61 | 20 77 69 6e 64 6f 77 20 |e have a| window |
|00002a70| 77 68 69 63 68 20 63 6f | 76 65 72 73 20 61 6c 6c |which co|vers all|
|00002a80| 20 62 75 74 20 74 68 65 | 20 74 6f 70 20 6c 69 6e | but the| top lin|
|00002a90| 65 2c 0a 73 6f 20 74 68 | 65 79 20 63 61 6e 20 70 |e,.so th|ey can p|
|00002aa0| 75 74 20 61 20 63 6c 6f | 63 6b 20 6f 72 20 70 65 |ut a clo|ck or pe|
|00002ab0| 72 69 6f 64 69 63 20 60 | 75 70 74 69 6d 65 27 20 |riodic `|uptime' |
|00002ac0| 69 6e 20 74 68 65 20 74 | 6f 70 20 6c 69 6e 65 2e |in the t|op line.|
|00002ad0| 0a 28 4e 6f 74 65 3a 20 | 74 77 6f 20 77 69 6e 64 |.(Note: |two wind|
|00002ae0| 6f 77 73 20 5c 66 49 6d | 75 73 74 5c 66 50 20 68 |ows \fIm|ust\fP h|
|00002af0| 61 76 65 20 61 6e 20 75 | 6e 75 73 65 64 20 6c 69 |ave an u|nused li|
|00002b00| 6e 65 20 62 65 74 77 65 | 65 6e 20 74 68 65 6d 0a |ne betwe|en them.|
|00002b10| 6f 72 20 65 6c 73 65 20 | 74 68 65 79 20 63 61 6e |or else |they can|
|00002b20| 6e 6f 74 20 62 65 20 75 | 73 65 64 20 66 6f 72 20 |not be u|sed for |
|00002b30| 73 69 6d 75 6c 74 61 6e | 65 6f 75 73 20 64 69 73 |simultan|eous dis|
|00002b40| 70 6c 61 79 73 2e 29 0a | 41 6c 73 6f 2c 20 73 6f |plays.).|Also, so|
|00002b50| 6d 65 20 70 65 6f 70 6c | 65 20 63 68 61 6e 67 65 |me peopl|e change|
|00002b60| 20 74 68 65 20 77 6d 20 | 70 72 65 66 69 78 20 63 | the wm |prefix c|
|00002b70| 68 61 72 61 63 74 65 72 | 20 74 6f 20 60 5e 57 27 |haracter| to `^W'|
|00002b80| 20 6f 72 20 60 5e 50 27 | 0a 73 6f 20 74 68 61 74 | or `^P'|.so that|
|00002b90| 20 60 76 69 27 20 69 73 | 20 65 61 73 69 65 72 20 | `vi' is| easier |
|00002ba0| 74 6f 20 75 73 65 2e 0a | 58 2e 50 50 0a 54 68 65 |to use..|X.PP.The|
|00002bb0| 20 75 6e 64 6f 63 75 6d | 65 6e 74 65 64 20 65 78 | undocum|ented ex|
|00002bc0| 70 65 72 69 6d 65 6e 74 | 61 6c 20 5c 66 49 3c 77 |periment|al \fI<w|
|00002bd0| 6d 2d 65 73 63 3e 5c 66 | 50 66 20 28 60 66 69 74 |m-esc>\f|Pf (`fit|
|00002be0| 27 29 20 63 6f 6d 6d 61 | 6e 64 20 69 73 20 61 6c |') comma|nd is al|
|00002bf0| 73 6f 20 68 61 6e 64 79 | 2e 0a 58 46 6f 72 20 65 |so handy|..XFor e|
|00002c00| 78 61 6d 70 6c 65 2c 20 | 73 75 70 70 6f 73 65 20 |xample, |suppose |
|00002c10| 49 20 61 6d 20 69 6e 20 | 6d 79 20 23 31 20 77 69 |I am in |my #1 wi|
|00002c20| 6e 64 6f 77 20 61 6e 64 | 20 74 79 70 65 20 60 60 |ndow and| type ``|
|00002c30| 6d 61 6b 65 27 27 2e 0a | 49 74 20 6d 69 67 68 74 |make''..|It might|
|00002c40| 20 74 61 6b 65 20 61 20 | 77 68 69 6c 65 2c 20 73 | take a |while, s|
|00002c50| 6f 20 49 20 77 6f 75 6c | 64 20 6c 69 6b 65 20 74 |o I woul|d like t|
|00002c60| 6f 20 73 77 69 74 63 68 | 20 74 6f 20 61 6e 6f 74 |o switch| to anot|
|00002c70| 68 65 72 20 77 69 6e 64 | 6f 77 0a 61 6e 64 20 72 |her wind|ow.and r|
|00002c80| 65 61 64 20 6e 65 77 73 | 2e 0a 42 75 74 20 49 20 |ead news|..But I |
|00002c90| 77 6f 75 6c 64 20 61 6c | 73 6f 20 6c 69 6b 65 20 |would al|so like |
|00002ca0| 74 6f 20 73 65 65 20 74 | 68 65 20 70 72 6f 67 72 |to see t|he progr|
|00002cb0| 65 73 73 20 6f 66 20 74 | 68 65 20 6d 61 6b 65 2e |ess of t|he make.|
|00002cc0| 0a 58 53 6f 20 49 20 73 | 77 69 74 63 68 20 74 6f |.XSo I s|witch to|
|00002cd0| 20 61 20 68 61 6c 66 2d | 73 63 72 65 65 6e 20 77 | a half-|screen w|
|00002ce0| 69 6e 64 6f 77 20 61 6e | 64 20 74 79 70 65 20 60 |indow an|d type `|
|00002cf0| 5c 66 49 3c 77 6d 2d 65 | 73 63 3e 5c 66 50 66 20 |\fI<wm-e|sc>\fPf |
|00002d00| 31 27 2c 0a 77 68 69 63 | 68 20 72 65 6c 6f 63 61 |1',.whic|h reloca|
|00002d10| 74 65 73 20 74 68 65 20 | 23 31 20 77 69 6e 64 6f |tes the |#1 windo|
|00002d20| 77 20 73 6f 20 74 68 61 | 74 20 69 74 20 69 73 20 |w so tha|t it is |
|00002d30| 6e 6f 20 6c 6f 6e 67 65 | 72 20 6f 62 73 63 75 72 |no longe|r obscur|
|00002d40| 65 64 2e 0a 4e 6f 77 20 | 49 20 63 61 6e 20 72 65 |ed..Now |I can re|
|00002d50| 61 64 20 6e 65 77 73 20 | 61 6e 64 20 6b 65 65 70 |ad news |and keep|
|00002d60| 20 75 70 20 77 69 74 68 | 20 74 68 65 20 60 60 6d | up with| the ``m|
|00002d70| 61 6b 65 27 27 20 61 74 | 20 74 68 65 20 73 61 6d |ake'' at| the sam|
|00002d80| 65 20 74 69 6d 65 2e 0a | 54 68 69 73 20 63 61 6e |e time..|This can|
|00002d90| 20 72 65 61 6c 6c 79 20 | 6a 75 6d 62 6c 65 20 75 | really |jumble u|
|00002da0| 70 20 74 68 65 20 77 69 | 6e 64 6f 77 73 2c 0a 62 |p the wi|ndows,.b|
|00002db0| 75 74 20 69 6e 20 74 68 | 69 73 20 63 61 73 65 20 |ut in th|is case |
|00002dc0| 49 20 63 61 6e 20 63 68 | 61 6e 67 65 20 62 61 63 |I can ch|ange bac|
|00002dd0| 6b 20 74 6f 20 23 31 0a | 61 6e 64 20 64 6f 20 61 |k to #1.|and do a|
|00002de0| 20 60 5c 66 49 3c 77 6d | 2d 65 73 63 3e 5c 66 50 | `\fI<wm|-esc>\fP|
|00002df0| 66 20 31 27 20 74 6f 20 | 6d 61 6b 65 20 69 74 20 |f 1' to |make it |
|00002e00| 66 75 6c 6c 2d 73 63 72 | 65 65 6e 20 61 67 61 69 |full-scr|een agai|
|00002e10| 6e 2e 0a 58 2e 53 48 0a | 57 69 6e 64 6f 77 20 60 |n..X.SH.|Window `|
|00002e20| 60 50 65 72 66 6f 72 6d | 61 6e 63 65 27 27 20 43 |`Perform|ance'' C|
|00002e30| 6f 6e 73 69 64 65 72 61 | 74 69 6f 6e 73 0a 58 2e |onsidera|tions.X.|
|00002e40| 50 50 0a 54 68 65 72 65 | 20 61 72 65 20 73 6f 6d |PP.There| are som|
|00002e50| 65 20 69 6d 70 6f 72 74 | 61 6e 74 20 70 65 72 66 |e import|ant perf|
|00002e60| 6f 72 6d 61 6e 63 65 20 | 64 65 74 61 69 6c 73 20 |ormance |details |
|00002e70| 74 6f 20 63 6f 6e 73 69 | 64 65 72 2e 0a 58 46 69 |to consi|der..XFi|
|00002e80| 72 73 74 2c 20 79 6f 75 | 72 20 74 65 72 6d 69 6e |rst, you|r termin|
|00002e90| 61 6c 20 6e 65 65 64 73 | 20 69 6e 73 65 72 74 2d |al needs| insert-|
|00002ea0| 6c 69 6e 65 2f 64 65 6c | 65 74 65 2d 6c 69 6e 65 |line/del|ete-line|
|00002eb0| 0a 6f 72 20 73 63 72 6f | 6c 6c 69 6e 67 20 72 65 |.or scro|lling re|
|00002ec0| 67 69 6f 6e 20 73 75 70 | 70 6f 72 74 20 66 6f 72 |gion sup|port for|
|00002ed0| 20 77 6d 20 74 6f 20 77 | 6f 72 6b 20 77 65 6c 6c | wm to w|ork well|
|00002ee0| 0a 6f 6e 20 61 6e 79 74 | 68 69 6e 67 20 62 75 74 |.on anyt|hing but|
|00002ef0| 20 66 75 6c 6c 2d 73 63 | 72 65 65 6e 20 77 69 6e | full-sc|reen win|
|00002f00| 64 6f 77 73 2e 0a 49 6e | 20 70 61 72 74 69 63 75 |dows..In| particu|
|00002f10| 6c 61 72 2c 20 6d 79 20 | 23 32 2f 23 33 20 77 69 |lar, my |#2/#3 wi|
|00002f20| 6e 64 6f 77 73 20 61 72 | 65 20 73 6c 6f 6f 77 77 |ndows ar|e slooww|
|00002f30| 77 20 77 69 74 68 6f 75 | 74 20 73 75 63 68 20 73 |w withou|t such s|
|00002f40| 75 70 70 6f 72 74 2e 0a | 54 68 65 20 73 63 72 6f |upport..|The scro|
|00002f50| 6c 6c 69 6e 67 20 72 65 | 67 69 6f 6e 20 69 73 20 |lling re|gion is |
|00002f60| 62 65 73 74 20 62 65 63 | 61 75 73 65 20 77 69 74 |best bec|ause wit|
|00002f70| 68 20 69 6e 73 65 72 74 | 2f 64 65 6c 65 74 65 2d |h insert|/delete-|
|00002f80| 6c 69 6e 65 0a 73 63 72 | 6f 6c 6c 69 6e 67 20 69 |line.scr|olling i|
|00002f90| 6e 20 74 68 65 20 23 32 | 20 77 69 6e 64 6f 77 20 |n the #2| window |
|00002fa0| 63 61 75 73 65 73 20 74 | 68 65 20 23 33 20 77 69 |causes t|he #3 wi|
|00002fb0| 6e 64 6f 77 20 74 6f 20 | 6a 69 74 74 65 72 20 75 |ndow to |jitter u|
|00002fc0| 70 20 61 6e 64 20 64 6f | 77 6e 2e 0a 42 79 20 74 |p and do|wn..By t|
|00002fd0| 68 65 20 77 61 79 2c 20 | 74 68 65 20 73 63 72 6f |he way, |the scro|
|00002fe0| 6c 6c 69 6e 67 20 72 65 | 67 69 6f 6e 20 63 61 70 |lling re|gion cap|
|00002ff0| 61 62 69 6c 69 74 79 20 | 69 73 20 6f 66 74 65 6e |ability |is often|
|00003000| 20 6f 6d 69 74 74 65 64 | 20 69 6e 0a 6d 61 6e 79 | omitted| in.many|
|00003010| 20 74 65 72 6d 63 61 70 | 20 65 6e 74 72 69 65 73 | termcap| entries|
|00003020| 2c 20 73 6f 20 79 6f 75 | 20 6d 69 67 68 74 20 6e |, so you| might n|
|00003030| 65 65 64 20 74 6f 20 70 | 75 74 20 69 74 20 69 6e |eed to p|ut it in|
|00003040| 2e 0a 48 65 72 65 20 69 | 73 20 74 68 65 20 72 65 |..Here i|s the re|
|00003050| 6c 65 76 61 6e 74 20 76 | 74 31 30 30 20 73 74 75 |levant v|t100 stu|
|00003060| 66 66 2c 20 77 68 69 63 | 68 20 69 73 20 70 72 6f |ff, whic|h is pro|
|00003070| 62 61 62 6c 79 20 74 68 | 65 0a 6f 6e 6c 79 20 73 |bably th|e.only s|
|00003080| 63 72 6f 6c 6c 69 6e 67 | 20 72 65 67 69 6f 6e 20 |crolling| region |
|00003090| 73 75 70 70 6f 72 74 20 | 79 6f 75 20 61 72 65 20 |support |you are |
|000030a0| 6c 69 6b 65 6c 79 20 74 | 6f 20 66 69 6e 64 3a 0a |likely t|o find:.|
|000030b0| 58 2e 44 53 0a 58 2e 66 | 74 20 50 4f 0a 58 2e 5c |X.DS.X.f|t PO.X.\|
|000030c0| 22 20 6e 6f 74 65 3a 20 | 74 68 65 20 27 5c 65 27 |" note: |the '\e'|
|000030d0| 20 62 65 6c 6f 77 20 69 | 73 20 74 72 6f 66 66 27 | below i|s troff'|
|000030e0| 73 20 77 61 79 20 6f 66 | 20 73 61 79 69 6e 67 20 |s way of| saying |
|000030f0| 27 5c 27 0a 3a 73 63 3d | 5c 65 45 37 3a 72 63 3d |'\'.:sc=|\eE7:rc=|
|00003100| 5c 65 45 38 3a 63 73 3d | 5c 65 45 5b 25 69 25 64 |\eE8:cs=|\eE[%i%d|
|00003110| 3b 25 64 72 3a 73 72 3d | 35 5c 65 45 4d 3a 0a 58 |;%dr:sr=|5\eEM:.X|
|00003120| 2e 66 74 20 50 0a 58 2e | 44 45 0a 58 46 6f 72 20 |.ft P.X.|DE.XFor |
|00003130| 6e 6f 77 2c 20 61 6c 6c | 20 6f 66 20 60 60 63 73 |now, all| of ``cs|
|00003140| 27 27 2c 20 60 60 73 63 | 27 27 2c 20 60 60 72 63 |'', ``sc|'', ``rc|
|00003150| 27 27 2c 20 61 6e 64 20 | 60 60 73 72 27 27 20 6d |'', and |``sr'' m|
|00003160| 75 73 74 20 62 65 20 73 | 70 65 63 69 66 69 65 64 |ust be s|pecified|
|00003170| 0a 6f 72 20 77 6d 20 77 | 69 6c 6c 20 6e 6f 74 20 |.or wm w|ill not |
|00003180| 75 73 65 20 73 63 72 6f | 6c 6c 69 6e 67 20 72 65 |use scro|lling re|
|00003190| 67 69 6f 6e 73 2e 0a 58 | 2e 50 50 0a 42 79 20 61 |gions..X|.PP.By a|
|000031a0| 6c 6c 20 6d 65 61 6e 73 | 20 79 6f 75 20 73 68 6f |ll means| you sho|
|000031b0| 75 6c 64 20 6d 61 6b 65 | 20 77 69 6e 64 6f 77 73 |uld make| windows|
|000031c0| 20 62 65 20 74 68 65 20 | 66 75 6c 6c 20 77 69 64 | be the |full wid|
|000031d0| 74 68 20 6f 66 20 74 68 | 65 20 73 63 72 65 65 6e |th of th|e screen|
|000031e0| 2e 0a 57 69 74 68 6f 75 | 74 20 74 68 61 74 20 77 |..Withou|t that w|
|000031f0| 6d 20 73 63 72 6f 6c 6c | 73 20 62 79 20 72 65 64 |m scroll|s by red|
|00003200| 72 61 77 69 6e 67 20 74 | 68 65 20 77 68 6f 6c 65 |rawing t|he whole|
|00003210| 20 77 69 6e 64 6f 77 2e | 0a 54 68 65 20 70 61 69 | window.|.The pai|
|00003220| 6e 66 75 6c 20 73 6c 6f | 77 6e 65 73 73 20 69 73 |nful slo|wness is|
|00003230| 20 74 6f 6c 65 72 61 62 | 6c 65 20 66 6f 72 20 73 | tolerab|le for s|
|00003240| 6d 61 6c 6c 65 72 20 77 | 69 6e 64 6f 77 73 2c 0a |maller w|indows,.|
|00003250| 61 6e 64 20 61 6c 73 6f | 20 66 6f 72 20 66 61 73 |and also| for fas|
|00003260| 74 65 72 20 74 65 72 6d | 69 6e 61 6c 20 73 70 65 |ter term|inal spe|
|00003270| 65 64 73 2e 0a 4d 79 20 | 6f 66 66 69 63 65 20 74 |eds..My |office t|
|00003280| 65 72 6d 69 6e 61 6c 20 | 69 73 20 61 74 20 34 38 |erminal |is at 48|
|00003290| 30 30 20 62 61 75 64 2c | 20 61 6e 64 20 77 6d 20 |00 baud,| and wm |
|000032a0| 69 73 20 6f 6b 61 79 20 | 61 74 20 74 68 61 74 20 |is okay |at that |
|000032b0| 73 70 65 65 64 2c 0a 62 | 75 74 20 65 76 65 6e 20 |speed,.b|ut even |
|000032c0| 31 39 32 30 30 20 69 73 | 20 70 72 6f 62 61 62 6c |19200 is| probabl|
|000032d0| 79 20 74 6f 6f 20 73 6c | 6f 77 20 66 6f 72 20 61 |y too sl|ow for a|
|000032e0| 20 77 69 6e 64 6f 77 20 | 74 68 61 74 20 69 73 20 | window |that is |
|000032f0| 66 75 6c 6c 2d 73 63 72 | 65 65 6e 0a 65 78 63 65 |full-scr|een.exce|
|00003300| 70 74 20 66 6f 72 20 74 | 68 65 20 72 69 67 68 74 |pt for t|he right|
|00003310| 2d 6d 6f 73 74 20 63 6f | 6c 75 6d 6e 2e 0a 58 2e |-most co|lumn..X.|
|00003320| 53 48 0a 57 4d 20 45 6e | 68 61 6e 63 65 6d 65 6e |SH.WM En|hancemen|
|00003330| 74 73 0a 58 2e 50 50 0a | 54 68 65 20 60 60 48 61 |ts.X.PP.|The ``Ha|
|00003340| 63 6b 69 6e 67 20 57 4d | 27 27 20 64 6f 63 75 6d |cking WM|'' docum|
|00003350| 65 6e 74 20 6d 65 6e 74 | 69 6f 6e 73 20 73 65 76 |ent ment|ions sev|
|00003360| 65 72 61 6c 20 70 6f 73 | 73 69 62 6c 65 20 65 6e |eral pos|sible en|
|00003370| 68 61 6e 63 65 6d 65 6e | 74 73 2e 0a 58 53 75 67 |hancemen|ts..XSug|
|00003380| 67 65 73 74 69 6f 6e 73 | 20 66 6f 72 20 6f 74 68 |gestions| for oth|
|00003390| 65 72 20 69 6d 70 72 6f | 76 65 6d 65 6e 74 73 20 |er impro|vements |
|000033a0| 74 6f 20 77 6d 20 61 72 | 65 20 77 65 6c 63 6f 6d |to wm ar|e welcom|
|000033b0| 65 2e 0a 43 6f 64 65 20 | 66 6f 72 20 61 6e 79 20 |e..Code |for any |
|000033c0| 6e 65 77 20 69 6d 70 72 | 6f 76 65 6d 65 6e 74 73 |new impr|ovements|
|000033d0| 20 61 72 65 20 65 76 65 | 6e 20 6d 6f 72 65 20 77 | are eve|n more w|
|000033e0| 65 6c 63 6f 6d 65 21 0a | 58 2e 62 70 0a 58 2e 54 |elcome!.|X.bp.X.T|
|000033f0| 4c 0a 48 61 63 6b 69 6e | 67 20 57 4d 0a 28 4f 62 |L.Hackin|g WM.(Ob|
|00003400| 73 63 75 72 65 20 44 65 | 74 61 69 6c 73 20 66 6f |scure De|tails fo|
|00003410| 72 20 74 68 65 20 48 61 | 72 64 2d 43 6f 72 65 20 |r the Ha|rd-Core |
|00003420| 55 73 65 72 29 0a 58 2e | 41 55 0a 54 6f 6d 20 54 |User).X.|AU.Tom T|
|00003430| 72 75 73 63 6f 74 74 0a | 58 2e 41 49 0a 52 65 73 |ruscott.|X.AI.Res|
|00003440| 65 61 72 63 68 20 54 72 | 69 61 6e 67 6c 65 20 49 |earch Tr|iangle I|
|00003450| 6e 73 74 69 74 75 74 65 | 0a 50 2e 4f 2e 20 42 6f |nstitute|.P.O. Bo|
|00003460| 78 20 31 32 31 39 34 0a | 52 54 50 2c 20 4e 43 20 |x 12194.|RTP, NC |
|00003470| 20 32 37 37 30 39 0a 28 | 39 31 39 29 20 35 34 31 | 27709.(|919) 541|
|00003480| 2d 37 30 30 35 0a 58 2e | 53 48 0a 49 6e 20 50 72 |-7005.X.|SH.In Pr|
|00003490| 61 69 73 65 20 6f 66 20 | 4d 61 74 74 20 4c 65 6e |aise of |Matt Len|
|000034a0| 6e 6f 6e 0a 58 2e 50 50 | 0a 4d 61 74 74 20 4c 65 |non.X.PP|.Matt Le|
|000034b0| 6e 6e 6f 6e 20 74 6f 6f | 6b 20 61 6e 20 69 6e 74 |nnon too|k an int|
|000034c0| 65 72 65 73 74 20 69 6e | 20 52 6f 62 65 72 74 20 |erest in| Robert |
|000034d0| 4a 61 63 6f 62 27 73 20 | 55 73 65 6e 65 74 20 77 |Jacob's |Usenet w|
|000034e0| 6d 20 64 69 73 74 72 69 | 62 75 74 69 6f 6e 2c 0a |m distri|bution,.|
|000034f0| 67 6f 74 20 69 74 20 72 | 75 6e 6e 69 6e 67 20 68 |got it r|unning h|
|00003500| 65 72 65 2c 20 61 6e 64 | 20 74 61 6c 6b 65 64 20 |ere, and| talked |
|00003510| 6f 74 68 65 72 73 20 69 | 6e 74 6f 20 74 72 79 69 |others i|nto tryi|
|00003520| 6e 67 20 69 74 20 6f 75 | 74 2e 0a 58 46 72 61 6e |ng it ou|t..XFran|
|00003530| 6b 6c 79 2c 20 74 68 65 | 20 6f 72 69 67 69 6e 61 |kly, the| origina|
|00003540| 6c 20 76 65 72 73 69 6f | 6e 20 77 61 73 20 74 6f |l versio|n was to|
|00003550| 6f 20 73 6c 6f 77 20 74 | 6f 20 62 65 20 75 73 61 |o slow t|o be usa|
|00003560| 62 6c 65 2c 0a 61 6c 74 | 68 6f 75 67 68 20 69 74 |ble,.alt|hough it|
|00003570| 20 77 61 73 20 69 6e 64 | 65 65 64 20 69 6e 74 65 | was ind|eed inte|
|00003580| 72 65 73 74 69 6e 67 2e | 0a 28 50 65 72 68 61 70 |resting.|.(Perhap|
|00003590| 73 20 6d 6f 73 74 20 69 | 6e 74 65 72 65 73 74 69 |s most i|nteresti|
|000035a0| 6e 67 20 6f 66 20 61 6c | 6c 20 77 61 73 20 74 68 |ng of al|l was th|
|000035b0| 61 74 20 4a 61 63 6f 62 | 20 68 61 64 20 61 20 76 |at Jacob| had a v|
|000035c0| 65 72 73 69 6f 6e 0a 6f | 66 20 77 6d 20 72 75 6e |ersion.o|f wm run|
|000035d0| 6e 69 6e 67 20 75 6e 64 | 65 72 20 55 4e 49 58 20 |ning und|er UNIX |
|000035e0| 56 36 21 29 0a 4d 61 74 | 74 20 72 65 6f 72 67 61 |V6!).Mat|t reorga|
|000035f0| 6e 69 7a 65 64 20 74 68 | 65 20 70 72 6f 67 72 61 |nized th|e progra|
|00003600| 6d 20 69 6e 74 65 72 6e | 61 6c 6c 79 20 61 6e 64 |m intern|ally and|
|00003610| 20 70 75 74 20 69 6e 20 | 74 68 65 20 66 69 72 73 | put in |the firs|
|00003620| 74 0a 6f 66 20 61 20 73 | 65 72 69 65 73 20 6f 66 |t.of a s|eries of|
|00003630| 20 73 63 72 6f 6c 6c 69 | 6e 67 20 68 61 63 6b 73 | scrolli|ng hacks|
|00003640| 20 28 69 6e 20 57 4d 69 | 6e 73 65 72 74 6c 6e 20 | (in WMi|nsertln |
|00003650| 61 6e 64 20 57 4d 64 65 | 6c 65 74 65 6c 6e 29 2e |and WMde|leteln).|
|00003660| 0a 54 68 65 20 72 65 73 | 75 6c 74 69 6e 67 20 70 |.The res|ulting p|
|00003670| 72 6f 67 72 61 6d 20 73 | 68 61 72 65 73 20 77 69 |rogram s|hares wi|
|00003680| 74 68 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |th the o|riginal |
|00003690| 77 6d 20 61 20 73 69 6d | 70 6c 69 63 69 74 79 20 |wm a sim|plicity |
|000036a0| 6f 66 20 64 65 73 69 67 | 6e 0a 74 68 61 74 20 69 |of desig|n.that i|
|000036b0| 73 20 69 6d 70 6f 72 74 | 61 6e 74 20 69 6e 20 61 |s import|ant in a|
|000036c0| 6e 79 20 70 72 6f 67 72 | 61 6d 2c 20 62 75 74 20 |ny progr|am, but |
|000036d0| 70 61 72 74 69 63 75 6c | 61 72 6c 79 20 69 6e 20 |particul|arly in |
|000036e0| 61 20 77 69 6e 64 6f 77 | 20 6d 61 6e 61 67 65 72 |a window| manager|
|000036f0| 2e 0a 49 20 74 68 69 6e | 6b 20 6f 66 20 74 68 65 |..I thin|k of the|
|00003700| 20 72 65 76 69 73 65 64 | 20 77 6d 20 61 73 20 74 | revised| wm as t|
|00003710| 68 65 20 60 60 41 27 27 | 20 76 65 72 73 69 6f 6e |he ``A''| version|
|00003720| 2e 0a 49 20 61 6d 20 61 | 66 72 61 69 64 20 61 20 |..I am a|fraid a |
|00003730| 60 60 42 27 27 20 76 65 | 72 73 69 6f 6e 20 77 69 |``B'' ve|rsion wi|
|00003740| 6c 6c 20 62 65 20 61 6c | 6f 6e 67 20 61 6c 6c 20 |ll be al|ong all |
|00003750| 74 6f 6f 20 73 6f 6f 6e | 2e 0a 58 2e 53 48 0a 50 |too soon|..X.SH.P|
|00003760| 72 6f 62 6c 65 6d 73 20 | 77 69 74 68 20 52 75 6e |roblems |with Run|
|00003770| 6e 69 6e 67 20 50 72 6f | 67 72 61 6d 73 20 75 6e |ning Pro|grams un|
|00003780| 64 65 72 20 57 4d 0a 58 | 2e 50 50 0a 54 68 65 72 |der WM.X|.PP.Ther|
|00003790| 65 20 61 72 65 20 74 68 | 72 65 65 20 63 6f 6d 6d |e are th|ree comm|
|000037a0| 6f 6e 20 70 72 6f 62 6c | 65 6d 73 20 77 68 65 6e |on probl|ems when|
|000037b0| 20 72 75 6e 6e 69 6e 67 | 20 70 72 6f 67 72 61 6d | running| program|
|000037c0| 73 20 75 6e 64 65 72 20 | 77 6d 2e 0a 4f 6e 65 20 |s under |wm..One |
|000037d0| 70 72 6f 62 6c 65 6d 20 | 69 73 20 74 68 61 74 20 |problem |is that |
|000037e0| 73 6f 6d 65 20 70 72 6f | 67 72 61 6d 73 20 61 73 |some pro|grams as|
|000037f0| 73 75 6d 65 0a 74 68 65 | 20 73 63 72 65 65 6e 20 |sume.the| screen |
|00003800| 69 73 20 61 74 20 6c 65 | 61 73 74 20 73 6f 6d 65 |is at le|ast some|
|00003810| 20 6d 69 6e 69 6d 75 6d | 20 73 69 7a 65 2c 20 73 | minimum| size, s|
|00003820| 75 63 68 20 61 73 20 32 | 34 20 6c 69 6e 65 73 20 |uch as 2|4 lines |
|00003830| 61 6e 64 20 38 30 20 63 | 6f 6c 75 6d 6e 73 2e 0a |and 80 c|olumns..|
|00003840| 54 79 70 69 63 61 6c 20 | 70 72 6f 67 72 61 6d 73 |Typical |programs|
|00003850| 20 62 65 74 72 61 79 20 | 74 68 65 6d 73 65 6c 76 | betray |themselv|
|00003860| 65 73 20 62 79 20 73 63 | 72 69 62 62 6c 69 6e 67 |es by sc|ribbling|
|00003870| 20 74 65 78 74 0a 69 6e | 74 65 6e 64 65 64 20 66 | text.in|tended f|
|00003880| 6f 72 20 60 60 6c 69 6e | 65 20 32 34 27 27 20 61 |or ``lin|e 24'' a|
|00003890| 74 20 72 61 6e 64 6f 6d | 20 70 6c 61 63 65 73 20 |t random| places |
|000038a0| 6f 6e 20 74 68 65 20 73 | 63 72 65 65 6e 2c 0a 6f |on the s|creen,.o|
|000038b0| 72 20 62 79 20 64 75 6d | 70 69 6e 67 20 63 6f 72 |r by dum|ping cor|
|000038c0| 65 20 61 66 74 65 72 20 | 74 68 65 20 60 60 6e 65 |e after |the ``ne|
|000038d0| 77 77 69 6e 27 27 20 63 | 75 72 73 65 73 20 72 6f |wwin'' c|urses ro|
|000038e0| 75 74 69 6e 65 20 72 65 | 66 75 73 65 73 0a 74 6f |utine re|fuses.to|
|000038f0| 20 63 72 65 61 74 65 20 | 61 20 77 69 6e 64 6f 77 | create |a window|
|00003900| 20 74 68 61 74 20 65 6e | 63 6f 6d 70 61 73 73 65 | that en|compasse|
|00003910| 73 20 74 68 61 74 20 6c | 69 6e 65 2e 0a 58 46 69 |s that l|ine..XFi|
|00003920| 78 69 6e 67 20 73 75 63 | 68 20 70 72 6f 67 72 61 |xing suc|h progra|
|00003930| 6d 73 20 63 61 6e 20 62 | 65 20 61 20 63 68 6f 72 |ms can b|e a chor|
|00003940| 65 2c 0a 62 75 74 20 6f | 66 74 65 6e 20 6f 6e 65 |e,.but o|ften one|
|00003950| 20 63 61 6e 20 6a 75 73 | 74 20 73 75 62 73 74 69 | can jus|t substi|
|00003960| 74 75 74 65 20 60 43 4f | 4c 53 27 20 66 6f 72 20 |tute `CO|LS' for |
|00003970| 38 30 2c 20 60 4c 49 4e | 45 53 2d 31 27 20 66 6f |80, `LIN|ES-1' fo|
|00003980| 72 20 32 33 2c 0a 61 6e | 64 20 73 6f 20 6f 6e 2e |r 23,.an|d so on.|
|00003990| 0a 52 6f 67 6f 6d 61 74 | 69 63 20 64 65 6d 61 6e |.Rogomat|ic deman|
|000039a0| 64 73 20 32 34 20 6c 69 | 6e 65 73 20 73 6f 20 49 |ds 24 li|nes so I|
|000039b0| 20 68 61 63 6b 65 64 20 | 69 74 20 74 6f 20 6f 76 | hacked |it to ov|
|000039c0| 65 72 6c 61 79 20 61 6c | 6c 20 6c 69 6e 65 73 20 |erlay al|l lines |
|000039d0| 3e 3d 20 4c 49 4e 45 53 | 0a 6f 6e 74 6f 20 6c 69 |>= LINES|.onto li|
|000039e0| 6e 65 20 4c 49 4e 45 53 | 2d 31 2c 20 77 68 69 63 |ne LINES|-1, whic|
|000039f0| 68 20 69 73 20 6d 65 73 | 73 79 20 62 75 74 20 74 |h is mes|sy but t|
|00003a00| 6f 6c 65 72 61 62 6c 65 | 2e 0a 58 46 6f 72 20 70 |olerable|..XFor p|
|00003a10| 72 6f 67 72 61 6d 73 20 | 62 65 79 6f 6e 64 20 68 |rograms |beyond h|
|00003a20| 6f 70 65 2c 20 74 79 70 | 65 20 5c 66 49 3c 77 6d |ope, typ|e \fI<wm|
|00003a30| 2d 65 73 63 3e 5c 66 50 | 7a 20 61 6e 64 20 72 75 |-esc>\fP|z and ru|
|00003a40| 6e 20 74 68 65 20 70 72 | 6f 67 72 61 6d 0a 6f 6e |n the pr|ogram.on|
|00003a50| 20 74 68 65 20 72 65 61 | 6c 20 74 65 72 6d 69 6e | the rea|l termin|
|00003a60| 61 6c 2e 0a 58 2e 50 50 | 0a 41 20 73 65 63 6f 6e |al..X.PP|.A secon|
|00003a70| 64 20 70 72 6f 62 6c 65 | 6d 20 69 73 20 77 69 74 |d proble|m is wit|
|00003a80| 68 20 70 72 6f 67 72 61 | 6d 73 20 74 68 61 74 20 |h progra|ms that |
|00003a90| 61 73 73 75 6d 65 20 61 | 20 73 70 65 63 69 66 69 |assume a| specifi|
|00003aa0| 63 20 74 65 72 6d 69 6e | 61 6c 20 74 79 70 65 2c |c termin|al type,|
|00003ab0| 0a 73 75 63 68 20 61 73 | 20 22 76 74 31 30 30 22 |.such as| "vt100"|
|00003ac0| 2e 0a 57 6d 20 63 75 72 | 72 65 6e 74 6c 79 20 75 |..Wm cur|rently u|
|00003ad0| 6e 64 65 72 73 74 61 6e | 64 73 20 6f 6e 6c 79 20 |nderstan|ds only |
|00003ae0| 74 68 65 20 70 73 65 75 | 64 6f 2d 74 65 72 6d 69 |the pseu|do-termi|
|00003af0| 6e 61 6c 0a 74 79 70 65 | 20 22 77 6d 76 69 72 74 |nal.type| "wmvirt|
|00003b00| 22 2c 20 73 6f 20 73 75 | 63 68 20 70 72 6f 67 72 |", so su|ch progr|
|00003b10| 61 6d 73 20 63 61 6e 6e | 6f 74 20 62 65 20 72 75 |ams cann|ot be ru|
|00003b20| 6e 20 75 6e 64 65 72 20 | 77 6d 2e 0a 49 74 20 77 |n under |wm..It w|
|00003b30| 6f 75 6c 64 20 62 65 20 | 6e 69 63 65 20 69 66 20 |ould be |nice if |
|00003b40| 77 6d 20 63 6f 75 6c 64 | 20 65 6d 75 6c 61 74 65 |wm could| emulate|
|00003b50| 20 61 6e 20 61 72 62 69 | 74 72 61 72 79 0a 74 65 | an arbi|trary.te|
|00003b60| 72 6d 69 6e 61 6c 20 74 | 79 70 65 2e 0a 54 68 65 |rminal t|ype..The|
|00003b70| 6e 20 6f 6e 65 20 63 6f | 75 6c 64 20 72 75 6e 20 |n one co|uld run |
|00003b80| 77 6d 20 6f 6e 20 61 6e | 20 41 44 4d 20 74 65 72 |wm on an| ADM ter|
|00003b90| 6d 69 6e 61 6c 0a 77 69 | 74 68 20 6f 6e 65 20 77 |minal.wi|th one w|
|00003ba0| 69 6e 64 6f 77 20 65 6d | 75 6c 61 74 69 6e 67 20 |indow em|ulating |
|00003bb0| 61 20 76 74 31 30 30 20 | 61 6e 64 20 61 6e 6f 74 |a vt100 |and anot|
|00003bc0| 68 65 72 20 65 6d 75 6c | 61 74 69 6e 67 20 61 20 |her emul|ating a |
|00003bd0| 54 65 6b 74 72 6f 6e 69 | 78 20 34 30 31 34 2e 0a |Tektroni|x 4014..|
|00003be0| 4f 66 20 63 6f 75 72 73 | 65 2c 20 77 6d 20 77 6f |Of cours|e, wm wo|
|00003bf0| 75 6c 64 20 6e 65 65 64 | 20 74 6f 20 73 75 70 70 |uld need| to supp|
|00003c00| 6f 72 74 20 76 69 65 77 | 70 6f 72 74 73 20 69 6e |ort view|ports in|
|00003c10| 74 6f 20 77 69 6e 64 6f | 77 73 2e 0a 56 69 65 77 |to windo|ws..View|
|00003c20| 70 6f 72 74 73 20 61 72 | 65 20 74 72 69 76 69 61 |ports ar|e trivia|
|00003c30| 6c 20 63 6f 6d 70 61 72 | 65 64 20 74 6f 20 65 6d |l compar|ed to em|
|00003c40| 75 6c 61 74 69 6e 67 20 | 34 30 31 34 20 67 72 61 |ulating |4014 gra|
|00003c50| 70 68 69 63 73 2c 20 68 | 6f 77 65 76 65 72 2e 0a |phics, h|owever..|
|00003c60| 58 2e 50 50 0a 41 20 74 | 68 69 72 64 20 70 72 6f |X.PP.A t|hird pro|
|00003c70| 62 6c 65 6d 20 69 73 20 | 74 68 61 74 20 73 6f 6d |blem is |that som|
|00003c80| 65 20 70 72 6f 67 72 61 | 6d 73 20 75 73 65 20 67 |e progra|ms use g|
|00003c90| 65 74 6c 6f 67 69 6e 0a | 74 6f 20 64 65 74 65 72 |etlogin.|to deter|
|00003ca0| 6d 69 6e 65 20 74 68 65 | 20 75 73 65 72 27 73 20 |mine the| user's |
|00003cb0| 6c 6f 67 69 6e 20 6e 61 | 6d 65 2c 0a 62 75 74 20 |login na|me,.but |
|00003cc0| 75 6e 64 65 72 20 77 6d | 20 67 65 74 6c 6f 67 69 |under wm| getlogi|
|00003cd0| 6e 20 66 61 69 6c 73 20 | 73 69 6e 63 65 20 6e 6f |n fails |since no|
|00003ce0| 20 6f 6e 65 20 69 73 20 | 6c 6f 67 67 65 64 20 69 | one is |logged i|
|00003cf0| 6e 0a 6f 6e 20 74 68 65 | 20 77 69 6e 64 6f 77 27 |n.on the| window'|
|00003d00| 73 20 63 6f 6e 74 72 6f | 6c 20 74 65 72 6d 69 6e |s contro|l termin|
|00003d10| 61 6c 20 28 70 73 65 75 | 64 6f 2d 74 74 79 29 2e |al (pseu|do-tty).|
|00003d20| 0a 54 68 65 20 65 61 73 | 69 65 73 74 20 66 69 78 |.The eas|iest fix|
|00003d30| 20 69 73 20 74 6f 20 72 | 65 70 6c 61 63 65 20 63 | is to r|eplace c|
|00003d40| 61 6c 6c 73 20 74 6f 20 | 67 65 74 6c 6f 67 69 6e |alls to |getlogin|
|00003d50| 0a 77 69 74 68 20 63 61 | 6c 6c 73 20 74 6f 20 73 |.with ca|lls to s|
|00003d60| 61 66 65 67 65 74 6c 6f | 67 69 6e 3a 0a 58 2e 44 |afegetlo|gin:.X.D|
|00003d70| 53 0a 58 2e 66 74 20 50 | 4f 0a 2f 2a 0a 20 2a 20 |S.X.ft P|O./*. * |
|00003d80| 52 65 74 75 72 6e 73 20 | 61 20 75 73 65 72 20 6e |Returns |a user n|
|00003d90| 61 6d 65 20 73 75 63 68 | 20 74 68 61 74 20 75 69 |ame such| that ui|
|00003da0| 64 28 75 73 65 72 20 6e | 61 6d 65 29 20 3d 3d 20 |d(user n|ame) == |
|00003db0| 67 65 74 75 69 64 28 29 | 2e 0a 20 2a 20 49 66 20 |getuid()|.. * If |
|00003dc0| 66 65 61 73 69 62 6c 65 | 2c 20 74 68 65 20 73 65 |feasible|, the se|
|00003dd0| 73 73 69 6f 6e 20 6c 6f | 67 69 6e 20 6e 61 6d 65 |ssion lo|gin name|
|00003de0| 20 69 73 20 75 73 65 64 | 2c 0a 20 2a 20 62 75 74 | is used|,. * but|
|00003df0| 20 69 66 20 74 68 65 20 | 72 65 61 6c 20 75 69 64 | if the |real uid|
|00003e00| 20 68 61 73 20 62 65 65 | 6e 20 63 68 61 6e 67 65 | has bee|n change|
|00003e10| 64 20 28 65 2e 67 2e 20 | 76 69 61 20 27 73 75 27 |d (e.g. |via 'su'|
|00003e20| 29 0a 20 2a 20 6f 72 20 | 69 66 20 63 65 72 74 61 |). * or |if certa|
|00003e30| 69 6e 20 66 69 6c 65 20 | 64 65 73 63 72 69 70 74 |in file |descript|
|00003e40| 6f 72 73 20 68 61 76 65 | 20 62 65 65 6e 20 6d 75 |ors have| been mu|
|00003e50| 6e 67 65 64 0a 20 2a 20 | 74 68 65 6e 20 61 20 75 |nged. * |then a u|
|00003e60| 73 65 72 20 6e 61 6d 65 | 20 63 6f 72 72 65 73 70 |ser name| corresp|
|00003e70| 6f 6e 64 69 6e 67 20 74 | 6f 20 74 68 65 20 72 65 |onding t|o the re|
|00003e80| 61 6c 20 75 69 64 20 69 | 73 20 72 65 74 75 72 6e |al uid i|s return|
|00003e90| 65 64 20 69 6e 73 74 65 | 61 64 2e 0a 20 2a 20 52 |ed inste|ad.. * R|
|00003ea0| 65 74 75 72 6e 73 20 4e | 55 4c 4c 20 69 66 20 65 |eturns N|ULL if e|
|00003eb0| 76 65 72 79 74 68 69 6e | 67 20 66 61 69 6c 73 2e |verythin|g fails.|
|00003ec0| 0a 20 2a 20 42 65 77 61 | 72 65 21 20 20 43 6c 6f |. * Bewa|re! Clo|
|00003ed0| 62 62 65 72 73 20 73 74 | 61 74 69 63 20 64 61 74 |bbers st|atic dat|
|00003ee0| 61 20 66 72 6f 6d 20 65 | 61 72 6c 69 65 72 20 63 |a from e|arlier c|
|00003ef0| 61 6c 6c 73 20 74 6f 20 | 67 65 74 70 77 2a 2e 0a |alls to |getpw*..|
|00003f00| 20 2a 2f 0a 0a 23 69 6e | 63 6c 75 64 65 20 3c 70 | */..#in|clude <p|
|00003f10| 77 64 2e 68 3e 0a 0a 63 | 68 61 72 20 2a 0a 73 61 |wd.h>..c|har *.sa|
|00003f20| 66 65 67 65 74 6c 6f 67 | 69 6e 28 29 0a 7b 0a 09 |fegetlog|in().{..|
|00003f30| 72 65 67 69 73 74 65 72 | 20 63 68 61 72 20 2a 70 |register| char *p|
|00003f40| 3b 0a 09 72 65 67 69 73 | 74 65 72 20 69 6e 74 20 |;..regis|ter int |
|00003f50| 75 69 64 3b 0a 09 72 65 | 67 69 73 74 65 72 20 73 |uid;..re|gister s|
|00003f60| 74 72 75 63 74 20 70 61 | 73 73 77 64 20 2a 70 77 |truct pa|sswd *pw|
|00003f70| 64 3b 0a 09 73 74 61 74 | 69 63 20 63 68 61 72 20 |d;..stat|ic char |
|00003f80| 6e 61 6d 65 62 75 66 5b | 35 30 5d 3b 0a 09 65 78 |namebuf[|50];..ex|
|00003f90| 74 65 72 6e 20 63 68 61 | 72 20 2a 67 65 74 6c 6f |tern cha|r *getlo|
|00003fa0| 67 69 6e 28 29 3b 0a 0a | 09 75 69 64 20 3d 20 67 |gin();..|.uid = g|
|00003fb0| 65 74 75 69 64 28 29 3b | 0a 09 70 20 3d 20 67 65 |etuid();|..p = ge|
|00003fc0| 74 6c 6f 67 69 6e 28 29 | 3b 0a 09 2f 2a 20 63 61 |tlogin()|;../* ca|
|00003fd0| 6e 6e 6f 74 20 74 72 75 | 73 74 20 67 65 74 6c 6f |nnot tru|st getlo|
|00003fe0| 67 69 6e 2c 20 73 6f 20 | 68 65 72 65 20 69 73 20 |gin, so |here is |
|00003ff0| 61 20 73 65 63 75 72 69 | 74 79 20 63 68 65 63 6b |a securi|ty check|
|00004000| 20 2a 2f 0a 09 69 66 20 | 28 21 70 20 7c 7c 20 21 | */..if |(!p || !|
|00004010| 28 70 77 64 20 3d 20 67 | 65 74 70 77 6e 61 6d 28 |(pwd = g|etpwnam(|
|00004020| 70 29 29 20 7c 7c 20 75 | 69 64 20 21 3d 20 70 77 |p)) || u|id != pw|
|00004030| 64 2d 3e 70 77 5f 75 69 | 64 29 0a 09 09 70 20 3d |d->pw_ui|d)...p =|
|00004040| 20 30 3b 0a 09 2f 2a 20 | 69 66 20 67 65 74 6c 6f | 0;../* |if getlo|
|00004050| 67 69 6e 20 66 61 69 6c | 65 64 2c 20 74 72 79 20 |gin fail|ed, try |
|00004060| 74 68 65 20 72 65 61 6c | 20 75 69 64 20 2a 2f 0a |the real| uid */.|
|00004070| 09 69 66 20 28 21 70 20 | 26 26 20 28 70 77 64 20 |.if (!p |&& (pwd |
|00004080| 3d 20 67 65 74 70 77 75 | 69 64 28 75 69 64 29 29 |= getpwu|id(uid))|
|00004090| 29 0a 09 09 70 20 3d 20 | 70 77 64 2d 3e 70 77 5f |)...p = |pwd->pw_|
|000040a0| 6e 61 6d 65 3b 0a 09 69 | 66 20 28 70 29 20 7b 0a |name;..i|f (p) {.|
|000040b0| 09 09 73 74 72 6e 63 70 | 79 28 6e 61 6d 65 62 75 |..strncp|y(namebu|
|000040c0| 66 2c 20 70 2c 20 73 69 | 7a 65 6f 66 28 6e 61 6d |f, p, si|zeof(nam|
|000040d0| 65 62 75 66 29 2d 31 29 | 3b 0a 09 09 70 20 3d 20 |ebuf)-1)|;...p = |
|000040e0| 6e 61 6d 65 62 75 66 3b | 0a 09 7d 0a 09 72 65 74 |namebuf;|..}..ret|
|000040f0| 75 72 6e 28 70 29 3b 0a | 7d 0a 58 2e 66 74 20 50 |urn(p);.|}.X.ft P|
|00004100| 0a 58 2e 44 45 0a 54 68 | 69 73 20 66 69 78 65 73 |.X.DE.Th|is fixes|
|00004110| 20 74 68 65 20 60 67 61 | 6c 61 78 79 27 20 61 6e | the `ga|laxy' an|
|00004120| 64 20 60 72 6f 62 6f 74 | 73 27 20 70 72 6f 67 72 |d `robot|s' progr|
|00004130| 61 6d 73 2c 20 66 6f 72 | 20 65 78 61 6d 70 6c 65 |ams, for| example|
|00004140| 2e 0a 57 65 20 6b 65 65 | 70 20 74 68 69 73 20 72 |..We kee|p this r|
|00004150| 6f 75 74 69 6e 65 20 69 | 6e 20 2f 75 73 72 2f 6c |outine i|n /usr/l|
|00004160| 6f 63 61 6c 2f 6c 69 62 | 6c 6f 63 61 6c 2e 61 20 |ocal/lib|local.a |
|00004170| 61 6e 64 20 6c 69 6e 6b | 20 70 72 6f 67 72 61 6d |and link| program|
|00004180| 73 0a 74 68 61 74 20 63 | 61 6c 6c 20 69 74 20 77 |s.that c|all it w|
|00004190| 69 74 68 20 60 2d 6c 6c | 6f 63 61 6c 27 2e 0a 41 |ith `-ll|ocal'..A|
|000041a0| 6c 61 73 2c 20 6f 6e 65 | 20 63 61 73 65 20 74 68 |las, one| case th|
|000041b0| 61 74 20 74 68 69 73 20 | 6d 69 73 73 65 73 20 69 |at this |misses i|
|000041c0| 73 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 60 60 |s the co|mmand ``|
|000041d0| 77 68 6f 20 20 61 6d 20 | 20 69 27 27 2e 0a 54 68 |who am | i''..Th|
|000041e0| 65 20 74 72 61 64 65 20 | 73 65 63 72 65 74 20 73 |e trade |secret s|
|000041f0| 74 61 74 75 73 20 6f 66 | 20 60 60 77 68 6f 27 27 |tatus of| ``who''|
|00004200| 20 70 72 65 63 6c 75 64 | 65 73 20 61 20 63 6c 65 | preclud|es a cle|
|00004210| 61 72 65 72 20 65 78 70 | 6c 61 6e 61 74 69 6f 6e |arer exp|lanation|
|00004220| 2e 0a 58 2e 53 48 0a 58 | 53 75 70 70 6f 72 74 20 |..X.SH.X|Support |
|00004230| 66 6f 72 20 46 61 73 74 | 20 53 63 72 6f 6c 6c 69 |for Fast| Scrolli|
|00004240| 6e 67 20 6f 66 20 61 6e | 79 20 52 65 63 74 61 6e |ng of an|y Rectan|
|00004250| 67 75 6c 61 72 20 57 69 | 6e 64 6f 77 0a 58 2e 50 |gular Wi|ndow.X.P|
|00004260| 50 0a 41 20 28 76 65 72 | 79 29 20 66 65 77 20 74 |P.A (ver|y) few t|
|00004270| 65 72 6d 69 6e 61 6c 73 | 20 73 75 70 70 6f 72 74 |erminals| support|
|00004280| 20 67 65 6e 65 72 61 6c | 20 60 60 73 63 72 6f 6c | general| ``scrol|
|00004290| 6c 69 6e 67 20 72 65 63 | 74 61 6e 67 6c 65 73 2e |ling rec|tangles.|
|000042a0| 27 27 0a 54 68 65 73 65 | 20 61 72 65 20 77 6f 6e |''.These| are won|
|000042b0| 64 65 72 66 75 6c 20 66 | 6f 72 20 77 6d 20 62 65 |derful f|or wm be|
|000042c0| 63 61 75 73 65 20 74 68 | 65 6e 0a 6e 6f 6e 2d 66 |cause th|en.non-f|
|000042d0| 75 6c 6c 2d 77 69 64 74 | 68 20 77 69 6e 64 6f 77 |ull-widt|h window|
|000042e0| 73 20 73 63 72 6f 6c 6c | 20 71 75 69 63 6b 6c 79 |s scroll| quickly|
|000042f0| 2e 0a 54 65 72 6d 69 6e | 66 6f 20 61 6c 72 65 61 |..Termin|fo alrea|
|00004300| 64 79 20 68 61 73 20 74 | 68 65 20 60 60 73 65 74 |dy has t|he ``set|
|00004310| 5f 77 69 6e 64 6f 77 27 | 27 20 73 74 72 69 6e 67 |_window'|' string|
|00004320| 20 63 61 70 61 62 69 6c | 69 74 79 2c 0a 64 65 73 | capabil|ity,.des|
|00004330| 63 72 69 62 65 64 20 69 | 6e 20 60 74 70 61 72 6d |cribed i|n `tparm|
|00004340| 27 20 66 6f 72 6d 61 74 | 2c 0a 74 6f 20 73 65 74 |' format|,.to set|
|00004350| 20 75 70 20 61 20 73 63 | 72 6f 6c 6c 69 6e 67 20 | up a sc|rolling |
|00004360| 72 65 63 74 61 6e 67 6c | 65 2e 0a 54 68 65 72 65 |rectangl|e..There|
|00004370| 20 69 73 20 6e 6f 20 73 | 75 63 68 20 63 61 70 61 | is no s|uch capa|
|00004380| 62 69 6c 69 74 79 20 69 | 6e 20 74 65 72 6d 63 61 |bility i|n termca|
|00004390| 70 20 73 6f 20 61 20 6e | 65 77 20 60 60 73 77 27 |p so a n|ew ``sw'|
|000043a0| 27 0a 63 61 70 61 62 69 | 6c 69 74 79 20 77 61 73 |'.capabi|lity was|
|000043b0| 20 69 6e 76 65 6e 74 65 | 64 2c 20 75 73 69 6e 67 | invente|d, using|
|000043c0| 20 74 68 65 20 73 61 6d | 65 20 66 6f 72 6d 61 74 | the sam|e format|
|000043d0| 20 61 73 20 74 65 72 6d | 69 6e 66 6f 2e 0a 58 46 | as term|info..XF|
|000043e0| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 66 6f 72 20 |or examp|le, for |
|000043f0| 74 68 65 20 48 44 53 20 | 43 6f 6e 63 65 70 74 20 |the HDS |Concept |
|00004400| 31 30 38 20 77 65 20 68 | 61 76 65 3a 0a 58 2e 44 |108 we h|ave:.X.D|
|00004410| 53 0a 58 2e 66 74 20 50 | 4f 0a 58 2e 5c 22 20 6e |S.X.ft P|O.X.\" n|
|00004420| 6f 74 65 3a 20 74 68 65 | 20 27 5c 65 27 20 62 65 |ote: the| '\e' be|
|00004430| 6c 6f 77 20 69 73 20 74 | 72 6f 66 66 27 73 20 77 |low is t|roff's w|
|00004440| 61 79 20 6f 66 20 73 61 | 79 69 6e 67 20 27 5c 27 |ay of sa|ying '\'|
|00004450| 0a 3a 73 77 3d 5c 65 45 | 76 25 70 31 25 27 20 27 |.:sw=\eE|v%p1%' '|
|00004460| 25 2b 25 63 25 70 33 25 | 27 20 27 25 2b 25 63 25 |%+%c%p3%|' '%+%c%|
|00004470| 70 32 25 70 31 25 2d 25 | 27 21 27 25 2b 25 63 25 |p2%p1%-%|'!'%+%c%|
|00004480| 70 34 25 70 33 25 2d 25 | 27 21 27 25 2b 25 63 3a |p4%p3%-%|'!'%+%c:|
|00004490| 5c 65 0a 58 2e 66 74 20 | 50 0a 58 2e 44 45 0a 58 |\e.X.ft |P.X.DE.X|
|000044a0| 46 6f 72 20 74 68 65 20 | 48 44 53 20 32 30 30 20 |For the |HDS 200 |
|000044b0| 77 65 20 68 61 76 65 20 | 28 73 6f 72 72 79 2c 20 |we have |(sorry, |
|000044c0| 74 68 69 73 20 69 73 20 | 75 6e 74 65 73 74 65 64 |this is |untested|
|000044d0| 29 3a 0a 58 2e 44 53 0a | 58 2e 66 74 20 50 4f 0a |):.X.DS.|X.ft PO.|
|000044e0| 58 2e 5c 22 20 6e 6f 74 | 65 3a 20 74 68 65 20 27 |X.\" not|e: the '|
|000044f0| 5c 65 27 20 62 65 6c 6f | 77 20 69 73 20 74 72 6f |\e' belo|w is tro|
|00004500| 66 66 27 73 20 77 61 79 | 20 6f 66 20 73 61 79 69 |ff's way| of sayi|
|00004510| 6e 67 20 27 5c 27 0a 3a | 73 77 3d 5c 65 45 5b 25 |ng '\'.:|sw=\eE[%|
|00004520| 70 31 25 7b 31 7d 25 2b | 25 64 3b 25 70 32 25 7b |p1%{1}%+|%d;%p2%{|
|00004530| 31 7d 25 2b 25 64 3b 25 | 70 33 25 7b 31 7d 25 2b |1}%+%d;%|p3%{1}%+|
|00004540| 25 64 3b 25 70 34 25 7b | 31 7d 25 2b 25 64 72 3a |%d;%p4%{|1}%+%dr:|
|00004550| 5c 65 0a 58 2e 66 74 20 | 50 0a 58 2e 44 45 0a 59 |\e.X.ft |P.X.DE.Y|
|00004560| 6f 75 20 61 6c 73 6f 20 | 6e 65 65 64 20 60 60 73 |ou also |need ``s|
|00004570| 72 27 27 20 28 73 63 72 | 6f 6c 6c 5f 72 65 76 65 |r'' (scr|oll_reve|
|00004580| 72 73 65 29 20 66 6f 72 | 20 77 6d 20 74 6f 20 75 |rse) for| wm to u|
|00004590| 73 65 20 73 65 74 5f 77 | 69 6e 64 6f 77 2e 0a 57 |se set_w|indow..W|
|000045a0| 6d 20 61 73 73 75 6d 65 | 73 20 74 68 61 74 20 74 |m assume|s that t|
|000045b0| 68 65 20 73 65 74 5f 77 | 69 6e 64 6f 77 20 63 6f |he set_w|indow co|
|000045c0| 6d 6d 61 6e 64 20 6d 6f | 76 65 73 20 74 68 65 20 |mmand mo|ves the |
|000045d0| 63 75 72 73 6f 72 0a 74 | 6f 20 74 68 65 20 72 65 |cursor.t|o the re|
|000045e0| 63 74 61 6e 67 6c 65 27 | 73 20 68 6f 6d 65 20 70 |ctangle'|s home p|
|000045f0| 6f 73 69 74 69 6f 6e 20 | 28 75 70 70 65 72 20 6c |osition |(upper l|
|00004600| 65 66 74 29 2c 0a 74 68 | 61 74 20 63 75 72 73 6f |eft),.th|at curso|
|00004610| 72 20 6d 6f 74 69 6f 6e | 20 63 6f 6d 6d 61 6e 64 |r motion| command|
|00004620| 73 20 77 6f 72 6b 20 69 | 6e 20 74 68 65 20 72 65 |s work i|n the re|
|00004630| 63 74 61 6e 67 6c 65 2c | 0a 61 6e 64 20 74 68 61 |ctangle,|.and tha|
|00004640| 74 20 74 68 65 20 6d 6f | 74 69 6f 6e 73 20 61 72 |t the mo|tions ar|
|00004650| 65 20 72 65 6c 61 74 69 | 76 65 20 74 6f 20 74 68 |e relati|ve to th|
|00004660| 65 20 6f 72 69 67 69 6e | 20 6f 66 20 74 68 65 20 |e origin| of the |
|00004670| 72 65 63 74 61 6e 67 6c | 65 2e 0a 49 66 20 79 6f |rectangl|e..If yo|
|00004680| 75 72 20 74 65 72 6d 69 | 6e 61 6c 20 77 6f 72 6b |ur termi|nal work|
|00004690| 73 20 64 69 66 66 65 72 | 65 6e 74 6c 79 2c 20 61 |s differ|ently, a|
|000046a0| 6e 64 20 69 74 20 70 72 | 6f 62 61 62 6c 79 20 77 |nd it pr|obably w|
|000046b0| 69 6c 6c 2c 0a 79 6f 75 | 20 6d 69 67 68 74 20 68 |ill,.you| might h|
|000046c0| 61 76 65 20 74 6f 20 68 | 61 63 6b 20 77 6d 2e 0a |ave to h|ack wm..|
|000046d0| 4c 6f 6f 6b 20 66 6f 72 | 20 22 53 45 54 5f 57 49 |Look for| "SET_WI|
|000046e0| 4e 44 4f 57 22 20 77 68 | 69 63 68 2c 20 69 66 20 |NDOW" wh|ich, if |
|000046f0| 64 65 66 69 6e 65 64 2c | 20 63 61 75 73 65 73 0a |defined,| causes.|
|00004700| 63 6f 64 65 20 74 6f 20 | 62 65 20 67 65 6e 65 72 |code to |be gener|
|00004710| 61 74 65 64 20 74 6f 20 | 73 75 70 70 6f 72 74 20 |ated to |support |
|00004720| 73 63 72 6f 6c 6c 20 72 | 65 63 74 61 6e 67 6c 65 |scroll r|ectangle|
|00004730| 73 2e 0a 58 2e 53 48 0a | 4c 49 42 43 55 52 53 45 |s..X.SH.|LIBCURSE|
|00004740| 53 0a 58 2e 50 50 0a 57 | 6d 20 64 65 70 65 6e 64 |S.X.PP.W|m depend|
|00004750| 73 20 68 65 61 76 69 6c | 79 20 6f 6e 20 74 68 65 |s heavil|y on the|
|00004760| 20 75 6e 64 65 72 6c 79 | 69 6e 67 20 73 63 72 65 | underly|ing scre|
|00004770| 65 6e 20 6d 61 6e 61 67 | 65 6d 65 6e 74 20 73 6f |en manag|ement so|
|00004780| 66 74 77 61 72 65 20 28 | 6c 69 62 63 75 72 73 65 |ftware (|libcurse|
|00004790| 73 29 0a 66 6f 72 20 63 | 6f 72 72 65 63 74 6e 65 |s).for c|orrectne|
|000047a0| 73 73 20 61 6e 64 20 65 | 66 66 69 63 69 65 6e 63 |ss and e|fficienc|
|000047b0| 79 2e 0a 41 20 6e 75 6d | 62 65 72 20 6f 66 20 63 |y..A num|ber of c|
|000047c0| 68 61 6e 67 65 73 20 77 | 65 72 65 20 66 6f 75 6e |hanges w|ere foun|
|000047d0| 64 20 74 6f 20 62 65 20 | 6e 65 65 64 65 64 20 69 |d to be |needed i|
|000047e0| 6e 20 6c 69 62 63 75 72 | 73 65 73 0a 74 6f 20 70 |n libcur|ses.to p|
|000047f0| 72 6f 76 69 64 65 20 63 | 6f 72 72 65 63 74 6e 65 |rovide c|orrectne|
|00004800| 73 73 2e 0a 54 68 65 20 | 6d 61 6a 6f 72 20 65 66 |ss..The |major ef|
|00004810| 66 69 63 69 65 6e 63 79 | 20 70 72 6f 62 6c 65 6d |ficiency| problem|
|00004820| 20 68 61 73 20 62 65 65 | 6e 20 74 68 61 74 20 6f | has bee|n that o|
|00004830| 66 20 70 72 6f 76 69 64 | 69 6e 67 20 66 61 73 74 |f provid|ing fast|
|00004840| 20 73 63 72 6f 6c 6c 69 | 6e 67 2e 0a 4c 69 62 63 | scrolli|ng..Libc|
|00004850| 75 72 73 65 73 20 69 74 | 73 65 6c 66 20 64 6f 65 |urses it|self doe|
|00004860| 73 20 6e 6f 74 20 73 75 | 70 70 6f 72 74 20 69 6e |s not su|pport in|
|00004870| 73 65 72 74 2f 64 65 6c | 65 74 65 20 6c 69 6e 65 |sert/del|ete line|
|00004880| 20 6f 72 0a 73 63 72 6f | 6c 6c 69 6e 67 20 72 65 | or.scro|lling re|
|00004890| 67 69 6f 6e 73 20 74 6f | 20 70 72 6f 76 69 64 65 |gions to| provide|
|000048a0| 20 66 61 73 74 20 73 63 | 72 6f 6c 6c 69 6e 67 2e | fast sc|rolling.|
|000048b0| 0a 57 65 20 64 65 63 69 | 64 65 64 20 6e 6f 74 20 |.We deci|ded not |
|000048c0| 74 6f 20 70 75 74 20 73 | 75 63 68 20 73 75 70 70 |to put s|uch supp|
|000048d0| 6f 72 74 20 69 6e 74 6f | 20 6c 69 62 63 75 72 73 |ort into| libcurs|
|000048e0| 65 73 2c 0a 62 65 63 61 | 75 73 65 20 74 68 61 74 |es,.beca|use that|
|000048f0| 20 77 61 73 20 63 6f 6e | 73 69 64 65 72 65 64 20 | was con|sidered |
|00004900| 74 6f 6f 20 66 61 72 2d | 72 65 61 63 68 69 6e 67 |too far-|reaching|
|00004910| 2c 0a 73 6f 20 69 6e 73 | 65 72 74 2f 64 65 6c 65 |,.so ins|ert/dele|
|00004920| 74 65 20 6c 69 6e 65 20 | 61 6e 64 20 73 63 72 6f |te line |and scro|
|00004930| 6c 6c 69 6e 67 20 72 65 | 67 69 6f 6e 73 20 61 72 |lling re|gions ar|
|00004940| 65 20 68 61 6e 64 6c 65 | 64 0a 77 69 74 68 69 6e |e handle|d.within|
|00004950| 20 73 70 65 63 69 61 6c | 20 63 6f 64 65 20 69 6e | special| code in|
|00004960| 20 77 6d 20 69 74 73 65 | 6c 66 2c 0a 61 6e 64 20 | wm itse|lf,.and |
|00004970| 74 68 65 20 6c 69 62 63 | 75 72 73 65 73 20 77 69 |the libc|urses wi|
|00004980| 6e 64 6f 77 73 20 61 72 | 65 20 61 63 63 6f 72 64 |ndows ar|e accord|
|00004990| 69 6e 67 6c 79 20 66 69 | 78 65 64 20 75 70 2e 0a |ingly fi|xed up..|
|000049a0| 57 6d 20 63 6f 75 6c 64 | 20 73 75 70 70 6f 72 74 |Wm could| support|
|000049b0| 20 73 63 72 6f 6c 6c 69 | 6e 67 20 72 65 67 69 6f | scrolli|ng regio|
|000049c0| 6e 73 20 6d 6f 72 65 20 | 65 66 66 69 63 69 65 6e |ns more |efficien|
|000049d0| 74 6c 79 0a 28 62 79 20 | 6e 6f 74 20 73 77 69 74 |tly.(by |not swit|
|000049e0| 63 68 69 6e 67 20 62 61 | 63 6b 20 61 6e 64 20 66 |ching ba|ck and f|
|000049f0| 6f 72 74 68 20 62 65 74 | 77 65 65 6e 20 66 75 6c |orth bet|ween ful|
|00004a00| 6c 20 73 63 72 65 65 6e | 0a 61 6e 64 20 77 69 6e |l screen|.and win|
|00004a10| 64 6f 77 2d 73 69 7a 65 | 64 20 72 65 67 69 6f 6e |dow-size|d region|
|00004a20| 73 20 6f 6e 20 65 76 65 | 72 79 20 6e 65 77 6c 69 |s on eve|ry newli|
|00004a30| 6e 65 29 2e 0a 49 74 20 | 63 6f 75 6c 64 20 61 6c |ne)..It |could al|
|00004a40| 73 6f 20 68 61 6e 64 6c | 65 20 63 65 72 74 61 69 |so handl|e certai|
|00004a50| 6e 20 6e 6f 6e 2d 66 75 | 6c 6c 2d 77 69 64 74 68 |n non-fu|ll-width|
|00004a60| 20 77 69 6e 64 6f 77 73 | 20 62 65 74 74 65 72 2e | windows| better.|
|00004a70| 0a 58 46 6f 72 20 65 78 | 61 6d 70 6c 65 20 74 6f |.XFor ex|ample to|
|00004a80| 20 73 63 72 6f 6c 6c 20 | 61 20 77 69 6e 64 6f 77 | scroll |a window|
|00004a90| 20 74 68 61 74 20 63 6f | 76 65 72 73 20 61 6c 6c | that co|vers all|
|00004aa0| 20 62 75 74 20 74 68 65 | 20 72 69 67 68 74 6d 6f | but the| rightmo|
|00004ab0| 73 74 20 63 6f 6c 75 6d | 6e 0a 69 74 20 63 6f 75 |st colum|n.it cou|
|00004ac0| 6c 64 20 73 63 72 6f 6c | 6c 20 61 6c 6c 20 6c 69 |ld scrol|l all li|
|00004ad0| 6e 65 73 20 69 6e 76 6f | 6c 76 65 64 20 61 6e 64 |nes invo|lved and|
|00004ae0| 20 74 68 65 6e 20 72 65 | 64 72 61 77 20 74 68 65 | then re|draw the|
|00004af0| 20 72 69 67 68 74 6d 6f | 73 74 20 63 6f 6c 75 6d | rightmo|st colum|
|00004b00| 6e 2e 0a 50 65 72 68 61 | 70 73 20 74 68 65 20 74 |n..Perha|ps the t|
|00004b10| 65 72 6d 6c 69 62 20 6f | 72 20 6f 74 68 65 72 20 |ermlib o|r other |
|00004b20| 70 61 63 6b 61 67 65 73 | 20 64 6f 20 74 68 61 74 |packages| do that|
|00004b30| 20 73 6f 72 74 20 6f 66 | 20 74 68 69 6e 67 2e 0a | sort of| thing..|
|00004b40| 41 6c 73 6f 2c 20 66 6f | 72 20 6e 6f 6e 2d 66 75 |Also, fo|r non-fu|
|00004b50| 6c 6c 2d 77 69 64 74 68 | 20 77 69 6e 64 6f 77 73 |ll-width| windows|
|00004b60| 20 77 6d 20 63 6f 75 6c | 64 20 70 65 72 68 61 70 | wm coul|d perhap|
|00004b70| 73 20 73 63 72 6f 6c 6c | 20 74 77 6f 0a 6f 72 20 |s scroll| two.or |
|00004b80| 6d 6f 72 65 20 6c 69 6e | 65 73 20 61 74 20 61 20 |more lin|es at a |
|00004b90| 74 69 6d 65 2c 20 6f 72 | 20 70 6f 73 73 69 62 6c |time, or| possibl|
|00004ba0| 79 20 65 76 65 6e 20 77 | 72 61 70 20 61 72 6f 75 |y even w|rap arou|
|00004bb0| 6e 64 0a 74 6f 20 74 68 | 65 20 74 6f 70 20 6c 69 |nd.to th|e top li|
|00004bc0| 6e 65 20 72 61 74 68 65 | 72 20 74 68 61 6e 20 73 |ne rathe|r than s|
|00004bd0| 63 72 6f 6c 6c 2e 0a 58 | 2e 53 48 0a 57 4d 20 61 |croll..X|.SH.WM a|
|00004be0| 6e 64 20 54 45 52 4d 49 | 4e 46 4f 0a 58 2e 50 50 |nd TERMI|NFO.X.PP|
|00004bf0| 0a 57 6d 20 63 61 6e 20 | 62 65 20 63 6f 6d 70 69 |.Wm can |be compi|
|00004c00| 6c 65 64 20 77 69 74 68 | 0a 50 61 76 65 6c 20 43 |led with|.Pavel C|
|00004c10| 75 72 74 69 73 27 20 70 | 75 62 6c 69 63 20 64 6f |urtis' p|ublic do|
|00004c20| 6d 61 69 6e 20 60 60 74 | 65 72 6d 69 6e 66 6f 27 |main ``t|erminfo'|
|00004c30| 27 20 6c 69 62 72 61 72 | 79 0a 69 6e 20 61 64 64 |' librar|y.in add|
|00004c40| 69 74 69 6f 6e 20 74 6f | 20 74 68 65 20 75 73 75 |ition to| the usu|
|00004c50| 61 6c 20 6f 6e 65 20 28 | 60 60 43 75 72 73 65 73 |al one (|``Curses|
|00004c60| 20 43 6c 61 73 73 69 63 | 27 27 29 2e 0a 44 75 72 | Classic|'')..Dur|
|00004c70| 69 6e 67 20 63 6f 6d 70 | 69 6c 61 74 69 6f 6e 20 |ing comp|ilation |
|00004c80| 74 68 65 20 54 45 52 4d | 49 4e 46 4f 20 70 72 65 |the TERM|INFO pre|
|00004c90| 70 72 6f 63 65 73 73 6f | 72 20 76 61 72 69 61 62 |processo|r variab|
|00004ca0| 6c 65 20 69 73 20 64 65 | 66 69 6e 65 64 0a 69 66 |le is de|fined.if|
|00004cb0| 20 63 6f 6d 70 69 6c 61 | 74 69 6f 6e 20 77 69 74 | compila|tion wit|
|00004cc0| 68 20 74 65 72 6d 69 6e | 66 6f 20 63 75 72 73 65 |h termin|fo curse|
|00004cd0| 73 20 69 73 20 64 65 74 | 65 63 74 65 64 2c 0a 73 |s is det|ected,.s|
|00004ce0| 6f 20 74 68 61 74 20 61 | 70 70 72 6f 70 72 69 61 |o that a|ppropria|
|00004cf0| 74 65 20 63 6f 64 65 20 | 69 73 20 67 65 6e 65 72 |te code |is gener|
|00004d00| 61 74 65 64 2e 0a 54 68 | 65 20 74 65 72 6d 69 6e |ated..Th|e termin|
|00004d10| 66 6f 20 63 6f 6e 76 65 | 6e 74 69 6f 6e 73 20 61 |fo conve|ntions a|
|00004d20| 72 65 20 6e 69 63 65 72 | 20 74 68 61 6e 20 74 68 |re nicer| than th|
|00004d30| 65 20 63 6c 61 73 73 69 | 63 20 76 65 72 73 69 6f |e classi|c versio|
|00004d40| 6e 0a 73 6f 20 77 6d 20 | 75 73 65 73 20 74 68 65 |n.so wm |uses the|
|00004d50| 20 74 65 72 6d 69 6e 66 | 6f 20 66 75 6e 63 74 69 | terminf|o functi|
|00004d60| 6f 6e 73 20 61 6e 64 20 | 76 61 72 69 61 62 6c 65 |ons and |variable|
|00004d70| 20 6e 61 6d 65 73 2c 0a | 61 6e 64 20 43 75 72 73 | names,.|and Curs|
|00004d80| 65 73 20 43 6c 61 73 73 | 69 63 20 69 73 20 73 75 |es Class|ic is su|
|00004d90| 70 70 6f 72 74 65 64 20 | 62 79 20 72 65 64 65 66 |pported |by redef|
|00004da0| 69 6e 69 74 69 6f 6e 73 | 20 61 6e 64 20 65 6d 75 |initions| and emu|
|00004db0| 6c 61 74 69 6f 6e 20 72 | 6f 75 74 69 6e 65 73 2e |lation r|outines.|
|00004dc0| 0a 58 2e 50 50 0a 48 6f | 77 65 76 65 72 2c 20 77 |.X.PP.Ho|wever, w|
|00004dd0| 6d 20 72 65 61 6c 6c 79 | 20 73 68 6f 75 6c 64 20 |m really| should |
|00004de0| 6f 6e 6c 79 20 62 65 20 | 63 6f 6d 70 69 6c 65 64 |only be |compiled|
|00004df0| 20 77 69 74 68 20 43 75 | 72 73 65 73 20 43 6c 61 | with Cu|rses Cla|
|00004e00| 73 73 69 63 2e 0a 54 68 | 65 20 74 65 72 6d 69 6e |ssic..Th|e termin|
|00004e10| 66 6f 20 76 65 72 73 69 | 6f 6e 20 69 73 20 73 6c |fo versi|on is sl|
|00004e20| 6f 77 65 72 2c 20 62 69 | 67 67 65 72 2c 20 62 75 |ower, bi|gger, bu|
|00004e30| 67 67 69 65 72 2c 20 61 | 6e 64 20 64 6f 65 73 20 |ggier, a|nd does |
|00004e40| 6e 6f 74 0a 73 75 70 70 | 6f 72 74 20 61 72 72 6f |not.supp|ort arro|
|00004e50| 77 20 6b 65 79 73 2e 0a | 54 65 72 6d 69 6e 66 6f |w keys..|Terminfo|
|00004e60| 20 61 6c 73 6f 20 68 61 | 73 20 6d 6f 72 65 20 66 | also ha|s more f|
|00004e70| 75 6e 64 61 6d 65 6e 74 | 61 6c 20 70 72 6f 62 6c |undament|al probl|
|00004e80| 65 6d 73 2e 0a 49 74 20 | 64 6f 65 73 20 6e 6f 74 |ems..It |does not|
|00004e90| 20 70 72 6f 76 69 64 65 | 20 73 75 70 70 6f 72 74 | provide| support|
|00004ea0| 20 66 6f 72 20 74 68 65 | 20 54 45 52 4d 43 41 50 | for the| TERMCAP|
|00004eb0| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 76 61 72 | environ|ment var|
|00004ec0| 69 61 62 6c 65 2c 0a 61 | 6e 64 20 74 68 65 72 65 |iable,.a|nd there|
|00004ed0| 20 69 73 20 6e 6f 20 65 | 61 73 79 20 77 61 79 20 | is no e|asy way |
|00004ee0| 74 6f 20 63 6f 6e 73 74 | 72 75 63 74 20 61 20 74 |to const|ruct a t|
|00004ef0| 65 72 6d 69 6e 66 6f 20 | 62 69 6e 61 72 79 20 66 |erminfo |binary f|
|00004f00| 69 6c 65 0a 61 6e 61 6c | 6f 67 6f 75 73 20 74 6f |ile.anal|ogous to|
|00004f10| 20 74 68 65 20 27 77 6d | 76 69 72 74 27 20 54 45 | the 'wm|virt' TE|
|00004f20| 52 4d 43 41 50 20 73 74 | 72 69 6e 67 2e 0a 41 73 |RMCAP st|ring..As|
|00004f30| 20 61 20 72 65 73 75 6c | 74 20 77 6d 20 63 61 6e | a resul|t wm can|
|00004f40| 6e 6f 74 20 73 75 70 70 | 6f 72 74 20 61 6e 79 20 |not supp|ort any |
|00004f50| 74 65 72 6d 69 6e 66 6f | 2d 63 6f 6d 70 69 6c 65 |terminfo|-compile|
|00004f60| 64 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 20 70 |d applic|ations p|
|00004f70| 72 6f 67 72 61 6d 73 2e | 0a 57 68 65 6e 20 28 69 |rograms.|.When (i|
|00004f80| 66 29 20 74 68 69 73 20 | 62 65 63 6f 6d 65 73 20 |f) this |becomes |
|00004f90| 61 20 70 72 6f 62 6c 65 | 6d 20 74 68 65 72 65 20 |a proble|m there |
|00004fa0| 77 69 6c 6c 20 62 65 20 | 61 64 64 69 74 69 6f 6e |will be |addition|
|00004fb0| 61 6c 20 69 6e 63 65 6e | 74 69 76 65 0a 66 6f 72 |al incen|tive.for|
|00004fc0| 20 77 6d 20 74 6f 20 62 | 65 20 61 62 6c 65 20 74 | wm to b|e able t|
|00004fd0| 6f 20 65 6d 75 6c 61 74 | 65 20 61 6e 20 61 72 62 |o emulat|e an arb|
|00004fe0| 69 74 72 61 72 79 20 74 | 65 72 6d 69 6e 61 6c 0a |itrary t|erminal.|
|00004ff0| 28 61 6c 73 6f 20 73 65 | 65 20 60 60 70 72 6f 62 |(also se|e ``prob|
|00005000| 6c 65 6d 73 20 77 69 74 | 68 20 72 75 6e 6e 69 6e |lems wit|h runnin|
|00005010| 67 20 70 72 6f 67 72 61 | 6d 73 20 75 6e 64 65 72 |g progra|ms under|
|00005020| 20 77 6d 27 27 2c 20 61 | 62 6f 76 65 29 2e 0a 54 | wm'', a|bove)..T|
|00005030| 68 65 6e 2c 20 69 6e 20 | 63 6f 6e 6a 75 6e 63 74 |hen, in |conjunct|
|00005040| 69 6f 6e 20 77 69 74 68 | 20 74 68 65 20 34 2e 33 |ion with| the 4.3|
|00005050| 20 6b 65 72 6e 65 6c 20 | 73 75 70 70 6f 72 74 20 | kernel |support |
|00005060| 66 6f 72 20 77 69 6e 64 | 6f 77 20 73 69 7a 65 73 |for wind|ow sizes|
|00005070| 2c 0a 77 6d 20 63 61 6e | 20 64 69 73 70 65 6e 73 |,.wm can| dispens|
|00005080| 65 20 77 69 74 68 20 74 | 68 65 20 54 45 52 4d 43 |e with t|he TERMC|
|00005090| 41 50 20 76 61 72 69 61 | 62 6c 65 20 61 6e 64 20 |AP varia|ble and |
|000050a0| 65 6d 75 6c 61 74 65 20 | 77 68 61 74 65 76 65 72 |emulate |whatever|
|000050b0| 0a 74 65 72 6d 69 6e 61 | 6c 20 69 73 20 64 65 73 |.termina|l is des|
|000050c0| 69 72 65 64 2c 20 74 68 | 75 73 20 73 75 70 70 6f |ired, th|us suppo|
|000050d0| 72 74 69 6e 67 20 62 6f | 74 68 20 74 65 72 6d 63 |rting bo|th termc|
|000050e0| 61 70 20 61 6e 64 20 74 | 65 72 6d 69 6e 66 6f 2e |ap and t|erminfo.|
|000050f0| 0a 28 5c 66 49 3c 77 6d | 2d 65 73 63 3e 5c 66 50 |.(\fI<wm|-esc>\fP|
|00005100| 74 20 77 69 6c 6c 20 73 | 74 69 6c 6c 20 62 65 20 |t will s|till be |
|00005110| 6e 65 65 64 65 64 20 66 | 6f 72 20 74 69 70 20 61 |needed f|or tip a|
|00005120| 6e 64 20 63 75 2e 29 0a | 58 2e 53 48 0a 57 4d 20 |nd cu.).|X.SH.WM |
|00005130| 72 65 73 70 6f 6e 73 65 | 20 73 6c 75 67 67 69 73 |response| sluggis|
|00005140| 68 6e 65 73 73 0a 58 2e | 50 50 0a 41 6e 20 75 6e |hness.X.|PP.An un|
|00005150| 66 6f 72 74 75 6e 61 74 | 65 20 63 75 72 72 65 6e |fortunat|e curren|
|00005160| 74 20 73 69 64 65 2d 65 | 66 66 65 63 74 20 6f 66 |t side-e|ffect of|
|00005170| 20 77 6d 20 69 73 20 74 | 68 61 74 20 63 65 72 74 | wm is t|hat cert|
|00005180| 61 69 6e 0a 6e 6f 72 6d | 61 6c 6c 79 20 72 65 73 |ain.norm|ally res|
|00005190| 70 6f 6e 73 69 76 65 20 | 74 65 72 6d 69 6e 61 6c |ponsive |terminal|
|000051a0| 20 6f 70 65 72 61 74 69 | 6f 6e 73 20 61 72 65 20 | operati|ons are |
|000051b0| 6e 6f 77 20 73 6c 75 67 | 67 69 73 68 2e 0a 58 46 |now slug|gish..XF|
|000051c0| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 69 66 20 79 |or examp|le, if y|
|000051d0| 6f 75 20 63 61 74 20 61 | 20 66 69 6c 65 20 61 6e |ou cat a| file an|
|000051e0| 64 20 70 72 65 73 73 20 | 3c 49 6e 74 65 72 72 75 |d press |<Interru|
|000051f0| 70 74 3e 0a 73 65 76 65 | 72 61 6c 20 6c 69 6e 65 |pt>.seve|ral line|
|00005200| 73 20 77 69 6c 6c 20 62 | 65 20 70 72 69 6e 74 65 |s will b|e printe|
|00005210| 64 20 62 65 66 6f 72 65 | 20 74 68 65 20 69 6e 74 |d before| the int|
|00005220| 65 72 72 75 70 74 0a 74 | 61 6b 65 73 20 65 66 66 |errupt.t|akes eff|
|00005230| 65 63 74 2e 0a 4f 74 68 | 65 72 20 73 69 6d 69 6c |ect..Oth|er simil|
|00005240| 61 72 20 73 70 65 63 69 | 61 6c 20 63 68 61 72 61 |ar speci|al chara|
|00005250| 63 74 65 72 73 20 61 72 | 65 20 61 6c 73 6f 20 68 |cters ar|e also h|
|00005260| 61 6e 64 6c 65 64 20 73 | 6c 6f 77 6c 79 2e 0a 54 |andled s|lowly..T|
|00005270| 68 65 20 72 65 61 73 6f | 6e 20 69 73 20 74 68 61 |he reaso|n is tha|
|00005280| 74 20 77 6d 20 72 75 6e | 73 20 69 6e 20 72 61 77 |t wm run|s in raw|
|00005290| 20 6d 6f 64 65 2c 20 73 | 6f 20 73 75 63 68 20 63 | mode, s|o such c|
|000052a0| 68 61 72 61 63 74 65 72 | 73 0a 61 72 65 20 6e 6f |haracter|s.are no|
|000052b0| 74 20 60 60 69 6e 73 74 | 61 6e 74 6c 79 27 27 20 |t ``inst|antly'' |
|000052c0| 68 61 6e 64 6c 65 64 20 | 69 6e 20 74 68 65 20 6b |handled |in the k|
|000052d0| 65 72 6e 65 6c 2e 0a 49 | 6e 73 74 65 61 64 20 74 |ernel..I|nstead t|
|000052e0| 68 65 79 20 61 72 65 20 | 70 61 73 73 65 64 20 74 |hey are |passed t|
|000052f0| 6f 20 74 68 65 20 63 75 | 72 72 65 6e 74 6c 79 20 |o the cu|rrently |
|00005300| 73 65 6c 65 63 74 65 64 | 0a 70 73 65 75 64 6f 2d |selected|.pseudo-|
|00005310| 74 74 79 2c 20 77 68 69 | 63 68 20 74 68 65 6e 20 |tty, whi|ch then |
|00005320| 69 6e 74 65 72 72 75 70 | 74 73 20 6f 72 20 73 74 |interrup|ts or st|
|00005330| 6f 70 73 20 6f 72 20 77 | 68 61 74 65 76 65 72 2e |ops or w|hatever.|
|00005340| 0a 42 75 74 20 61 6e 79 | 20 63 68 61 72 61 63 74 |.But any| charact|
|00005350| 65 72 73 20 63 75 72 72 | 65 6e 74 6c 79 20 71 75 |ers curr|ently qu|
|00005360| 65 75 65 64 20 62 79 20 | 77 6d 20 66 6f 72 20 74 |eued by |wm for t|
|00005370| 68 65 20 75 73 65 72 27 | 73 20 74 65 72 6d 69 6e |he user'|s termin|
|00005380| 61 6c 0a 61 72 65 20 73 | 74 69 6c 6c 20 70 72 69 |al.are s|till pri|
|00005390| 6e 74 65 64 21 0a 28 54 | 68 65 20 73 63 72 69 70 |nted!.(T|he scrip|
|000053a0| 74 20 70 72 6f 67 72 61 | 6d 20 68 61 73 20 74 68 |t progra|m has th|
|000053b0| 65 20 73 61 6d 65 20 62 | 65 68 61 76 69 6f 72 2c |e same b|ehavior,|
|000053c0| 0a 62 75 74 20 69 74 20 | 69 73 20 74 6f 6c 65 72 |.but it |is toler|
|000053d0| 61 62 6c 65 20 66 6f 72 | 20 74 68 65 20 6e 6f 72 |able for| the nor|
|000053e0| 6d 61 6c 20 75 73 65 73 | 20 6f 66 20 74 68 61 74 |mal uses| of that|
|000053f0| 20 63 6f 6d 6d 61 6e 64 | 2e 29 0a 54 68 65 72 65 | command|.).There|
|00005400| 20 64 6f 65 73 20 6e 6f | 74 20 73 65 65 6d 20 74 | does no|t seem t|
|00005410| 6f 20 62 65 20 61 20 67 | 6f 6f 64 20 77 61 79 20 |o be a g|ood way |
|00005420| 61 72 6f 75 6e 64 20 74 | 68 69 73 20 70 72 6f 62 |around t|his prob|
|00005430| 6c 65 6d 2e 0a 57 6d 27 | 73 20 63 75 72 72 65 6e |lem..Wm'|s curren|
|00005440| 74 20 61 70 70 72 6f 61 | 63 68 20 69 73 20 74 6f |t approa|ch is to|
|00005450| 0a 58 2e 49 50 20 61 29 | 0a 4f 6e 6c 79 20 72 65 |.X.IP a)|.Only re|
|00005460| 61 64 20 61 20 66 65 77 | 20 28 63 75 72 72 65 6e |ad a few| (curren|
|00005470| 74 6c 79 20 36 34 29 20 | 63 68 61 72 61 63 74 65 |tly 64) |characte|
|00005480| 72 73 20 66 72 6f 6d 20 | 65 61 63 68 20 70 73 65 |rs from |each pse|
|00005490| 75 64 6f 2d 74 74 79 0a | 61 74 20 61 20 74 69 6d |udo-tty.|at a tim|
|000054a0| 65 2c 20 74 6f 20 61 76 | 6f 69 64 20 6c 61 72 67 |e, to av|oid larg|
|000054b0| 65 20 71 75 65 75 65 73 | 20 66 72 6f 6d 20 77 6d |e queues| from wm|
|000054c0| 20 74 6f 20 74 68 65 20 | 72 65 61 6c 20 74 74 79 | to the |real tty|
|000054d0| 2e 0a 58 2e 49 50 20 62 | 29 0a 48 61 76 65 20 77 |..X.IP b|).Have w|
|000054e0| 6d 20 63 68 65 63 6b 20 | 74 68 65 20 73 69 7a 65 |m check |the size|
|000054f0| 20 6f 66 20 74 68 65 20 | 6f 75 74 70 75 74 20 71 | of the |output q|
|00005500| 75 65 75 65 20 75 73 69 | 6e 67 20 74 68 65 20 75 |ueue usi|ng the u|
|00005510| 6e 64 6f 63 75 6d 65 6e | 74 65 64 0a 54 49 4f 43 |ndocumen|ted.TIOC|
|00005520| 4f 55 54 51 20 69 6f 63 | 74 6c 2c 20 61 6e 64 20 |OUTQ ioc|tl, and |
|00005530| 64 65 6c 61 79 20 72 65 | 61 64 69 6e 67 20 66 72 |delay re|ading fr|
|00005540| 6f 6d 20 74 68 65 20 70 | 73 65 75 64 6f 2d 74 74 |om the p|seudo-tt|
|00005550| 79 73 0a 69 66 20 74 68 | 65 20 6f 75 74 70 75 74 |ys.if th|e output|
|00005560| 20 71 75 65 75 65 20 69 | 73 20 6c 61 72 67 65 2e | queue i|s large.|
|00005570| 0a 58 2e 49 50 20 63 29 | 0a 48 61 76 65 20 77 6d |.X.IP c)|.Have wm|
|00005580| 20 72 65 64 75 63 65 20 | 74 68 65 20 72 65 61 64 | reduce |the read|
|00005590| 20 61 6e 64 20 71 75 65 | 75 65 20 73 69 7a 65 73 | and que|ue sizes|
|000055a0| 20 66 6f 72 20 61 20 77 | 68 69 6c 65 20 61 66 74 | for a w|hile aft|
|000055b0| 65 72 20 74 68 65 20 75 | 73 65 72 0a 74 79 70 65 |er the u|ser.type|
|000055c0| 73 20 43 6f 6e 74 72 6f | 6c 2d 53 2e 0a 58 2e 4c |s Contro|l-S..X.L|
|000055d0| 50 0a 54 68 65 20 66 69 | 72 73 74 20 74 77 6f 20 |P.The fi|rst two |
|000055e0| 68 61 63 6b 73 20 6b 65 | 65 70 20 74 68 65 20 72 |hacks ke|ep the r|
|000055f0| 65 73 70 6f 6e 73 65 20 | 74 6f 20 3c 49 6e 74 65 |esponse |to <Inte|
|00005600| 72 72 75 70 74 3e 20 61 | 74 20 61 20 74 6f 6c 65 |rrupt> a|t a tole|
|00005610| 72 61 62 6c 65 20 6c 65 | 76 65 6c 2e 0a 54 68 65 |rable le|vel..The|
|00005620| 79 20 61 6c 73 6f 20 6b | 65 65 70 20 74 68 65 20 |y also k|eep the |
|00005630| 74 74 79 20 68 69 67 68 | 20 77 61 74 65 72 20 6d |tty high| water m|
|00005640| 61 72 6b 20 66 72 6f 6d | 0a 62 65 69 6e 67 20 72 |ark from|.being r|
|00005650| 65 61 63 68 65 64 2c 20 | 77 68 69 63 68 20 77 6f |eached, |which wo|
|00005660| 75 6c 64 20 70 75 74 20 | 77 6d 20 74 6f 20 73 6c |uld put |wm to sl|
|00005670| 65 65 70 2c 0a 77 68 69 | 63 68 20 77 6f 75 6c 64 |eep,.whi|ch would|
|00005680| 20 6d 61 6b 65 20 72 65 | 73 70 6f 6e 73 65 20 76 | make re|sponse v|
|00005690| 65 72 79 20 73 6c 75 67 | 67 69 73 68 20 69 6e 64 |ery slug|gish ind|
|000056a0| 65 65 64 2e 0a 54 68 65 | 20 6c 61 73 74 20 68 61 |eed..The| last ha|
|000056b0| 63 6b 20 67 69 76 65 73 | 20 73 6f 6d 65 77 68 61 |ck gives| somewha|
|000056c0| 74 20 62 65 74 74 65 72 | 20 72 65 73 70 6f 6e 73 |t better| respons|
|000056d0| 65 20 74 6f 20 43 6f 6e | 74 72 6f 6c 2d 53 2e 0a |e to Con|trol-S..|
|000056e0| 58 2e 50 50 0a 54 68 69 | 73 20 61 70 70 72 6f 61 |X.PP.Thi|s approa|
|000056f0| 63 68 20 74 6f 20 77 6d | 20 73 6c 75 67 67 69 73 |ch to wm| sluggis|
|00005700| 68 6e 65 73 73 20 69 73 | 20 71 75 69 74 65 20 6e |hness is| quite n|
|00005710| 65 77 2c 0a 73 6f 20 6d | 6f 72 65 20 74 75 6e 69 |ew,.so m|ore tuni|
|00005720| 6e 67 20 61 6e 64 20 62 | 65 74 74 65 72 20 61 70 |ng and b|etter ap|
|00005730| 70 72 6f 61 63 68 65 73 | 20 74 6f 20 74 68 65 20 |proaches| to the |
|00005740| 70 72 6f 62 6c 65 6d 20 | 61 72 65 20 70 6f 73 73 |problem |are poss|
|00005750| 69 62 69 6c 69 74 69 65 | 73 2e 0a 41 6c 73 6f 2c |ibilitie|s..Also,|
|00005760| 20 74 68 65 20 70 61 72 | 61 6d 65 74 65 72 73 20 | the par|ameters |
|00005770| 68 61 76 65 20 62 65 65 | 6e 20 74 75 6e 65 64 20 |have bee|n tuned |
|00005780| 66 6f 72 20 61 20 47 6f | 75 6c 64 20 39 30 35 30 |for a Go|uld 9050|
|00005790| 2c 0a 77 68 69 63 68 20 | 69 73 20 71 75 69 74 65 |,.which |is quite|
|000057a0| 20 61 20 66 61 73 74 20 | 6d 61 63 68 69 6e 65 2c | a fast |machine,|
|000057b0| 20 61 6e 64 20 74 68 65 | 20 72 65 73 75 6c 74 69 | and the| resulti|
|000057c0| 6e 67 0a 65 78 74 72 61 | 20 63 70 75 20 69 6e 76 |ng.extra| cpu inv|
|000057d0| 6f 6c 76 65 64 20 6d 69 | 67 68 74 20 62 65 20 69 |olved mi|ght be i|
|000057e0| 6e 74 6f 6c 65 72 61 62 | 6c 65 20 6f 6e 20 61 20 |ntolerab|le on a |
|000057f0| 56 41 58 2e 0a 41 6e 20 | 65 61 73 79 20 60 66 69 |VAX..An |easy `fi|
|00005800| 78 27 20 69 73 20 74 6f | 20 63 6f 6d 6d 65 6e 74 |x' is to| comment|
|00005810| 20 6f 75 74 20 74 68 65 | 20 54 49 4f 43 4f 55 54 | out the| TIOCOUT|
|00005820| 51 20 63 6f 64 65 20 69 | 6e 20 77 6d 2e 63 0a 28 |Q code i|n wm.c.(|
|00005830| 79 6f 75 20 63 61 6e 20 | 70 72 6f 62 61 62 6c 79 |you can |probably|
|00005840| 20 6a 75 73 74 20 23 75 | 6e 64 65 66 20 54 49 4f | just #u|ndef TIO|
|00005850| 43 4f 55 54 51 20 61 74 | 20 74 68 65 20 74 6f 70 |COUTQ at| the top|
|00005860| 29 2e 0a 59 6f 75 20 6d | 69 67 68 74 20 77 61 6e |)..You m|ight wan|
|00005870| 74 20 74 6f 20 72 65 6d | 6f 76 65 20 74 68 65 20 |t to rem|ove the |
|00005880| 43 6f 6e 74 72 6f 6c 2d | 53 20 68 61 63 6b 20 61 |Control-|S hack a|
|00005890| 73 20 77 65 6c 6c 2e 0a | 58 2e 53 48 0a 54 68 65 |s well..|X.SH.The|
|000058a0| 20 60 2e 77 6d 72 63 27 | 20 46 69 6c 65 0a 58 2e | `.wmrc'| File.X.|
|000058b0| 50 50 0a 54 68 65 20 66 | 69 72 73 74 20 6c 69 6e |PP.The f|irst lin|
|000058c0| 65 20 6f 66 20 2e 77 6d | 72 63 20 69 73 20 74 68 |e of .wm|rc is th|
|000058d0| 65 20 70 72 65 66 69 78 | 20 63 68 61 72 61 63 74 |e prefix| charact|
|000058e0| 65 72 2e 0a 54 68 65 20 | 72 65 6d 61 69 6e 69 6e |er..The |remainin|
|000058f0| 67 20 6c 69 6e 65 73 20 | 64 65 73 63 72 69 62 65 |g lines |describe|
|00005900| 20 74 68 65 20 63 6f 6e | 66 69 67 75 72 65 64 20 | the con|figured |
|00005910| 77 69 6e 64 6f 77 73 20 | 66 72 6f 6d 20 62 6f 74 |windows |from bot|
|00005920| 74 6f 6d 0a 74 6f 20 74 | 6f 70 2e 0a 28 54 68 65 |tom.to t|op..(The|
|00005930| 20 6c 61 73 74 20 6c 69 | 6e 65 20 64 65 73 63 72 | last li|ne descr|
|00005940| 69 62 65 73 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |ibes the| window |
|00005950| 69 6e 20 77 68 69 63 68 | 20 74 68 65 20 75 73 65 |in which| the use|
|00005960| 72 20 73 74 61 72 74 73 | 2e 29 0a 45 61 63 68 20 |r starts|.).Each |
|00005970| 6c 69 6e 65 20 63 6f 6e | 73 69 73 74 73 20 6f 66 |line con|sists of|
|00005980| 20 74 68 65 20 77 69 6e | 64 6f 77 20 6e 61 6d 65 | the win|dow name|
|00005990| 2c 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |, the nu|mber of |
|000059a0| 72 6f 77 73 20 61 6e 64 | 20 63 6f 6c 75 6d 6e 73 |rows and| columns|
|000059b0| 2c 0a 61 6e 64 20 74 68 | 65 20 73 74 61 72 74 69 |,.and th|e starti|
|000059c0| 6e 67 20 72 6f 77 20 61 | 6e 64 20 63 6f 6c 75 6d |ng row a|nd colum|
|000059d0| 6e 20 28 7a 65 72 6f 20 | 69 6e 64 65 78 65 64 29 |n (zero |indexed)|
|000059e0| 2e 0a 49 66 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |..If the| number |
|000059f0| 6f 66 20 72 6f 77 73 20 | 28 63 6f 6c 75 6d 6e 73 |of rows |(columns|
|00005a00| 29 20 69 73 20 67 69 76 | 65 6e 20 61 73 20 7a 65 |) is giv|en as ze|
|00005a10| 72 6f 20 74 68 65 6e 20 | 74 68 61 74 20 64 69 6d |ro then |that dim|
|00005a20| 65 6e 73 69 6f 6e 0a 60 | 60 66 6c 65 78 65 73 27 |ension.`|`flexes'|
|00005a30| 27 20 74 6f 20 74 68 65 | 20 68 65 69 67 68 74 20 |' to the| height |
|00005a40| 28 77 69 64 74 68 29 20 | 6f 66 20 74 68 65 20 73 |(width) |of the s|
|00005a50| 63 72 65 65 6e 2c 0a 77 | 68 69 63 68 20 73 75 70 |creen,.w|hich sup|
|00005a60| 70 6f 73 65 64 6c 79 20 | 69 73 20 75 73 65 66 75 |posedly |is usefu|
|00005a70| 6c 20 77 68 65 6e 20 73 | 77 69 74 63 68 69 6e 67 |l when s|witching|
|00005a80| 20 61 6d 6f 6e 67 20 74 | 65 72 6d 69 6e 61 6c 73 | among t|erminals|
|00005a90| 0a 6f 66 20 64 69 66 66 | 65 72 65 6e 74 20 73 69 |.of diff|erent si|
|00005aa0| 7a 65 73 2e 0a 58 2e 50 | 50 0a 58 53 65 76 65 72 |zes..X.P|P.XSever|
|00005ab0| 61 6c 20 75 73 65 72 73 | 20 68 61 76 65 20 61 73 |al users| have as|
|00005ac0| 6b 65 64 20 66 6f 72 20 | 74 68 65 20 61 62 69 6c |ked for |the abil|
|00005ad0| 69 74 79 20 74 6f 20 73 | 70 65 63 69 66 79 20 61 |ity to s|pecify a|
|00005ae0| 6e 20 61 6c 74 65 72 6e | 61 74 65 20 60 60 73 68 |n altern|ate ``sh|
|00005af0| 65 6c 6c 27 27 0a 69 6e | 20 61 20 77 69 6e 64 6f |ell''.in| a windo|
|00005b00| 77 2e 0a 54 68 61 74 20 | 63 6f 75 6c 64 20 62 65 |w..That |could be|
|00005b10| 20 64 6f 6e 65 20 62 79 | 20 65 78 74 65 6e 64 69 | done by| extendi|
|00005b20| 6e 67 20 74 68 65 20 2e | 77 6d 72 63 20 6c 69 6e |ng the .|wmrc lin|
|00005b30| 65 73 20 74 6f 20 69 6e | 63 6c 75 64 65 0a 61 20 |es to in|clude.a |
|00005b40| 63 6f 6d 6d 61 6e 64 20 | 74 6f 20 62 65 20 65 78 |command |to be ex|
|00005b50| 65 63 75 74 65 64 20 69 | 6e 20 6c 69 65 75 20 6f |ecuted i|n lieu o|
|00005b60| 66 20 74 68 65 20 73 68 | 65 6c 6c 2e 0a 4f 74 68 |f the sh|ell..Oth|
|00005b70| 65 72 20 75 73 65 72 73 | 20 68 61 76 65 20 72 65 |er users| have re|
|00005b80| 71 75 65 73 74 65 64 20 | 74 68 65 20 61 62 69 6c |quested |the abil|
|00005b90| 69 74 79 20 74 6f 20 73 | 65 74 20 74 68 65 20 73 |ity to s|et the s|
|00005ba0| 68 65 6c 6c 20 70 72 6f | 6d 70 74 73 0a 69 6e 20 |hell pro|mpts.in |
|00005bb0| 61 20 77 69 6e 64 6f 77 | 20 64 65 70 65 6e 64 65 |a window| depende|
|00005bc0| 6e 74 20 77 61 79 2c 20 | 61 6d 6f 6e 67 20 6f 74 |nt way, |among ot|
|00005bd0| 68 65 72 20 74 68 69 6e | 67 73 2e 0a 49 20 64 6f |her thin|gs..I do|
|00005be0| 20 6e 6f 74 20 6b 6e 6f | 77 20 68 6f 77 20 74 68 | not kno|w how th|
|00005bf0| 61 74 20 6d 69 67 68 74 | 20 62 65 20 64 6f 6e 65 |at might| be done|
|00005c00| 2e 0a 58 2e 53 48 0a 54 | 68 65 20 60 60 53 4e 45 |..X.SH.T|he ``SNE|
|00005c10| 41 4b 59 54 45 52 4d 43 | 41 50 27 27 20 4d 65 74 |AKYTERMC|AP'' Met|
|00005c20| 68 6f 64 0a 58 2e 50 50 | 0a 4f 72 64 69 6e 61 72 |hod.X.PP|.Ordinar|
|00005c30| 69 6c 79 2c 20 77 68 65 | 6e 20 61 20 77 69 6e 64 |ily, whe|n a wind|
|00005c40| 6f 77 20 63 68 61 6e 67 | 65 73 20 73 69 7a 65 2c |ow chang|es size,|
|00005c50| 20 77 6d 20 62 6c 61 73 | 74 73 20 74 68 65 20 77 | wm blas|ts the w|
|00005c60| 69 6e 64 6f 77 0a 77 69 | 74 68 20 61 20 73 68 65 |indow.wi|th a she|
|00005c70| 6c 6c 20 63 6f 6d 6d 61 | 6e 64 20 74 68 61 74 20 |ll comma|nd that |
|00005c80| 73 65 74 73 20 54 45 52 | 4d 20 61 6e 64 20 54 45 |sets TER|M and TE|
|00005c90| 52 4d 43 41 50 0a 74 6f | 20 69 6e 64 69 63 61 74 |RMCAP.to| indicat|
|00005ca0| 65 20 74 68 65 20 6e 65 | 77 20 77 69 6e 64 6f 77 |e the ne|w window|
|00005cb0| 27 73 20 73 69 7a 65 2e | 0a 28 54 68 69 73 20 69 |'s size.|.(This i|
|00005cc0| 73 20 74 68 65 20 73 61 | 6d 65 20 73 68 65 6c 6c |s the sa|me shell|
|00005cd0| 20 63 6f 6d 6d 61 6e 64 | 20 67 65 6e 65 72 61 74 | command| generat|
|00005ce0| 65 64 20 62 79 20 5c 66 | 49 3c 77 6d 2d 65 73 63 |ed by \f|I<wm-esc|
|00005cf0| 3e 5c 66 50 74 2e 29 0a | 54 68 69 73 20 6e 6f 74 |>\fPt.).|This not|
|00005d00| 20 6f 6e 6c 79 20 70 72 | 6f 64 75 63 65 73 20 63 | only pr|oduces c|
|00005d10| 6c 75 74 74 65 72 2c 20 | 69 74 20 63 61 6e 20 61 |lutter, |it can a|
|00005d20| 6c 73 6f 20 63 6f 6e 66 | 75 73 65 20 6e 6f 6e 2d |lso conf|use non-|
|00005d30| 73 68 65 6c 6c 0a 70 72 | 6f 67 72 61 6d 73 20 72 |shell.pr|ograms r|
|00005d40| 75 6e 6e 69 6e 67 20 69 | 6e 20 74 68 61 74 20 77 |unning i|n that w|
|00005d50| 69 6e 64 6f 77 2e 0a 49 | 66 20 79 6f 75 72 20 76 |indow..I|f your v|
|00005d60| 65 72 73 69 6f 6e 20 6f | 66 20 77 6d 20 77 61 73 |ersion o|f wm was|
|00005d70| 20 63 6f 6d 70 69 6c 65 | 64 20 77 69 74 68 20 53 | compile|d with S|
|00005d80| 4e 45 41 4b 59 54 45 52 | 4d 43 41 50 20 64 65 66 |NEAKYTER|MCAP def|
|00005d90| 69 6e 65 64 2c 0a 68 6f | 77 65 76 65 72 2c 20 61 |ined,.ho|wever, a|
|00005da0| 20 64 69 66 66 65 72 65 | 6e 74 20 6d 65 74 68 6f | differe|nt metho|
|00005db0| 64 20 69 73 20 75 73 65 | 64 2e 0a 54 68 65 20 54 |d is use|d..The T|
|00005dc0| 45 52 4d 43 41 50 20 76 | 61 72 69 61 62 6c 65 20 |ERMCAP v|ariable |
|00005dd0| 69 73 20 73 65 74 20 74 | 6f 20 61 20 66 69 6c 65 |is set t|o a file|
|00005de0| 6e 61 6d 65 20 73 75 63 | 68 20 61 73 20 2f 74 6d |name suc|h as /tm|
|00005df0| 70 2f 57 4d 2e 33 33 34 | 34 35 2e 31 0a 61 6e 64 |p/WM.334|45.1.and|
|00005e00| 20 74 68 65 20 66 69 6c | 65 20 63 6f 6e 74 61 69 | the fil|e contai|
|00005e10| 6e 73 20 74 68 65 20 74 | 65 72 6d 63 61 70 20 63 |ns the t|ermcap c|
|00005e20| 61 70 61 62 69 6c 69 74 | 79 20 73 74 72 69 6e 67 |apabilit|y string|
|00005e30| 2e 0a 54 68 65 6e 2c 20 | 77 68 65 6e 20 61 20 77 |..Then, |when a w|
|00005e40| 69 6e 64 6f 77 20 63 68 | 61 6e 67 65 73 20 73 69 |indow ch|anges si|
|00005e50| 7a 65 20 74 68 65 20 2f | 74 6d 70 20 66 69 6c 65 |ze the /|tmp file|
|00005e60| 20 69 73 20 73 69 6d 70 | 6c 79 20 72 65 77 72 69 | is simp|ly rewri|
|00005e70| 74 74 65 6e 2e 0a 42 75 | 74 20 74 68 65 72 65 20 |tten..Bu|t there |
|00005e80| 69 73 20 61 20 73 65 63 | 75 72 69 74 79 20 70 72 |is a sec|urity pr|
|00005e90| 6f 62 6c 65 6d 20 77 69 | 74 68 20 74 68 69 73 20 |oblem wi|th this |
|00005ea0| 6d 65 74 68 6f 64 0a 28 | 6f 72 20 77 69 74 68 20 |method.(|or with |
|00005eb0| 61 6e 79 20 63 6f 6d 6d | 61 6e 64 20 74 68 61 74 |any comm|and that|
|00005ec0| 20 75 73 65 73 20 2f 74 | 6d 70 29 0a 61 6e 64 20 | uses /t|mp).and |
|00005ed0| 2f 74 6d 70 20 67 65 74 | 73 20 63 6c 75 74 74 65 |/tmp get|s clutte|
|00005ee0| 72 65 64 20 75 70 20 77 | 69 74 68 20 6c 6f 74 73 |red up w|ith lots|
|00005ef0| 20 6f 66 20 60 60 57 4d | 27 27 20 66 69 6c 65 73 | of ``WM|'' files|
|00005f00| 2e 0a 49 74 20 77 6f 75 | 6c 64 20 62 65 20 62 65 |..It wou|ld be be|
|00005f10| 74 74 65 72 20 69 66 20 | 74 68 65 20 66 69 6c 65 |tter if |the file|
|00005f20| 73 20 77 65 72 65 20 6b | 65 70 74 20 69 6e 20 61 |s were k|ept in a|
|00005f30| 20 73 75 62 64 69 72 65 | 63 74 6f 72 79 0a 6f 66 | subdire|ctory.of|
|00005f40| 20 65 61 63 68 20 75 73 | 65 72 27 73 20 68 6f 6d | each us|er's hom|
|00005f50| 65 20 64 69 72 65 63 74 | 6f 72 79 2c 20 61 6e 64 |e direct|ory, and|
|00005f60| 20 69 66 20 77 6d 20 69 | 74 73 65 6c 66 20 63 6c | if wm i|tself cl|
|00005f70| 65 61 6e 65 64 0a 75 70 | 20 64 65 61 64 20 74 65 |eaned.up| dead te|
|00005f80| 6d 70 6f 72 61 72 79 20 | 66 69 6c 65 73 20 28 65 |mporary |files (e|
|00005f90| 2e 67 2e 20 64 75 65 20 | 74 6f 20 61 20 73 79 73 |.g. due |to a sys|
|00005fa0| 74 65 6d 20 63 72 61 73 | 68 29 2e 0a 58 2e 53 48 |tem cras|h)..X.SH|
|00005fb0| 0a 42 72 6f 77 73 69 6e | 67 20 41 62 6f 75 74 20 |.Browsin|g About |
|00005fc0| 69 6e 20 57 4d 20 57 69 | 6e 64 6f 77 73 0a 58 2e |in WM Wi|ndows.X.|
|00005fd0| 50 50 0a 58 53 6f 6d 65 | 20 74 65 72 6d 69 6e 61 |PP.XSome| termina|
|00005fe0| 6c 73 20 68 61 76 65 20 | 65 78 74 72 61 20 6d 65 |ls have |extra me|
|00005ff0| 6d 6f 72 79 20 73 6f 20 | 6f 6e 65 20 63 61 6e 20 |mory so |one can |
|00006000| 6c 6f 6f 6b 20 62 61 63 | 6b 0a 61 74 20 74 65 78 |look bac|k.at tex|
|00006010| 74 20 74 68 61 74 20 73 | 63 72 6f 6c 6c 73 20 6f |t that s|crolls o|
|00006020| 66 66 20 74 68 65 20 73 | 63 72 65 65 6e 2e 0a 49 |ff the s|creen..I|
|00006030| 74 20 77 6f 75 6c 64 20 | 62 65 20 6e 69 63 65 20 |t would |be nice |
|00006040| 69 66 20 77 6d 20 70 72 | 6f 76 69 64 65 64 20 74 |if wm pr|ovided t|
|00006050| 68 61 74 20 74 6f 6f 2e | 0a 4f 6e 65 20 68 75 6e |hat too.|.One hun|
|00006060| 64 72 65 64 20 6c 69 6e | 65 73 20 6f 66 20 73 63 |dred lin|es of sc|
|00006070| 72 6f 6c 6c 65 64 20 74 | 79 70 65 73 63 72 69 70 |rolled t|ypescrip|
|00006080| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 61 64 65 71 |t should| be adeq|
|00006090| 75 61 74 65 2e 0a 41 20 | 70 6c 61 75 73 69 62 6c |uate..A |plausibl|
|000060a0| 65 20 61 70 70 72 6f 61 | 63 68 20 77 6f 75 6c 64 |e approa|ch would|
|000060b0| 20 62 65 20 74 6f 20 74 | 79 70 65 20 5c 66 49 3c | be to t|ype \fI<|
|000060c0| 77 6d 2d 65 73 63 3e 5c | 66 50 76 0a 28 66 6f 72 |wm-esc>\|fPv.(for|
|000060d0| 20 60 76 69 65 77 27 29 | 20 74 6f 20 70 75 74 20 | `view')| to put |
|000060e0| 74 68 65 20 77 69 6e 64 | 6f 77 20 69 6e 20 62 72 |the wind|ow in br|
|000060f0| 6f 77 73 65 20 6d 6f 64 | 65 2e 0a 54 68 65 6e 20 |owse mod|e..Then |
|00006100| 69 6e 70 75 74 20 74 6f | 20 74 68 61 74 20 77 69 |input to| that wi|
|00006110| 6e 64 6f 77 20 69 73 20 | 69 6e 74 65 72 70 72 65 |ndow is |interpre|
|00006120| 74 65 64 20 61 73 20 72 | 65 71 75 65 73 74 73 0a |ted as r|equests.|
|00006130| 74 6f 20 6d 6f 76 65 20 | 62 61 63 6b 20 61 6e 64 |to move |back and|
|00006140| 20 66 6f 72 74 68 20 69 | 6e 20 74 68 65 20 74 79 | forth i|n the ty|
|00006150| 70 65 73 63 72 69 70 74 | 2c 0a 6c 69 6b 65 20 74 |pescript|,.like t|
|00006160| 68 65 20 60 76 69 27 20 | 73 63 72 6f 6c 6c 69 6e |he `vi' |scrollin|
|00006170| 67 20 63 6f 6d 6d 61 6e | 64 73 2e 0a 41 6e 79 20 |g comman|ds..Any |
|00006180| 6f 75 74 70 75 74 20 74 | 6f 20 74 68 65 20 72 65 |output t|o the re|
|00006190| 61 6c 20 77 69 6e 64 6f | 77 20 69 73 20 68 65 6c |al windo|w is hel|
|000061a0| 64 20 70 65 6e 64 69 6e | 67 20 65 78 69 74 20 66 |d pendin|g exit f|
|000061b0| 72 6f 6d 20 62 72 6f 77 | 73 65 20 6d 6f 64 65 2c |rom brow|se mode,|
|000061c0| 0a 77 68 69 63 68 20 6d | 69 67 68 74 20 62 65 20 |.which m|ight be |
|000061d0| 62 79 20 74 79 70 69 6e | 67 20 60 60 3a 71 27 27 |by typin|g ``:q''|
|000061e0| 2c 20 61 74 20 77 68 69 | 63 68 20 74 69 6d 65 20 |, at whi|ch time |
|000061f0| 74 68 65 20 77 69 6e 64 | 6f 77 0a 69 73 20 72 65 |the wind|ow.is re|
|00006200| 73 65 74 20 74 6f 20 69 | 74 73 20 73 74 61 74 65 |set to i|ts state|
|00006210| 20 6f 6e 20 65 6e 74 72 | 79 20 74 6f 20 62 72 6f | on entr|y to bro|
|00006220| 77 73 65 20 6d 6f 64 65 | 2e 0a 4f 66 20 63 6f 75 |wse mode|..Of cou|
|00006230| 72 73 65 2c 20 77 68 69 | 6c 65 20 61 20 77 69 6e |rse, whi|le a win|
|00006240| 64 6f 77 20 69 73 20 69 | 6e 20 62 72 6f 77 73 65 |dow is i|n browse|
|00006250| 20 6d 6f 64 65 20 6f 6e | 65 20 63 61 6e 20 73 74 | mode on|e can st|
|00006260| 69 6c 6c 0a 73 77 69 74 | 63 68 20 62 65 74 77 65 |ill.swit|ch betwe|
|00006270| 65 6e 20 77 69 6e 64 6f | 77 73 2c 20 6d 6f 76 65 |en windo|ws, move|
|00006280| 2c 20 63 72 65 61 74 65 | 2c 20 61 6e 64 20 6b 69 |, create|, and ki|
|00006290| 6c 6c 20 77 69 6e 64 6f | 77 73 2c 20 61 6e 64 20 |ll windo|ws, and |
|000062a0| 73 6f 20 6f 6e 2e 0a 58 | 2e 50 50 0a 41 6c 6c 20 |so on..X|.PP.All |
|000062b0| 74 68 69 73 20 63 61 6e | 20 62 65 20 69 6d 70 6c |this can| be impl|
|000062c0| 65 6d 65 6e 74 65 64 20 | 63 6c 65 61 6e 6c 79 20 |emented |cleanly |
|000062d0| 77 69 74 68 20 61 62 6f | 75 74 20 31 30 30 20 6c |with abo|ut 100 l|
|000062e0| 69 6e 65 73 20 6f 66 20 | 63 6f 64 65 0a 73 63 61 |ines of |code.sca|
|000062f0| 74 74 65 72 65 64 20 68 | 65 72 65 20 61 6e 64 20 |ttered h|ere and |
|00006300| 74 68 65 72 65 20 28 69 | 74 20 68 61 73 20 62 65 |there (i|t has be|
|00006310| 65 6e 20 77 72 69 74 74 | 65 6e 29 2c 0a 62 75 74 |en writt|en),.but|
|00006320| 20 77 68 61 74 20 61 62 | 6f 75 74 20 74 65 78 74 | what ab|out text|
|00006330| 20 73 65 61 72 63 68 69 | 6e 67 20 61 6e 64 20 74 | searchi|ng and t|
|00006340| 68 65 20 61 62 69 6c 69 | 74 79 20 74 6f 20 77 72 |he abili|ty to wr|
|00006350| 69 74 65 20 70 61 72 74 | 73 0a 6f 66 20 74 68 65 |ite part|s.of the|
|00006360| 20 74 79 70 65 73 63 72 | 69 70 74 20 69 6e 74 6f | typescr|ipt into|
|00006370| 20 55 4e 49 58 20 66 69 | 6c 65 73 3f 0a 57 68 61 | UNIX fi|les?.Wha|
|00006380| 74 20 61 62 6f 75 74 20 | 61 6c 6c 20 74 68 65 20 |t about |all the |
|00006390| 6f 74 68 65 72 20 6e 69 | 66 74 79 20 60 76 69 27 |other ni|fty `vi'|
|000063a0| 20 63 6f 6d 6d 61 6e 64 | 73 3f 0a 57 68 79 20 6e | command|s?.Why n|
|000063b0| 6f 74 20 6a 75 73 74 20 | 72 75 6e 20 60 76 69 27 |ot just |run `vi'|
|000063c0| 20 28 6f 72 20 79 6f 75 | 72 20 66 61 76 6f 72 69 | (or you|r favori|
|000063d0| 74 65 20 76 69 65 77 69 | 6e 67 20 70 72 6f 67 72 |te viewi|ng progr|
|000063e0| 61 6d 29 0a 69 6e 20 74 | 68 65 20 62 72 6f 77 73 |am).in t|he brows|
|000063f0| 65 20 77 69 6e 64 6f 77 | 21 3f 0a 57 65 6c 6c 2c |e window|!?.Well,|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.