home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume11 / mush5.7 / part05 < prev    next >
SHell self-extracting ARchive  |  1987-09-17  |  45.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert 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% 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| 53 75 62 6a 65 63 74 3a | 20 20 76 31 31 69 30 35 |Subject:| v11i05|
|00000010| 35 3a 20 20 4d 61 69 6c | 20 75 73 65 72 27 73 20 |5: Mail| user's |
|00000020| 73 68 65 6c 6c 2c 20 50 | 61 72 74 30 35 2f 31 32 |shell, P|art05/12|
|00000030| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|00000040| 70 2e 73 6f 75 72 63 65 | 73 2e 75 6e 69 78 0a 53 |p.source|s.unix.S|
|00000050| 65 6e 64 65 72 3a 20 73 | 6f 75 72 63 65 73 0a 41 |ender: s|ources.A|
|00000060| 70 70 72 6f 76 65 64 3a | 20 72 73 40 75 75 6e 65 |pproved:| rs@uune|
|00000070| 74 2e 55 55 2e 4e 45 54 | 0a 0a 53 75 62 6d 69 74 |t.UU.NET|..Submit|
|00000080| 74 65 64 2d 62 79 3a 20 | 69 73 6c 61 6e 64 21 61 |ted-by: |island!a|
|00000090| 72 67 76 40 53 75 6e 2e | 43 4f 4d 20 28 44 61 6e |rgv@Sun.|COM (Dan|
|000000a0| 20 48 65 6c 6c 65 72 29 | 0a 50 6f 73 74 69 6e 67 | Heller)|.Posting|
|000000b0| 2d 6e 75 6d 62 65 72 3a | 20 56 6f 6c 75 6d 65 20 |-number:| Volume |
|000000c0| 31 31 2c 20 49 73 73 75 | 65 20 35 35 0a 41 72 63 |11, Issu|e 55.Arc|
|000000d0| 68 69 76 65 2d 6e 61 6d | 65 3a 20 6d 75 73 68 35 |hive-nam|e: mush5|
|000000e0| 2e 37 2f 50 61 72 74 30 | 35 0a 0a 23 21 20 2f 62 |.7/Part0|5..#! /b|
|000000f0| 69 6e 2f 73 68 0a 23 20 | 54 68 69 73 20 69 73 20 |in/sh.# |This is |
|00000100| 61 20 73 68 65 6c 6c 20 | 61 72 63 68 69 76 65 2e |a shell |archive.|
|00000110| 20 20 52 65 6d 6f 76 65 | 20 61 6e 79 74 68 69 6e | Remove| anythin|
|00000120| 67 20 62 65 66 6f 72 65 | 20 74 68 69 73 20 6c 69 |g before| this li|
|00000130| 6e 65 2c 20 74 68 65 6e | 20 75 6e 70 61 63 6b 0a |ne, then| unpack.|
|00000140| 23 20 69 74 20 62 79 20 | 73 61 76 69 6e 67 20 69 |# it by |saving i|
|00000150| 74 20 69 6e 74 6f 20 61 | 20 66 69 6c 65 20 61 6e |t into a| file an|
|00000160| 64 20 74 79 70 69 6e 67 | 20 22 73 68 20 66 69 6c |d typing| "sh fil|
|00000170| 65 22 2e 20 20 54 6f 20 | 6f 76 65 72 77 72 69 74 |e". To |overwrit|
|00000180| 65 20 65 78 69 73 74 69 | 6e 67 0a 23 20 66 69 6c |e existi|ng.# fil|
|00000190| 65 73 2c 20 74 79 70 65 | 20 22 73 68 20 66 69 6c |es, type| "sh fil|
|000001a0| 65 20 2d 63 22 2e 20 20 | 59 6f 75 20 63 61 6e 20 |e -c". |You can |
|000001b0| 61 6c 73 6f 20 66 65 65 | 64 20 74 68 69 73 20 61 |also fee|d this a|
|000001c0| 73 20 73 74 61 6e 64 61 | 72 64 20 69 6e 70 75 74 |s standa|rd input|
|000001d0| 20 76 69 61 0a 23 20 75 | 6e 73 68 61 72 2c 20 6f | via.# u|nshar, o|
|000001e0| 72 20 62 79 20 74 79 70 | 69 6e 67 20 22 73 68 20 |r by typ|ing "sh |
|000001f0| 3c 66 69 6c 65 22 2c 20 | 65 2e 67 2e 2e 20 20 49 |<file", |e.g.. I|
|00000200| 66 20 74 68 69 73 20 61 | 72 63 68 69 76 65 20 69 |f this a|rchive i|
|00000210| 73 20 63 6f 6d 70 6c 65 | 74 65 2c 20 79 6f 75 0a |s comple|te, you.|
|00000220| 23 20 77 69 6c 6c 20 73 | 65 65 20 74 68 65 20 66 |# will s|ee the f|
|00000230| 6f 6c 6c 6f 77 69 6e 67 | 20 6d 65 73 73 61 67 65 |ollowing| message|
|00000240| 20 61 74 20 74 68 65 20 | 65 6e 64 3a 0a 23 09 09 | at the |end:.#..|
|00000250| 22 45 6e 64 20 6f 66 20 | 61 72 63 68 69 76 65 20 |"End of |archive |
|00000260| 35 20 28 6f 66 20 31 32 | 29 2e 22 0a 23 20 43 6f |5 (of 12|).".# Co|
|00000270| 6e 74 65 6e 74 73 3a 20 | 20 63 6d 64 5f 68 65 6c |ntents: | cmd_hel|
|00000280| 70 20 66 6b 65 79 73 2e | 63 20 73 65 6c 65 63 74 |p fkeys.|c select|
|00000290| 2e 63 0a 50 41 54 48 3d | 2f 62 69 6e 3a 2f 75 73 |.c.PATH=|/bin:/us|
|000002a0| 72 2f 62 69 6e 3a 2f 75 | 73 72 2f 75 63 62 20 3b |r/bin:/u|sr/ucb ;|
|000002b0| 20 65 78 70 6f 72 74 20 | 50 41 54 48 0a 69 66 20 | export |PATH.if |
|000002c0| 74 65 73 74 20 2d 66 20 | 27 63 6d 64 5f 68 65 6c |test -f |'cmd_hel|
|000002d0| 70 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |p' -a "$|{1}" != |
|000002e0| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|000002f0| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00000300| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00000310| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 63 6d 64 5f |ing file| \"'cmd_|
|00000320| 68 65 6c 70 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |help'\".|else.ech|
|00000330| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00000340| 6e 67 20 5c 22 27 63 6d | 64 5f 68 65 6c 70 27 5c |ng \"'cm|d_help'\|
|00000350| 22 20 5c 28 31 36 30 38 | 36 20 63 68 61 72 61 63 |" \(1608|6 charac|
|00000360| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|00000370| 2f 2f 22 20 3e 27 63 6d | 64 5f 68 65 6c 70 27 20 |//" >'cm|d_help' |
|00000380| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|00000390| 58 2f 2a 20 40 28 23 29 | 63 6d 64 5f 68 65 6c 70 |X/* @(#)|cmd_help|
|000003a0| 09 31 2e 34 09 31 30 2f | 32 38 2f 38 36 20 28 44 |.1.4.10/|28/86 (D|
|000003b0| 61 6e 20 68 65 6c 6c 65 | 72 29 20 2a 2f 0a 58 0a |an helle|r) */.X.|
|000003c0| 58 25 3f 25 0a 58 54 68 | 65 20 60 3f 27 20 77 69 |X%?%.XTh|e `?' wi|
|000003d0| 6c 6c 20 67 69 76 65 20 | 79 6f 75 20 61 20 6c 69 |ll give |you a li|
|000003e0| 73 74 20 6f 66 20 6c 65 | 67 61 6c 20 63 6f 6d 6d |st of le|gal comm|
|000003f0| 61 6e 64 73 2e 20 20 4d | 6f 73 74 20 63 6f 6d 6d |ands. M|ost comm|
|00000400| 61 6e 64 73 0a 58 61 63 | 63 65 70 74 20 2d 3f 20 |ands.Xac|cept -? |
|00000410| 61 73 20 61 6e 20 6f 70 | 74 69 6f 6e 2e 20 20 54 |as an op|tion. T|
|00000420| 68 69 73 20 77 69 6c 6c | 20 67 69 76 65 20 79 6f |his will| give yo|
|00000430| 75 20 73 70 65 63 69 61 | 6c 69 7a 65 64 20 68 65 |u specia|lized he|
|00000440| 6c 70 0a 58 77 69 74 68 | 20 74 68 61 74 20 70 61 |lp.Xwith| that pa|
|00000450| 72 74 69 63 75 6c 61 72 | 20 63 6f 6d 6d 61 6e 64 |rticular| command|
|00000460| 2e 0a 58 25 25 0a 58 0a | 58 25 69 67 6e 6f 72 65 |..X%%.X.|X%ignore|
|00000470| 25 0a 58 75 73 61 67 65 | 3a 20 69 67 6e 6f 72 65 |%.Xusage|: ignore|
|00000480| 2f 75 6e 69 67 6e 6f 72 | 65 20 5b 68 65 61 64 65 |/unignor|e [heade|
|00000490| 72 73 5d 0a 58 55 73 65 | 20 74 68 69 73 20 63 6f |rs].XUse| this co|
|000004a0| 6d 6d 61 6e 64 20 74 6f | 20 73 65 74 20 74 68 65 |mmand to| set the|
|000004b0| 20 6d 65 73 73 61 67 65 | 20 68 65 61 64 65 72 73 | message| headers|
|000004c0| 20 79 6f 75 20 77 6f 75 | 6c 64 20 6c 69 6b 65 20 | you wou|ld like |
|000004d0| 6e 6f 74 0a 58 74 6f 20 | 62 65 20 70 72 69 6e 74 |not.Xto |be print|
|000004e0| 65 64 20 77 68 65 6e 20 | 79 6f 75 20 72 65 61 64 |ed when |you read|
|000004f0| 20 61 20 6d 65 73 73 61 | 67 65 2e 20 49 66 20 6e | a messa|ge. If n|
|00000500| 6f 20 68 65 61 64 65 72 | 20 73 70 65 63 69 66 69 |o header| specifi|
|00000510| 65 64 2c 0a 58 74 68 65 | 6e 20 61 20 6c 69 73 74 |ed,.Xthe|n a list|
|00000520| 20 6f 66 20 61 6c 6c 20 | 68 65 61 64 65 72 73 20 | of all |headers |
|00000530| 63 75 72 72 65 6e 74 6c | 79 20 62 65 69 6e 67 20 |currentl|y being |
|00000540| 69 67 6e 6f 72 65 64 20 | 69 73 20 70 72 69 6e 74 |ignored |is print|
|00000550| 65 64 2e 0a 58 59 6f 75 | 20 6d 75 73 74 20 73 70 |ed..XYou| must sp|
|00000560| 65 63 69 66 79 20 61 20 | 68 65 61 64 65 72 20 66 |ecify a |header f|
|00000570| 6f 72 20 75 6e 69 67 6e | 6f 72 65 2e 0a 58 0a 58 |or unign|ore..X.X|
|00000580| 59 6f 75 20 63 61 6e 20 | 73 65 74 20 74 68 65 20 |You can |set the |
|00000590| 76 61 72 69 61 62 6c 65 | 20 22 61 6c 77 61 79 73 |variable| "always|
|000005a0| 69 67 6e 6f 72 65 22 20 | 74 6f 20 66 6f 72 63 65 |ignore" |to force|
|000005b0| 20 6e 6f 72 6d 61 6c 6c | 79 0a 58 69 67 6e 6f 72 | normall|y.Xignor|
|000005c0| 65 64 20 68 65 61 64 65 | 72 73 20 74 6f 20 62 65 |ed heade|rs to be|
|000005d0| 20 69 67 6e 6f 72 65 64 | 20 77 68 69 6c 65 20 73 | ignored| while s|
|000005e0| 61 76 69 6e 67 20 6d 65 | 73 73 61 67 65 73 2c 20 |aving me|ssages, |
|000005f0| 66 6f 72 77 61 72 64 69 | 6e 67 0a 58 6d 65 73 73 |forwardi|ng.Xmess|
|00000600| 61 67 65 73 20 6f 72 20 | 69 6e 63 6c 75 64 69 6e |ages or |includin|
|00000610| 67 20 6d 65 73 73 61 67 | 65 73 20 69 6e 74 6f 20 |g messag|es into |
|00000620| 6d 65 73 73 61 67 65 20 | 62 75 66 66 65 72 73 2e |message |buffers.|
|00000630| 0a 58 25 25 0a 58 0a 58 | 25 73 65 74 25 0a 58 75 |.X%%.X.X|%set%.Xu|
|00000640| 73 61 67 65 3a 20 73 65 | 74 2f 75 6e 73 65 74 20 |sage: se|t/unset |
|00000650| 5b 76 61 72 69 61 62 6c | 65 5d 20 5b 3d 20 76 61 |[variabl|e] [= va|
|00000660| 6c 75 65 5d 0a 58 73 65 | 74 20 62 79 20 69 74 73 |lue].Xse|t by its|
|00000670| 65 6c 66 20 70 72 69 6e | 74 73 20 76 61 6c 75 65 |elf prin|ts value|
|00000680| 73 20 66 6f 72 20 76 61 | 72 69 61 62 6c 65 73 20 |s for va|riables |
|00000690| 69 6e 20 69 74 73 20 67 | 72 6f 75 70 0a 58 54 6f |in its g|roup.XTo|
|000006a0| 20 73 65 74 20 61 20 62 | 6f 6f 6c 65 61 6e 20 76 | set a b|oolean v|
|000006b0| 61 72 69 61 62 6c 65 20 | 28 6f 6e 20 6f 72 20 6f |ariable |(on or o|
|000006c0| 66 66 29 2c 20 22 73 65 | 74 20 76 61 72 69 61 62 |ff), "se|t variab|
|000006d0| 6c 65 22 0a 58 54 6f 20 | 73 65 74 20 61 20 76 61 |le".XTo |set a va|
|000006e0| 72 69 61 62 6c 65 27 73 | 20 76 61 6c 75 65 20 74 |riable's| value t|
|000006f0| 6f 20 61 20 73 74 72 69 | 6e 67 2c 20 75 73 65 3a |o a stri|ng, use:|
|00000700| 0a 58 73 65 74 20 76 61 | 72 69 61 62 6c 65 20 3d |.Xset va|riable =|
|00000710| 20 27 76 61 6c 75 65 27 | 0a 58 0a 58 49 66 20 79 | 'value'|.X.XIf y|
|00000720| 6f 75 20 77 61 6e 74 20 | 64 6f 75 62 6c 65 2d 71 |ou want |double-q|
|00000730| 75 6f 74 65 27 73 20 6f | 72 20 77 68 69 74 65 2d |uote's o|r white-|
|00000740| 73 70 61 63 65 20 65 6d | 62 65 64 64 65 64 20 69 |space em|bedded i|
|00000750| 6e 0a 58 61 20 73 74 72 | 69 6e 67 2c 20 65 6e 63 |n.Xa str|ing, enc|
|00000760| 61 73 65 20 74 68 65 20 | 73 74 72 69 6e 67 20 69 |ase the |string i|
|00000770| 6e 20 73 69 6e 67 6c 65 | 20 71 75 6f 74 65 73 2e |n single| quotes.|
|00000780| 20 20 49 66 20 79 6f 75 | 0a 58 77 61 6e 74 20 73 | If you|.Xwant s|
|00000790| 69 6e 67 6c 65 20 71 75 | 6f 74 65 73 20 69 6e 20 |ingle qu|otes in |
|000007a0| 61 20 73 74 72 69 6e 67 | 2c 20 65 6e 63 61 73 65 |a string|, encase|
|000007b0| 20 74 68 65 20 73 74 72 | 69 6e 67 20 69 6e 0a 58 | the str|ing in.X|
|000007c0| 64 6f 75 62 6c 65 20 71 | 75 6f 74 65 73 2e 0a 58 |double q|uotes..X|
|000007d0| 0a 58 54 79 70 65 20 22 | 73 65 74 20 3f 61 6c 6c |.XType "|set ?all|
|000007e0| 22 20 66 6f 72 20 61 20 | 6c 69 73 74 20 6f 66 20 |" for a |list of |
|000007f0| 61 6c 6c 20 73 65 74 74 | 61 62 6c 65 20 76 61 72 |all sett|able var|
|00000800| 69 61 62 6c 65 73 2e 0a | 58 22 73 65 74 20 3f 76 |iables..|X"set ?v|
|00000810| 61 72 69 61 62 6c 65 5f | 6e 61 6d 65 22 20 66 6f |ariable_|name" fo|
|00000820| 72 20 68 65 6c 70 20 6f | 6e 20 61 20 73 69 6e 67 |r help o|n a sing|
|00000830| 6c 65 20 76 61 72 69 61 | 62 6c 65 2e 0a 58 25 25 |le varia|ble..X%%|
|00000840| 0a 58 0a 58 25 72 65 61 | 64 6d 73 67 25 0a 58 59 |.X.X%rea|dmsg%.XY|
|00000850| 6f 75 20 63 61 6e 20 72 | 65 61 64 20 6d 65 73 73 |ou can r|ead mess|
|00000860| 61 67 65 73 20 69 6e 20 | 64 69 66 66 65 72 65 6e |ages in |differen|
|00000870| 74 20 77 61 79 73 2e 20 | 20 22 74 79 70 65 22 20 |t ways. | "type" |
|00000880| 61 6e 64 20 22 70 72 69 | 6e 74 22 0a 58 77 69 6c |and "pri|nt".Xwil|
|00000890| 6c 20 70 72 69 6e 74 20 | 74 68 65 20 63 75 72 72 |l print |the curr|
|000008a0| 65 6e 74 20 6d 65 73 73 | 61 67 65 2e 20 20 22 74 |ent mess|age. "t|
|000008b0| 6f 70 22 20 77 69 6c 6c | 20 6f 6e 6c 79 20 70 72 |op" will| only pr|
|000008c0| 69 6e 74 20 74 68 65 0a | 58 66 69 72 73 74 20 4e |int the.|Xfirst N|
|000008d0| 20 6c 69 6e 65 73 20 6f | 66 20 74 68 65 20 63 75 | lines o|f the cu|
|000008e0| 72 72 65 6e 74 20 6d 65 | 73 73 61 67 65 20 77 68 |rrent me|ssage wh|
|000008f0| 65 72 65 20 4e 20 69 73 | 20 74 68 65 20 76 61 6c |ere N is| the val|
|00000900| 75 65 20 6f 66 0a 58 74 | 68 65 20 76 61 72 69 61 |ue of.Xt|he varia|
|00000910| 62 6c 65 20 22 63 72 74 | 22 2e 20 20 22 6e 65 78 |ble "crt|". "nex|
|00000920| 74 22 20 77 69 6c 6c 20 | 67 6f 20 74 6f 20 74 68 |t" will |go to th|
|00000930| 65 20 6e 65 78 74 20 75 | 6e 72 65 61 64 20 6d 65 |e next u|nread me|
|00000940| 73 73 61 67 65 0a 58 61 | 6e 64 20 70 72 69 6e 74 |ssage.Xa|nd print|
|00000950| 20 74 68 61 74 2e 20 22 | 70 72 65 76 69 6f 75 73 | that. "|previous|
|00000960| 22 20 77 69 6c 6c 20 67 | 6f 20 62 61 63 6b 20 61 |" will g|o back a|
|00000970| 6e 64 20 72 65 61 64 20 | 74 68 65 20 66 69 72 73 |nd read |the firs|
|00000980| 74 0a 58 75 6e 72 65 61 | 64 20 6d 65 73 73 61 67 |t.Xunrea|d messag|
|00000990| 65 20 70 72 65 76 69 6f | 75 73 20 74 6f 20 74 68 |e previo|us to th|
|000009a0| 65 20 63 75 72 72 65 6e | 74 2e 20 5e 20 77 69 6c |e curren|t. ^ wil|
|000009b0| 6c 20 70 72 69 6e 74 20 | 74 68 65 20 66 69 72 73 |l print |the firs|
|000009c0| 74 0a 58 6d 65 73 73 61 | 67 65 2c 20 24 20 77 69 |t.Xmessa|ge, $ wi|
|000009d0| 6c 6c 20 70 72 69 6e 74 | 20 74 68 65 20 6c 61 73 |ll print| the las|
|000009e0| 74 2e 0a 58 41 6c 6c 20 | 63 61 6e 20 62 65 20 66 |t..XAll |can be f|
|000009f0| 6f 6c 6c 6f 77 65 64 20 | 62 79 20 61 20 6d 65 73 |ollowed |by a mes|
|00000a00| 73 61 67 65 20 6c 69 73 | 74 20 61 6e 64 20 65 61 |sage lis|t and ea|
|00000a10| 63 68 20 6d 65 73 73 61 | 67 65 20 69 6e 0a 58 74 |ch messa|ge in.Xt|
|00000a20| 68 61 74 20 6c 69 73 74 | 20 77 69 6c 6c 20 62 65 |hat list| will be|
|00000a30| 20 70 72 69 6e 74 65 64 | 20 28 6f 72 20 70 69 70 | printed| (or pip|
|00000a40| 65 64 20 74 6f 20 6f 74 | 68 65 72 20 63 6f 6d 6d |ed to ot|her comm|
|00000a50| 61 6e 64 73 29 2e 0a 58 | 25 25 0a 58 0a 58 25 61 |ands)..X|%%.X.X%a|
|00000a60| 6c 74 73 5f 68 65 6c 70 | 25 0a 58 75 73 61 67 65 |lts_help|%.Xusage|
|00000a70| 3a 20 61 6c 74 73 20 5b | 68 6f 73 74 6e 61 6d 65 |: alts [|hostname|
|00000a80| 73 5d 0a 58 61 6c 74 73 | 20 63 6f 6e 74 61 69 6e |s].Xalts| contain|
|00000a90| 73 20 61 20 6c 69 73 74 | 20 6f 66 20 68 6f 73 74 |s a list| of host|
|00000aa0| 6e 61 6d 65 73 20 6f 6e | 20 77 68 69 63 68 20 79 |names on| which y|
|00000ab0| 6f 75 20 68 61 76 65 20 | 61 6e 20 61 63 63 6f 75 |ou have |an accou|
|00000ac0| 6e 74 0a 58 4e 6f 72 6d | 61 6c 6c 79 2c 20 77 68 |nt.XNorm|ally, wh|
|00000ad0| 65 6e 20 79 6f 75 20 72 | 65 73 70 6f 6e 64 20 74 |en you r|espond t|
|00000ae0| 6f 20 61 6c 6c 20 72 65 | 63 69 70 69 65 6e 74 73 |o all re|cipients|
|00000af0| 20 6f 66 20 6d 61 69 6c | 2c 20 79 6f 75 72 0a 58 | of mail|, your.X|
|00000b00| 61 63 63 6f 75 6e 74 20 | 6e 61 6d 65 20 77 69 6c |account |name wil|
|00000b10| 6c 20 62 65 20 6c 69 73 | 74 65 64 20 61 6e 64 20 |l be lis|ted and |
|00000b20| 79 6f 75 20 73 65 6e 64 | 20 79 6f 75 72 73 65 6c |you send| yoursel|
|00000b30| 66 20 6d 61 69 6c 2e 20 | 49 66 20 79 6f 75 0a 58 |f mail. |If you.X|
|00000b40| 64 6f 6e 27 74 20 68 61 | 76 65 20 6d 65 74 6f 6f |don't ha|ve metoo|
|00000b50| 20 73 65 74 2c 20 74 68 | 65 6e 20 79 6f 75 72 20 | set, th|en your |
|00000b60| 6e 61 6d 65 20 77 69 6c | 6c 20 62 65 20 72 65 6d |name wil|l be rem|
|00000b70| 6f 76 65 64 20 66 72 6f | 6d 20 74 68 65 0a 58 6d |oved fro|m the.Xm|
|00000b80| 61 69 6c 69 6e 67 20 6c | 69 73 74 20 69 66 20 79 |ailing l|ist if y|
|00000b90| 6f 75 72 20 6c 6f 67 69 | 6e 20 6e 61 6d 65 20 69 |our logi|n name i|
|00000ba0| 73 20 6f 6e 20 74 68 65 | 20 6c 69 73 74 20 61 6e |s on the| list an|
|00000bb0| 64 20 74 68 65 20 68 6f | 73 74 0a 58 73 70 65 63 |d the ho|st.Xspec|
|00000bc0| 69 66 69 65 64 20 69 73 | 20 69 6e 20 74 68 65 20 |ified is| in the |
|00000bd0| 61 6c 74 65 72 6e 61 74 | 65 73 20 6c 69 73 74 2e |alternat|es list.|
|00000be0| 20 20 60 2a 27 20 6d 61 | 74 63 68 65 73 20 61 6c | `*' ma|tches al|
|00000bf0| 6c 20 68 6f 73 74 6e 61 | 6d 65 73 0a 58 61 6e 64 |l hostna|mes.Xand|
|00000c00| 20 6f 6e 6c 79 20 74 68 | 65 20 6c 6f 67 69 6e 20 | only th|e login |
|00000c10| 6e 61 6d 65 20 69 73 20 | 74 65 73 74 65 64 2e 0a |name is |tested..|
|00000c20| 58 25 25 0a 58 0a 58 25 | 73 6f 75 72 63 65 5f 68 |X%%.X.X%|source_h|
|00000c30| 65 6c 70 25 0a 58 75 73 | 61 67 65 3a 20 73 6f 75 |elp%.Xus|age: sou|
|00000c40| 72 63 65 2f 73 61 76 65 | 6f 70 74 73 20 5b 66 69 |rce/save|opts [fi|
|00000c50| 6c 65 5d 0a 58 73 6f 75 | 72 63 65 2f 73 61 76 65 |le].Xsou|rce/save|
|00000c60| 6f 70 74 73 20 77 69 6c | 6c 20 6c 6f 61 64 2f 73 |opts wil|l load/s|
|00000c70| 61 76 65 20 61 6c 6c 20 | 76 61 72 69 61 62 6c 65 |ave all |variable|
|00000c80| 20 73 65 74 74 69 6e 67 | 73 2c 20 6f 70 74 69 6f | setting|s, optio|
|00000c90| 6e 73 2c 0a 58 61 6c 69 | 61 73 65 73 2c 20 63 6d |ns,.Xali|ases, cm|
|00000ca0| 64 27 73 2c 20 69 67 6e | 6f 72 65 64 20 68 65 61 |d's, ign|ored hea|
|00000cb0| 64 65 72 73 20 2e 2e 2e | 20 65 76 65 72 79 74 68 |ders ...| everyth|
|00000cc0| 69 6e 67 20 79 6f 75 20 | 63 61 6e 20 73 65 74 2c |ing you |can set,|
|00000cd0| 0a 58 69 74 20 6c 6f 61 | 64 73 20 6f 72 20 73 61 |.Xit loa|ds or sa|
|00000ce0| 76 65 73 2e 20 54 68 65 | 20 66 69 6c 65 20 6e 61 |ves. The| file na|
|00000cf0| 6d 65 64 20 75 73 65 64 | 20 66 6f 6c 6c 6f 77 73 |med used| follows|
|00000d00| 20 74 68 65 73 65 20 72 | 75 6c 65 73 3a 0a 58 0a | these r|ules:.X.|
|00000d10| 58 31 29 20 69 66 20 61 | 20 66 69 6c 65 6e 61 6d |X1) if a| filenam|
|00000d20| 65 20 69 73 20 67 69 76 | 65 6e 2c 20 74 68 61 74 |e is giv|en, that|
|00000d30| 20 66 69 6c 65 20 69 73 | 20 75 73 65 64 2e 0a 58 | file is| used..X|
|00000d40| 32 29 20 66 69 6c 65 20 | 64 65 73 63 72 69 62 65 |2) file |describe|
|00000d50| 64 20 62 79 20 74 68 65 | 20 65 6e 76 69 72 6f 6e |d by the| environ|
|00000d60| 6d 65 6e 74 20 76 61 72 | 69 61 62 6c 65 20 4d 41 |ment var|iable MA|
|00000d70| 49 4c 52 43 0a 58 33 29 | 20 75 73 65 72 27 73 20 |ILRC.X3)| user's |
|00000d80| 68 6f 6d 65 20 64 69 72 | 65 63 74 6f 72 79 3a 20 |home dir|ectory: |
|00000d90| 2e 6d 61 69 6c 72 63 0a | 58 25 25 0a 58 0a 58 25 |.mailrc.|X%%.X.X%|
|00000da0| 67 65 6e 65 72 61 6c 25 | 0a 58 54 68 69 73 20 69 |general%|.XThis i|
|00000db0| 73 20 74 68 65 20 67 65 | 6e 65 72 61 6c 20 68 65 |s the ge|neral he|
|00000dc0| 6c 70 20 6d 65 73 73 61 | 67 65 2e 20 54 6f 20 67 |lp messa|ge. To g|
|00000dd0| 65 74 20 68 65 6c 70 20 | 6f 6e 20 61 20 73 70 65 |et help |on a spe|
|00000de0| 63 69 66 69 63 0a 58 63 | 6f 6d 6d 61 6e 64 2c 20 |cific.Xc|ommand, |
|00000df0| 74 72 79 20 22 63 6f 6d | 6d 61 6e 64 20 2d 3f 22 |try "com|mand -?"|
|00000e00| 2e 20 45 78 74 65 6e 64 | 65 64 20 68 65 6c 70 20 |. Extend|ed help |
|00000e10| 69 73 20 67 69 76 65 6e | 20 62 79 20 74 79 70 69 |is given| by typi|
|00000e20| 6e 67 0a 58 60 68 65 6c | 70 20 69 74 65 6d 27 20 |ng.X`hel|p item' |
|00000e30| 77 68 65 72 65 20 69 74 | 65 6d 20 69 73 20 6f 6e |where it|em is on|
|00000e40| 65 20 6f 66 3a 0a 58 20 | 20 20 20 70 61 74 68 2c |e of:.X | path,|
|00000e50| 20 6d 73 67 5f 6c 69 73 | 74 2c 20 70 72 6f 6d 70 | msg_lis|t, promp|
|00000e60| 74 2c 20 68 64 72 5f 66 | 6f 72 6d 61 74 2e 0a 58 |t, hdr_f|ormat..X|
|00000e70| 48 65 6c 70 20 77 69 74 | 68 20 6d 73 67 5f 6c 69 |Help wit|h msg_li|
|00000e80| 73 74 20 69 73 20 68 69 | 67 68 6c 79 20 61 64 76 |st is hi|ghly adv|
|00000e90| 69 73 61 62 6c 65 21 0a | 58 0a 58 54 79 70 65 20 |isable!.|X.XType |
|00000ea0| 22 3f 22 20 74 6f 20 67 | 65 74 20 61 20 6c 69 73 |"?" to g|et a lis|
|00000eb0| 74 20 6f 66 20 61 76 61 | 69 6c 61 62 6c 65 20 63 |t of ava|ilable c|
|00000ec0| 6f 6d 6d 61 6e 64 73 2e | 20 20 54 72 79 20 22 3f |ommands.| Try "?|
|00000ed0| 20 63 6f 6d 6d 61 6e 64 | 22 0a 58 74 6f 20 67 65 | command|".Xto ge|
|00000ee0| 74 20 68 65 6c 70 20 6f | 6e 20 74 68 65 20 70 61 |t help o|n the pa|
|00000ef0| 72 74 69 63 75 6c 61 72 | 20 63 6f 6d 6d 61 6e 64 |rticular| command|
|00000f00| 20 74 68 61 74 20 79 6f | 75 20 73 70 65 63 69 66 | that yo|u specif|
|00000f10| 79 2e 0a 58 25 25 0a 58 | 0a 58 25 70 61 74 68 25 |y..X%%.X|.X%path%|
|00000f20| 0a 58 57 68 65 6e 65 76 | 65 72 20 22 70 61 74 68 |.XWhenev|er "path|
|00000f30| 22 20 69 73 20 73 70 65 | 63 69 66 69 65 64 2c 20 |" is spe|cified, |
|00000f40| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 73 79 |the foll|owing sy|
|00000f50| 6e 74 61 78 20 69 73 20 | 6c 65 67 61 6c 20 62 65 |ntax is |legal be|
|00000f60| 73 69 64 65 73 20 74 68 | 65 0a 58 6e 6f 72 6d 61 |sides th|e.Xnorma|
|00000f70| 6c 20 70 61 74 68 20 61 | 64 64 72 65 73 73 69 6e |l path a|ddressin|
|00000f80| 67 20 73 63 68 65 6d 65 | 20 75 73 65 64 20 62 79 |g scheme| used by|
|00000f90| 20 75 6e 69 78 2e 0a 58 | 7e 5b 75 73 65 72 5d 20 | unix..X|~[user] |
|00000fa0| 20 20 20 20 2d 2d 20 74 | 68 65 20 68 6f 6d 65 20 | -- t|he home |
|00000fb0| 64 69 72 65 63 74 6f 72 | 79 20 6f 66 20 73 70 65 |director|y of spe|
|00000fc0| 63 69 66 69 65 64 20 75 | 73 65 72 20 28 79 6f 75 |cified u|ser (you|
|00000fd0| 72 73 20 62 79 20 64 65 | 66 61 75 6c 74 29 0a 58 |rs by de|fault).X|
|00000fe0| 25 5b 75 73 65 72 5d 20 | 20 20 20 20 2d 2d 2f 75 |%[user] | --/u|
|00000ff0| 73 72 2f 73 70 6f 6f 6c | 2f 6d 61 69 6c 2f 6c 6f |sr/spool|/mail/lo|
|00001000| 67 69 6e 5f 6e 61 6d 65 | 20 5b 75 73 65 72 5f 6e |gin_name| [user_n|
|00001010| 61 6d 65 5d 20 28 79 6f | 75 72 73 20 62 79 20 64 |ame] (yo|urs by d|
|00001020| 65 66 61 75 6c 74 29 0a | 58 2b 66 69 6c 65 20 20 |efault).|X+file |
|00001030| 20 20 20 20 20 2d 2d 74 | 68 65 20 64 69 72 65 63 | --t|he direc|
|00001040| 74 6f 72 79 20 64 65 73 | 63 72 69 62 65 64 20 62 |tory des|cribed b|
|00001050| 79 20 60 73 65 74 20 66 | 6f 6c 64 65 72 27 3b 20 |y `set f|older'; |
|00001060| 66 69 6c 65 20 69 73 20 | 60 66 69 6c 65 27 0a 58 |file is |`file'.X|
|00001070| 25 25 0a 58 0a 58 25 6d | 73 67 5f 6c 69 73 74 25 |%%.X.X%m|sg_list%|
|00001080| 0a 58 41 20 22 6d 73 67 | 5f 6c 69 73 74 22 20 72 |.XA "msg|_list" r|
|00001090| 65 66 65 72 65 6e 63 65 | 73 20 6f 6e 65 20 6f 72 |eference|s one or|
|000010a0| 20 6d 6f 72 65 20 6d 65 | 73 73 61 67 65 73 2e 20 | more me|ssages. |
|000010b0| 20 54 68 65 20 75 73 65 | 72 20 73 70 65 63 69 66 | The use|r specif|
|000010c0| 69 65 73 0a 58 61 20 67 | 72 6f 75 70 20 6f 66 20 |ies.Xa g|roup of |
|000010d0| 6d 65 73 73 61 67 65 73 | 20 61 63 63 6f 72 64 69 |messages| accordi|
|000010e0| 6e 67 20 74 6f 20 61 20 | 73 70 65 63 69 61 6c 20 |ng to a |special |
|000010f0| 73 79 6e 74 61 78 2e 0a | 58 0a 58 2a 20 20 20 20 |syntax..|X.X* |
|00001100| 20 20 41 6c 6c 20 6d 65 | 73 73 61 67 65 73 2e 0a | All me|ssages..|
|00001110| 58 5e 20 20 20 20 20 20 | 54 68 65 20 66 69 72 73 |X^ |The firs|
|00001120| 74 20 6d 65 73 73 61 67 | 65 2e 0a 58 24 20 20 20 |t messag|e..X$ |
|00001130| 20 20 20 54 68 65 20 6c | 61 73 74 20 6d 65 73 73 | The l|ast mess|
|00001140| 61 67 65 2e 0a 58 2e 20 | 20 20 20 20 20 54 68 65 |age..X. | The|
|00001150| 20 63 75 72 72 65 6e 74 | 20 6d 65 73 73 61 67 65 | current| message|
|00001160| 2e 0a 58 4e 2d 4d 20 20 | 20 20 41 20 72 61 6e 67 |..XN-M | A rang|
|00001170| 65 20 6f 66 20 6d 65 73 | 73 61 67 65 73 20 62 65 |e of mes|sages be|
|00001180| 74 77 65 65 6e 20 4e 20 | 61 6e 64 20 4d 2e 0a 58 |tween N |and M..X|
|00001190| 0a 58 49 6e 20 74 68 65 | 20 6c 61 73 74 20 63 61 |.XIn the| last ca|
|000011a0| 73 65 2c 20 4e 20 61 6e | 64 20 4d 20 6d 61 79 20 |se, N an|d M may |
|000011b0| 62 65 20 2a 20 5e 20 24 | 20 2e 20 6f 72 20 64 69 |be * ^ $| . or di|
|000011c0| 67 69 74 73 20 72 65 66 | 65 72 65 6e 63 69 6e 67 |gits ref|erencing|
|000011d0| 0a 58 65 78 70 6c 69 63 | 69 74 20 6d 65 73 73 61 |.Xexplic|it messa|
|000011e0| 67 65 20 6e 75 6d 62 65 | 72 73 2e 20 20 54 68 65 |ge numbe|rs. The|
|000011f0| 20 72 61 6e 67 65 20 6d | 75 73 74 20 62 65 20 69 | range m|ust be i|
|00001200| 6e 20 61 73 63 65 6e 64 | 69 6e 67 20 6f 72 64 65 |n ascend|ing orde|
|00001210| 72 2e 0a 58 0a 58 59 6f | 75 20 63 61 6e 20 61 6c |r..X.XYo|u can al|
|00001220| 73 6f 20 6e 65 67 61 74 | 65 20 6d 65 73 73 61 67 |so negat|e messag|
|00001230| 65 73 20 62 79 20 70 6c | 61 63 69 6e 67 20 74 68 |es by pl|acing th|
|00001240| 65 20 6d 65 73 73 61 67 | 65 20 6c 69 73 74 20 69 |e messag|e list i|
|00001250| 6e 73 69 64 65 0a 58 62 | 72 61 63 65 73 2c 20 60 |nside.Xb|races, `|
|00001260| 7b 27 20 60 7d 27 20 2d | 2d 20 74 68 75 73 2c 20 |{' `}' -|- thus, |
|00001270| 74 68 65 20 65 78 70 72 | 65 73 73 69 6f 6e 20 22 |the expr|ession "|
|00001280| 32 2d 31 39 20 7b 31 31 | 2d 31 34 7d 22 20 72 65 |2-19 {11|-14}" re|
|00001290| 66 65 72 65 6e 63 65 73 | 0a 58 6d 65 73 73 61 67 |ferences|.Xmessag|
|000012a0| 65 73 20 32 20 74 68 72 | 6f 75 67 68 20 31 39 20 |es 2 thr|ough 19 |
|000012b0| 65 78 63 65 70 74 20 66 | 6f 72 20 74 68 6f 73 65 |except f|or those|
|000012c0| 20 62 65 74 77 65 65 6e | 20 31 31 20 74 68 72 6f | between| 11 thro|
|000012d0| 75 67 68 20 31 34 2e 0a | 58 0a 58 43 6f 6d 6d 61 |ugh 14..|X.XComma|
|000012e0| 6e 64 73 20 63 61 6e 20 | 62 65 20 22 70 69 70 65 |nds can |be "pipe|
|000012f0| 64 22 20 74 6f 20 6f 6e | 65 20 61 6e 6f 74 68 65 |d" to on|e anothe|
|00001300| 72 2c 20 62 65 63 61 75 | 73 65 20 74 68 65 20 72 |r, becau|se the r|
|00001310| 65 74 75 72 6e 0a 58 76 | 61 6c 75 65 20 6f 66 20 |eturn.Xv|alue of |
|00001320| 61 20 63 6f 6d 6d 61 6e | 64 20 69 73 20 61 20 6d |a comman|d is a m|
|00001330| 73 67 5f 6c 69 73 74 2c | 20 6e 6f 74 20 74 65 78 |sg_list,| not tex|
|00001340| 74 2e 0a 58 70 69 63 6b | 20 2d 66 20 66 72 65 64 |t..Xpick| -f fred|
|00001350| 20 7c 20 6c 70 72 20 20 | 20 77 69 6c 6c 20 66 69 | | lpr | will fi|
|00001360| 6e 64 20 61 6c 6c 20 6d | 65 73 73 61 67 65 73 20 |nd all m|essages |
|00001370| 22 66 72 6f 6d 20 66 72 | 65 64 22 20 61 6e 64 0a |"from fr|ed" and.|
|00001380| 58 73 65 6e 64 20 74 68 | 65 6d 20 74 6f 20 74 68 |Xsend th|em to th|
|00001390| 65 20 70 72 69 6e 74 65 | 72 2e 0a 58 0a 58 43 6f |e printe|r..X.XCo|
|000013a0| 6d 6d 61 6e 64 73 20 64 | 65 61 6c 69 6e 67 20 77 |mmands d|ealing w|
|000013b0| 69 74 68 20 6d 6f 72 65 | 20 74 68 61 6e 20 6f 6e |ith more| than on|
|000013c0| 65 20 6d 65 73 73 61 67 | 65 20 70 72 6f 63 65 73 |e messag|e proces|
|000013d0| 73 20 74 68 65 6d 20 69 | 6e 0a 58 6f 72 64 65 72 |s them i|n.Xorder|
|000013e0| 20 2d 2d 20 6e 6f 74 20 | 6e 65 63 65 73 73 61 72 | -- not |necessar|
|000013f0| 69 6c 79 20 74 68 65 20 | 6f 72 64 65 72 20 73 70 |ily the |order sp|
|00001400| 65 63 69 66 69 65 64 2e | 20 20 54 68 75 73 2c 20 |ecified.| Thus, |
|00001410| 74 68 65 20 63 6f 6d 6d | 61 6e 64 2c 0a 58 73 61 |the comm|and,.Xsa|
|00001420| 76 65 20 31 2d 35 20 39 | 20 37 20 36 20 66 69 6c |ve 1-5 9| 7 6 fil|
|00001430| 65 0a 58 77 69 6c 6c 20 | 73 61 76 65 20 74 68 65 |e.Xwill |save the|
|00001440| 20 6d 65 73 73 61 67 65 | 73 20 69 6e 20 61 73 63 | message|s in asc|
|00001450| 65 6e 64 69 6e 67 20 6f | 72 64 65 72 3b 20 6e 6f |ending o|rder; no|
|00001460| 74 20 61 73 20 73 70 65 | 63 69 66 69 65 64 2e 0a |t as spe|cified..|
|00001470| 58 25 25 0a 58 0a 58 25 | 70 72 65 73 65 72 76 65 |X%%.X.X%|preserve|
|00001480| 5f 68 65 6c 70 25 0a 58 | 75 73 61 67 65 3a 20 70 |_help%.X|usage: p|
|00001490| 72 65 73 65 72 76 65 20 | 5b 6d 73 67 5f 6c 69 73 |reserve |[msg_lis|
|000014a0| 74 5d 0a 58 50 72 65 73 | 65 72 76 65 20 73 61 76 |t].XPres|erve sav|
|000014b0| 65 73 20 64 65 6c 65 74 | 65 64 20 6f 72 20 72 65 |es delet|ed or re|
|000014c0| 61 64 20 6d 65 73 73 61 | 67 65 73 20 69 6e 20 79 |ad messa|ges in y|
|000014d0| 6f 75 72 20 6d 61 69 6c | 62 6f 78 2e 0a 58 57 69 |our mail|box..XWi|
|000014e0| 74 68 6f 75 74 20 65 78 | 70 6c 69 63 69 74 65 6c |thout ex|plicitel|
|000014f0| 79 20 73 65 74 74 69 6e | 67 20 70 72 65 73 65 72 |y settin|g preser|
|00001500| 76 65 2c 20 61 6c 6c 20 | 6d 61 69 6c 20 74 68 61 |ve, all |mail tha|
|00001510| 74 20 79 6f 75 0a 58 72 | 65 61 64 20 77 69 6c 6c |t you.Xr|ead will|
|00001520| 20 62 65 20 73 61 76 65 | 64 20 69 6e 20 7e 2f 6d | be save|d in ~/m|
|00001530| 62 6f 78 20 28 6f 72 20 | 73 65 74 20 6d 62 6f 78 |box (or |set mbox|
|00001540| 29 2e 20 20 49 66 20 79 | 6f 75 20 73 65 74 0a 58 |). If y|ou set.X|
|00001550| 22 68 6f 6c 64 22 2c 20 | 74 68 65 6e 20 74 68 69 |"hold", |then thi|
|00001560| 73 20 69 73 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |s is equ|ivalent |
|00001570| 74 6f 20 70 72 65 73 65 | 72 76 69 6e 67 20 65 61 |to prese|rving ea|
|00001580| 63 68 20 6d 65 73 73 61 | 67 65 0a 58 61 73 20 79 |ch messa|ge.Xas y|
|00001590| 6f 75 20 72 65 61 64 20 | 69 74 2e 0a 58 25 25 0a |ou read |it..X%%.|
|000015a0| 58 0a 58 25 73 61 76 65 | 5f 68 65 6c 70 25 0a 58 |X.X%save|_help%.X|
|000015b0| 75 73 61 67 65 3a 20 73 | 61 76 65 2f 77 72 69 74 |usage: s|ave/writ|
|000015c0| 65 2f 63 6f 70 79 20 5b | 21 5d 20 5b 6d 73 67 5f |e/copy [|!] [msg_|
|000015d0| 6c 69 73 74 5d 20 5b 66 | 69 6c 65 6e 61 6d 65 5d |list] [f|ilename]|
|000015e0| 0a 58 0a 58 49 66 20 6e | 6f 20 66 69 6c 65 6e 61 |.X.XIf n|o filena|
|000015f0| 6d 65 20 69 73 20 73 70 | 65 63 69 66 69 65 64 2c |me is sp|ecified,|
|00001600| 20 7e 2f 6d 62 6f 78 20 | 28 6f 72 20 73 65 74 20 | ~/mbox |(or set |
|00001610| 6d 62 6f 78 29 20 69 73 | 20 75 73 65 64 2e 0a 58 |mbox) is| used..X|
|00001620| 53 61 76 65 20 61 6e 64 | 20 77 72 69 74 65 20 77 |Save and| write w|
|00001630| 69 6c 6c 20 61 70 70 65 | 6e 64 20 6d 73 67 20 69 |ill appe|nd msg i|
|00001640| 66 20 60 66 69 6c 65 27 | 20 61 6c 72 65 61 64 79 |f `file'| already|
|00001650| 20 65 78 69 73 74 73 0a | 58 53 70 65 63 69 66 79 | exists.|XSpecify|
|00001660| 69 6e 67 20 74 68 65 20 | 60 21 27 20 77 69 6c 6c |ing the |`!' will|
|00001670| 20 6f 76 65 72 77 72 69 | 74 65 20 66 69 6c 65 20 | overwri|te file |
|00001680| 28 65 2e 67 2e 20 65 72 | 61 73 69 6e 67 20 69 74 |(e.g. er|asing it|
|00001690| 20 66 69 72 73 74 29 2e | 0a 58 54 6f 20 73 61 76 | first).|.XTo sav|
|000016a0| 65 20 6d 65 73 73 61 67 | 65 73 20 74 6f 20 61 20 |e messag|es to a |
|000016b0| 66 69 6c 65 6e 61 6d 65 | 20 62 65 67 69 6e 6e 69 |filename| beginni|
|000016c0| 6e 67 20 77 69 74 68 20 | 61 20 64 69 67 69 74 2c |ng with |a digit,|
|000016d0| 0a 58 65 73 63 61 70 65 | 20 74 68 65 20 66 69 6c |.Xescape| the fil|
|000016e0| 65 6e 61 6d 65 20 77 69 | 74 68 20 61 20 62 61 63 |ename wi|th a bac|
|000016f0| 6b 73 6c 61 73 68 20 28 | 5c 29 0a 58 60 77 72 69 |kslash (|\).X`wri|
|00001700| 74 65 27 20 77 69 6c 6c | 20 77 72 69 74 65 20 6d |te' will| write m|
|00001710| 65 73 73 61 67 65 20 77 | 69 74 68 6f 75 74 20 74 |essage w|ithout t|
|00001720| 68 65 20 68 65 61 64 65 | 72 73 20 28 6d 73 67 20 |he heade|rs (msg |
|00001730| 62 6f 64 79 20 6f 6e 6c | 79 29 2e 0a 58 53 61 76 |body onl|y)..XSav|
|00001740| 65 20 61 6e 64 20 77 72 | 69 74 65 20 62 6f 74 68 |e and wr|ite both|
|00001750| 20 6d 61 72 6b 20 6d 65 | 73 73 61 67 65 73 20 66 | mark me|ssages f|
|00001760| 6f 72 20 64 65 6c 65 74 | 69 6f 6e 20 75 6e 6c 65 |or delet|ion unle|
|00001770| 73 73 20 22 6b 65 65 70 | 73 61 76 65 22 0a 58 69 |ss "keep|save".Xi|
|00001780| 73 20 73 65 74 2e 20 20 | 43 6f 70 79 20 69 73 20 |s set. |Copy is |
|00001790| 69 64 65 6e 74 69 63 61 | 6c 20 74 6f 20 73 61 76 |identica|l to sav|
|000017a0| 65 20 65 78 63 65 70 74 | 20 74 68 61 74 20 6d 65 |e except| that me|
|000017b0| 73 73 61 67 65 73 20 61 | 72 65 20 6e 6f 74 0a 58 |ssages a|re not.X|
|000017c0| 6d 61 72 6b 65 64 20 66 | 6f 72 20 64 65 6c 65 74 |marked f|or delet|
|000017d0| 69 6f 6e 20 28 69 64 65 | 6e 74 69 63 61 6c 20 74 |ion (ide|ntical t|
|000017e0| 6f 20 68 61 76 69 6e 67 | 20 6b 65 65 70 73 61 76 |o having| keepsav|
|000017f0| 65 20 73 65 74 29 2e 0a | 58 25 25 0a 58 0a 58 25 |e set)..|X%%.X.X%|
|00001800| 6c 70 72 25 0a 58 75 73 | 65 3a 20 6c 70 72 20 5b |lpr%.Xus|e: lpr [|
|00001810| 2d 5d 20 5b 2d 5d 20 5b | 6d 73 67 5f 6c 69 73 74 |-] [-] [|msg_list|
|00001820| 5d 0a 58 2d 6e 20 20 20 | 20 20 20 20 20 20 70 72 |].X-n | pr|
|00001830| 69 6e 74 20 62 6f 64 79 | 20 6f 66 20 6d 65 73 73 |int body| of mess|
|00001840| 61 67 65 20 6f 6e 6c 79 | 20 28 6e 6f 74 20 68 65 |age only| (not he|
|00001850| 61 64 65 72 73 29 0a 58 | 2d 68 20 20 20 20 20 20 |aders).X|-h |
|00001860| 20 20 20 70 72 69 6e 74 | 20 61 6c 6c 20 68 65 61 | print| all hea|
|00001870| 64 65 72 73 20 77 69 74 | 68 20 6d 65 73 73 61 67 |ders wit|h messag|
|00001880| 65 20 62 6f 64 79 20 28 | 64 65 66 61 75 6c 74 20 |e body (|default |
|00001890| 74 72 75 65 29 0a 58 2d | 20 20 20 20 20 20 20 70 |true).X-| p|
|000018a0| 72 69 6e 74 20 6f 6e 20 | 70 72 69 6e 74 65 72 20 |rint on |printer |
|000018b0| 0a 58 25 25 0a 58 0a 58 | 25 72 65 73 70 6f 6e 64 |.X%%.X.X|%respond|
|000018c0| 5f 68 65 6c 70 25 0a 58 | 75 73 61 67 65 3a 20 72 |_help%.X|usage: r|
|000018d0| 65 70 6c 79 73 65 6e 64 | 65 72 2f 72 65 70 6c 79 |eplysend|er/reply|
|000018e0| 61 6c 6c 20 5b 6d 73 67 | 5f 6c 69 73 74 5d 20 5b |all [msg|_list] [|
|000018f0| 6d 61 69 6c 5f 66 6c 61 | 67 73 5d 20 5b 75 73 65 |mail_fla|gs] [use|
|00001900| 72 73 5d 0a 58 52 65 70 | 6c 79 73 65 6e 64 65 72 |rs].XRep|lysender|
|00001910| 20 6f 6e 6c 79 20 72 65 | 70 6c 69 65 73 20 74 6f | only re|plies to|
|00001920| 20 74 68 65 20 73 65 6e | 64 65 72 20 61 6e 64 20 | the sen|der and |
|00001930| 72 65 70 6c 79 61 6c 6c | 20 72 65 73 70 6f 6e 64 |replyall| respond|
|00001940| 73 0a 58 74 6f 20 65 76 | 65 72 79 6f 6e 65 20 6f |s.Xto ev|eryone o|
|00001950| 6e 20 74 68 65 20 54 6f | 3a 20 61 6e 64 20 43 63 |n the To|: and Cc|
|00001960| 3a 20 6c 69 6e 65 73 20 | 6f 66 20 74 68 65 20 6d |: lines |of the m|
|00001970| 65 73 73 61 67 65 2e 0a | 58 0a 58 54 68 65 20 63 |essage..|X.XThe c|
|00001980| 6f 6d 6d 61 6e 64 73 20 | 22 72 65 70 6f 6e 64 22 |ommands |"repond"|
|00001990| 2c 20 22 72 65 70 6c 79 | 22 2c 20 61 6e 64 20 22 |, "reply|", and "|
|000019a0| 72 22 20 61 72 65 20 69 | 64 65 6e 74 69 63 61 6c |r" are i|dentical|
|000019b0| 20 74 6f 0a 58 22 72 65 | 70 6c 79 73 65 6e 64 65 | to.X"re|plysende|
|000019c0| 72 2e 22 20 54 68 65 20 | 63 6f 6d 6d 61 6e 64 2c |r." The |command,|
|000019d0| 20 22 52 22 20 69 73 20 | 69 64 65 6e 74 69 63 61 | "R" is |identica|
|000019e0| 6c 20 74 6f 20 22 72 65 | 70 6c 79 61 6c 6c 2e 22 |l to "re|plyall."|
|000019f0| 0a 58 0a 58 49 66 20 61 | 20 6d 65 73 73 61 67 65 |.X.XIf a| message|
|00001a00| 20 6c 69 73 74 20 69 73 | 20 69 6e 64 69 63 61 74 | list is| indicat|
|00001a10| 65 64 2c 20 74 68 65 6e | 20 65 61 63 68 20 6d 65 |ed, then| each me|
|00001a20| 73 73 61 67 65 20 6f 6e | 20 74 68 65 20 6c 69 73 |ssage on| the lis|
|00001a30| 74 20 69 73 0a 58 72 65 | 70 6c 69 65 64 20 74 6f |t is.Xre|plied to|
|00001a40| 20 69 6e 20 74 68 65 20 | 73 61 6d 65 20 6d 61 6e | in the |same man|
|00001a50| 6e 65 72 2e 20 20 41 6c | 6c 20 6f 74 68 65 72 20 |ner. Al|l other |
|00001a60| 61 72 67 75 6d 65 6e 74 | 73 20 61 72 65 20 70 61 |argument|s are pa|
|00001a70| 73 73 65 64 0a 58 74 6f | 20 74 68 65 20 6d 61 69 |ssed.Xto| the mai|
|00001a80| 6c 20 63 6f 6d 6d 61 6e | 64 20 28 27 6d 61 69 6c |l comman|d ('mail|
|00001a90| 5f 66 6c 61 67 73 27 20 | 61 6e 64 20 27 75 73 65 |_flags' |and 'use|
|00001aa0| 72 73 27 29 2e 0a 58 0a | 58 54 79 70 65 20 22 6d |rs')..X.|XType "m|
|00001ab0| 61 69 6c 20 2d 3f 22 20 | 66 6f 72 20 69 6e 66 6f |ail -?" |for info|
|00001ac0| 72 6d 61 74 69 6f 6e 20 | 6f 6e 20 6c 65 67 61 6c |rmation |on legal|
|00001ad0| 20 6d 61 69 6c 20 66 6c | 61 67 73 2e 0a 58 25 25 | mail fl|ags..X%%|
|00001ae0| 0a 58 0a 58 25 73 6f 72 | 74 5f 68 65 6c 70 25 0a |.X.X%sor|t_help%.|
|00001af0| 58 75 73 61 67 65 3a 20 | 73 6f 72 74 20 5b 2d 5d |Xusage: |sort [-]|
|00001b00| 20 5b 64 20 7c 20 61 20 | 7c 20 73 20 7c 20 53 20 | [d | a || s | S |
|00001b10| 7c 20 52 5d 0a 58 20 20 | 64 20 20 20 20 20 20 20 || R].X |d |
|00001b20| 20 20 73 6f 72 74 20 61 | 63 63 6f 72 64 69 6e 67 | sort a|ccording|
|00001b30| 20 74 6f 20 64 61 74 65 | 20 72 65 63 65 69 76 65 | to date| receive|
|00001b40| 64 0a 58 20 20 61 20 20 | 20 20 20 20 20 20 20 61 |d.X a | a|
|00001b50| 75 74 68 6f 72 20 28 61 | 6c 70 68 61 62 65 74 69 |uthor (a|lphabeti|
|00001b60| 63 61 6c 29 0a 58 20 20 | 73 20 20 20 20 20 20 20 |cal).X |s |
|00001b70| 20 20 73 75 62 6a 65 63 | 74 20 69 67 6e 6f 72 69 | subjec|t ignori|
|00001b80| 6e 67 20 52 65 3a 20 61 | 73 20 70 61 72 74 20 6f |ng Re: a|s part o|
|00001b90| 66 20 74 68 65 20 73 75 | 62 6a 65 63 74 0a 58 20 |f the su|bject.X |
|00001ba0| 20 52 20 20 20 20 20 20 | 20 20 20 73 75 62 6a 65 | R | subje|
|00001bb0| 63 74 20 28 61 6c 70 68 | 61 62 65 74 69 63 61 6c |ct (alph|abetical|
|00001bc0| 29 0a 58 20 20 53 20 20 | 20 20 20 20 20 20 20 62 |).X S | b|
|00001bd0| 79 20 73 74 61 74 75 73 | 0a 58 54 68 65 20 6f 70 |y status|.XThe op|
|00001be0| 74 69 6f 6e 61 6c 20 60 | 2d 27 20 66 6c 61 67 20 |tional `|-' flag |
|00001bf0| 77 69 6c 6c 20 72 65 76 | 65 72 73 65 20 74 68 65 |will rev|erse the|
|00001c00| 20 6f 72 64 65 72 20 6f | 66 20 73 6f 72 74 69 6e | order o|f sortin|
|00001c10| 67 0a 58 42 79 20 64 65 | 66 61 75 6c 74 20 28 6e |g.XBy de|fault (n|
|00001c20| 6f 20 61 72 67 75 6d 65 | 6e 74 73 29 2c 20 73 6f |o argume|nts), so|
|00001c30| 72 74 20 73 6f 72 74 73 | 20 6d 65 73 73 61 67 65 |rt sorts| message|
|00001c40| 73 20 62 79 20 73 74 61 | 74 75 73 3a 0a 58 4e 65 |s by sta|tus:.XNe|
|00001c50| 77 2c 20 75 6e 72 65 61 | 64 20 6d 65 73 73 61 67 |w, unrea|d messag|
|00001c60| 65 73 20 61 72 65 20 66 | 69 72 73 74 2c 20 66 6f |es are f|irst, fo|
|00001c70| 6c 6c 6f 77 65 64 20 62 | 79 20 70 72 65 73 65 72 |llowed b|y preser|
|00001c80| 76 65 64 20 6d 65 73 73 | 61 67 65 73 0a 58 61 6e |ved mess|ages.Xan|
|00001c90| 64 20 66 69 6e 61 6c 6c | 79 20 74 68 65 20 64 65 |d finall|y the de|
|00001ca0| 6c 65 74 65 64 20 6d 65 | 73 73 61 67 65 73 20 61 |leted me|ssages a|
|00001cb0| 72 65 20 70 6c 61 63 65 | 64 20 61 74 20 74 68 65 |re place|d at the|
|00001cc0| 20 65 6e 64 0a 58 25 25 | 0a 58 0a 58 25 70 69 63 | end.X%%|.X.X%pic|
|00001cd0| 6b 25 0a 58 75 73 65 3a | 20 70 69 63 6b 20 5b 2d |k%.Xuse:| pick [-|
|00001ce0| 72 20 6d 73 67 5f 6c 69 | 73 74 5d 20 5b 2d 64 20 |r msg_li|st] [-d |
|00001cf0| 5b 2d 5d 5b 64 61 74 65 | 5d 20 5d 20 5b 2d 73 7c |[-][date|] ] [-s||
|00001d00| 66 7c 74 5d 5d 20 5b 2d | 78 5d 20 5b 2d 69 5d 20 |f|t]] [-|x] [-i] |
|00001d10| 5b 3c 70 61 74 3e 5d 0a | 58 53 65 61 72 63 68 20 |[<pat>].|XSearch |
|00001d20| 66 6f 72 20 70 61 74 74 | 65 72 6e 73 20 77 69 74 |for patt|erns wit|
|00001d30| 68 69 6e 20 6d 65 73 73 | 61 67 65 73 2e 20 45 6e |hin mess|ages. En|
|00001d40| 74 69 72 65 20 6d 65 73 | 73 61 67 65 73 20 61 72 |tire mes|sages ar|
|00001d50| 65 20 73 65 61 72 63 68 | 65 64 0a 58 66 6f 72 20 |e search|ed.Xfor |
|00001d60| 3c 70 61 74 74 65 72 6e | 3e 20 75 6e 6c 65 73 73 |<pattern|> unless|
|00001d70| 20 2d 73 2c 20 2d 66 2c | 20 6f 72 20 2d 74 20 69 | -s, -f,| or -t i|
|00001d80| 73 20 73 70 65 63 69 66 | 69 65 64 2e 0a 58 4f 6e |s specif|ied..XOn|
|00001d90| 6c 79 20 6f 6e 65 20 6f | 66 20 2d 73 2c 20 2d 66 |ly one o|f -s, -f|
|00001da0| 2c 20 2d 74 2c 20 61 6e | 64 20 2d 64 20 63 61 6e |, -t, an|d -d can|
|00001db0| 20 62 65 20 73 70 65 63 | 69 66 69 65 64 20 61 74 | be spec|ified at|
|00001dc0| 20 6f 6e 63 65 2e 20 4e | 6f 20 70 61 74 74 65 72 | once. N|o patter|
|00001dd0| 6e 73 20 77 69 74 68 20 | 2d 64 2e 0a 58 2d 72 20 |ns with |-d..X-r |
|00001de0| 6d 73 67 5f 6c 69 73 74 | 20 20 72 65 73 74 72 69 |msg_list| restri|
|00001df0| 63 74 20 74 68 65 20 72 | 61 6e 67 65 20 6f 66 20 |ct the r|ange of |
|00001e00| 6d 65 73 73 61 67 65 73 | 20 73 65 61 72 63 68 20 |messages| search |
|00001e10| 74 6f 20 6d 73 67 5f 6c | 69 73 74 0a 58 2d 64 3a |to msg_l|ist.X-d:|
|00001e20| 20 70 72 69 6e 74 20 6d | 65 73 73 61 67 65 20 68 | print m|essage h|
|00001e30| 65 61 64 65 72 73 20 6f | 6e 20 6f 72 20 61 66 74 |eaders o|n or aft|
|00001e40| 65 72 20 5b 60 2d 27 20 | 62 65 66 6f 72 65 5d 20 |er [`-' |before] |
|00001e50| 60 64 61 74 65 27 0a 58 | 20 20 20 20 20 60 64 61 |`date'.X| `da|
|00001e60| 74 65 27 20 69 73 20 6f | 66 20 74 68 65 20 66 6f |te' is o|f the fo|
|00001e70| 72 6d 3a 20 6d 6f 6e 74 | 68 2f 64 61 74 65 2f 79 |rm: mont|h/date/y|
|00001e80| 65 61 72 0a 58 20 20 20 | 20 20 20 4f 6d 69 74 74 |ear.X | Omitt|
|00001e90| 65 64 20 66 69 65 6c 64 | 73 20 64 65 66 61 75 6c |ed field|s defaul|
|00001ea0| 74 20 74 6f 20 74 6f 64 | 61 79 27 73 20 76 61 6c |t to tod|ay's val|
|00001eb0| 75 65 73 2e 20 45 78 61 | 6d 70 6c 65 73 3a 0a 58 |ues. Exa|mples:.X|
|00001ec0| 20 20 20 20 20 20 70 69 | 63 6b 20 2d 64 20 34 2f | pi|ck -d 4/|
|00001ed0| 32 30 20 20 20 20 20 6d | 73 67 73 20 6f 6e 20 6f |20 m|sgs on o|
|00001ee0| 72 20 61 66 74 65 72 20 | 41 70 72 20 32 30 2c 20 |r after |Apr 20, |
|00001ef0| 74 68 69 73 20 79 65 61 | 72 0a 58 20 20 20 20 20 |this yea|r.X |
|00001f00| 20 70 69 63 6b 20 2d 64 | 20 2d 2f 32 2f 38 35 20 | pick -d| -/2/85 |
|00001f10| 20 20 6f 6e 20 6f 72 20 | 62 65 66 6f 72 65 20 74 | on or |before t|
|00001f20| 68 65 20 32 6e 64 2c 20 | 74 68 69 73 20 6d 6f 6e |he 2nd, |this mon|
|00001f30| 74 68 2c 20 31 39 38 35 | 0a 58 20 20 20 20 20 20 |th, 1985|.X |
|00001f40| 70 69 63 6b 20 2d 64 20 | 2f 20 20 20 20 20 20 20 |pick -d |/ |
|00001f50| 20 66 69 6e 64 73 20 74 | 6f 64 61 79 27 73 20 6d | finds t|oday's m|
|00001f60| 65 73 73 61 67 65 73 20 | 6f 6e 6c 79 2e 0a 58 20 |essages |only..X |
|00001f70| 20 20 20 41 74 20 6c 65 | 61 73 74 20 6f 6e 65 20 | At le|ast one |
|00001f80| 60 2f 27 20 63 68 61 72 | 20 6d 75 73 74 20 62 65 |`/' char| must be|
|00001f90| 20 75 73 65 64 20 69 6e | 20 64 61 74 65 2e 0a 58 | used in| date..X|
|00001fa0| 20 20 20 20 54 68 65 72 | 65 20 69 73 20 6e 6f 20 | Ther|e is no |
|00001fb0| 73 74 72 6f 6e 67 20 64 | 61 74 65 20 63 68 65 63 |strong d|ate chec|
|00001fc0| 6b 69 6e 67 3b 20 32 2f | 33 30 20 77 6f 75 6c 64 |king; 2/|30 would|
|00001fd0| 20 62 65 20 63 6f 6e 73 | 69 64 65 72 65 64 20 76 | be cons|idered v|
|00001fe0| 61 6c 69 64 0a 58 2d 73 | 20 73 65 61 72 63 68 20 |alid.X-s| search |
|00001ff0| 66 6f 72 20 70 61 74 74 | 65 72 6e 20 69 6e 20 74 |for patt|ern in t|
|00002000| 68 65 20 22 73 75 62 6a | 65 63 74 22 20 68 65 61 |he "subj|ect" hea|
|00002010| 64 65 72 73 20 6f 6e 6c | 79 2e 0a 58 2d 66 20 73 |ders onl|y..X-f s|
|00002020| 65 61 72 63 68 20 66 6f | 72 20 70 61 74 74 65 72 |earch fo|r patter|
|00002030| 6e 20 69 6e 20 74 68 65 | 20 22 66 72 6f 6d 22 20 |n in the| "from" |
|00002040| 66 69 65 6c 64 20 28 61 | 75 74 68 6f 72 29 20 6f |field (a|uthor) o|
|00002050| 6e 6c 79 2e 0a 58 2d 74 | 20 73 65 61 72 63 68 20 |nly..X-t| search |
|00002060| 66 6f 72 20 70 61 74 74 | 65 72 6e 20 69 6e 20 74 |for patt|ern in t|
|00002070| 68 65 20 22 74 6f 22 20 | 66 69 65 6c 64 2e 0a 58 |he "to" |field..X|
|00002080| 2d 69 20 69 67 6e 6f 72 | 65 20 63 61 73 65 20 6f |-i ignor|e case o|
|00002090| 66 20 6c 65 74 74 65 72 | 73 2e 0a 58 2d 78 20 72 |f letter|s..X-x r|
|000020a0| 65 74 75 72 6e 20 74 68 | 6f 73 65 20 6d 65 73 73 |eturn th|ose mess|
|000020b0| 61 67 65 73 20 77 68 69 | 63 68 20 64 6f 20 4e 4f |ages whi|ch do NO|
|000020c0| 54 20 6d 61 74 63 68 2e | 0a 58 25 25 0a 58 0a 58 |T match.|.X%%.X.X|
|000020d0| 25 61 6c 69 61 73 25 0a | 58 6f 70 74 69 6f 6e 73 |%alias%.|Xoptions|
|000020e0| 20 66 6f 72 20 61 6c 69 | 61 73 3a 0a 58 61 6c 69 | for ali|as:.Xali|
|000020f0| 61 73 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |as | |
|00002100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 70 72 69 | | pri|
|00002110| 6e 74 20 61 6c 6c 20 6e | 61 6d 65 6c 69 73 74 73 |nt all n|amelists|
|00002120| 0a 58 61 6c 69 61 73 20 | 6e 61 6d 65 20 20 20 20 |.Xalias |name |
|00002130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002140| 20 20 70 72 69 6e 74 20 | 6e 61 6d 65 6c 69 73 74 | print |namelist|
|00002150| 20 61 73 73 6f 63 69 61 | 74 65 64 20 77 69 74 68 | associa|ted with|
|00002160| 20 6e 61 6d 65 0a 58 61 | 6c 69 61 73 20 6e 61 6d | name.Xa|lias nam|
|00002170| 65 20 6e 61 6d 65 6c 69 | 73 74 20 20 20 20 20 20 |e nameli|st |
|00002180| 20 20 20 20 20 20 20 73 | 65 74 20 22 6e 61 6d 65 | s|et "name|
|00002190| 22 20 74 6f 20 76 61 6c | 75 65 20 6f 66 20 6e 61 |" to val|ue of na|
|000021a0| 6d 65 6c 69 73 74 2e 0a | 58 75 6e 61 6c 69 61 73 |melist..|Xunalias|
|000021b0| 20 6e 61 6d 65 6c 69 73 | 74 20 20 20 20 20 20 20 | namelis|t |
|000021c0| 20 20 20 20 20 20 20 20 | 20 75 6e 61 6c 69 61 73 | | unalias|
|000021d0| 20 6e 61 6d 65 73 20 69 | 6e 20 6e 61 6d 65 6c 69 | names i|n nameli|
|000021e0| 73 74 0a 58 0a 58 41 20 | 22 6e 61 6d 65 6c 69 73 |st.X.XA |"namelis|
|000021f0| 74 22 20 63 6f 6e 73 69 | 73 74 73 20 6f 66 20 6f |t" consi|sts of o|
|00002200| 6e 65 20 6f 72 20 6d 6f | 72 65 20 61 64 64 72 65 |ne or mo|re addre|
|00002210| 73 73 65 73 2e 20 41 6e | 20 61 64 64 72 65 73 73 |sses. An| address|
|00002220| 0a 58 6d 61 79 20 62 65 | 20 61 20 6e 61 6d 65 20 |.Xmay be| a name |
|00002230| 61 6c 72 65 61 64 79 20 | 73 65 74 20 74 6f 20 61 |already |set to a|
|00002240| 6e 6f 74 68 65 72 20 6c | 69 73 74 2c 20 76 61 6c |nother l|ist, val|
|00002250| 69 64 20 75 73 65 72 2c | 20 66 69 6c 65 0a 58 6f |id user,| file.Xo|
|00002260| 72 20 70 72 6f 67 72 61 | 6d 2e 20 20 46 69 6c 65 |r progra|m. File|
|00002270| 6e 61 6d 65 73 20 6d 75 | 73 74 20 62 65 20 66 75 |names mu|st be fu|
|00002280| 6c 6c 20 70 61 74 68 6e | 61 6d 65 73 20 62 65 67 |ll pathn|ames beg|
|00002290| 69 6e 6e 69 6e 67 20 77 | 69 74 68 0a 58 61 20 27 |inning w|ith.Xa '|
|000022a0| 2f 27 20 28 6f 72 20 61 | 20 7e 20 65 78 70 61 6e |/' (or a| ~ expan|
|000022b0| 64 69 6e 67 20 74 6f 20 | 61 20 68 6f 6d 65 20 64 |ding to |a home d|
|000022c0| 69 72 65 63 74 6f 72 79 | 29 2e 20 20 41 20 22 70 |irectory|). A "p|
|000022d0| 72 6f 67 72 61 6d 22 0a | 58 6d 75 73 74 20 73 74 |rogram".|Xmust st|
|000022e0| 61 72 74 20 77 69 74 68 | 20 61 20 70 69 70 65 20 |art with| a pipe |
|000022f0| 61 6e 64 20 62 65 20 65 | 6e 63 61 73 65 64 20 69 |and be e|ncased i|
|00002300| 6e 20 71 75 6f 74 65 73 | 3a 0a 58 0a 58 20 20 20 |n quotes|:.X.X |
|00002310| 20 22 7c 70 72 6f 67 72 | 61 6d 5f 6e 61 6d 65 22 | "|progr|am_name"|
|00002320| 0a 58 0a 58 54 68 65 20 | 63 6f 6d 6d 61 6e 64 2c |.X.XThe |command,|
|00002330| 20 22 65 78 70 61 6e 64 | 22 2c 20 77 69 6c 6c 20 | "expand|", will |
|00002340| 70 72 69 6e 74 20 61 64 | 64 72 65 73 73 65 73 20 |print ad|dresses |
|00002350| 28 69 6e 63 6c 75 64 69 | 6e 67 20 73 75 62 6c 69 |(includi|ng subli|
|00002360| 73 74 73 29 0a 58 61 73 | 73 6f 63 69 61 74 65 64 |sts).Xas|sociated|
|00002370| 20 77 69 74 68 20 74 68 | 65 20 67 69 76 65 6e 20 | with th|e given |
|00002380| 61 6c 69 61 73 2e 0a 58 | 25 25 0a 58 0a 58 25 66 |alias..X|%%.X.X%f|
|00002390| 72 6f 6d 25 0a 58 57 69 | 74 68 20 6e 6f 20 61 72 |rom%.XWi|th no ar|
|000023a0| 67 75 6d 65 6e 74 73 2c | 20 66 72 6f 6d 20 77 69 |guments,| from wi|
|000023b0| 6c 6c 20 70 72 69 6e 74 | 20 74 68 65 20 63 75 72 |ll print| the cur|
|000023c0| 72 65 6e 74 20 6d 65 73 | 73 61 67 65 27 73 20 68 |rent mes|sage's h|
|000023d0| 65 61 64 65 72 2e 0a 58 | 49 66 20 67 69 76 65 6e |eader..X|If given|
|000023e0| 20 61 20 6d 65 73 73 61 | 67 65 20 6c 69 73 74 2c | a messa|ge list,|
|000023f0| 20 66 72 6f 6d 20 77 69 | 6c 6c 20 70 72 69 6e 74 | from wi|ll print|
|00002400| 20 74 68 65 20 68 65 61 | 64 65 72 73 20 6f 66 20 | the hea|ders of |
|00002410| 74 68 6f 73 65 0a 58 6d | 65 73 73 61 67 65 73 20 |those.Xm|essages |
|00002420| 77 68 69 63 68 20 61 72 | 65 20 69 6e 20 74 68 65 |which ar|e in the|
|00002430| 20 6c 69 73 74 2e 0a 58 | 0a 58 54 68 65 20 73 70 | list..X|.XThe sp|
|00002440| 65 63 69 61 6c 20 61 72 | 67 75 6d 65 6e 74 73 2c |ecial ar|guments,|
|00002450| 20 60 2d 27 20 61 6e 64 | 20 60 2b 27 20 63 61 6e | `-' and| `+' can|
|00002460| 20 62 65 20 67 69 76 65 | 6e 20 74 6f 20 6d 6f 76 | be give|n to mov|
|00002470| 65 20 74 68 65 0a 58 63 | 75 72 72 65 6e 74 20 6d |e the.Xc|urrent m|
|00002480| 65 73 73 61 67 65 20 70 | 6f 69 6e 74 65 72 20 74 |essage p|ointer t|
|00002490| 6f 20 74 68 65 20 70 72 | 65 76 69 6f 75 73 20 6f |o the pr|evious o|
|000024a0| 72 20 6e 65 78 74 20 6d | 65 73 73 61 67 65 0a 58 |r next m|essage.X|
|000024b0| 72 65 73 70 65 63 74 69 | 76 65 6c 79 20 77 68 69 |respecti|vely whi|
|000024c0| 6c 65 20 61 6c 73 6f 20 | 70 72 69 6e 74 69 6e 67 |le also |printing|
|000024d0| 20 74 68 61 74 20 6d 65 | 73 73 61 67 65 27 73 20 | that me|ssage's |
|000024e0| 68 65 61 64 65 72 2e 0a | 58 0a 58 49 66 20 61 20 |header..|X.XIf a |
|000024f0| 6d 65 73 73 61 67 65 20 | 6c 69 73 74 20 77 61 73 |message |list was|
|00002500| 20 67 69 76 65 6e 20 69 | 6e 20 61 64 64 69 74 69 | given i|n additi|
|00002510| 6f 6e 20 74 6f 20 60 2d | 27 20 6f 72 20 60 2b 27 |on to `-|' or `+'|
|00002520| 2c 20 74 68 65 6e 0a 58 | 74 68 65 20 63 75 72 72 |, then.X|the curr|
|00002530| 65 6e 74 20 6d 65 73 73 | 61 67 65 20 70 6f 69 6e |ent mess|age poin|
|00002540| 74 65 72 20 77 69 6c 6c | 20 62 65 20 73 65 74 20 |ter will| be set |
|00002550| 74 6f 20 74 68 65 20 66 | 69 72 73 74 20 6f 72 20 |to the f|irst or |
|00002560| 6c 61 73 74 0a 58 6d 65 | 73 73 61 67 65 2c 20 72 |last.Xme|ssage, r|
|00002570| 65 73 70 65 63 74 69 76 | 65 6c 79 2c 20 69 6e 20 |espectiv|ely, in |
|00002580| 74 68 65 20 6d 65 73 73 | 61 67 65 20 6c 69 73 74 |the mess|age list|
|00002590| 20 67 69 76 65 6e 2e 0a | 58 0a 58 66 72 6f 6d 20 | given..|X.Xfrom |
|000025a0| 2d 20 31 30 2d 33 30 20 | 7b 31 36 7d 0a 58 77 69 |- 10-30 |{16}.Xwi|
|000025b0| 6c 6c 20 70 72 69 6e 74 | 20 74 68 65 20 68 65 61 |ll print| the hea|
|000025c0| 64 65 72 73 20 6f 66 20 | 6d 65 73 73 61 67 65 73 |ders of |messages|
|000025d0| 20 31 30 20 74 68 72 6f | 75 67 68 20 33 30 20 65 | 10 thro|ugh 30 e|
|000025e0| 78 63 65 70 74 20 66 6f | 72 0a 58 6d 65 73 73 61 |xcept fo|r.Xmessa|
|000025f0| 67 65 20 31 36 20 61 6e | 64 20 73 65 74 20 74 68 |ge 16 an|d set th|
|00002600| 65 20 63 75 72 72 65 6e | 74 20 6d 65 73 73 61 67 |e curren|t messag|
|00002610| 65 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 31 30 2e |e pointe|r to 10.|
|00002620| 0a 58 0a 58 70 69 63 6b | 20 2d 66 20 44 61 6e 20 |.X.Xpick| -f Dan |
|00002630| 7c 20 66 72 6f 6d 20 2b | 0a 58 77 69 6c 6c 20 70 || from +|.Xwill p|
|00002640| 72 69 6e 74 20 74 68 65 | 20 68 65 61 64 65 72 73 |rint the| headers|
|00002650| 20 6f 66 20 61 6c 6c 20 | 6d 65 73 73 61 67 65 73 | of all |messages|
|00002660| 20 74 68 61 74 20 63 6f | 6e 74 61 69 6e 20 44 61 | that co|ntain Da|
|00002670| 6e 20 69 6e 0a 58 69 6e | 20 74 68 65 20 61 75 74 |n in.Xin| the aut|
|00002680| 68 6f 72 27 73 20 6e 61 | 6d 65 20 61 6e 64 20 73 |hor's na|me and s|
|00002690| 65 74 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 6d |et the c|urrent m|
|000026a0| 65 73 73 61 67 65 20 70 | 6f 69 6e 74 65 72 20 74 |essage p|ointer t|
|000026b0| 6f 0a 58 74 68 65 20 6c | 61 73 74 20 6f 6e 65 20 |o.Xthe l|ast one |
|000026c0| 6f 66 20 74 68 61 74 20 | 6b 69 6e 64 20 69 6e 20 |of that |kind in |
|000026d0| 74 68 65 20 6c 69 73 74 | 2e 0a 58 0a 58 66 72 6f |the list|..X.Xfro|
|000026e0| 6d 20 2b 0a 58 77 69 6c | 6c 20 70 72 69 6e 74 20 |m +.Xwil|l print |
|000026f0| 74 68 65 20 68 65 61 64 | 65 72 20 6f 66 20 74 68 |the head|er of th|
|00002700| 65 20 6d 65 73 73 61 67 | 65 20 61 66 74 65 72 20 |e messag|e after |
|00002710| 74 68 65 20 63 75 72 72 | 65 6e 74 20 6d 65 73 73 |the curr|ent mess|
|00002720| 61 67 65 0a 58 61 6e 64 | 20 69 6e 63 72 65 6d 65 |age.Xand| increme|
|00002730| 6e 74 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 6d |nt the c|urrent m|
|00002740| 65 73 73 61 67 65 20 70 | 6f 69 6e 74 65 72 20 74 |essage p|ointer t|
|00002750| 6f 20 74 68 65 20 6e 65 | 78 74 20 6d 65 73 73 61 |o the ne|xt messa|
|00002760| 67 65 2e 0a 58 25 25 0a | 58 0a 58 25 6f 77 6e 5f |ge..X%%.|X.X%own_|
|00002770| 68 64 72 73 25 0a 58 48 | 65 72 65 20 69 73 20 77 |hdrs%.XH|ere is w|
|00002780| 68 65 72 65 20 79 6f 75 | 20 73 65 74 2c 20 75 6e |here you| set, un|
|00002790| 73 65 74 20 6f 72 20 76 | 69 65 77 20 79 6f 75 72 |set or v|iew your|
|000027a0| 20 6f 77 6e 20 6d 65 73 | 73 61 67 65 20 68 65 61 | own mes|sage hea|
|000027b0| 64 65 72 73 2e 0a 58 54 | 68 65 73 65 20 68 65 61 |ders..XT|hese hea|
|000027c0| 64 65 72 73 20 61 72 65 | 20 69 6e 63 6c 75 64 65 |ders are| include|
|000027d0| 64 20 69 6e 20 61 6c 6c | 20 79 6f 75 72 20 6f 75 |d in all| your ou|
|000027e0| 74 67 6f 69 6e 67 20 6d | 61 69 6c 2e 0a 58 0a 58 |tgoing m|ail..X.X|
|000027f0| 6f 70 74 69 6f 6e 73 20 | 66 6f 72 20 6d 79 5f 68 |options |for my_h|
|00002800| 64 72 73 3a 0a 58 6d 79 | 5f 68 64 72 20 20 20 20 |drs:.Xmy|_hdr |
|00002810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002820| 20 20 20 20 20 20 61 6c | 6c 20 68 65 61 64 65 72 | al|l header|
|00002830| 73 0a 58 6d 79 5f 68 64 | 72 20 68 65 61 64 65 72 |s.Xmy_hd|r header|
|00002840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002850| 20 20 20 76 61 6c 75 65 | 20 61 73 73 6f 63 69 61 | value| associa|
|00002860| 74 65 64 20 77 69 74 68 | 20 68 65 61 64 65 72 0a |ted with| header.|
|00002870| 58 6d 79 5f 68 64 72 20 | 68 65 61 64 65 72 3a 20 |Xmy_hdr |header: |
|00002880| 73 74 72 69 6e 67 20 20 | 20 20 20 20 20 20 20 20 |string | |
|00002890| 20 73 65 74 20 68 65 61 | 64 65 72 20 74 6f 20 73 | set hea|der to s|
|000028a0| 74 72 69 6e 67 0a 58 75 | 6e 5f 68 64 72 20 68 65 |tring.Xu|n_hdr he|
|000028b0| 61 64 65 72 20 20 20 20 | 20 20 20 20 20 20 20 20 |ader | |
|000028c0| 20 20 20 20 20 20 20 75 | 6e 73 65 74 20 68 65 61 | u|nset hea|
|000028d0| 64 65 72 0a 58 25 25 0a | 58 0a 58 25 66 6b 65 79 |der.X%%.|X.X%fkey|
|000028e0| 5f 68 65 6c 70 25 0a 58 | 66 6b 65 79 27 73 20 61 |_help%.X|fkey's a|
|000028f0| 72 65 20 66 75 6e 63 74 | 69 6f 6e 20 6b 65 79 20 |re funct|ion key |
|00002900| 73 65 74 74 69 6e 67 73 | 20 69 6e 20 53 75 6e 74 |settings| in Sunt|
|00002910| 6f 6f 6c 73 20 28 67 72 | 61 70 68 69 63 73 29 20 |ools (gr|aphics) |
|00002920| 6d 6f 64 65 0a 58 57 68 | 65 6e 20 72 75 6e 20 61 |mode.XWh|en run a|
|00002930| 73 20 61 20 74 6f 6f 6c | 20 28 2d 74 20 6f 6e 20 |s a tool| (-t on |
|00002940| 63 6f 6d 6d 61 6e 64 20 | 6c 69 6e 65 29 2c 20 63 |command |line), c|
|00002950| 68 6f 6f 73 65 20 74 68 | 65 20 4f 70 74 69 6f 6e |hoose th|e Option|
|00002960| 73 20 49 74 65 6d 2c 0a | 58 61 6e 64 20 74 68 65 |s Item,.|Xand the|
|00002970| 20 66 75 6e 63 74 69 6f | 6e 20 6b 65 79 20 6d 65 | functio|n key me|
|00002980| 6e 75 20 6f 70 74 69 6f | 6e 2e 0a 58 25 25 0a 58 |nu optio|n..X%%.X|
|00002990| 0a 58 25 66 75 6e 63 5f | 68 65 6c 70 25 0a 58 63 |.X%func_|help%.Xc|
|000029a0| 6d 64 27 73 20 61 72 65 | 20 6a 75 73 74 20 6c 69 |md's are| just li|
|000029b0| 6b 65 20 61 6c 69 61 73 | 65 73 20 69 6e 20 74 68 |ke alias|es in th|
|000029c0| 65 20 63 2d 73 68 65 6c | 6c 2e 0a 58 63 6d 64 20 |e c-shel|l..Xcmd |
|000029d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029e0| 20 20 20 20 76 69 65 77 | 20 61 6c 6c 20 63 6f 6d | view| all com|
|000029f0| 6d 61 6e 64 73 0a 58 63 | 6d 64 20 60 63 6f 6d 6d |mands.Xc|md `comm|
|00002a00| 61 6e 64 27 20 20 20 20 | 20 20 20 20 20 20 20 76 |and' | v|
|00002a10| 61 6c 75 65 20 61 73 73 | 6f 63 69 61 74 65 64 20 |alue ass|ociated |
|00002a20| 77 69 74 68 20 63 6f 6d | 6d 61 6e 64 0a 58 63 6d |with com|mand.Xcm|
|00002a30| 64 20 60 63 6f 6d 6d 61 | 6e 64 27 20 22 76 61 6c |d `comma|nd' "val|
|00002a40| 75 65 22 20 20 20 73 65 | 74 20 63 6f 6d 6d 61 6e |ue" se|t comman|
|00002a50| 64 20 74 6f 20 76 61 6c | 75 65 0a 58 75 6e 63 6d |d to val|ue.Xuncm|
|00002a60| 64 20 60 63 6f 6d 6d 61 | 6e 64 27 20 20 20 20 20 |d `comma|nd' |
|00002a70| 20 20 20 20 75 6e 73 65 | 74 20 63 6f 6d 6d 61 6e | unse|t comman|
|00002a80| 64 0a 58 0a 58 49 66 20 | 79 6f 75 20 77 61 6e 74 |d.X.XIf |you want|
|00002a90| 20 74 6f 20 72 65 66 65 | 72 65 6e 63 65 20 68 69 | to refe|rence hi|
|00002aa0| 73 74 6f 72 79 20 63 6f | 6d 6d 61 6e 64 73 20 77 |story co|mmands w|
|00002ab0| 69 74 68 69 6e 20 61 20 | 63 6d 64 2c 0a 58 65 73 |ithin a |cmd,.Xes|
|00002ac0| 63 61 70 65 20 74 68 65 | 20 21 20 77 69 74 68 20 |cape the| ! with |
|00002ad0| 61 20 62 61 63 6b 73 6c | 61 6e 74 2e 20 46 6f 72 |a backsl|ant. For|
|00002ae0| 20 65 78 61 6d 70 6c 65 | 3a 0a 58 0a 58 6d 61 69 | example|:.X.Xmai|
|00002af0| 6c 3e 20 63 6d 64 20 72 | 20 27 72 65 70 6c 79 73 |l> cmd r| 'replys|
|00002b00| 65 6e 64 65 72 20 5c 21 | 2a 20 3b 20 64 65 6c 65 |ender \!|* ; dele|
|00002b10| 74 65 20 2d 74 27 0a 58 | 0a 58 77 69 6c 6c 20 72 |te -t'.X|.Xwill r|
|00002b20| 65 70 6c 79 20 75 73 69 | 6e 67 20 77 68 61 74 65 |eply usi|ng whate|
|00002b30| 76 65 72 20 61 72 67 75 | 6d 65 6e 74 73 20 79 6f |ver argu|ments yo|
|00002b40| 75 20 77 69 6c 6c 20 68 | 61 76 65 20 67 69 76 65 |u will h|ave give|
|00002b50| 6e 0a 58 6f 6e 20 74 68 | 65 20 63 6f 6d 6d 61 6e |n.Xon th|e comman|
|00002b60| 64 20 6c 69 6e 65 20 61 | 6e 64 20 74 68 65 6e 20 |d line a|nd then |
|00002b70| 64 65 6c 65 74 65 20 74 | 68 61 74 20 6d 65 73 73 |delete t|hat mess|
|00002b80| 61 67 65 20 61 6e 64 0a | 58 74 68 65 6e 20 70 72 |age and.|Xthen pr|
|00002b90| 69 6e 74 20 74 68 65 20 | 6e 65 78 74 20 6d 65 73 |int the |next mes|
|00002ba0| 73 61 67 65 20 28 2d 74 | 20 61 72 67 75 6d 65 6e |sage (-t| argumen|
|00002bb0| 74 20 74 6f 20 22 64 65 | 6c 65 74 65 22 29 2e 0a |t to "de|lete")..|
|00002bc0| 58 25 25 0a 58 0a 58 25 | 68 65 61 64 65 72 73 25 |X%%.X.X%|headers%|
|00002bd0| 0a 58 75 73 61 67 65 3a | 20 68 65 61 64 65 72 73 |.Xusage:| headers|
|00002be0| 20 5b 2b 20 7c 20 2d 20 | 7c 20 4e 5d 20 5b 2d 48 | [+ | - || N] [-H|
|00002bf0| 3a 63 5d 0a 58 70 72 69 | 6e 74 20 6f 75 74 20 61 |:c].Xpri|nt out a|
|00002c00| 20 73 63 72 65 65 6e 66 | 75 6c 20 6f 66 20 68 65 | screenf|ul of he|
|00002c10| 61 64 65 72 73 2e 0a 58 | 2b 20 20 70 72 69 6e 74 |aders..X|+ print|
|00002c20| 20 74 68 65 20 6e 65 78 | 74 20 73 63 72 65 65 6e | the nex|t screen|
|00002c30| 66 75 6c 2e 0a 58 2d 20 | 20 70 72 69 6e 74 20 74 |ful..X- | print t|
|00002c40| 68 65 20 70 72 65 76 69 | 6f 75 73 20 73 63 72 65 |he previ|ous scre|
|00002c50| 65 6e 66 75 6c 2e 0a 58 | 4e 20 20 28 77 68 65 72 |enful..X|N (wher|
|00002c60| 65 20 4e 20 69 73 20 61 | 20 6e 75 6d 62 65 72 29 |e N is a| number)|
|00002c70| 20 70 72 69 6e 74 20 61 | 20 73 63 72 65 65 6e 66 | print a| screenf|
|00002c80| 75 6c 20 73 74 61 72 74 | 69 6e 67 20 61 74 20 4e |ul start|ing at N|
|00002c90| 2e 0a 58 73 65 74 20 73 | 68 6f 77 5f 64 65 6c 65 |..Xset s|how_dele|
|00002ca0| 74 65 64 20 74 6f 20 6c | 69 73 74 20 64 65 6c 65 |ted to l|ist dele|
|00002cb0| 74 65 64 20 6d 65 73 73 | 61 67 65 73 2e 0a 58 63 |ted mess|ages..Xc|
|00002cc0| 6d 64 20 68 20 68 65 61 | 64 65 72 73 20 20 20 20 |md h hea|ders |
|00002cd0| 20 20 20 20 6c 6f 6f 6b | 20 6c 69 6b 65 20 55 43 | look| like UC|
|00002ce0| 42 2d 4d 61 69 6c 0a 58 | 63 6d 64 20 48 20 48 65 |B-Mail.X|cmd H He|
|00002cf0| 61 64 65 72 73 20 20 20 | 20 20 20 20 20 73 68 6f |aders | sho|
|00002d00| 77 20 64 65 6c 65 74 65 | 64 20 6d 65 73 73 61 67 |w delete|d messag|
|00002d10| 65 73 20 28 6f 72 20 73 | 65 74 20 73 68 6f 77 5f |es (or s|et show_|
|00002d20| 64 65 6c 65 74 65 64 29 | 0a 58 63 6d 64 20 7a 20 |deleted)|.Xcmd z |
|00002d30| 68 65 61 64 65 72 73 20 | 2b 20 20 20 20 20 20 60 |headers |+ `|
|00002d40| 7a 27 20 69 73 20 6e 65 | 78 74 20 73 63 72 65 65 |z' is ne|xt scree|
|00002d50| 6e 66 75 6c 0a 58 0a 58 | 41 72 67 75 6d 65 6e 74 |nful.X.X|Argument|
|00002d60| 73 20 74 6f 20 74 68 65 | 20 68 65 61 64 65 72 73 |s to the| headers|
|00002d70| 20 63 6f 6d 6d 61 6e 64 | 20 69 6e 63 6c 75 64 65 | command| include|
|00002d80| 20 2d 48 3a 63 20 77 68 | 65 72 65 20 60 63 27 20 | -H:c wh|ere `c' |
|00002d90| 69 73 20 6f 6e 65 20 6f | 66 0a 58 20 20 20 20 6e |is one o|f.X n|
|00002da0| 20 20 20 20 6a 75 73 74 | 20 70 72 69 6e 74 20 6d | just| print m|
|00002db0| 65 73 73 61 67 65 73 20 | 68 65 61 64 65 72 73 20 |essages |headers |
|00002dc0| 6f 66 20 4e 45 57 20 6d | 65 73 73 61 67 65 73 0a |of NEW m|essages.|
|00002dd0| 58 20 20 20 20 64 20 20 | 20 20 64 65 6c 65 74 65 |X d | delete|
|00002de0| 64 20 6d 65 73 73 61 67 | 65 73 0a 58 20 20 20 20 |d messag|es.X |
|00002df0| 75 20 20 20 20 75 6e 72 | 65 61 64 20 6d 65 73 73 |u unr|ead mess|
|00002e00| 61 67 65 73 0a 58 20 20 | 20 20 6f 20 20 20 20 6f |ages.X | o o|
|00002e10| 6c 64 20 6d 65 73 73 61 | 67 65 73 0a 58 20 20 20 |ld messa|ges.X |
|00002e20| 20 61 20 20 20 20 61 6c | 6c 20 6d 65 73 73 61 67 | a al|l messag|
|00002e30| 65 73 20 28 6d 6f 73 74 | 6c 79 20 66 6f 72 20 74 |es (most|ly for t|
|00002e40| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 20 |he comma|nd line |
|00002e50| 61 72 67 75 6d 65 6e 74 | 20 2d 48 3a 63 29 0a 58 |argument| -H:c).X|
|00002e60| 0a 58 70 69 70 69 6e 67 | 20 74 6f 20 68 65 61 64 |.Xpiping| to head|
|00002e70| 65 72 73 20 77 69 6c 6c | 20 70 72 69 6e 74 20 74 |ers will| print t|
|00002e80| 68 65 20 68 65 61 64 65 | 72 73 20 6f 66 20 74 68 |he heade|rs of th|
|00002e90| 65 20 22 6f 75 74 70 75 | 74 22 20 6d 65 73 73 61 |e "outpu|t" messa|
|00002ea0| 67 65 73 2e 0a 58 25 25 | 0a 58 0a 58 25 68 64 72 |ges..X%%|.X.X%hdr|
|00002eb0| 5f 66 6f 72 6d 61 74 25 | 0a 58 73 65 74 20 68 64 |_format%|.Xset hd|
|00002ec0| 72 5f 66 6f 72 6d 61 74 | 3d 22 73 74 72 69 6e 67 |r_format|="string|
|00002ed0| 22 20 66 6f 72 20 63 68 | 61 6e 67 69 6e 67 20 74 |" for ch|anging t|
|00002ee0| 68 65 20 64 69 73 70 6c | 61 79 20 6f 66 20 6d 65 |he displ|ay of me|
|00002ef0| 73 73 61 67 65 20 68 65 | 61 64 65 72 73 2e 0a 58 |ssage he|aders..X|
|00002f00| 54 68 65 20 73 74 72 69 | 6e 67 20 75 73 65 73 20 |The stri|ng uses |
|00002f10| 70 72 69 6e 74 66 20 73 | 74 79 6c 65 20 66 6f 72 |printf s|tyle for|
|00002f20| 6d 61 74 74 69 6e 67 20 | 61 6e 64 20 66 6f 6c 6c |matting |and foll|
|00002f30| 6f 77 73 20 74 68 65 73 | 65 20 63 6f 6e 76 65 6e |ows thes|e conven|
|00002f40| 74 69 6f 6e 73 3a 0a 58 | 20 20 20 20 25 53 20 20 |tions:.X| %S |
|00002f50| 6d 65 73 73 61 67 65 20 | 53 74 61 74 75 73 2e 0a |message |Status..|
|00002f60| 58 20 20 20 20 25 66 20 | 20 22 66 72 6f 6d 22 20 |X %f | "from" |
|00002f70| 66 69 65 6c 64 20 28 61 | 75 74 68 6f 72 29 2e 0a |field (a|uthor)..|
|00002f80| 58 20 20 20 20 25 61 20 | 20 74 68 65 20 61 64 64 |X %a | the add|
|00002f90| 72 65 73 73 20 6f 66 20 | 74 68 65 20 61 75 74 68 |ress of |the auth|
|00002fa0| 6f 72 2e 0a 58 20 20 20 | 20 25 6e 20 20 74 68 65 |or..X | %n the|
|00002fb0| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 61 75 74 | name of| the aut|
|00002fc0| 68 6f 72 2e 0a 58 20 20 | 20 20 25 74 20 20 22 74 |hor..X | %t "t|
|00002fd0| 6f 22 20 66 69 65 6c 64 | 20 28 72 65 63 69 70 69 |o" field| (recipi|
|00002fe0| 65 6e 74 73 29 2e 0a 58 | 20 20 20 20 25 64 20 20 |ents)..X| %d |
|00002ff0| 64 61 74 65 20 6f 66 20 | 74 68 65 20 6d 65 73 73 |date of |the mess|
|00003000| 61 67 65 2e 0a 58 20 20 | 20 20 25 73 20 20 73 75 |age..X | %s su|
|00003010| 62 6a 65 63 74 20 6f 66 | 20 74 68 65 20 6d 65 73 |bject of| the mes|
|00003020| 73 61 67 65 2e 0a 58 20 | 20 20 20 25 6c 20 20 6e |sage..X | %l n|
|00003030| 75 6d 62 65 72 20 6f 66 | 20 6c 69 6e 65 73 20 69 |umber of| lines i|
|00003040| 6e 20 74 68 65 20 6d 65 | 73 73 61 67 65 2e 0a 58 |n the me|ssage..X|
|00003050| 20 20 20 20 25 63 20 20 | 6e 75 6d 62 65 72 20 6f | %c |number o|
|00003060| 66 20 63 68 61 72 61 63 | 74 65 72 73 20 28 62 79 |f charac|ters (by|
|00003070| 74 65 73 29 20 69 6e 20 | 74 68 65 20 6d 65 73 73 |tes) in |the mess|
|00003080| 61 67 65 2e 0a 58 20 20 | 20 20 5c 6e 20 20 61 20 |age..X | \n a |
|00003090| 6e 65 77 6c 69 6e 65 0a | 58 20 20 20 20 5c 74 20 |newline.|X \t |
|000030a0| 20 61 20 74 61 62 2e 0a | 58 41 20 66 69 65 6c 64 | a tab..|XA field|
|000030b0| 20 73 70 65 63 69 66 69 | 65 72 20 6d 61 79 20 62 | specifi|er may b|
|000030c0| 65 20 75 73 65 64 2e 20 | 20 54 68 75 73 2c 20 25 |e used. | Thus, %|
|000030d0| 32 30 66 20 77 69 6c 6c | 20 70 72 69 6e 74 20 74 |20f will| print t|
|000030e0| 68 65 20 66 69 72 73 74 | 20 32 30 0a 58 63 68 61 |he first| 20.Xcha|
|000030f0| 72 61 63 74 65 72 73 20 | 6f 66 20 74 68 65 20 66 |racters |of the f|
|00003100| 72 6f 6d 20 6c 69 6e 65 | 2e 20 20 4e 6f 20 6d 61 |rom line|. No ma|
|00003110| 74 74 65 72 20 77 68 61 | 74 20 74 68 65 20 66 6f |tter wha|t the fo|
|00003120| 72 6d 61 74 74 69 6e 67 | 20 73 74 72 69 6e 67 2c |rmatting| string,|
|00003130| 0a 58 74 68 65 20 6d 65 | 73 73 61 67 65 20 6e 75 |.Xthe me|ssage nu|
|00003140| 6d 62 65 72 20 66 6f 6c | 6c 6f 77 65 64 20 62 79 |mber fol|lowed by|
|00003150| 20 61 20 27 3e 27 20 28 | 69 66 20 63 75 72 72 65 | a '>' (|if curre|
|00003160| 6e 74 20 6d 65 73 73 61 | 67 65 29 20 69 73 20 70 |nt messa|ge) is p|
|00003170| 72 69 6e 74 65 64 2e 0a | 58 25 25 0a 58 0a 58 25 |rinted..|X%%.X.X%|
|00003180| 66 6f 6c 64 65 72 5f 68 | 65 6c 70 25 0a 58 75 73 |folder_h|elp%.Xus|
|00003190| 61 67 65 3a 20 66 6f 6c | 64 65 72 20 5b 2d 4e 5d |age: fol|der [-N]|
|000031a0| 20 5b 2d 72 5d 20 5b 21 | 5d 20 5b 20 25 5b 75 73 | [-r] [!|] [ %[us|
|000031b0| 65 72 5d 20 7c 20 23 20 | 7c 20 26 20 7c 20 66 69 |er] | # || & | fi|
|000031c0| 6c 65 20 5d 0a 58 43 68 | 61 6e 67 65 20 63 75 72 |le ].XCh|ange cur|
|000031d0| 72 65 6e 74 20 66 6f 6c | 64 65 72 2e 0a 58 4e 6f |rent fol|der..XNo|
|000031e0| 20 61 72 67 75 6d 65 6e | 74 73 20 70 72 69 6e 74 | argumen|ts print|
|000031f0| 73 20 63 75 72 72 65 6e | 74 20 66 6f 6c 64 65 72 |s curren|t folder|
|00003200| 2e 0a 58 2d 4e 3a 20 4e | 6f 20 68 65 61 64 65 72 |..X-N: N|o header|
|00003210| 73 20 61 72 65 20 64 69 | 73 70 6c 61 79 65 64 20 |s are di|splayed |
|00003220| 75 70 6f 6e 20 65 6e 74 | 65 72 69 6e 67 20 6e 65 |upon ent|ering ne|
|00003230| 77 20 66 6f 6c 64 65 72 | 20 28 61 6c 73 6f 20 63 |w folder| (also c|
|00003240| 6f 6d 6d 61 6e 64 20 6c | 69 6e 65 29 2e 0a 58 2d |ommand l|ine)..X-|
|00003250| 72 3a 20 72 65 61 64 20 | 6f 6e 6c 79 20 6d 6f 64 |r: read |only mod|
|00003260| 65 20 28 79 6f 75 20 77 | 6f 6e 27 74 20 62 65 20 |e (you w|on't be |
|00003270| 61 62 6c 65 20 74 6f 20 | 77 72 69 74 65 20 63 68 |able to |write ch|
|00003280| 61 6e 67 65 73 20 74 6f | 20 74 68 69 73 20 66 6f |anges to| this fo|
|00003290| 6c 64 65 72 29 2e 0a 58 | 49 66 20 60 21 27 20 69 |lder)..X|If `!' i|
|000032a0| 73 20 73 70 65 63 69 66 | 69 65 64 2c 20 63 75 72 |s specif|ied, cur|
|000032b0| 72 65 6e 74 20 66 6f 6c | 64 65 72 20 69 73 20 6e |rent fol|der is n|
|000032c0| 6f 74 20 75 70 64 61 74 | 65 64 2e 0a 58 25 5b 75 |ot updat|ed..X%[u|
|000032d0| 73 65 72 5d 20 66 6f 6c | 64 65 72 20 74 6f 20 2f |ser] fol|der to /|
|000032e0| 75 73 72 2f 73 70 6f 6f | 6c 2f 6d 61 69 6c 2f 5b |usr/spoo|l/mail/[|
|000032f0| 75 73 65 72 5d 20 28 79 | 6f 75 20 64 65 66 61 75 |user] (y|ou defau|
|00003300| 6c 74 29 0a 58 23 20 20 | 66 6f 6c 64 65 72 20 61 |lt).X# |folder a|
|00003310| 63 63 65 73 73 65 64 20 | 70 72 65 76 69 6f 75 73 |ccessed |previous|
|00003320| 20 74 6f 20 63 75 72 72 | 65 6e 74 20 66 6f 6c 64 | to curr|ent fold|
|00003330| 65 72 0a 58 26 20 20 22 | 6d 62 6f 78 22 20 2d 2d |er.X& "|mbox" --|
|00003340| 20 64 65 66 61 75 6c 74 | 20 69 73 20 7e 2f 6d 62 | default| is ~/mb|
|00003350| 6f 78 3b 20 6f 72 20 73 | 65 74 20 6d 62 6f 78 20 |ox; or s|et mbox |
|00003360| 3d 20 22 66 69 6c 65 22 | 0a 58 25 25 0a 58 0a 58 |= "file"|.X%%.X.X|
|00003370| 25 70 72 6f 6d 70 74 25 | 0a 58 73 65 74 20 70 72 |%prompt%|.Xset pr|
|00003380| 6f 6d 70 74 20 3d 20 22 | 73 74 72 69 6e 67 22 0a |ompt = "|string".|
|00003390| 58 22 73 74 72 69 6e 67 | 22 20 69 73 20 66 6f 6c |X"string|" is fol|
|000033a0| 6c 6f 77 73 20 70 72 69 | 6e 74 66 20 73 74 79 6c |lows pri|ntf styl|
|000033b0| 65 20 66 6f 72 6d 61 74 | 74 69 6e 67 20 63 6f 6e |e format|ting con|
|000033c0| 76 65 6e 74 69 6f 6e 73 | 3a 0a 58 20 20 20 20 5c |ventions|:.X \|
|000033d0| 74 2c 20 5c 6e 20 77 69 | 6c 6c 20 62 65 20 72 65 |t, \n wi|ll be re|
|000033e0| 70 6c 61 63 65 64 20 62 | 79 20 61 20 74 61 62 20 |placed b|y a tab |
|000033f0| 6f 72 20 6e 65 77 6c 69 | 6e 65 20 72 65 73 70 65 |or newli|ne respe|
|00003400| 63 74 69 76 65 6c 79 2e | 0a 58 20 20 20 20 25 6d |ctively.|.X %m|
|00003410| 09 20 63 75 72 72 65 6e | 74 20 6d 65 73 73 61 67 |. curren|t messag|
|00003420| 65 20 6e 75 6d 62 65 72 | 0a 58 20 20 20 20 25 74 |e number|.X %t|
|00003430| 09 20 74 6f 74 61 6c 20 | 6e 75 6d 62 65 72 20 6f |. total |number o|
|00003440| 66 20 6d 65 73 73 61 67 | 65 73 0a 58 20 20 20 20 |f messag|es.X |
|00003450| 25 64 09 20 6e 75 6d 62 | 65 72 20 6f 66 20 64 65 |%d. numb|er of de|
|00003460| 6c 65 74 65 64 20 6d 65 | 73 73 61 67 65 73 0a 58 |leted me|ssages.X|
|00003470| 20 20 20 20 25 75 09 20 | 6e 75 6d 62 65 72 20 6f | %u. |number o|
|00003480| 66 20 75 6e 72 65 61 64 | 20 6d 65 73 73 61 67 65 |f unread| message|
|00003490| 73 0a 58 20 20 20 20 25 | 6e 09 20 6e 75 6d 62 65 |s.X %|n. numbe|
|000034a0| 72 20 6f 66 20 6e 65 77 | 20 6d 65 73 73 61 67 65 |r of new| message|
|000034b0| 73 0a 58 20 20 20 20 25 | 66 09 20 6e 61 6d 65 20 |s.X %|f. name |
|000034c0| 6f 66 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 77 |of the c|urrent w|
|000034d0| 6f 72 6b 69 6e 67 20 66 | 6f 6c 64 65 72 0a 58 20 |orking f|older.X |
|000034e0| 20 20 20 25 54 09 20 63 | 75 72 72 65 6e 74 20 74 | %T. c|urrent t|
|000034f0| 69 6d 65 0a 58 20 20 20 | 20 25 44 09 20 64 61 79 |ime.X | %D. day|
|00003500| 20 6f 66 20 74 68 65 20 | 77 65 65 6b 0a 58 20 20 | of the |week.X |
|00003510| 20 20 25 59 09 20 79 65 | 61 72 0a 58 20 20 20 20 | %Y. ye|ar.X |
|00003520| 25 4d 09 20 6d 6f 6e 74 | 68 0a 58 20 20 20 20 25 |%M. mont|h.X %|
|00003530| 4e 09 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 68 65 |N. numbe|r of the|
|00003540| 20 64 61 79 20 69 6e 20 | 74 68 65 20 6d 6f 6e 74 | day in |the mont|
|00003550| 68 20 28 64 61 74 65 29 | 0a 58 25 25 0a 58 0a 58 |h (date)|.X%%.X.X|
|00003560| 25 71 75 69 74 5f 68 65 | 6c 70 25 0a 58 75 73 61 |%quit_he|lp%.Xusa|
|00003570| 67 65 3a 20 71 75 69 74 | 2f 65 78 69 74 22 2c 0a |ge: quit|/exit",.|
|00003580| 58 71 75 69 74 20 77 69 | 6c 6c 20 75 70 64 61 74 |Xquit wi|ll updat|
|00003590| 65 20 79 6f 75 72 20 6d | 61 69 6c 62 6f 78 3b 20 |e your m|ailbox; |
|000035a0| 69 66 20 6e 65 77 20 6d | 61 69 6c 20 68 61 73 20 |if new m|ail has |
|000035b0| 63 6f 6d 65 20 69 6e 2c | 20 79 6f 75 20 77 69 6c |come in,| you wil|
|000035c0| 6c 20 62 65 0a 58 74 6f | 6c 64 20 73 6f 20 61 6e |l be.Xto|ld so an|
|000035d0| 64 20 67 69 76 65 6e 20 | 61 6e 20 6f 70 74 69 6f |d given |an optio|
|000035e0| 6e 20 77 68 65 74 68 65 | 72 20 74 6f 20 72 65 61 |n whethe|r to rea|
|000035f0| 6c 6c 79 20 71 75 69 74 | 20 6f 72 20 6e 6f 74 2e |lly quit| or not.|
|00003600| 0a 58 22 65 78 69 74 22 | 20 77 69 6c 6c 20 6c 65 |.X"exit"| will le|
|00003610| 61 76 65 20 6d 61 69 6c | 20 6e 6f 74 20 75 70 64 |ave mail| not upd|
|00003620| 61 74 69 6e 67 20 79 6f | 75 72 20 6d 61 69 6c 62 |ating yo|ur mailb|
|00003630| 6f 78 20 6e 6f 72 20 63 | 68 65 63 6b 20 66 6f 72 |ox nor c|heck for|
|00003640| 20 6e 65 77 20 6d 61 69 | 6c 2e 0a 58 25 25 0a 58 | new mai|l..X%%.X|
|00003650| 0a 58 25 6c 73 25 0a 58 | 54 68 65 20 6c 73 20 63 |.X%ls%.X|The ls c|
|00003660| 6f 6d 6d 61 6e 64 20 69 | 73 20 65 78 61 63 74 6c |ommand i|s exactl|
|00003670| 79 20 6c 69 6b 65 20 74 | 68 65 20 55 4e 49 58 20 |y like t|he UNIX |
|00003680| 63 6f 6d 6d 61 6e 64 2c | 20 22 6c 73 2e 22 0a 58 |command,| "ls.".X|
|00003690| 41 6c 6c 20 61 72 67 75 | 6d 65 6e 74 73 20 61 72 |All argu|ments ar|
|000036a0| 65 20 74 68 65 20 73 61 | 6d 65 2e 20 20 54 68 65 |e the sa|me. The|
|000036b0| 20 76 61 72 69 61 62 6c | 65 20 22 6c 69 73 74 65 | variabl|e "liste|
|000036c0| 72 22 20 63 61 6e 0a 58 | 62 65 20 73 65 74 20 74 |r" can.X|be set t|
|000036d0| 6f 20 61 6c 77 61 79 73 | 20 64 65 66 61 75 6c 74 |o always| default|
|000036e0| 20 74 6f 20 74 68 65 20 | 73 61 6d 65 20 61 72 67 | to the |same arg|
|000036f0| 75 6d 65 6e 74 73 20 61 | 76 6f 69 64 69 6e 67 0a |uments a|voiding.|
|00003700| 58 68 61 76 69 6e 67 20 | 74 6f 20 73 70 65 63 69 |Xhaving |to speci|
|00003710| 66 79 20 74 68 65 6d 20 | 61 6c 6c 20 74 68 65 20 |fy them |all the |
|00003720| 74 69 6d 65 2e 20 20 54 | 68 65 20 22 66 6f 6c 64 |time. T|he "fold|
|00003730| 65 72 73 22 0a 58 63 6f | 6d 6d 61 6e 64 20 69 73 |ers".Xco|mmand is|
|00003740| 20 6e 6f 74 68 69 6e 67 | 20 6d 6f 72 65 20 74 68 | nothing| more th|
|00003750| 61 6e 20 64 6f 69 6e 67 | 20 22 6c 73 20 24 66 6f |an doing| "ls $fo|
|00003760| 6c 64 65 72 22 20 66 72 | 6f 6d 0a 58 74 68 65 20 |lder" fr|om.Xthe |
|00003770| 4d 75 73 68 20 70 72 6f | 6d 70 74 2e 0a 58 25 25 |Mush pro|mpt..X%%|
|00003780| 0a 58 0a 58 25 73 68 65 | 6c 6c 25 0a 58 75 73 61 |.X.X%she|ll%.Xusa|
|00003790| 67 65 3a 20 73 68 20 5b | 63 6f 6d 6d 61 6e 64 5d |ge: sh [|command]|
|000037a0| 0a 58 49 66 20 61 20 22 | 63 6f 6d 6d 61 6e 64 22 |.XIf a "|command"|
|000037b0| 20 69 73 20 67 69 76 65 | 6e 2c 20 74 68 61 74 20 | is give|n, that |
|000037c0| 55 4e 49 58 20 63 6f 6d | 6d 61 6e 64 20 77 69 6c |UNIX com|mand wil|
|000037d0| 6c 20 62 65 20 65 78 65 | 63 75 74 65 64 0a 58 75 |l be exe|cuted.Xu|
|000037e0| 6e 64 65 72 20 74 68 65 | 20 42 6f 75 72 6e 65 20 |nder the| Bourne |
|000037f0| 73 68 65 6c 6c 2e 20 49 | 66 20 6e 6f 20 63 6f 6d |shell. I|f no com|
|00003800| 6d 61 6e 64 20 69 73 20 | 73 70 65 63 69 66 69 65 |mand is |specifie|
|00003810| 64 2c 20 74 68 65 6e 20 | 61 6e 0a 58 69 6e 74 65 |d, then |an.Xinte|
|00003820| 72 61 63 74 69 76 65 20 | 73 68 65 6c 6c 20 77 69 |ractive |shell wi|
|00003830| 6c 6c 20 62 65 20 73 74 | 61 72 74 65 64 2e 20 54 |ll be st|arted. T|
|00003840| 68 65 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 76 |he envir|onment v|
|00003850| 61 72 69 61 62 6c 65 0a | 58 53 48 45 4c 4c 20 6f |ariable.|XSHELL o|
|00003860| 72 20 74 68 65 20 6c 6f | 63 61 6c 20 6d 61 69 6c |r the lo|cal mail|
|00003870| 20 73 68 65 6c 6c 20 76 | 61 72 69 61 62 6c 65 20 | shell v|ariable |
|00003880| 73 68 65 6c 6c 20 20 64 | 65 73 63 72 69 62 65 73 |shell d|escribes|
|00003890| 20 74 68 65 0a 58 73 68 | 65 6c 6c 20 74 6f 20 69 | the.Xsh|ell to i|
|000038a0| 6e 76 6f 6b 65 2e 20 20 | 49 66 20 6e 6f 6e 65 20 |nvoke. |If none |
|000038b0| 69 73 20 73 65 74 2c 20 | 74 68 65 6e 20 74 68 65 |is set, |then the|
|000038c0| 20 64 65 66 61 75 6c 74 | 20 73 68 65 6c 6c 20 69 | default| shell i|
|000038d0| 73 0a 58 64 65 66 69 6e | 65 64 20 62 79 20 74 68 |s.Xdefin|ed by th|
|000038e0| 65 20 73 79 73 74 65 6d | 20 61 64 6d 69 6e 69 73 |e system| adminis|
|000038f0| 74 72 61 74 6f 72 20 28 | 63 75 72 72 65 6e 74 6c |trator (|currentl|
|00003900| 79 20 73 65 74 20 74 6f | 20 63 73 68 29 2e 0a 58 |y set to| csh)..X|
|00003910| 0a 58 55 73 65 72 73 20 | 6f 6e 20 73 79 73 74 65 |.XUsers |on syste|
|00003920| 6d 73 20 77 69 74 68 20 | 6a 6f 62 20 63 6f 6e 74 |ms with |job cont|
|00003930| 72 6f 6c 20 77 69 6c 6c | 20 70 72 6f 62 61 62 6c |rol will| probabl|
|00003940| 79 20 68 61 76 65 20 6c | 69 74 74 6c 65 0a 58 75 |y have l|ittle.Xu|
|00003950| 73 65 20 66 6f 72 20 74 | 68 65 20 73 68 20 63 6f |se for t|he sh co|
|00003960| 6d 6d 61 6e 64 2e 0a 58 | 25 25 0a 58 0a 58 25 73 |mmand..X|%%.X.X%s|
|00003970| 74 6f 70 25 0a 58 54 68 | 65 20 73 74 6f 70 20 63 |top%.XTh|e stop c|
|00003980| 6f 6d 6d 61 6e 64 20 73 | 65 6e 64 73 20 61 20 73 |ommand s|ends a s|
|00003990| 74 6f 70 20 73 69 67 6e | 61 6c 20 74 6f 20 74 68 |top sign|al to th|
|000039a0| 65 20 6d 61 69 6c 20 73 | 68 65 6c 6c 2e 0a 58 49 |e mail s|hell..XI|
|000039b0| 74 20 69 73 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |t is equ|ivalent |
|000039c0| 74 6f 20 5e 5a 20 61 73 | 20 69 74 20 77 69 6c 6c |to ^Z as| it will|
|000039d0| 20 73 74 6f 70 20 74 68 | 65 20 70 72 6f 63 65 73 | stop th|e proces|
|000039e0| 73 2e 0a 58 53 69 6e 63 | 65 20 74 68 65 20 73 68 |s..XSinc|e the sh|
|000039f0| 65 6c 6c 20 6e 65 76 65 | 72 20 6e 65 65 64 73 20 |ell neve|r needs |
|00003a00| 74 6f 20 62 65 20 65 78 | 69 74 65 64 2c 20 74 68 |to be ex|ited, th|
|00003a10| 65 20 63 6f 6d 6d 61 6e | 64 0a 58 27 71 27 20 6d |e comman|d.X'q' m|
|00003a20| 61 79 20 62 65 20 61 6c | 69 61 73 65 64 20 74 6f |ay be al|iased to|
|00003a30| 20 22 73 74 6f 70 22 20 | 61 6e 64 20 74 68 65 20 | "stop" |and the |
|00003a40| 73 68 65 6c 6c 20 6d 61 | 79 20 68 61 76 65 2c 0a |shell ma|y have,.|
|00003a50| 58 25 20 61 6c 69 61 73 | 20 27 6d 61 69 6c 20 20 |X% alias| 'mail |
|00003a60| 20 3f 6d 75 73 68 27 0a | 58 77 68 69 63 68 20 77 | ?mush'.|Xwhich w|
|00003a70| 69 6c 6c 20 62 72 69 6e | 67 20 6d 75 73 68 20 69 |ill brin|g mush i|
|00003a80| 6e 74 6f 20 74 68 65 20 | 66 6f 72 65 67 72 6f 75 |nto the |foregrou|
|00003a90| 6e 64 20 72 61 74 68 65 | 72 20 74 68 61 6e 0a 58 |nd rathe|r than.X|
|00003aa0| 68 61 76 69 6e 67 20 74 | 6f 20 69 6e 76 6f 6b 65 |having t|o invoke|
|00003ab0| 20 61 20 6e 65 77 20 73 | 68 65 6c 6c 2e 20 20 4e | a new s|hell. N|
|00003ac0| 65 77 20 6d 61 69 6c 20 | 77 69 6c 6c 20 62 65 20 |ew mail |will be |
|00003ad0| 72 65 61 64 20 0a 58 69 | 6e 74 6f 20 74 68 65 20 |read .Xi|nto the |
|00003ae0| 73 68 65 6c 6c 20 61 75 | 74 6f 6d 61 74 69 63 61 |shell au|tomatica|
|00003af0| 6c 6c 79 20 61 6e 64 20 | 6d 75 63 68 20 74 69 6d |lly and |much tim|
|00003b00| 65 20 61 6e 64 20 65 6e | 65 72 67 79 20 0a 58 69 |e and en|ergy .Xi|
|00003b10| 73 20 73 61 76 65 64 2e | 0a 58 25 25 0a 58 0a 58 |s saved.|.X%%.X.X|
|00003b20| 25 63 75 72 73 65 73 25 | 0a 58 54 68 65 20 63 75 |%curses%|.XThe cu|
|00003b30| 72 73 65 73 2d 62 61 73 | 65 64 20 69 6e 74 65 72 |rses-bas|ed inter|
|00003b40| 66 61 63 65 20 66 6f 72 | 20 4d 75 73 68 20 64 6f |face for| Mush do|
|00003b50| 65 73 20 6e 6f 74 20 72 | 65 71 75 69 72 65 20 61 |es not r|equire a|
|00003b60| 20 67 72 61 70 68 69 63 | 73 0a 58 64 69 73 70 6c | graphic|s.Xdispl|
|00003b70| 61 79 2c 20 62 75 74 20 | 64 6f 65 73 20 72 65 71 |ay, but |does req|
|00003b80| 75 69 72 65 73 20 61 20 | 74 65 72 6d 69 6e 61 6c |uires a |terminal|
|00003b90| 20 77 68 69 63 68 20 63 | 61 6e 20 68 61 6e 64 6c | which c|an handl|
|00003ba0| 65 20 75 70 6c 69 6e 65 | 0a 58 63 75 72 73 6f 72 |e upline|.Xcursor|
|00003bb0| 20 6d 6f 76 65 6d 65 6e | 74 20 63 61 70 61 62 69 | movemen|t capabi|
|00003bc0| 6c 69 74 69 65 73 2e 20 | 20 41 6c 6c 20 63 6f 6d |lities. | All com|
|00003bd0| 6d 61 6e 64 73 20 61 72 | 65 20 6f 6e 65 20 6b 65 |mands ar|e one ke|
|00003be0| 79 2d 73 74 72 6f 6b 65 | 0a 58 63 6f 6d 6d 61 6e |y-stroke|.Xcomman|
|00003bf0| 64 73 20 61 6e 64 20 61 | 72 65 20 65 78 65 63 75 |ds and a|re execu|
|00003c00| 74 65 64 20 69 6e 73 74 | 61 6e 74 61 6e 65 6f 75 |ted inst|antaneou|
|00003c10| 73 6c 79 2e 20 20 41 20 | 6c 69 73 74 20 6f 66 20 |sly. A |list of |
|00003c20| 63 75 72 73 65 73 0a 58 | 63 6f 6d 6d 61 6e 64 73 |curses.X|commands|
|00003c30| 20 69 73 20 67 69 76 65 | 6e 20 62 79 20 75 73 69 | is give|n by usi|
|00003c40| 6e 67 20 74 68 65 20 60 | 3f 27 20 6b 65 79 20 69 |ng the `|?' key i|
|00003c50| 6e 20 63 75 72 73 65 73 | 20 6d 6f 64 65 2e 0a 58 |n curses| mode..X|
|00003c60| 25 25 0a 58 0a 58 25 62 | 69 6e 64 25 0a 58 42 69 |%%.X.X%b|ind%.XBi|
|00003c70| 6e 64 69 6e 67 20 69 73 | 20 64 6f 6e 65 20 66 6f |nding is| done fo|
|00003c80| 72 20 74 68 65 20 63 75 | 72 73 65 73 20 69 6e 74 |r the cu|rses int|
|00003c90| 65 72 66 61 63 65 20 6f | 6e 6c 79 2e 20 20 49 74 |erface o|nly. It|
|00003ca0| 20 61 6c 6c 6f 77 73 0a | 58 74 68 65 20 75 73 65 | allows.|Xthe use|
|00003cb0| 72 20 74 6f 20 62 69 6e | 64 20 6b 65 79 73 74 72 |r to bin|d keystr|
|00003cc0| 6f 6b 65 73 20 6f 72 20 | 6b 65 79 20 73 65 71 75 |okes or |key sequ|
|00003cd0| 65 6e 63 65 73 20 74 6f | 20 63 6f 6d 6d 61 6e 64 |ences to| command|
|00003ce0| 73 2e 0a 58 0a 58 54 6f | 20 62 69 6e 64 20 6b 65 |s..X.XTo| bind ke|
|00003cf0| 79 73 74 72 6f 6b 65 73 | 20 74 68 61 74 20 61 72 |ystrokes| that ar|
|00003d00| 65 20 63 6f 6e 74 72 6f | 6c 20 63 68 61 72 61 63 |e contro|l charac|
|00003d10| 74 65 72 73 2c 20 79 6f | 75 20 6d 75 73 74 20 75 |ters, yo|u must u|
|00003d20| 73 65 0a 58 74 68 65 20 | 6e 6f 74 61 74 69 6f 6e |se.Xthe |notation|
|00003d30| 3a 20 22 5c 43 58 22 20 | 77 68 65 72 65 20 22 58 |: "\CX" |where "X|
|00003d40| 22 20 69 73 20 69 6e 20 | 75 70 70 65 72 2d 63 61 |" is in |upper-ca|
|00003d50| 73 65 20 61 6e 64 20 69 | 74 20 72 65 70 72 65 73 |se and i|t repres|
|00003d60| 65 6e 74 73 0a 58 74 68 | 65 20 63 6f 6e 74 72 6f |ents.Xth|e contro|
|00003d70| 6c 20 6b 65 79 20 79 6f | 75 20 77 61 6e 74 20 74 |l key yo|u want t|
|00003d80| 6f 20 75 73 65 2e 20 22 | 5c 43 4e 22 20 77 6f 75 |o use. "|\CN" wou|
|00003d90| 6c 64 20 62 65 20 63 6f | 6e 74 72 6f 6c 2d 4e 3b |ld be co|ntrol-N;|
|00003da0| 20 22 5c 6e 22 0a 58 69 | 73 20 63 61 72 72 69 61 | "\n".Xi|s carria|
|00003db0| 67 65 20 72 65 74 75 72 | 6e 2e 20 20 59 6f 75 20 |ge retur|n. You |
|00003dc0| 6d 61 79 20 6e 6f 74 20 | 62 69 6e 64 20 6b 65 79 |may not |bind key|
|00003dd0| 62 6f 61 72 64 20 67 65 | 6e 65 72 61 74 65 64 20 |board ge|nerated |
|00003de0| 73 69 67 6e 61 6c 73 3b | 0a 58 66 6f 72 20 6d 6f |signals;|.Xfor mo|
|00003df0| 73 74 20 75 73 65 72 73 | 2c 20 74 68 6f 73 65 20 |st users|, those |
|00003e00| 6b 65 79 20 73 65 71 75 | 65 6e 63 65 73 20 61 72 |key sequ|ences ar|
|00003e10| 65 20 63 6f 6e 74 72 6f | 6c 2d 43 20 61 6e 64 20 |e contro|l-C and |
|00003e20| 63 6f 6e 74 72 6f 6c 2d | 5c 2e 0a 58 46 6f 72 20 |control-|\..XFor |
|00003e30| 75 73 65 72 73 20 77 69 | 74 68 20 6a 6f 62 20 63 |users wi|th job c|
|00003e40| 6f 6e 74 72 6f 6c 2c 20 | 63 6f 6e 74 72 6f 6c 2d |ontrol, |control-|
|00003e50| 5a 20 61 6e 64 20 63 6f | 6e 74 72 6f 6c 2d 59 20 |Z and co|ntrol-Y |
|00003e60| 61 72 65 20 69 67 6e 6f | 72 65 64 2e 0a 58 54 6f |are igno|red..XTo|
|00003e70| 20 72 65 66 65 72 65 6e | 63 65 20 74 68 65 20 65 | referen|ce the e|
|00003e80| 73 63 61 70 65 20 6b 65 | 79 2c 20 75 73 65 20 74 |scape ke|y, use t|
|00003e90| 68 65 20 73 74 72 69 6e | 67 2c 20 22 5c 45 22 2e |he strin|g, "\E".|
|00003ea0| 0a 58 0a 58 54 68 65 20 | 73 70 61 63 65 62 61 72 |.X.XThe |spacebar|
|00003eb0| 20 6d 61 79 20 6e 6f 74 | 20 62 65 20 62 6f 75 6e | may not| be boun|
|00003ec0| 64 20 73 69 6e 63 65 20 | 69 74 20 69 73 20 74 68 |d since |it is th|
|00003ed0| 65 20 6f 6e 6c 79 20 77 | 61 79 20 74 6f 20 72 65 |e only w|ay to re|
|00003ee0| 74 75 72 6e 0a 58 74 6f | 20 74 68 65 20 6d 61 69 |turn.Xto| the mai|
|00003ef0| 6e 20 6c 65 76 65 6c 20 | 66 72 6f 6d 20 74 68 65 |n level |from the|
|00003f00| 20 22 2e 2e 2e 63 6f 6e | 74 69 6e 75 65 2e 2e 2e | "...con|tinue...|
|00003f10| 22 20 70 72 6f 6d 70 74 | 2e 0a 58 0a 58 54 72 79 |" prompt|..X.XTry|
|00003f20| 69 6e 67 20 74 6f 20 62 | 69 6e 64 20 61 20 6b 65 |ing to b|ind a ke|
|00003f30| 79 20 73 65 71 75 65 6e | 63 65 20 77 68 69 63 68 |y sequen|ce which|
|00003f40| 20 70 72 65 66 69 78 65 | 73 20 61 6e 6f 74 68 65 | prefixe|s anothe|
|00003f50| 72 20 73 65 71 75 65 6e | 63 65 0a 58 69 73 20 61 |r sequen|ce.Xis a|
|00003f60| 6e 20 65 72 72 6f 72 20 | 61 6e 64 20 74 68 65 20 |n error |and the |
|00003f70| 75 73 65 72 20 69 73 20 | 77 61 72 6e 65 64 20 74 |user is |warned t|
|00003f80| 68 61 74 20 74 68 65 20 | 6c 6f 6e 67 65 72 20 62 |hat the |longer b|
|00003f90| 69 6e 64 69 6e 67 20 77 | 69 6c 6c 0a 58 6e 6f 74 |inding w|ill.Xnot|
|00003fa0| 20 77 6f 72 6b 2e 0a 58 | 0a 58 41 73 20 61 6c 77 | work..X|.XAs alw|
|00003fb0| 61 79 73 2c 20 2d 3f 20 | 77 69 6c 6c 20 67 69 76 |ays, -? |will giv|
|00003fc0| 65 20 68 65 6c 70 2e 0a | 58 25 25 0a 58 0a 58 25 |e help..|X%%.X.X%|
|00003fd0| 6d 73 67 5f 66 6c 61 67 | 73 25 0a 58 75 73 61 67 |msg_flag|s%.Xusag|
|00003fe0| 65 3a 20 66 6c 61 67 73 | 20 5b 6d 73 67 5f 6c 69 |e: flags| [msg_li|
|00003ff0| 73 74 20 5b 4e 20 4f 20 | 52 20 44 20 50 20 55 5d |st [N O |R D P U]|
|00004000| 20 5d 0a 58 54 68 69 73 | 20 63 6f 6d 6d 61 6e 64 | ].XThis| command|
|00004010| 20 64 69 73 70 6c 61 79 | 73 20 74 68 65 20 73 74 | display|s the st|
|00004020| 61 74 65 20 6f 66 20 6d | 65 73 73 61 67 65 73 20 |ate of m|essages |
|00004030| 61 73 20 73 65 65 6e 20 | 62 79 20 74 68 65 20 69 |as seen |by the i|
|00004040| 6e 74 65 72 6e 61 6c 73 | 0a 58 6f 66 20 4d 75 73 |nternals|.Xof Mus|
|00004050| 68 2e 20 20 54 68 69 73 | 20 69 73 20 6e 6f 74 20 |h. This| is not |
|00004060| 61 20 64 6f 63 75 6d 65 | 6e 74 65 64 20 63 6f 6d |a docume|nted com|
|00004070| 6d 61 6e 64 2c 20 73 6f | 20 64 6f 6e 27 74 20 74 |mand, so| don't t|
|00004080| 65 6c 6c 20 61 6e 79 6f | 6e 65 2e 0a 58 49 66 20 |ell anyo|ne..XIf |
|00004090| 61 20 6c 69 73 74 20 69 | 73 20 67 69 76 65 6e 20 |a list i|s given |
|000040a0| 28 6f 72 20 70 69 70 65 | 64 29 2c 20 69 74 20 77 |(or pipe|d), it w|
|000040b0| 69 6c 6c 20 74 65 6c 6c | 20 77 68 69 63 68 20 62 |ill tell| which b|
|000040c0| 69 74 73 20 6f 66 20 74 | 68 65 20 6d 65 73 73 61 |its of t|he messa|
|000040d0| 67 65 0a 58 61 72 65 20 | 73 65 74 3a 20 4e 65 77 |ge.Xare |set: New|
|000040e0| 2c 20 4f 6c 64 2c 20 52 | 65 61 64 2c 20 44 65 6c |, Old, R|ead, Del|
|000040f0| 65 74 65 64 2c 20 50 72 | 65 73 65 72 76 65 64 2c |eted, Pr|eserved,|
|00004100| 20 6f 72 20 55 6e 72 65 | 61 64 2e 0a 58 49 66 20 | or Unre|ad..XIf |
|00004110| 61 6e 79 20 28 6f 6e 65 | 20 6f 72 20 6d 6f 72 65 |any (one| or more|
|00004120| 29 20 6f 66 20 74 68 65 | 20 6f 70 74 69 6f 6e 61 |) of the| optiona|
|00004130| 6c 20 62 69 74 73 20 61 | 72 65 20 67 69 76 65 6e |l bits a|re given|
|00004140| 2c 20 74 68 65 6e 20 69 | 74 20 77 69 6c 6c 20 73 |, then i|t will s|
|00004150| 65 74 0a 58 74 68 65 20 | 61 70 70 72 6f 70 72 69 |et.Xthe |appropri|
|00004160| 61 74 65 20 62 69 74 20 | 69 6e 20 74 68 65 20 6c |ate bit |in the l|
|00004170| 69 73 74 20 67 69 76 65 | 6e 2e 20 20 41 73 20 75 |ist give|n. As u|
|00004180| 73 75 61 6c 2c 20 69 66 | 20 6e 6f 20 6c 69 73 74 |sual, if| no list|
|00004190| 20 69 73 20 67 69 76 65 | 6e 2c 0a 58 74 68 65 6e | is give|n,.Xthen|
|000041a0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6d 65 73 | the cur|rent mes|
|000041b0| 73 61 67 65 20 69 73 20 | 75 73 65 64 20 28 6f 72 |sage is |used (or|
|000041c0| 20 73 65 74 20 62 69 74 | 73 20 6f 6e 20 61 20 70 | set bit|s on a p|
|000041d0| 69 70 65 29 2e 0a 58 25 | 25 0a 58 0a 58 25 73 65 |ipe)..X%|%.X.X%se|
|000041e0| 74 65 6e 76 25 0a 58 75 | 73 61 67 65 3a 20 73 65 |tenv%.Xu|sage: se|
|000041f0| 74 65 6e 76 20 56 41 52 | 49 41 42 4c 45 20 5b 76 |tenv VAR|IABLE [v|
|00004200| 61 6c 75 65 5d 0a 58 0a | 58 56 61 72 69 61 62 6c |alue].X.|XVariabl|
|00004210| 65 20 6e 61 6d 65 73 20 | 6d 61 79 20 62 65 20 61 |e names |may be a|
|00004220| 6e 79 20 73 74 72 69 6e | 67 2c 20 62 75 74 20 74 |ny strin|g, but t|
|00004230| 72 61 64 69 74 69 6f 6e | 61 6c 6c 79 20 65 6e 76 |radition|ally env|
|00004240| 69 72 6f 6e 6d 65 6e 74 | 20 76 61 72 69 61 62 6c |ironment| variabl|
|00004250| 65 73 0a 58 61 72 65 20 | 61 6c 6c 20 75 70 70 65 |es.Xare |all uppe|
|00004260| 72 20 63 61 73 65 2e 20 | 20 49 66 20 6e 6f 20 22 |r case. | If no "|
|00004270| 76 61 6c 75 65 22 20 69 | 73 20 73 70 65 63 69 66 |value" i|s specif|
|00004280| 69 65 64 2c 20 74 68 65 | 6e 20 74 68 65 20 76 61 |ied, the|n the va|
|00004290| 72 69 61 62 6c 65 20 6e | 61 6d 65 0a 58 77 69 6c |riable n|ame.Xwil|
|000042a0| 6c 20 62 65 20 73 65 74 | 20 74 6f 20 61 6e 20 65 |l be set| to an e|
|000042b0| 6d 70 74 79 20 73 74 72 | 69 6e 67 2e 20 20 49 66 |mpty str|ing. If|
|000042c0| 20 74 68 65 20 76 61 6c | 75 65 20 63 6f 6e 74 61 | the val|ue conta|
|000042d0| 69 6e 73 20 73 70 61 63 | 65 73 2c 20 79 6f 75 20 |ins spac|es, you |
|000042e0| 73 68 6f 75 6c 64 0a 58 | 65 6e 63 6c 6f 73 65 20 |should.X|enclose |
|000042f0| 74 68 65 20 73 74 72 69 | 6e 67 20 69 6e 20 71 75 |the stri|ng in qu|
|00004300| 6f 74 61 74 69 6f 6e 20 | 6d 61 72 6b 73 2e 20 20 |otation |marks. |
|00004310| 55 73 65 20 70 72 69 6e | 74 65 6e 76 20 74 6f 20 |Use prin|tenv to |
|00004320| 70 72 69 6e 74 20 61 20 | 6c 69 73 74 20 6f 66 0a |print a |list of.|
|00004330| 58 61 6c 6c 20 79 6f 75 | 72 20 65 6e 76 69 72 6f |Xall you|r enviro|
|00004340| 6e 6d 65 6e 74 20 76 61 | 72 69 61 62 6c 65 73 2e |nment va|riables.|
|00004350| 0a 58 25 25 0a 58 0a 58 | 25 75 6e 73 65 74 65 6e |.X%%.X.X|%unseten|
|00004360| 76 25 0a 58 75 73 61 67 | 65 3a 20 75 6e 73 65 74 |v%.Xusag|e: unset|
|00004370| 65 6e 76 20 56 41 52 49 | 41 42 4c 45 0a 58 0a 58 |env VARI|ABLE.X.X|
|00004380| 59 6f 75 20 6d 75 73 74 | 20 73 70 65 63 69 66 79 |You must| specify|
|00004390| 20 6f 6e 65 20 61 6e 64 | 20 6f 6e 6c 79 20 6f 6e | one and| only on|
|000043a0| 65 20 76 61 72 69 61 62 | 6c 65 20 74 6f 20 75 6e |e variab|le to un|
|000043b0| 73 65 74 20 69 6e 20 79 | 6f 75 72 20 65 6e 76 69 |set in y|our envi|
|000043c0| 72 6f 6e 6d 65 6e 74 0a | 58 76 61 72 69 61 62 6c |ronment.|Xvariabl|
|000043d0| 65 20 73 65 74 74 69 6e | 67 73 2e 20 20 55 73 65 |e settin|gs. Use|
|000043e0| 20 70 72 69 6e 74 65 6e | 76 20 74 6f 20 70 72 69 | printen|v to pri|
|000043f0| 6e 74 20 61 20 6c 69 73 | 74 20 6f 66 20 61 6c 6c |nt a lis|t of all|
|00004400| 20 79 6f 75 72 20 65 6e | 76 69 72 6f 6e 6d 65 6e | your en|vironmen|
|00004410| 74 0a 58 76 61 72 69 61 | 62 6c 65 73 2e 0a 58 25 |t.Xvaria|bles..X%|
|00004420| 25 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 69 66 |%.END_OF|_FILE.if|
|00004430| 20 74 65 73 74 20 31 36 | 30 38 36 20 2d 6e 65 20 | test 16|086 -ne |
|00004440| 60 77 63 20 2d 63 20 3c | 27 63 6d 64 5f 68 65 6c |`wc -c <|'cmd_hel|
|00004450| 70 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |p'`; the|n. ec|
|00004460| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 63 6d 64 5f |ho shar:| \"'cmd_|
|00004470| 68 65 6c 70 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |help'\" |unpacked|
|00004480| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|00004490| 21 0a 66 69 0a 23 20 65 | 6e 64 20 6f 66 20 27 63 |!.fi.# e|nd of 'c|
|000044a0| 6d 64 5f 68 65 6c 70 27 | 0a 66 69 0a 69 66 20 74 |md_help'|.fi.if t|
|000044b0| 65 73 74 20 2d 66 20 27 | 66 6b 65 79 73 2e 63 27 |est -f '|fkeys.c'|
|000044c0| 20 2d 61 20 22 24 7b 31 | 7d 22 20 21 3d 20 22 2d | -a "${1|}" != "-|
|000044d0| 63 22 20 3b 20 74 68 65 | 6e 20 0a 20 20 65 63 68 |c" ; the|n . ech|
|000044e0| 6f 20 73 68 61 72 3a 20 | 57 69 6c 6c 20 6e 6f 74 |o shar: |Will not|
|000044f0| 20 63 6c 6f 62 62 65 72 | 20 65 78 69 73 74 69 6e | clobber| existin|
|00004500| 67 20 66 69 6c 65 20 5c | 22 27 66 6b 65 79 73 2e |g file \|"'fkeys.|
|00004510| 63 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |c'\".els|e.echo s|
|00004520| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00004530| 5c 22 27 66 6b 65 79 73 | 2e 63 27 5c 22 20 5c 28 |\"'fkeys|.c'\" \(|
|00004540| 31 33 38 36 38 20 63 68 | 61 72 61 63 74 65 72 73 |13868 ch|aracters|
|00004550| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|00004560| 3e 27 66 6b 65 79 73 2e | 63 27 20 3c 3c 27 45 4e |>'fkeys.|c' <<'EN|
|00004570| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 2f 2a 20 40 |D_OF_FIL|E'.X/* @|
|00004580| 28 23 29 66 6b 65 79 73 | 2e 63 09 09 28 63 29 20 |(#)fkeys|.c..(c) |
|00004590| 63 6f 70 79 72 69 67 68 | 74 20 31 30 2f 31 38 2f |copyrigh|t 10/18/|
|000045a0| 38 36 20 28 44 61 6e 20 | 48 65 6c 6c 65 72 29 20 |86 (Dan |Heller) |
|000045b0| 2a 2f 0a 58 0a 58 23 69 | 6e 63 6c 75 64 65 20 22 |*/.X.X#i|nclude "|
|000045c0| 6d 75 73 68 2e 68 22 0a | 58 23 64 65 66 69 6e 65 |mush.h".|X#define|
|000045d0| 20 64 72 61 77 28 78 31 | 2c 79 31 2c 78 32 2c 79 | draw(x1|,y1,x2,y|
|000045e0| 32 2c 4f 50 29 20 70 77 | 5f 76 65 63 74 6f 72 28 |2,OP) pw|_vector(|
|000045f0| 6d 73 67 5f 77 69 6e 2c | 20 78 31 2c 79 31 2c 78 |msg_win,| x1,y1,x|
|00004600| 32 2c 79 32 2c 4f 50 2c | 31 29 0a 58 23 64 65 66 |2,y2,OP,|1).X#def|
|00004610| 69 6e 65 20 62 6f 78 28 | 78 31 2c 79 31 2c 78 32 |ine box(|x1,y1,x2|
|00004620| 2c 79 32 2c 4f 50 29 20 | 20 5c 0a 58 09 64 72 61 |,y2,OP) | \.X.dra|
|00004630| 77 28 78 31 2c 79 31 2c | 20 78 31 2c 79 32 2c 4f |w(x1,y1,| x1,y2,O|
|00004640| 50 29 2c 20 64 72 61 77 | 28 78 31 2c 79 32 2c 20 |P), draw|(x1,y2, |
|00004650| 78 32 2c 79 32 2c 4f 50 | 29 2c 20 5c 0a 58 20 20 |x2,y2,OP|), \.X |
|00004660| 20 20 20 20 20 20 64 72 | 61 77 28 78 32 2c 79 32 | dr|aw(x2,y2|
|00004670| 2c 20 78 32 2c 79 31 2c | 4f 50 29 2c 20 64 72 61 |, x2,y1,|OP), dra|
|00004680| 77 28 78 32 2c 79 31 2c | 20 78 31 2c 79 31 2c 4f |w(x2,y1,| x1,y1,O|
|00004690| 50 29 0a 58 0a 58 73 74 | 72 75 63 74 20 63 6d 64 |P).X.Xst|ruct cmd|
|000046a0| 20 66 6b 65 79 5f 63 6d | 64 73 5b 5d 20 3d 20 7b | fkey_cm|ds[] = {|
|000046b0| 0a 58 20 20 20 20 7b 20 | 22 74 6f 70 22 2c 20 66 |.X { |"top", f|
|000046c0| 6b 65 79 5f 63 6d 64 20 | 7d 2c 20 7b 20 22 63 6c |key_cmd |}, { "cl|
|000046d0| 6f 73 65 22 2c 20 66 6b | 65 79 5f 63 6d 64 20 7d |ose", fk|ey_cmd }|
|000046e0| 2c 20 7b 20 22 62 6f 74 | 74 6f 6d 22 2c 20 66 6b |, { "bot|tom", fk|
|000046f0| 65 79 5f 63 6d 64 20 7d | 2c 0a 58 20 20 20 20 7b |ey_cmd }|,.X {|
|00004700| 20 22 6d 6f 76 65 22 2c | 20 66 6b 65 79 5f 63 6d | "move",| fkey_cm|
|00004710| 64 20 7d 2c 20 7b 20 22 | 73 74 72 65 74 63 68 22 |d }, { "|stretch"|
|00004720| 2c 20 66 6b 65 79 5f 63 | 6d 64 20 7d 2c 20 7b 20 |, fkey_c|md }, { |
|00004730| 22 72 65 70 61 69 6e 74 | 22 2c 20 66 6b 65 79 5f |"repaint|", fkey_|
|00004740| 63 6d 64 20 7d 2c 0a 58 | 20 20 20 20 7b 20 22 73 |cmd },.X| { "s|
|00004750| 65 74 74 69 6e 67 73 22 | 2c 20 66 6b 65 79 5f 73 |ettings"|, fkey_s|
|00004760| 65 74 74 69 6e 67 73 20 | 7d 2c 20 7b 20 4e 55 4c |ettings |}, { NUL|
|00004770| 4c 2c 20 71 75 69 74 20 | 7d 0a 58 7d 3b 0a 58 0a |L, quit |}.X};.X.|
|00004780| 58 23 64 65 66 69 6e 65 | 20 4c 28 6e 29 09 09 4b |X#define| L(n)..K|
|00004790| 45 59 5f 4c 45 46 54 46 | 49 52 53 54 2b 28 6e 29 |EY_LEFTF|IRST+(n)|
|000047a0| 2d 31 0a 58 23 64 65 66 | 69 6e 65 20 52 28 6e 29 |-1.X#def|ine R(n)|
|000047b0| 09 09 4b 45 59 5f 52 49 | 47 48 54 46 49 52 53 54 |..KEY_RI|GHTFIRST|
|000047c0| 2b 28 6e 29 2d 31 0a 58 | 23 64 65 66 69 6e 65 20 |+(n)-1.X|#define |
|000047d0| 46 28 6e 29 09 09 4b 45 | 59 5f 54 4f 50 46 49 52 |F(n)..KE|Y_TOPFIR|
|000047e0| 53 54 2b 28 6e 29 2d 31 | 0a 58 23 64 65 66 69 6e |ST+(n)-1|.X#defin|
|000047f0| 65 20 42 52 45 41 4b 5f | 4b 45 59 09 4b 45 59 5f |e BREAK_|KEY.KEY_|
|00004800| 54 4f 50 4c 41 53 54 0a | 58 0a 58 63 68 61 72 20 |TOPLAST.|X.Xchar |
|00004810| 2a 6c 65 66 74 6b 65 79 | 5f 64 65 66 61 75 6c 74 |*leftkey|_default|
|00004820| 5f 73 65 74 74 69 6e 67 | 73 5b 5d 20 3d 20 7b 0a |_setting|s[] = {.|
|00004830| 58 20 20 20 20 22 4c 65 | 66 74 20 46 75 6e 63 74 |X "Le|ft Funct|
|00004840| 69 6f 6e 20 4b 65 79 20 | 53 65 74 74 69 6e 67 73 |ion Key |Settings|
|00004850| 22 2c 0a 58 20 20 20 20 | 22 55 6e 75 73 65 64 22 |",.X |"Unused"|
|00004860| 2c 09 09 2f 2a 20 4c 31 | 20 20 2a 2f 20 20 20 20 |,../* L1| */ |
|00004870| 22 6e 65 78 74 22 2c 20 | 20 20 20 20 20 09 2f 2a |"next", | ./*|
|00004880| 20 4c 32 20 20 2a 2f 0a | 58 20 20 20 20 22 75 6e | L2 */.|X "un|
|00004890| 64 65 6c 65 74 65 22 2c | 09 20 09 2f 2a 20 4c 33 |delete",|. ./* L3|
|000048a0| 20 20 2a 2f 20 20 20 20 | 22 64 65 6c 65 74 65 22 | */ |"delete"|
|000048b0| 2c 20 09 09 2f 2a 20 4c | 34 20 20 2a 2f 0a 58 20 |, ../* L|4 */.X |
|000048c0| 20 20 20 22 72 65 70 6c | 79 61 6c 6c 22 2c 20 20 | "repl|yall", |
|000048d0| 09 2f 2a 20 4c 35 20 20 | 2a 2f 20 20 20 20 22 72 |./* L5 |*/ "r|
|000048e0| 65 70 6c 79 73 65 6e 64 | 65 72 22 2c 20 20 20 09 |eplysend|er", .|
|000048f0| 2f 2a 20 4c 36 20 20 2a | 2f 0a 58 20 20 20 20 22 |/* L6 *|/.X "|
|00004900| 6d 61 69 6c 22 2c 09 09 | 2f 2a 20 4c 37 20 20 2a |mail",..|/* L7 *|
|00004910| 2f 20 20 20 20 22 55 6e | 73 65 74 22 2c 09 09 2f |/ "Un|set",../|
|00004920| 2a 20 4c 38 20 20 2a 2f | 0a 58 20 20 20 20 22 6c |* L8 */|.X "l|
|00004930| 70 72 22 2c 20 20 09 09 | 2f 2a 20 4c 39 20 20 2a |pr", ..|/* L9 *|
|00004940| 2f 20 20 20 20 22 73 65 | 74 74 69 6e 67 73 20 4c |/ "se|ttings L|
|00004950| 22 2c 20 20 20 20 20 20 | 2f 2a 20 4c 31 30 20 2a |", |/* L10 *|
|00004960| 2f 0a 58 20 20 20 20 30 | 0a 58 7d 3b 0a 58 0a 58 |/.X 0|.X};.X.X|
|00004970| 63 68 61 72 20 2a 74 6f | 70 6b 65 79 5f 64 65 66 |char *to|pkey_def|
|00004980| 61 75 6c 74 5f 73 65 74 | 74 69 6e 67 73 5b 5d 20 |ault_set|tings[] |
|00004990| 3d 20 7b 0a 58 20 20 20 | 20 22 54 6f 70 20 46 75 |= {.X | "Top Fu|
|000049a0| 6e 63 74 69 6f 6e 20 4b | 65 79 20 53 65 74 74 69 |nction K|ey Setti|
|000049b0| 6e 67 73 22 2c 0a 58 20 | 20 20 20 22 74 6f 70 22 |ngs",.X | "top"|
|000049c0| 2c 09 09 2f 2a 20 54 31 | 20 20 2a 2f 20 20 20 20 |,../* T1| */ |
|000049d0| 20 22 63 6c 6f 73 65 22 | 2c 09 20 20 20 20 09 2f | "close"|,. ./|
|000049e0| 2a 20 54 32 20 20 2a 2f | 0a 58 20 20 20 20 22 6d |* T2 */|.X "m|
|000049f0| 6f 76 65 22 2c 09 09 2f | 2a 20 54 33 20 20 2a 2f |ove",../|* T3 */|
|00004a00| 20 20 20 20 20 22 73 74 | 72 65 74 63 68 22 2c 20 | "st|retch", |
|00004a10| 09 2f 2a 20 54 34 20 20 | 2a 2f 0a 58 20 20 20 20 |./* T4 |*/.X |
|00004a20| 22 62 6f 74 74 6f 6d 22 | 2c 09 09 2f 2a 20 54 35 |"bottom"|,../* T5|
|00004a30| 20 20 2a 2f 20 20 20 20 | 20 22 72 65 70 61 69 6e | */ | "repain|
|00004a40| 74 22 2c 20 20 20 09 2f | 2a 20 54 36 20 20 2a 2f |t", ./|* T6 */|
|00004a50| 0a 58 20 20 20 20 22 55 | 6e 73 65 74 22 2c 09 09 |.X "U|nset",..|
|00004a60| 2f 2a 20 54 37 20 20 2a | 2f 20 20 20 20 20 22 55 |/* T7 *|/ "U|
|00004a70| 6e 73 65 74 22 2c 09 09 | 2f 2a 20 54 38 20 20 2a |nset",..|/* T8 *|
|00004a80| 2f 0a 58 20 20 20 20 22 | 73 65 74 74 69 6e 67 73 |/.X "|settings|
|00004a90| 20 46 22 2c 20 09 2f 2a | 20 54 39 20 20 2a 2f 0a | F", ./*| T9 */.|
|00004aa0| 58 20 20 20 20 30 0a 58 | 7d 3b 0a 58 0a 58 63 68 |X 0.X|};.X.Xch|
|00004ab0| 61 72 20 2a 72 69 67 68 | 74 6b 65 79 5f 64 65 66 |ar *righ|tkey_def|
|00004ac0| 61 75 6c 74 5f 73 65 74 | 74 69 6e 67 73 5b 5d 20 |ault_set|tings[] |
|00004ad0| 3d 20 7b 0a 58 20 20 20 | 20 22 52 69 67 68 74 20 |= {.X | "Right |
|00004ae0| 46 75 6e 63 74 69 6f 6e | 20 4b 65 79 20 53 65 74 |Function| Key Set|
|00004af0| 74 69 6e 67 73 22 2c 0a | 58 20 20 20 20 22 55 6e |tings",.|X "Un|
|00004b00| 73 65 74 22 2c 09 09 2f | 2a 20 52 31 20 20 2a 2f |set",../|* R1 */|
|00004b10| 20 20 20 20 20 22 55 6e | 73 65 74 22 2c 09 09 20 | "Un|set",.. |
|00004b20| 2f 2a 20 52 32 20 20 2a | 2f 0a 58 20 20 20 20 22 |/* R2 *|/.X "|
|00004b30| 55 6e 73 65 74 22 2c 09 | 09 2f 2a 20 52 33 20 20 |Unset",.|./* R3 |
|00004b40| 2a 2f 20 20 20 20 20 22 | 55 6e 73 65 74 22 2c 09 |*/ "|Unset",.|
|00004b50| 09 20 2f 2a 20 52 34 20 | 20 2a 2f 0a 58 20 20 20 |. /* R4 | */.X |
|00004b60| 20 22 55 6e 73 65 74 22 | 2c 09 09 2f 2a 20 52 35 | "Unset"|,../* R5|
|00004b70| 20 20 2a 2f 20 20 20 20 | 20 22 55 6e 73 65 74 22 | */ | "Unset"|
|00004b80| 2c 09 09 20 2f 2a 20 52 | 36 20 20 2a 2f 0a 58 20 |,.. /* R|6 */.X |
|00004b90| 20 20 20 22 55 6e 73 65 | 74 22 2c 09 09 2f 2a 20 | "Unse|t",../* |
|00004ba0| 52 37 20 20 2a 2f 20 20 | 20 20 20 22 55 6e 73 65 |R7 */ | "Unse|
|00004bb0| 74 22 2c 09 09 20 2f 2a | 20 52 38 20 20 2a 2f 0a |t",.. /*| R8 */.|
|00004bc0| 58 20 20 20 20 22 55 6e | 73 65 74 22 2c 09 09 2f |X "Un|set",../|
|00004bd0| 2a 20 52 39 20 20 2a 2f | 20 20 20 20 20 22 55 6e |* R9 */| "Un|
|00004be0| 73 65 74 22 2c 09 09 20 | 2f 2a 20 52 31 30 20 2a |set",.. |/* R10 *|
|00004bf0| 2f 0a 58 20 20 20 20 22 | 55 6e 73 65 74 22 2c 09 |/.X "|Unset",.|
|00004c00| 09 2f 2a 20 52 31 31 20 | 2a 2f 20 20 20 20 20 22 |./* R11 |*/ "|
|00004c10| 55 6e 73 65 74 22 2c 09 | 09 20 2f 2a 20 52 31 32 |Unset",.|. /* R12|
|00004c20| 20 2a 2f 0a 58 20 20 20 | 20 22 55 6e 73 65 74 22 | */.X | "Unset"|
|00004c30| 2c 09 09 2f 2a 20 52 31 | 33 20 2a 2f 20 20 20 20 |,../* R1|3 */ |
|00004c40| 20 22 55 6e 73 65 74 22 | 2c 09 09 20 2f 2a 20 52 | "Unset"|,.. /* R|
|00004c50| 31 34 20 2a 2f 0a 58 20 | 20 20 20 22 73 65 74 74 |14 */.X | "sett|
|00004c60| 69 6e 67 73 20 52 22 2c | 20 20 20 20 20 20 20 2f |ings R",| /|
|00004c70| 2a 20 52 31 35 20 2a 2f | 0a 58 20 20 20 20 30 0a |* R15 */|.X 0.|
|00004c80| 58 7d 3b 0a 58 0a 58 2f | 2a 0a 58 20 2a 20 45 78 |X};.X.X/|*.X * Ex|
|00004c90| 65 63 75 74 65 20 63 6f | 6d 6d 61 6e 64 73 20 64 |ecute co|mmands d|
|00004ca0| 65 66 69 6e 65 64 20 62 | 79 20 61 20 66 75 6e 63 |efined b|y a func|
|00004cb0| 74 69 6f 6e 20 6b 65 79 | 2e 0a 58 20 2a 20 4c 65 |tion key|..X * Le|
|00004cc0| 66 74 20 6b 65 79 73 3a | 0a 58 20 2a 20 4c 31 20 |ft keys:|.X * L1 |
|00004cd0| 3d 20 28 6e 75 6c 6c 29 | 20 20 63 61 6e 27 74 20 |= (null)| can't |
|00004ce0| 62 65 20 73 65 74 0a 58 | 20 2a 20 4c 32 20 2e 2e |be set.X| * L2 ..|
|00004cf0| 2e 20 4c 31 30 0a 58 20 | 2a 20 54 6f 70 20 66 75 |. L10.X |* Top fu|
|00004d00| 6e 63 74 69 6f 6e 20 6b | 65 79 73 0a 58 20 2a 20 |nction k|eys.X * |
|00004d10| 46 31 20 2e 2e 2e 20 46 | 39 2c 20 42 52 45 41 4b |F1 ... F|9, BREAK|
|00004d20| 2f 62 61 63 6b 73 70 61 | 63 65 20 28 6b 65 79 20 |/backspa|ce (key |
|00004d30| 6e 6f 74 20 64 65 66 69 | 6e 61 62 6c 65 29 0a 58 |not defi|nable).X|
|00004d40| 20 2a 20 52 69 67 68 74 | 20 66 75 6e 63 74 69 6f | * Right| functio|
|00004d50| 6e 20 6b 65 79 73 0a 58 | 20 2a 20 52 31 20 2e 2e |n keys.X| * R1 ..|
|00004d60| 2e 20 52 31 35 0a 58 20 | 2a 20 55 73 75 61 6c 6c |. R15.X |* Usuall|
|00004d70| 79 2c 20 74 68 65 20 6c | 61 73 74 20 46 75 6e 63 |y, the l|ast Func|
|00004d80| 74 69 6f 6e 20 6b 65 79 | 20 64 69 73 70 6c 61 79 |tion key| display|
|00004d90| 73 20 74 68 65 20 6f 74 | 68 65 72 73 27 20 73 65 |s the ot|hers' se|
|00004da0| 74 74 69 6e 67 73 2e 0a | 58 20 2a 2f 0a 58 66 6b |ttings..|X */.Xfk|
|00004db0| 65 79 28 6b 65 79 29 0a | 58 72 65 67 69 73 74 65 |ey(key).|Xregiste|
|00004dc0| 72 20 63 68 61 72 20 2a | 6b 65 79 3b 0a 58 7b 0a |r char *|key;.X{.|
|00004dd0| 58 20 20 20 20 72 65 67 | 69 73 74 65 72 20 63 68 |X reg|ister ch|
|00004de0| 61 72 20 2a 2a 61 72 67 | 76 2c 20 2a 70 3b 0a 58 |ar **arg|v, *p;.X|
|00004df0| 20 20 20 20 63 68 61 72 | 20 62 75 66 5b 32 35 36 | char| buf[256|
|00004e00| 5d 3b 0a 58 20 20 20 20 | 69 6e 74 20 6e 3b 0a 58 |];.X |int n;.X|
|00004e10| 0a 58 20 20 20 20 2f 2a | 20 75 73 65 72 20 64 65 |.X /*| user de|
|00004e20| 66 69 6e 65 64 20 68 65 | 72 65 2e 2e 2e 20 20 20 |fined he|re... |
|00004e30| 20 20 20 20 20 2e 2e 2e | 20 64 65 66 61 75 6c 74 | ...| default|
|00004e40| 20 73 65 74 74 69 6e 67 | 73 20 68 65 72 65 20 2a | setting|s here *|
|00004e50| 2f 0a 58 20 20 20 20 69 | 66 20 28 21 73 74 72 6e |/.X i|f (!strn|
|00004e60| 63 6d 70 28 28 70 20 3d | 20 6b 65 79 5f 73 65 74 |cmp((p =| key_set|
|00004e70| 5f 74 6f 28 6b 65 79 29 | 29 2c 20 22 55 6e 22 2c |_to(key)|), "Un",|
|00004e80| 20 32 29 29 20 7b 0a 58 | 09 70 72 69 6e 74 28 22 | 2)) {.X|.print("|
|00004e90| 46 75 6e 63 69 74 6f 6e | 20 6b 65 79 3a 20 25 73 |Funciton| key: %s|
|00004ea0| 20 20 25 73 22 2c 20 6b | 65 79 2c 20 70 29 3b 0a | %s", k|ey, p);.|
|00004eb0| 58 09 72 65 74 75 72 6e | 20 30 3b 0a 58 20 20 20 |X.return| 0;.X |
|00004ec0| 20 7d 0a 58 20 20 20 20 | 2f 2a 20 6d 61 6b 65 5f | }.X |/* make_|
|00004ed0| 63 6f 6d 6d 61 6e 64 20 | 77 69 6c 6c 20 73 63 72 |command |will scr|
|00004ee0| 65 77 20 75 70 20 22 70 | 22 2c 20 73 6f 20 63 6f |ew up "p|", so co|
|00004ef0| 70 79 20 69 74 20 66 69 | 72 73 74 20 2a 2f 0a 58 |py it fi|rst */.X|
|00004f00| 20 20 20 20 28 76 6f 69 | 64 29 20 73 74 72 63 70 | (voi|d) strcp|
|00004f10| 79 28 62 75 66 2c 20 70 | 29 3b 0a 58 20 20 20 20 |y(buf, p|);.X |
|00004f20| 44 65 62 75 67 28 22 28 | 25 73 29 20 5c 22 25 73 |Debug("(|%s) \"%s|
|00004f30| 5c 22 3a 20 22 2c 20 6b | 65 79 2c 20 70 29 2c 20 |\": ", k|ey, p), |
|00004f40| 74 75 72 6e 6f 6e 28 67 | 6c 6f 62 5f 66 6c 61 67 |turnon(g|lob_flag|
|00004f50| 73 2c 20 43 4f 4e 54 5f | 50 52 4e 54 29 3b 0a 58 |s, CONT_|PRNT);.X|
|00004f60| 20 20 20 20 69 66 20 28 | 61 72 67 76 20 3d 20 6d | if (|argv = m|
|00004f70| 61 6b 65 5f 63 6f 6d 6d | 61 6e 64 28 62 75 66 2c |ake_comm|and(buf,|
|00004f80| 20 54 52 50 4c 5f 4e 55 | 4c 4c 2c 20 26 6e 29 29 | TRPL_NU|LL, &n))|
|00004f90| 0a 58 09 28 76 6f 69 64 | 29 20 64 6f 5f 63 6f 6d |.X.(void|) do_com|
|00004fa0| 6d 61 6e 64 28 6e 2c 20 | 61 72 67 76 2c 20 6d 73 |mand(n, |argv, ms|
|00004fb0| 67 5f 6c 69 73 74 29 3b | 0a 58 20 20 20 20 72 65 |g_list);|.X re|
|00004fc0| 74 75 72 6e 20 2d 31 3b | 0a 58 7d 0a 58 0a 58 66 |turn -1;|.X}.X.Xf|
|00004fd0| 6b 65 79 5f 73 65 74 74 | 69 6e 67 73 28 69 2c 20 |key_sett|ings(i, |
|00004fe0| 61 72 67 76 29 0a 58 72 | 65 67 69 73 74 65 72 20 |argv).Xr|egister |
|00004ff0| 63 68 61 72 20 69 3b 0a | 58 72 65 67 69 73 74 65 |char i;.|Xregiste|
|00005000| 72 20 63 68 61 72 20 2a | 2a 61 72 67 76 3b 0a 58 |r char *|*argv;.X|
|00005010| 7b 0a 58 20 20 20 20 72 | 65 67 69 73 74 65 72 20 |{.X r|egister |
|00005020| 63 68 61 72 20 6b 65 79 | 2c 20 2a 70 2c 20 2a 2a |char key|, *p, **|
|00005030| 66 6b 65 79 5f 73 74 72 | 3b 0a 58 20 20 20 20 63 |fkey_str|;.X c|
|00005040| 68 61 72 20 62 75 66 5b | 32 35 36 5d 3b 0a 58 20 |har buf[|256];.X |
|00005050| 20 20 20 63 68 61 72 20 | 2a 68 65 6c 70 5f 61 72 | char |*help_ar|
|00005060| 67 73 5b 31 37 5d 3b 0a | 58 0a 58 20 20 20 20 69 |gs[17];.|X.X i|
|00005070| 66 20 28 21 2a 2b 2b 61 | 72 67 76 29 20 7b 0a 58 |f (!*++a|rgv) {.X|
|00005080| 09 70 72 69 6e 74 28 22 | 4d 75 73 74 20 73 70 65 |.print("|Must spe|
|00005090| 63 69 66 79 20 6f 6e 65 | 20 6f 66 20 4c 2c 20 46 |cify one| of L, F|
|000050a0| 20 6f 72 20 52 20 74 6f | 20 69 64 65 6e 74 69 66 | or R to| identif|
|000050b0| 79 20 61 20 66 75 6e 63 | 74 69 6f 6e 20 6b 65 79 |y a func|tion key|
|000050c0| 20 73 65 74 22 29 3b 0a | 58 09 72 65 74 75 72 6e | set");.|X.return|
|000050d0| 20 2d 31 3b 0a 58 20 20 | 20 20 7d 0a 58 20 20 20 | -1;.X | }.X |
|000050e0| 20 6b 65 79 20 3d 20 2a | 2a 61 72 67 76 3b 0a 58 | key = *|*argv;.X|
|000050f0| 20 20 20 20 73 77 69 74 | 63 68 28 55 70 70 65 72 | swit|ch(Upper|
|00005100| 28 6b 65 79 29 29 20 7b | 0a 58 09 77 68 65 6e 20 |(key)) {|.X.when |
|00005110| 27 4c 27 3a 20 66 6b 65 | 79 5f 73 74 72 20 3d 20 |'L': fke|y_str = |
|00005120| 6c 65 66 74 6b 65 79 5f | 64 65 66 61 75 6c 74 5f |leftkey_|default_|
|00005130| 73 65 74 74 69 6e 67 73 | 3b 0a 58 09 77 68 65 6e |settings|;.X.when|
|00005140| 20 27 46 27 3a 20 66 6b | 65 79 5f 73 74 72 20 3d | 'F': fk|ey_str =|
|00005150| 20 74 6f 70 6b 65 79 5f | 64 65 66 61 75 6c 74 5f | topkey_|default_|
|00005160| 73 65 74 74 69 6e 67 73 | 3b 0a 58 09 77 68 65 6e |settings|;.X.when|
|00005170| 20 27 52 27 3a 20 66 6b | 65 79 5f 73 74 72 20 3d | 'R': fk|ey_str =|
|00005180| 20 72 69 67 68 74 6b 65 | 79 5f 64 65 66 61 75 6c | rightke|y_defaul|
|00005190| 74 5f 73 65 74 74 69 6e | 67 73 3b 0a 58 09 6f 74 |t_settin|gs;.X.ot|
|000051a0| 68 65 72 77 69 73 65 3a | 20 70 72 69 6e 74 28 22 |herwise:| print("|
|000051b0| 49 6e 76 61 6c 69 64 20 | 6b 65 79 20 73 65 74 3a |Invalid |key set:|
|000051c0| 20 25 63 20 28 63 68 6f | 6f 73 65 20 4c 2c 20 46 | %c (cho|ose L, F|
|000051d0| 20 6f 72 20 52 29 22 2c | 20 6b 65 79 29 3b 0a 58 | or R)",| key);.X|
|000051e0| 09 09 20 20 20 72 65 74 | 75 72 6e 20 2d 31 3b 0a |.. ret|urn -1;.|
|000051f0| 58 20 20 20 20 7d 0a 58 | 20 20 20 20 68 65 6c 70 |X }.X| help|
|00005200| 5f 61 72 67 73 5b 30 5d | 20 3d 20 66 6b 65 79 5f |_args[0]| = fkey_|
|00005210| 73 74 72 5b 30 5d 3b 0a | 58 20 20 20 20 66 6f 72 |str[0];.|X for|
|00005220| 20 28 69 20 3d 20 31 3b | 20 66 6b 65 79 5f 73 74 | (i = 1;| fkey_st|
|00005230| 72 5b 69 5d 3b 20 69 2b | 2b 29 20 7b 0a 58 09 70 |r[i]; i+|+) {.X.p|
|00005240| 20 3d 20 6b 65 79 5f 73 | 65 74 5f 74 6f 28 73 70 | = key_s|et_to(sp|
|00005250| 72 69 6e 74 66 28 62 75 | 66 2c 20 22 25 63 25 64 |rintf(bu|f, "%c%d|
|00005260| 22 2c 20 6b 65 79 2c 20 | 69 29 29 3b 0a 58 09 68 |", key, |i));.X.h|
|00005270| 65 6c 70 5f 61 72 67 73 | 5b 69 5d 20 3d 20 73 61 |elp_args|[i] = sa|
|00005280| 76 65 73 74 72 28 73 70 | 72 69 6e 74 66 28 62 75 |vestr(sp|rintf(bu|
|00005290| 66 2c 20 22 25 63 25 2d | 32 2e 64 20 20 20 20 20 |f, "%c%-|2.d |
|000052a0| 20 20 25 73 22 2c 20 6b | 65 79 2c 20 69 2c 20 70 | %s", k|ey, i, p|
|000052b0| 29 29 3b 0a 58 20 20 20 | 20 7d 0a 58 20 20 20 20 |));.X | }.X |
|000052c0| 68 65 6c 70 5f 61 72 67 | 73 5b 69 5d 20 3d 20 30 |help_arg|s[i] = 0|
|000052d0| 3b 20 20 2f 2a 20 6e 75 | 6c 6c 20 74 65 72 6d 69 |; /* nu|ll termi|
|000052e0| 6e 61 74 65 20 6c 69 73 | 74 20 2a 2f 0a 58 20 20 |nate lis|t */.X |
|000052f0| 20 20 28 76 6f 69 64 29 | 20 68 65 6c 70 28 70 72 | (void)| help(pr|
|00005300| 69 6e 74 5f 73 77 2d 3e | 74 73 5f 77 69 6e 64 6f |int_sw->|ts_windo|
|00005310| 77 66 64 2c 20 68 65 6c | 70 5f 61 72 67 73 2c 20 |wfd, hel|p_args, |
|00005320| 4e 55 4c 4c 29 3b 0a 58 | 0a 58 20 20 20 20 66 72 |NULL);.X|.X fr|
|00005330| 65 65 5f 76 65 63 28 68 | 65 6c 70 5f 61 72 67 73 |ee_vec(h|elp_args|
|00005340| 2b 31 29 3b 0a 58 20 20 | 20 20 72 65 74 75 72 6e |+1);.X | return|
|00005350| 20 30 3b 0a 58 7d 0a 58 | 0a 58 63 68 61 72 20 2a | 0;.X}.X|.Xchar *|
|00005360| 0a 58 6b 65 79 5f 73 65 | 74 5f 74 6f 28 70 29 0a |.Xkey_se|t_to(p).|
|00005370| 58 72 65 67 69 73 74 65 | 72 20 63 68 61 72 20 2a |Xregiste|r char *|
|00005380| 70 3b 0a 58 7b 0a 58 20 | 20 20 20 72 65 67 69 73 |p;.X{.X | regis|
|00005390| 74 65 72 20 63 68 61 72 | 20 2a 70 32 2c 20 2a 2a |ter char| *p2, **|
|000053a0| 66 6b 65 79 5f 73 74 72 | 3b 0a 58 0a 58 20 20 20 |fkey_str|;.X.X |
|000053b0| 20 73 77 69 74 63 68 28 | 2a 70 29 20 7b 0a 58 09 | switch(|*p) {.X.|
|000053c0| 77 68 65 6e 20 27 4c 27 | 3a 20 66 6b 65 79 5f 73 |when 'L'|: fkey_s|
|000053d0| 74 72 20 3d 20 6c 65 66 | 74 6b 65 79 5f 64 65 66 |tr = lef|tkey_def|
|000053e0| 61 75 6c 74 5f 73 65 74 | 74 69 6e 67 73 3b 0a 58 |ault_set|tings;.X|
|000053f0| 09 77 68 65 6e 20 27 46 | 27 3a 20 66 6b 65 79 5f |.when 'F|': fkey_|
|00005400| 73 74 72 20 3d 20 74 6f | 70 6b 65 79 5f 64 65 66 |str = to|pkey_def|
|00005410| 61 75 6c 74 5f 73 65 74 | 74 69 6e 67 73 3b 0a 58 |ault_set|tings;.X|
|00005420| 09 77 68 65 6e 20 27 52 | 27 3a 20 66 6b 65 79 5f |.when 'R|': fkey_|
|00005430| 73 74 72 20 3d 20 72 69 | 67 68 74 6b 65 79 5f 64 |str = ri|ghtkey_d|
|00005440| 65 66 61 75 6c 74 5f 73 | 65 74 74 69 6e 67 73 3b |efault_s|ettings;|
|00005450| 0a 58 20 20 20 20 7d 0a | 58 20 20 20 20 70 32 20 |.X }.|X p2 |
|00005460| 3d 20 64 6f 5f 73 65 74 | 28 66 6b 65 79 73 2c 20 |= do_set|(fkeys, |
|00005470| 70 29 3b 0a 58 20 20 20 | 20 72 65 74 75 72 6e 20 |p);.X | return |
|00005480| 28 70 32 29 3f 20 70 32 | 3a 20 66 6b 65 79 5f 73 |(p2)? p2|: fkey_s|
|00005490| 74 72 5b 61 74 6f 69 28 | 70 2b 31 29 5d 3b 0a 58 |tr[atoi(|p+1)];.X|
|000054a0| 7d 0a 58 0a 58 66 6b 65 | 79 5f 63 6d 64 28 78 2c |}.X.Xfke|y_cmd(x,|
|000054b0| 20 70 29 0a 58 72 65 67 | 69 73 74 65 72 20 63 68 | p).Xreg|ister ch|
|000054c0| 61 72 20 2a 2a 70 3b 0a | 58 7b 0a 58 20 20 20 20 |ar **p;.|X{.X |
|000054d0| 69 66 20 28 21 73 74 72 | 63 6d 70 28 2a 70 2c 20 |if (!str|cmp(*p, |
|000054e0| 22 63 6c 6f 73 65 22 29 | 29 0a 58 09 74 6f 6f 6c |"close")|).X.tool|
|000054f0| 71 75 69 74 28 4e 4f 5f | 49 54 45 4d 2c 20 30 2c |quit(NO_|ITEM, 0,|
|00005500| 20 4e 4f 5f 45 56 45 4e | 54 29 3b 0a 58 20 20 20 | NO_EVEN|T);.X |
|00005510| 20 65 6c 73 65 20 69 66 | 20 28 21 73 74 72 63 6d | else if| (!strcm|
|00005520| 70 28 2a 70 2c 20 22 74 | 6f 70 22 29 29 0a 58 09 |p(*p, "t|op")).X.|
|00005530| 77 6d 67 72 5f 74 6f 70 | 28 74 6f 6f 6c 2d 3e 74 |wmgr_top|(tool->t|
|00005540| 6c 5f 77 69 6e 64 6f 77 | 66 64 2c 20 72 6f 6f 74 |l_window|fd, root|
|00005550| 66 64 29 3b 0a 58 20 20 | 20 20 65 6c 73 65 20 69 |fd);.X | else i|
|00005560| 66 20 28 21 73 74 72 63 | 6d 70 28 2a 70 2c 20 22 |f (!strc|mp(*p, "|
|00005570| 6d 6f 76 65 22 29 29 0a | 58 09 77 6d 67 72 5f 6d |move")).|X.wmgr_m|
|00005580| 6f 76 65 28 74 6f 6f 6c | 2d 3e 74 6c 5f 77 69 6e |ove(tool|->tl_win|
|00005590| 64 6f 77 66 64 2c 20 72 | 6f 6f 74 66 64 29 3b 0a |dowfd, r|ootfd);.|
|000055a0| 58 20 20 20 20 65 6c 73 | 65 20 69 66 20 28 21 73 |X els|e if (!s|
|000055b0| 74 72 63 6d 70 28 2a 70 | 2c 20 22 73 74 72 65 74 |trcmp(*p|, "stret|
|000055c0| 63 68 22 29 29 0a 58 09 | 77 6d 67 72 5f 73 74 72 |ch")).X.|wmgr_str|
|000055d0| 65 74 63 68 28 74 6f 6f | 6c 2d 3e 74 6c 5f 77 69 |etch(too|l->tl_wi|
|000055e0| 6e 64 6f 77 66 64 2c 20 | 72 6f 6f 74 66 64 29 3b |ndowfd, |rootfd);|
|000055f0| 0a 58 20 20 20 20 65 6c | 73 65 20 69 66 20 28 21 |.X el|se if (!|
|00005600| 73 74 72 63 6d 70 28 2a | 70 2c 20 22 62 6f 74 74 |strcmp(*|p, "bott|
|00005610| 6f 6d 22 29 29 0a 58 09 | 77 6d 67 72 5f 62 6f 74 |om")).X.|wmgr_bot|
|00005620| 74 6f 6d 28 74 6f 6f 6c | 2d 3e 74 6c 5f 77 69 6e |tom(tool|->tl_win|
|00005630| 64 6f 77 66 64 2c 20 72 | 6f 6f 74 66 64 29 3b 0a |dowfd, r|ootfd);.|
|00005640| 58 20 20 20 20 65 6c 73 | 65 20 69 66 20 28 21 73 |X els|e if (!s|
|00005650| 74 72 63 6d 70 28 2a 70 | 2c 20 22 72 65 70 61 69 |trcmp(*p|, "repai|
|00005660| 6e 74 22 29 29 0a 58 09 | 77 6d 67 72 5f 72 65 66 |nt")).X.|wmgr_ref|
|00005670| 72 65 73 68 77 69 6e 64 | 6f 77 28 74 6f 6f 6c 2d |reshwind|ow(tool-|
|00005680| 3e 74 6c 5f 77 69 6e 64 | 6f 77 66 64 2c 20 72 6f |>tl_wind|owfd, ro|
|00005690| 6f 74 66 64 29 3b 0a 58 | 20 20 20 20 72 65 74 75 |otfd);.X| retu|
|000056a0| 72 6e 20 2d 31 3b 0a 58 | 7d 0a 58 0a 58 2f 2a 20 |rn -1;.X|}.X.X/* |
|000056b0| 65 78 65 63 75 74 65 20 | 61 20 63 6f 6d 6d 61 6e |execute |a comman|
|000056c0| 64 20 67 69 76 65 6e 20 | 61 20 66 75 6e 63 74 69 |d given |a functi|
|000056d0| 6f 6e 20 6b 65 79 2c 20 | 69 66 20 74 68 65 20 6b |on key, |if the k|
|000056e0| 65 79 20 69 73 20 75 73 | 65 72 20 64 65 66 69 6e |ey is us|er defin|
|000056f0| 65 64 2c 0a 58 20 2a 20 | 63 61 6c 6c 20 66 6b 65 |ed,.X * |call fke|
|00005700| 79 28 29 20 61 74 20 74 | 6f 70 20 6f 66 20 66 69 |y() at t|op of fi|
|00005710| 6c 65 2e 20 50 61 72 61 | 6d 65 74 65 72 20 69 73 |le. Para|meter is|
|00005720| 20 74 68 65 20 6b 65 79 | 20 6e 75 6d 62 65 72 20 | the key| number |
|00005730| 69 6e 20 22 61 73 63 69 | 69 22 0a 58 20 2a 2f 0a |in "asci|i".X */.|
|00005740| 58 66 75 6e 63 5f 6b 65 | 79 28 6b 65 79 29 0a 58 |Xfunc_ke|y(key).X|
|00005750| 72 65 67 69 73 74 65 72 | 20 69 6e 74 20 6b 65 79 |register| int key|
|00005760| 3b 0a 58 7b 0a 58 20 20 | 20 20 72 65 67 69 73 74 |;.X{.X | regist|
|00005770| 65 72 20 63 68 61 72 20 | 2a 70 3b 0a 58 20 20 20 |er char |*p;.X |
|00005780| 20 63 68 61 72 20 62 75 | 66 5b 34 5d 3b 0a 58 20 | char bu|f[4];.X |
|00005790| 20 20 20 69 6e 74 20 6e | 6b 65 79 3b 0a 58 0a 58 | int n|key;.X.X|
|000057a0| 20 20 20 20 69 66 20 28 | 6b 65 79 20 3e 3d 20 4b | if (|key >= K|
|000057b0| 45 59 5f 4c 45 46 54 46 | 49 52 53 54 20 26 26 20 |EY_LEFTF|IRST && |
|000057c0| 6b 65 79 20 3c 3d 20 4b | 45 59 5f 4c 45 46 54 4c |key <= K|EY_LEFTL|
|000057d0| 41 53 54 29 0a 58 09 62 | 75 66 5b 30 5d 20 3d 20 |AST).X.b|uf[0] = |
|000057e0| 27 4c 27 2c 20 6e 6b 65 | 79 20 3d 20 6b 65 79 20 |'L', nke|y = key |
|000057f0| 2d 20 4b 45 59 5f 4c 45 | 46 54 46 49 52 53 54 3b |- KEY_LE|FTFIRST;|
|00005800| 0a 58 20 20 20 20 65 6c | 73 65 20 69 66 20 28 6b |.X el|se if (k|
|00005810| 65 79 20 3e 3d 20 4b 45 | 59 5f 54 4f 50 46 49 52 |ey >= KE|Y_TOPFIR|
|00005820| 53 54 20 26 26 20 6b 65 | 79 20 3c 3d 20 4b 45 59 |ST && ke|y <= KEY|
|00005830| 5f 54 4f 50 4c 41 53 54 | 29 0a 58 09 62 75 66 5b |_TOPLAST|).X.buf[|
|00005840| 30 5d 20 3d 20 27 46 27 | 2c 20 6e 6b 65 79 20 3d |0] = 'F'|, nkey =|
|00005850| 20 6b 65 79 20 2d 20 4b | 45 59 5f 54 4f 50 46 49 | key - K|EY_TOPFI|
|00005860| 52 53 54 3b 0a 58 20 20 | 20 20 65 6c 73 65 20 69 |RST;.X | else i|
|00005870| 66 20 28 6b 65 79 20 3e | 3d 20 4b 45 59 5f 52 49 |f (key >|= KEY_RI|
|00005880| 47 48 54 46 49 52 53 54 | 20 26 26 20 6b 65 79 20 |GHTFIRST| && key |
|00005890| 3c 3d 20 4b 45 59 5f 52 | 49 47 48 54 4c 41 53 54 |<= KEY_R|IGHTLAST|
|000058a0| 29 0a 58 09 62 75 66 5b | 30 5d 20 3d 20 27 52 27 |).X.buf[|0] = 'R'|
|000058b0| 2c 20 6e 6b 65 79 20 3d | 20 6b 65 79 20 2d 20 4b |, nkey =| key - K|
|000058c0| 45 59 5f 52 49 47 48 54 | 46 49 52 53 54 3b 0a 58 |EY_RIGHT|FIRST;.X|
|000058d0| 20 20 20 20 28 76 6f 69 | 64 29 20 73 70 72 69 6e | (voi|d) sprin|
|000058e0| 74 66 28 62 75 66 2b 31 | 2c 20 22 25 64 22 2c 20 |tf(buf+1|, "%d", |
|000058f0| 6e 6b 65 79 2b 31 29 3b | 0a 58 0a 58 20 20 20 20 |nkey+1);|.X.X |
|00005900| 72 65 74 75 72 6e 20 66 | 6b 65 79 28 62 75 66 29 |return f|key(buf)|
|00005910| 3b 0a 58 7d 0a 58 0a 58 | 76 6f 69 64 0a 58 73 65 |;.X}.X.X|void.Xse|
|00005920| 74 5f 66 6b 65 79 73 28 | 29 0a 58 7b 0a 58 20 20 |t_fkeys(|).X{.X |
|00005930| 20 20 72 65 61 64 79 28 | 64 69 73 70 6c 61 79 5f | ready(|display_|
|00005940| 6b 65 79 73 28 29 20 2b | 20 31 30 29 3b 0a 58 20 |keys() +| 10);.X |
|00005950| 20 20 20 70 72 69 6e 74 | 5f 76 61 6c 69 64 5f 66 | print|_valid_f|
|00005960| 75 6e 63 74 69 6f 6e 73 | 28 74 78 74 2e 79 2b 32 |unctions|(txt.y+2|
|00005970| 30 29 3b 0a 58 20 20 20 | 20 67 65 74 74 69 6e 67 |0);.X | getting|
|00005980| 5f 6f 70 74 73 20 3d 20 | 32 3b 0a 58 20 20 20 20 |_opts = |2;.X |
|00005990| 77 69 6e 5f 73 65 74 63 | 75 72 73 6f 72 28 6d 73 |win_setc|ursor(ms|
|000059a0| 67 5f 73 77 2d 3e 74 73 | 5f 77 69 6e 64 6f 77 66 |g_sw->ts|_windowf|
|000059b0| 64 2c 20 26 63 68 65 63 | 6b 6d 61 72 6b 29 3b 0a |d, &chec|kmark);.|
|000059c0| 58 7d 0a 58 0a 58 63 68 | 61 72 20 2a 4d 53 47 20 |X}.X.Xch|ar *MSG |
|000059d0| 3d 20 22 43 6c 69 63 6b | 20 74 68 65 20 61 70 70 |= "Click| the app|
|000059e0| 72 6f 70 72 69 61 74 65 | 20 6d 6f 75 73 65 20 62 |ropriate| mouse b|
|000059f0| 75 74 74 6f 6e 20 6f 76 | 65 72 20 61 20 66 75 6e |utton ov|er a fun|
|00005a00| 63 74 69 6f 6e 20 6b 65 | 79 22 3b 0a 58 72 65 61 |ction ke|y";.Xrea|
|00005a10| 64 79 28 59 29 0a 58 7b | 0a 58 20 20 20 20 73 74 |dy(Y).X{|.X st|
|00005a20| 61 74 69 63 20 69 6e 74 | 20 79 3b 0a 58 20 20 20 |atic int| y;.X |
|00005a30| 20 69 6e 74 20 78 20 3d | 20 28 6d 73 67 5f 72 65 | int x =| (msg_re|
|00005a40| 63 74 2e 72 5f 77 69 64 | 74 68 20 2d 20 73 74 72 |ct.r_wid|th - str|
|00005a50| 6c 65 6e 28 4d 53 47 29 | 2a 6c 5f 77 69 64 74 68 |len(MSG)|*l_width|
|00005a60| 28 4c 41 52 47 45 29 29 | 2f 32 3b 0a 58 20 20 20 |(LARGE))|/2;.X |
|00005a70| 20 69 66 20 28 59 29 0a | 58 09 79 20 3d 20 59 3b | if (Y).|X.y = Y;|
|00005a80| 0a 58 20 20 20 20 43 6c | 72 74 6f 65 6f 6c 28 6d |.X Cl|rtoeol(m|
|00005a90| 73 67 5f 77 69 6e 2c 20 | 28 74 78 74 2e 78 20 3d |sg_win, |(txt.x =|
|00005aa0| 20 30 29 2c 20 28 74 78 | 74 2e 79 20 3d 20 79 29 | 0), (tx|t.y = y)|
|00005ab0| 2c 20 4c 41 52 47 45 29 | 3b 0a 58 20 20 20 20 68 |, LARGE)|;.X h|
|00005ac0| 69 67 68 6c 69 67 68 74 | 28 6d 73 67 5f 77 69 6e |ighlight|(msg_win|
|00005ad0| 2c 20 78 2c 20 79 2c 20 | 4c 41 52 47 45 2c 20 4d |, x, y, |LARGE, M|
|00005ae0| 53 47 29 3b 0a 58 7d 0a | 58 0a 58 2f 2a 20 6e 75 |SG);.X}.|X.X/* nu|
|00005af0| 6d 62 65 72 20 6f 66 20 | 70 69 78 65 6c 73 20 69 |mber of |pixels i|
|00005b00| 6e 20 78 20 61 6e 64 20 | 79 20 64 69 72 65 63 74 |n x and |y direct|
|00005b10| 69 6f 6e 73 20 64 65 73 | 63 72 69 62 69 6e 67 20 |ions des|cribing |
|00005b20| 74 68 65 20 73 69 7a 65 | 20 6f 66 20 61 20 67 72 |the size| of a gr|
|00005b30| 61 70 68 69 63 61 6c 0a | 58 20 2a 20 66 75 6e 63 |aphical.|X * func|
|00005b40| 74 69 6f 6e 20 6b 65 79 | 2e 20 20 74 68 65 79 20 |tion key|. they |
|00005b50| 72 65 70 72 65 73 65 6e | 74 20 74 68 65 20 6c 69 |represen|t the li|
|00005b60| 74 74 6c 65 20 6b 65 79 | 73 20 61 6e 64 20 62 69 |ttle key|s and bi|
|00005b70| 67 20 6b 65 79 73 20 72 | 65 73 70 65 63 74 69 76 |g keys r|espectiv|
|00005b80| 65 6c 79 2e 0a 58 20 2a | 2f 0a 58 2f 2a 20 73 74 |ely..X *|/.X/* st|
|00005b90| 61 74 69 63 20 73 74 72 | 75 63 74 20 70 72 5f 70 |atic str|uct pr_p|
|00005ba0| 6f 73 20 66 6b 65 79 5f | 73 69 7a 65 73 5b 32 5d |os fkey_|sizes[2]|
|00005bb0| 20 3d 20 7b 20 7b 20 32 | 33 2c 20 32 33 20 7d 2c | = { { 2|3, 23 },|
|00005bc0| 20 7b 20 35 30 2c 20 32 | 33 20 7d 20 7d 3b 20 2a | { 50, 2|3 } }; *|
|00005bd0| 2f 0a 58 73 74 61 74 69 | 63 20 73 74 72 75 63 74 |/.Xstati|c struct|
|00005be0| 20 70 72 5f 70 6f 73 20 | 66 6b 65 79 5f 73 69 7a | pr_pos |fkey_siz|
|00005bf0| 65 73 5b 32 5d 20 3d 20 | 7b 20 7b 20 32 34 2c 20 |es[2] = |{ { 24, |
|00005c00| 32 33 20 7d 2c 20 7b 20 | 35 32 2c 20 32 33 20 7d |23 }, { |52, 23 }|
|00005c10| 20 7d 3b 0a 58 0a 58 23 | 64 65 66 69 6e 65 20 42 | };.X.X#|define B|
|00005c20| 4f 52 44 45 52 09 09 34 | 20 20 20 2f 2a 20 62 6f |ORDER..4| /* bo|
|00005c30| 72 64 65 72 20 28 64 69 | 73 74 61 6e 63 65 29 20 |rder (di|stance) |
|00005c40| 62 65 74 77 65 65 6e 20 | 6b 65 79 73 20 2a 2f 0a |between |keys */.|
|00005c50| 58 23 64 65 66 69 6e 65 | 20 4b 45 59 54 4f 50 09 |X#define| KEYTOP.|
|00005c60| 09 31 35 20 20 2f 2a 20 | 64 69 73 74 61 6e 63 65 |.15 /* |distance|
|00005c70| 20 66 72 6f 6d 20 74 6f | 70 20 74 6f 20 73 74 61 | from to|p to sta|
|00005c80| 72 74 20 64 72 61 77 69 | 6e 67 20 2a 2f 0a 58 23 |rt drawi|ng */.X#|
|00005c90| 64 65 66 69 6e 65 20 4c | 45 46 54 5f 53 54 41 52 |define L|EFT_STAR|
|00005ca0| 54 09 31 35 20 20 2f 2a | 20 70 69 78 65 6c 73 20 |T.15 /*| pixels |
|00005cb0| 66 72 6f 6d 20 6c 65 66 | 74 20 74 6f 20 73 74 61 |from lef|t to sta|
|00005cc0| 72 74 20 64 72 61 77 69 | 6e 67 20 62 6f 78 65 73 |rt drawi|ng boxes|
|00005cd0| 20 2a 2f 0a 58 23 64 65 | 66 69 6e 65 20 54 4f 50 | */.X#de|fine TOP|
|00005ce0| 5f 53 54 41 52 54 09 28 | 4c 45 46 54 5f 53 54 41 |_START.(|LEFT_STA|
|00005cf0| 52 54 2b 32 2a 66 6b 65 | 79 5f 73 69 7a 65 73 5b |RT+2*fke|y_sizes[|
|00005d00| 30 5d 2e 78 20 2b 20 66 | 6b 65 79 5f 73 69 7a 65 |0].x + f|key_size|
|00005d10| 73 5b 31 5d 2e 78 2b 42 | 4f 52 44 45 52 29 0a 58 |s[1].x+B|ORDER).X|
|00005d20| 23 64 65 66 69 6e 65 20 | 52 49 47 48 54 5f 53 54 |#define |RIGHT_ST|
|00005d30| 41 52 54 09 28 54 4f 50 | 5f 53 54 41 52 54 20 2b |ART.(TOP|_START +|
|00005d40| 20 35 2a 28 66 6b 65 79 | 5f 73 69 7a 65 73 5b 30 | 5*(fkey|_sizes[0|
|00005d50| 5d 2e 78 2b 42 4f 52 44 | 45 52 29 20 2b 20 5c 0a |].x+BORD|ER) + \.|
|00005d60| 58 09 09 09 09 20 20 20 | 20 20 35 2a 28 66 6b 65 |X.... | 5*(fke|
|00005d70| 79 5f 73 69 7a 65 73 5b | 31 5d 2e 78 2b 42 4f 52 |y_sizes[|1].x+BOR|
|00005d80| 44 45 52 29 29 0a 58 0a | 58 2f 2a 0a 58 20 2a 20 |DER)).X.|X/*.X * |
|00005d90| 69 66 20 21 70 2c 20 77 | 65 27 72 65 20 73 65 74 |if !p, w|e're set|
|00005da0| 74 69 6e 67 20 6b 65 79 | 20 61 74 20 6c 6f 63 61 |ting key| at loca|
|00005db0| 74 69 6f 6e 20 78 2c 79 | 2e 0a 58 20 2a 20 65 6c |tion x,y|..X * el|
|00005dc0| 73 65 20 53 65 74 20 74 | 68 61 74 20 6b 65 79 20 |se Set t|hat key |
|00005dd0| 74 6f 20 74 68 69 73 20 | 73 74 72 69 6e 67 20 28 |to this |string (|
|00005de0| 70 29 2e 0a 58 20 2a 2f | 0a 58 76 6f 69 64 0a 58 |p)..X */|.Xvoid.X|
|00005df0| 73 65 74 5f 6b 65 79 28 | 70 2c 20 78 2c 79 29 0a |set_key(|p, x,y).|
|00005e00| 58 72 65 67 69 73 74 65 | 72 20 63 68 61 72 20 2a |Xregiste|r char *|
|00005e10| 70 3b 0a 58 72 65 67 69 | 73 74 65 72 20 69 6e 74 |p;.Xregi|ster int|
|00005e20| 20 78 2c 79 3b 0a 58 7b | 0a 58 20 20 20 20 63 68 | x,y;.X{|.X ch|
|00005e30| 61 72 20 09 62 75 66 5b | 32 35 36 5d 2c 20 2a 2a |ar .buf[|256], **|
|00005e40| 61 72 67 76 3b 0a 58 20 | 20 20 20 73 74 61 74 69 |argv;.X | stati|
|00005e50| 63 20 63 68 61 72 20 2a | 6b 65 79 3b 0a 58 20 20 |c char *|key;.X |
|00005e60| 20 20 69 6e 74 20 09 61 | 72 67 63 3b 0a 58 0a 58 | int .a|rgc;.X.X|
|00005e70| 20 20 20 20 73 74 61 74 | 69 63 20 69 6e 74 20 6b | stat|ic int k|
|00005e80| 65 79 5f 78 2c 20 6b 65 | 79 5f 79 3b 0a 58 20 20 |ey_x, ke|y_y;.X |
|00005e90| 20 20 69 66 20 28 21 70 | 29 20 7b 0a 58 09 69 66 | if (!p|) {.X.if|
|00005ea0| 20 28 6b 65 79 20 3d 20 | 66 69 6e 64 5f 6b 65 79 | (key = |find_key|
|00005eb0| 28 78 2c 79 29 29 20 7b | 0a 58 09 20 20 20 20 70 |(x,y)) {|.X. p|
|00005ec0| 72 69 6e 74 28 22 54 79 | 70 65 20 6e 65 77 20 73 |rint("Ty|pe new s|
|00005ed0| 65 74 74 69 6e 67 20 66 | 6f 72 20 6b 65 79 3a 20 |etting f|or key: |
|00005ee0| 25 73 22 2c 20 6b 65 79 | 29 3b 0a 58 09 20 20 20 |%s", key|);.X. |
|00005ef0| 20 28 76 6f 69 64 29 20 | 73 70 72 69 6e 74 66 28 | (void) |sprintf(|
|00005f00| 62 75 66 2c 20 22 46 75 | 6e 63 74 69 6f 6e 20 6b |buf, "Fu|nction k|
|00005f10| 65 79 20 5c 22 25 73 5c | 22 3a 20 22 2c 20 6b 65 |ey \"%s\|": ", ke|
|00005f20| 79 29 3b 0a 58 09 20 20 | 20 20 68 69 67 68 6c 69 |y);.X. | highli|
|00005f30| 67 68 74 28 6d 73 67 5f | 77 69 6e 2c 20 32 30 2c |ght(msg_|win, 20,|
|00005f40| 20 74 78 74 2e 79 2c 20 | 4c 41 52 47 45 2c 20 62 | txt.y, |LARGE, b|
|00005f50| 75 66 29 3b 0a 58 09 20 | 20 20 20 74 78 74 2e 78 |uf);.X. | txt.x|
|00005f60| 20 3d 20 32 30 20 2b 20 | 73 74 72 6c 65 6e 28 62 | = 20 + |strlen(b|
|00005f70| 75 66 29 2a 6c 5f 77 69 | 64 74 68 28 4c 41 52 47 |uf)*l_wi|dth(LARG|
|00005f80| 45 29 3b 0a 58 09 20 20 | 20 20 43 6c 72 74 6f 65 |E);.X. | Clrtoe|
|00005f90| 6f 6c 28 6d 73 67 5f 77 | 69 6e 2c 20 74 78 74 2e |ol(msg_w|in, txt.|
|00005fa0| 78 2c 20 74 78 74 2e 79 | 2c 20 4c 41 52 47 45 29 |x, txt.y|, LARGE)|
|00005fb0| 3b 0a 58 09 20 20 20 20 | 70 77 5f 63 68 61 72 28 |;.X. |pw_char(|
|00005fc0| 6d 73 67 5f 77 69 6e 2c | 20 74 78 74 2e 78 2c 20 |msg_win,| txt.x, |
|00005fd0| 74 78 74 2e 79 2c 20 50 | 49 58 5f 53 52 43 2c 20 |txt.y, P|IX_SRC, |
|00005fe0| 66 6f 6e 74 73 5b 63 75 | 72 66 6f 6e 74 5d 2c 20 |fonts[cu|rfont], |
|00005ff0| 27 5f 27 29 3b 0a 58 09 | 7d 20 65 6c 73 65 0a 58 |'_');.X.|} else.X|
|00006000| 09 20 20 20 20 72 65 61 | 64 79 28 30 29 3b 0a 58 |. rea|dy(0);.X|
|00006010| 09 6b 65 79 5f 78 20 3d | 20 78 2c 20 6b 65 79 5f |.key_x =| x, key_|
|00006020| 79 20 3d 20 79 3b 0a 58 | 20 20 20 20 7d 20 65 6c |y = y;.X| } el|
|00006030| 73 65 20 7b 0a 58 09 69 | 6e 74 20 73 61 76 65 5f |se {.X.i|nt save_|
|00006040| 62 61 6e 67 20 3d 20 69 | 73 6f 6e 28 67 6c 6f 62 |bang = i|son(glob|
|00006050| 5f 66 6c 61 67 73 2c 20 | 49 47 4e 5f 42 41 4e 47 |_flags, |IGN_BANG|
|00006060| 29 3b 0a 58 09 69 66 20 | 28 21 2a 70 29 0a 58 09 |);.X.if |(!*p).X.|
|00006070| 20 20 20 20 28 76 6f 69 | 64 29 20 73 70 72 69 6e | (voi|d) sprin|
|00006080| 74 66 28 62 75 66 2c 20 | 22 75 6e 66 6b 65 79 20 |tf(buf, |"unfkey |
|00006090| 25 73 22 2c 20 6b 65 79 | 29 3b 0a 58 09 65 6c 73 |%s", key|);.X.els|
|000060a0| 65 0a 58 09 20 20 20 20 | 28 76 6f 69 64 29 20 73 |e.X. |(void) s|
|000060b0| 70 72 69 6e 74 66 28 62 | 75 66 2c 20 22 66 6b 65 |printf(b|uf, "fke|
|000060c0| 79 20 25 73 20 5c 22 25 | 73 5c 22 22 2c 20 6b 65 |y %s \"%|s\"", ke|
|000060d0| 79 2c 20 70 29 3b 0a 58 | 09 74 75 72 6e 6f 6e 28 |y, p);.X|.turnon(|
|000060e0| 67 6c 6f 62 5f 66 6c 61 | 67 73 2c 20 49 47 4e 5f |glob_fla|gs, IGN_|
|000060f0| 42 41 4e 47 29 3b 0a 58 | 09 69 66 20 28 61 72 67 |BANG);.X|.if (arg|
|00006100| 76 20 3d 20 6d 61 6b 65 | 5f 63 6f 6d 6d 61 6e 64 |v = make|_command|
|00006110| 28 62 75 66 2c 20 54 52 | 50 4c 5f 4e 55 4c 4c 2c |(buf, TR|PL_NULL,|
|00006120| 20 26 61 72 67 63 29 29 | 20 7b 0a 58 09 20 20 20 | &argc))| {.X. |
|00006130| 20 28 76 6f 69 64 29 20 | 64 6f 5f 63 6f 6d 6d 61 | (void) |do_comma|
|00006140| 6e 64 28 61 72 67 63 2c | 20 61 72 67 76 2c 20 6d |nd(argc,| argv, m|
|00006150| 73 67 5f 6c 69 73 74 29 | 3b 0a 58 09 20 20 20 20 |sg_list)|;.X. |
|00006160| 70 72 69 6e 74 28 22 46 | 75 6e 63 74 69 6f 6e 20 |print("F|unction |
|00006170| 6b 65 79 20 25 73 3a 20 | 20 25 73 22 2c 20 6b 65 |key %s: | %s", ke|
|00006180| 79 2c 20 6b 65 79 5f 73 | 65 74 5f 74 6f 28 6b 65 |y, key_s|et_to(ke|
|00006190| 79 29 29 3b 0a 58 09 7d | 0a 58 09 69 66 20 28 21 |y));.X.}|.X.if (!|
|000061a0| 73 61 76 65 5f 62 61 6e | 67 29 0a 58 09 20 20 20 |save_ban|g).X. |
|000061b0| 20 74 75 72 6e 6f 66 66 | 28 67 6c 6f 62 5f 66 6c | turnoff|(glob_fl|
|000061c0| 61 67 73 2c 20 49 47 4e | 5f 42 41 4e 47 29 3b 0a |ags, IGN|_BANG);.|
|000061d0| 58 09 72 65 61 64 79 28 | 30 29 3b 0a 58 20 20 20 |X.ready(|0);.X |
|000061e0| 20 7d 0a 58 7d 0a 58 0a | 58 2f 2a 20 70 61 73 73 | }.X}.X.|X/* pass|
|000061f0| 65 64 20 74 68 65 20 78 | 20 61 6e 64 20 79 20 63 |ed the x| and y c|
|00006200| 6f 6f 72 64 73 20 6f 66 | 20 61 20 6d 6f 75 73 65 |oords of| a mouse|
|00006210| 20 63 6c 69 63 6b 2c 20 | 72 65 74 75 72 6e 20 74 | click, |return t|
|00006220| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 6b 65 79 0a |he funct|ion key.|
|00006230| 58 20 2a 20 74 68 61 74 | 20 65 78 69 73 74 73 20 |X * that| exists |
|00006240| 69 6e 20 74 68 61 74 20 | 70 6f 73 69 74 69 6f 6e |in that |position|
|00006250| 2e 20 4e 55 4c 4c 20 69 | 66 20 6e 6f 20 6b 65 79 |. NULL i|f no key|
|00006260| 20 74 68 65 72 65 2e 20 | 20 73 74 72 69 6e 67 20 | there. | string |
|00006270| 77 69 6c 6c 20 62 65 0a | 58 20 2a 20 73 6f 6d 65 |will be.|X * some|
|00006280| 74 68 69 6e 67 20 6c 69 | 6b 65 20 22 4c 36 22 20 |thing li|ke "L6" |
|00006290| 6f 72 20 22 46 39 22 20 | 6f 72 20 22 52 31 32 22 |or "F9" |or "R12"|
|000062a0| 0a 58 20 2a 2f 0a 58 63 | 68 61 72 20 2a 0a 58 66 |.X */.Xc|har *.Xf|
|000062b0| 69 6e 64 5f 6b 65 79 28 | 78 2c 79 29 0a 58 69 6e |ind_key(|x,y).Xin|
|000062c0| 74 20 78 2c 20 79 3b 0a | 58 7b 0a 58 20 20 20 20 |t x, y;.|X{.X |
|000062d0| 73 74 61 74 69 63 20 63 | 68 61 72 20 62 75 66 5b |static c|har buf[|
|000062e0| 36 5d 3b 0a 58 20 20 20 | 20 69 6e 74 20 72 6f 77 |6];.X | int row|
|000062f0| 2c 20 63 6f 6c 3b 0a 58 | 20 20 20 20 73 74 61 74 |, col;.X| stat|
|00006300| 69 63 20 69 6e 74 20 6f | 6c 64 5f 6c 65 66 74 2c |ic int o|ld_left,|
|00006310| 20 6f 6c 64 5f 74 6f 70 | 2c 20 6f 6c 64 5f 72 69 | old_top|, old_ri|
|00006320| 67 68 74 2c 20 6f 6c 64 | 5f 62 6f 74 3b 0a 58 0a |ght, old|_bot;.X.|
|00006330| 58 20 20 20 20 69 66 20 | 28 21 28 72 6f 77 20 3d |X if |(!(row =|
|00006340| 20 66 69 6e 64 5f 79 28 | 26 79 29 29 29 0a 58 09 | find_y(|&y))).X.|
|00006350| 72 65 74 75 72 6e 20 4e | 55 4c 4c 3b 0a 58 20 20 |return N|ULL;.X |
|00006360| 20 20 69 66 20 28 78 20 | 3c 20 4c 45 46 54 5f 53 | if (x |< LEFT_S|
|00006370| 54 41 52 54 20 7c 7c 20 | 78 20 3e 20 52 49 47 48 |TART || |x > RIGH|
|00006380| 54 5f 53 54 41 52 54 20 | 2b 20 33 2a 28 66 6b 65 |T_START |+ 3*(fke|
|00006390| 79 5f 73 69 7a 65 73 5b | 30 5d 2e 78 2b 42 4f 52 |y_sizes[|0].x+BOR|
|000063a0| 44 45 52 29 29 0a 58 09 | 72 65 74 75 72 6e 20 4e |DER)).X.|return N|
|000063b0| 55 4c 4c 3b 20 20 20 2f | 2a 20 6f 75 74 20 6f 66 |ULL; /|* out of|
|000063c0| 20 72 61 6e 67 65 20 2a | 2f 0a 58 20 20 20 20 69 | range *|/.X i|
|000063d0| 66 20 28 78 20 3e 20 4c | 45 46 54 5f 53 54 41 52 |f (x > L|EFT_STAR|
|000063e0| 54 20 26 26 20 78 20 3c | 20 54 4f 50 5f 53 54 41 |T && x <| TOP_STA|
|000063f0| 52 54 2d 66 6b 65 79 5f | 73 69 7a 65 73 5b 30 5d |RT-fkey_|sizes[0]|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.