home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume14 / mush6.0 / part06 < prev    next >
SHell self-extracting ARchive  |  1988-04-12  |  45.4 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

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

You can browse this item here: part06

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% TrID E-Mail message (Var. 2) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/rfc822 default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 69 73 | 6c 61 6e 64 21 61 72 67 |From: is|land!arg|
|00000010| 76 40 73 75 6e 2e 63 6f | 6d 20 28 44 61 6e 20 48 |v@sun.co|m (Dan H|
|00000020| 65 6c 6c 65 72 29 0a 53 | 75 62 6a 65 63 74 3a 20 |eller).S|ubject: |
|00000030| 4d 61 69 6c 20 55 73 65 | 72 27 73 20 53 68 65 6c |Mail Use|r's Shel|
|00000040| 6c 2c 20 76 65 72 73 69 | 6f 6e 20 36 2e 30 0a 0a |l, versi|on 6.0..|
|00000050| 23 21 20 2f 62 69 6e 2f | 73 68 0a 23 20 54 68 69 |#! /bin/|sh.# Thi|
|00000060| 73 20 69 73 20 61 20 73 | 68 65 6c 6c 20 61 72 63 |s is a s|hell arc|
|00000070| 68 69 76 65 2e 20 20 52 | 65 6d 6f 76 65 20 61 6e |hive. R|emove an|
|00000080| 79 74 68 69 6e 67 20 62 | 65 66 6f 72 65 20 74 68 |ything b|efore th|
|00000090| 69 73 20 6c 69 6e 65 2c | 20 74 68 65 6e 20 75 6e |is line,| then un|
|000000a0| 70 61 63 6b 0a 23 20 69 | 74 20 62 79 20 73 61 76 |pack.# i|t by sav|
|000000b0| 69 6e 67 20 69 74 20 69 | 6e 74 6f 20 61 20 66 69 |ing it i|nto a fi|
|000000c0| 6c 65 20 61 6e 64 20 74 | 79 70 69 6e 67 20 22 73 |le and t|yping "s|
|000000d0| 68 20 66 69 6c 65 22 2e | 20 20 54 6f 20 6f 76 65 |h file".| To ove|
|000000e0| 72 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 0a |rwrite e|xisting.|
|000000f0| 23 20 66 69 6c 65 73 2c | 20 74 79 70 65 20 22 73 |# files,| type "s|
|00000100| 68 20 66 69 6c 65 20 2d | 63 22 2e 20 20 59 6f 75 |h file -|c". You|
|00000110| 20 63 61 6e 20 61 6c 73 | 6f 20 66 65 65 64 20 74 | can als|o feed t|
|00000120| 68 69 73 20 61 73 20 73 | 74 61 6e 64 61 72 64 20 |his as s|tandard |
|00000130| 69 6e 70 75 74 20 76 69 | 61 0a 23 20 75 6e 73 68 |input vi|a.# unsh|
|00000140| 61 72 2c 20 6f 72 20 62 | 79 20 74 79 70 69 6e 67 |ar, or b|y typing|
|00000150| 20 22 73 68 20 3c 66 69 | 6c 65 22 2c 20 65 2e 67 | "sh <fi|le", e.g|
|00000160| 2e 2e 20 20 49 66 20 74 | 68 69 73 20 61 72 63 68 |.. If t|his arch|
|00000170| 69 76 65 20 69 73 20 63 | 6f 6d 70 6c 65 74 65 2c |ive is c|omplete,|
|00000180| 20 79 6f 75 0a 23 20 77 | 69 6c 6c 20 73 65 65 20 | you.# w|ill see |
|00000190| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 65 |the foll|owing me|
|000001a0| 73 73 61 67 65 20 61 74 | 20 74 68 65 20 65 6e 64 |ssage at| the end|
|000001b0| 3a 0a 23 09 09 22 45 6e | 64 20 6f 66 20 61 72 63 |:.#.."En|d of arc|
|000001c0| 68 69 76 65 20 36 20 28 | 6f 66 20 31 34 29 2e 22 |hive 6 (|of 14)."|
|000001d0| 0a 23 20 43 6f 6e 74 65 | 6e 74 73 3a 20 20 63 6d |.# Conte|nts: cm|
|000001e0| 64 5f 68 65 6c 70 20 66 | 6b 65 79 73 2e 63 20 73 |d_help f|keys.c s|
|000001f0| 65 6c 65 63 74 2e 63 0a | 23 20 57 72 61 70 70 65 |elect.c.|# Wrappe|
|00000200| 64 20 62 79 20 72 73 61 | 6c 7a 40 66 69 67 2e 62 |d by rsa|lz@fig.b|
|00000210| 62 6e 2e 63 6f 6d 20 6f | 6e 20 57 65 64 20 41 70 |bn.com o|n Wed Ap|
|00000220| 72 20 31 33 20 32 30 3a | 30 34 3a 34 37 20 31 39 |r 13 20:|04:47 19|
|00000230| 38 38 0a 50 41 54 48 3d | 2f 62 69 6e 3a 2f 75 73 |88.PATH=|/bin:/us|
|00000240| 72 2f 62 69 6e 3a 2f 75 | 73 72 2f 75 63 62 20 3b |r/bin:/u|sr/ucb ;|
|00000250| 20 65 78 70 6f 72 74 20 | 50 41 54 48 0a 69 66 20 | export |PATH.if |
|00000260| 74 65 73 74 20 2d 66 20 | 27 63 6d 64 5f 68 65 6c |test -f |'cmd_hel|
|00000270| 70 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |p' -a "$|{1}" != |
|00000280| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00000290| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|000002a0| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|000002b0| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 63 6d 64 5f |ing file| \"'cmd_|
|000002c0| 68 65 6c 70 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |help'\".|else.ech|
|000002d0| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|000002e0| 6e 67 20 5c 22 27 63 6d | 64 5f 68 65 6c 70 27 5c |ng \"'cm|d_help'\|
|000002f0| 22 20 5c 28 31 36 34 33 | 30 20 63 68 61 72 61 63 |" \(1643|0 charac|
|00000300| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|00000310| 2f 2f 22 20 3e 27 63 6d | 64 5f 68 65 6c 70 27 20 |//" >'cm|d_help' |
|00000320| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|00000330| 58 2f 2a 20 40 28 23 29 | 63 6d 64 5f 68 65 6c 70 |X/* @(#)|cmd_help|
|00000340| 09 31 2e 34 09 31 30 2f | 32 38 2f 38 36 20 28 44 |.1.4.10/|28/86 (D|
|00000350| 61 6e 20 68 65 6c 6c 65 | 72 29 20 2a 2f 0a 58 0a |an helle|r) */.X.|
|00000360| 58 25 3f 25 0a 54 68 65 | 20 60 3f 27 20 77 69 6c |X%?%.The| `?' wil|
|00000370| 6c 20 67 69 76 65 20 79 | 6f 75 20 61 20 6c 69 73 |l give y|ou a lis|
|00000380| 74 20 6f 66 20 6c 65 67 | 61 6c 20 63 6f 6d 6d 61 |t of leg|al comma|
|00000390| 6e 64 73 2e 20 20 4d 6f | 73 74 20 63 6f 6d 6d 61 |nds. Mo|st comma|
|000003a0| 6e 64 73 0a 61 63 63 65 | 70 74 20 2d 3f 20 61 73 |nds.acce|pt -? as|
|000003b0| 20 61 6e 20 6f 70 74 69 | 6f 6e 2e 20 20 54 68 69 | an opti|on. Thi|
|000003c0| 73 20 77 69 6c 6c 20 67 | 69 76 65 20 79 6f 75 20 |s will g|ive you |
|000003d0| 73 70 65 63 69 61 6c 69 | 7a 65 64 20 68 65 6c 70 |speciali|zed help|
|000003e0| 0a 77 69 74 68 20 74 68 | 61 74 20 70 61 72 74 69 |.with th|at parti|
|000003f0| 63 75 6c 61 72 20 63 6f | 6d 6d 61 6e 64 2e 0a 58 |cular co|mmand..X|
|00000400| 25 25 0a 58 0a 58 25 69 | 67 6e 6f 72 65 25 0a 75 |%%.X.X%i|gnore%.u|
|00000410| 73 61 67 65 3a 20 69 67 | 6e 6f 72 65 2f 75 6e 69 |sage: ig|nore/uni|
|00000420| 67 6e 6f 72 65 20 5b 68 | 65 61 64 65 72 73 5d 0a |gnore [h|eaders].|
|00000430| 55 73 65 20 74 68 69 73 | 20 63 6f 6d 6d 61 6e 64 |Use this| command|
|00000440| 20 74 6f 20 73 65 74 20 | 74 68 65 20 6d 65 73 73 | to set |the mess|
|00000450| 61 67 65 20 68 65 61 64 | 65 72 73 20 79 6f 75 20 |age head|ers you |
|00000460| 77 6f 75 6c 64 20 6c 69 | 6b 65 20 6e 6f 74 0a 74 |would li|ke not.t|
|00000470| 6f 20 62 65 20 70 72 69 | 6e 74 65 64 20 77 68 65 |o be pri|nted whe|
|00000480| 6e 20 79 6f 75 20 72 65 | 61 64 20 61 20 6d 65 73 |n you re|ad a mes|
|00000490| 73 61 67 65 2e 20 49 66 | 20 6e 6f 20 68 65 61 64 |sage. If| no head|
|000004a0| 65 72 20 73 70 65 63 69 | 66 69 65 64 2c 0a 74 68 |er speci|fied,.th|
|000004b0| 65 6e 20 61 20 6c 69 73 | 74 20 6f 66 20 61 6c 6c |en a lis|t of all|
|000004c0| 20 68 65 61 64 65 72 73 | 20 63 75 72 72 65 6e 74 | headers| current|
|000004d0| 6c 79 20 62 65 69 6e 67 | 20 69 67 6e 6f 72 65 64 |ly being| ignored|
|000004e0| 20 69 73 20 70 72 69 6e | 74 65 64 2e 0a 59 6f 75 | is prin|ted..You|
|000004f0| 20 6d 75 73 74 20 73 70 | 65 63 69 66 79 20 61 20 | must sp|ecify a |
|00000500| 68 65 61 64 65 72 20 66 | 6f 72 20 75 6e 69 67 6e |header f|or unign|
|00000510| 6f 72 65 2e 0a 58 0a 59 | 6f 75 20 63 61 6e 20 73 |ore..X.Y|ou can s|
|00000520| 65 74 20 74 68 65 20 76 | 61 72 69 61 62 6c 65 20 |et the v|ariable |
|00000530| 22 61 6c 77 61 79 73 69 | 67 6e 6f 72 65 22 20 74 |"alwaysi|gnore" t|
|00000540| 6f 20 66 6f 72 63 65 20 | 6e 6f 72 6d 61 6c 6c 79 |o force |normally|
|00000550| 0a 69 67 6e 6f 72 65 64 | 20 68 65 61 64 65 72 73 |.ignored| headers|
|00000560| 20 74 6f 20 62 65 20 69 | 67 6e 6f 72 65 64 20 77 | to be i|gnored w|
|00000570| 68 69 6c 65 20 73 61 76 | 69 6e 67 20 6d 65 73 73 |hile sav|ing mess|
|00000580| 61 67 65 73 2c 20 66 6f | 72 77 61 72 64 69 6e 67 |ages, fo|rwarding|
|00000590| 0a 6d 65 73 73 61 67 65 | 73 20 6f 72 20 69 6e 63 |.message|s or inc|
|000005a0| 6c 75 64 69 6e 67 20 6d | 65 73 73 61 67 65 73 20 |luding m|essages |
|000005b0| 69 6e 74 6f 20 6d 65 73 | 73 61 67 65 20 62 75 66 |into mes|sage buf|
|000005c0| 66 65 72 73 2e 0a 58 25 | 25 0a 58 0a 58 25 73 65 |fers..X%|%.X.X%se|
|000005d0| 74 25 0a 75 73 61 67 65 | 3a 20 73 65 74 2f 75 6e |t%.usage|: set/un|
|000005e0| 73 65 74 20 5b 76 61 72 | 69 61 62 6c 65 5d 20 5b |set [var|iable] [|
|000005f0| 3d 20 76 61 6c 75 65 5d | 0a 73 65 74 20 62 79 20 |= value]|.set by |
|00000600| 69 74 73 65 6c 66 20 70 | 72 69 6e 74 73 20 76 61 |itself p|rints va|
|00000610| 6c 75 65 73 20 66 6f 72 | 20 76 61 72 69 61 62 6c |lues for| variabl|
|00000620| 65 73 20 69 6e 20 69 74 | 73 20 67 72 6f 75 70 0a |es in it|s group.|
|00000630| 54 6f 20 73 65 74 20 61 | 20 62 6f 6f 6c 65 61 6e |To set a| boolean|
|00000640| 20 76 61 72 69 61 62 6c | 65 20 28 6f 6e 20 6f 72 | variabl|e (on or|
|00000650| 20 6f 66 66 29 2c 20 22 | 73 65 74 20 76 61 72 69 | off), "|set vari|
|00000660| 61 62 6c 65 22 0a 54 6f | 20 73 65 74 20 61 20 76 |able".To| set a v|
|00000670| 61 72 69 61 62 6c 65 27 | 73 20 76 61 6c 75 65 20 |ariable'|s value |
|00000680| 74 6f 20 61 20 73 74 72 | 69 6e 67 2c 20 75 73 65 |to a str|ing, use|
|00000690| 3a 0a 73 65 74 20 76 61 | 72 69 61 62 6c 65 20 3d |:.set va|riable =|
|000006a0| 20 27 76 61 6c 75 65 27 | 0a 58 0a 49 66 20 79 6f | 'value'|.X.If yo|
|000006b0| 75 20 77 61 6e 74 20 64 | 6f 75 62 6c 65 2d 71 75 |u want d|ouble-qu|
|000006c0| 6f 74 65 27 73 20 6f 72 | 20 77 68 69 74 65 2d 73 |ote's or| white-s|
|000006d0| 70 61 63 65 20 65 6d 62 | 65 64 64 65 64 20 69 6e |pace emb|edded in|
|000006e0| 0a 61 20 73 74 72 69 6e | 67 2c 20 65 6e 63 61 73 |.a strin|g, encas|
|000006f0| 65 20 74 68 65 20 73 74 | 72 69 6e 67 20 69 6e 20 |e the st|ring in |
|00000700| 73 69 6e 67 6c 65 20 71 | 75 6f 74 65 73 2e 20 20 |single q|uotes. |
|00000710| 49 66 20 79 6f 75 0a 77 | 61 6e 74 20 73 69 6e 67 |If you.w|ant sing|
|00000720| 6c 65 20 71 75 6f 74 65 | 73 20 69 6e 20 61 20 73 |le quote|s in a s|
|00000730| 74 72 69 6e 67 2c 20 65 | 6e 63 61 73 65 20 74 68 |tring, e|ncase th|
|00000740| 65 20 73 74 72 69 6e 67 | 20 69 6e 0a 64 6f 75 62 |e string| in.doub|
|00000750| 6c 65 20 71 75 6f 74 65 | 73 2e 0a 58 0a 54 79 70 |le quote|s..X.Typ|
|00000760| 65 20 22 73 65 74 20 3f | 61 6c 6c 22 20 66 6f 72 |e "set ?|all" for|
|00000770| 20 61 20 6c 69 73 74 20 | 6f 66 20 61 6c 6c 20 73 | a list |of all s|
|00000780| 65 74 74 61 62 6c 65 20 | 76 61 72 69 61 62 6c 65 |ettable |variable|
|00000790| 73 2e 0a 58 22 73 65 74 | 20 3f 76 61 72 69 61 62 |s..X"set| ?variab|
|000007a0| 6c 65 5f 6e 61 6d 65 22 | 20 66 6f 72 20 68 65 6c |le_name"| for hel|
|000007b0| 70 20 6f 6e 20 61 20 73 | 69 6e 67 6c 65 20 76 61 |p on a s|ingle va|
|000007c0| 72 69 61 62 6c 65 2e 0a | 58 25 25 0a 58 0a 58 25 |riable..|X%%.X.X%|
|000007d0| 72 65 61 64 6d 73 67 25 | 0a 59 6f 75 20 63 61 6e |readmsg%|.You can|
|000007e0| 20 72 65 61 64 20 6d 65 | 73 73 61 67 65 73 20 69 | read me|ssages i|
|000007f0| 6e 20 64 69 66 66 65 72 | 65 6e 74 20 77 61 79 73 |n differ|ent ways|
|00000800| 2e 20 20 22 74 79 70 65 | 22 20 61 6e 64 20 22 70 |. "type|" and "p|
|00000810| 72 69 6e 74 22 0a 77 69 | 6c 6c 20 70 72 69 6e 74 |rint".wi|ll print|
|00000820| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6d 65 73 | the cur|rent mes|
|00000830| 73 61 67 65 2e 20 20 22 | 74 6f 70 22 20 77 69 6c |sage. "|top" wil|
|00000840| 6c 20 6f 6e 6c 79 20 70 | 72 69 6e 74 20 74 68 65 |l only p|rint the|
|00000850| 0a 66 69 72 73 74 20 4e | 20 6c 69 6e 65 73 20 6f |.first N| lines o|
|00000860| 66 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 6d 65 |f the cu|rrent me|
|00000870| 73 73 61 67 65 20 77 68 | 65 72 65 20 4e 20 69 73 |ssage wh|ere N is|
|00000880| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 0a 74 68 | the val|ue of.th|
|00000890| 65 20 76 61 72 69 61 62 | 6c 65 20 22 63 72 74 22 |e variab|le "crt"|
|000008a0| 2e 20 20 22 6e 65 78 74 | 22 20 77 69 6c 6c 20 67 |. "next|" will g|
|000008b0| 6f 20 74 6f 20 74 68 65 | 20 6e 65 78 74 20 75 6e |o to the| next un|
|000008c0| 72 65 61 64 20 6d 65 73 | 73 61 67 65 0a 61 6e 64 |read mes|sage.and|
|000008d0| 20 70 72 69 6e 74 20 74 | 68 61 74 2e 20 22 70 72 | print t|hat. "pr|
|000008e0| 65 76 69 6f 75 73 22 20 | 77 69 6c 6c 20 67 6f 20 |evious" |will go |
|000008f0| 62 61 63 6b 20 61 6e 64 | 20 72 65 61 64 20 74 68 |back and| read th|
|00000900| 65 20 66 69 72 73 74 0a | 75 6e 72 65 61 64 20 6d |e first.|unread m|
|00000910| 65 73 73 61 67 65 20 70 | 72 65 76 69 6f 75 73 20 |essage p|revious |
|00000920| 74 6f 20 74 68 65 20 63 | 75 72 72 65 6e 74 2e 20 |to the c|urrent. |
|00000930| 5e 20 77 69 6c 6c 20 70 | 72 69 6e 74 20 74 68 65 |^ will p|rint the|
|00000940| 20 66 69 72 73 74 0a 6d | 65 73 73 61 67 65 2c 20 | first.m|essage, |
|00000950| 24 20 77 69 6c 6c 20 70 | 72 69 6e 74 20 74 68 65 |$ will p|rint the|
|00000960| 20 6c 61 73 74 2e 0a 41 | 6c 6c 20 63 61 6e 20 62 | last..A|ll can b|
|00000970| 65 20 66 6f 6c 6c 6f 77 | 65 64 20 62 79 20 61 20 |e follow|ed by a |
|00000980| 6d 65 73 73 61 67 65 20 | 6c 69 73 74 20 61 6e 64 |message |list and|
|00000990| 20 65 61 63 68 20 6d 65 | 73 73 61 67 65 20 69 6e | each me|ssage in|
|000009a0| 0a 74 68 61 74 20 6c 69 | 73 74 20 77 69 6c 6c 20 |.that li|st will |
|000009b0| 62 65 20 70 72 69 6e 74 | 65 64 20 28 6f 72 20 70 |be print|ed (or p|
|000009c0| 69 70 65 64 20 74 6f 20 | 6f 74 68 65 72 20 63 6f |iped to |other co|
|000009d0| 6d 6d 61 6e 64 73 29 2e | 0a 58 25 25 0a 58 0a 58 |mmands).|.X%%.X.X|
|000009e0| 25 61 6c 74 73 5f 68 65 | 6c 70 25 0a 75 73 61 67 |%alts_he|lp%.usag|
|000009f0| 65 3a 20 61 6c 74 73 20 | 5b 68 6f 73 74 6e 61 6d |e: alts |[hostnam|
|00000a00| 65 73 5d 0a 61 6c 74 73 | 20 63 6f 6e 74 61 69 6e |es].alts| contain|
|00000a10| 73 20 61 20 6c 69 73 74 | 20 6f 66 20 68 6f 73 74 |s a list| of host|
|00000a20| 6e 61 6d 65 73 20 6f 6e | 20 77 68 69 63 68 20 79 |names on| which y|
|00000a30| 6f 75 20 68 61 76 65 20 | 61 6e 20 61 63 63 6f 75 |ou have |an accou|
|00000a40| 6e 74 0a 4e 6f 72 6d 61 | 6c 6c 79 2c 20 77 68 65 |nt.Norma|lly, whe|
|00000a50| 6e 20 79 6f 75 20 72 65 | 73 70 6f 6e 64 20 74 6f |n you re|spond to|
|00000a60| 20 61 6c 6c 20 72 65 63 | 69 70 69 65 6e 74 73 20 | all rec|ipients |
|00000a70| 6f 66 20 6d 61 69 6c 2c | 20 79 6f 75 72 0a 61 63 |of mail,| your.ac|
|00000a80| 63 6f 75 6e 74 20 6e 61 | 6d 65 20 77 69 6c 6c 20 |count na|me will |
|00000a90| 62 65 20 6c 69 73 74 65 | 64 20 61 6e 64 20 79 6f |be liste|d and yo|
|00000aa0| 75 20 73 65 6e 64 20 79 | 6f 75 72 73 65 6c 66 20 |u send y|ourself |
|00000ab0| 6d 61 69 6c 2e 20 49 66 | 20 79 6f 75 0a 64 6f 6e |mail. If| you.don|
|00000ac0| 27 74 20 68 61 76 65 20 | 6d 65 74 6f 6f 20 73 65 |'t have |metoo se|
|00000ad0| 74 2c 20 74 68 65 6e 20 | 79 6f 75 72 20 6e 61 6d |t, then |your nam|
|00000ae0| 65 20 77 69 6c 6c 20 62 | 65 20 72 65 6d 6f 76 65 |e will b|e remove|
|00000af0| 64 20 66 72 6f 6d 20 74 | 68 65 0a 6d 61 69 6c 69 |d from t|he.maili|
|00000b00| 6e 67 20 6c 69 73 74 20 | 69 66 20 79 6f 75 72 20 |ng list |if your |
|00000b10| 6c 6f 67 69 6e 20 6e 61 | 6d 65 20 69 73 20 6f 6e |login na|me is on|
|00000b20| 20 74 68 65 20 6c 69 73 | 74 20 61 6e 64 20 74 68 | the lis|t and th|
|00000b30| 65 20 68 6f 73 74 0a 73 | 70 65 63 69 66 69 65 64 |e host.s|pecified|
|00000b40| 20 69 73 20 69 6e 20 74 | 68 65 20 61 6c 74 65 72 | is in t|he alter|
|00000b50| 6e 61 74 65 73 20 6c 69 | 73 74 2e 20 20 60 2a 27 |nates li|st. `*'|
|00000b60| 20 6d 61 74 63 68 65 73 | 20 61 6c 6c 20 68 6f 73 | matches| all hos|
|00000b70| 74 6e 61 6d 65 73 0a 61 | 6e 64 20 6f 6e 6c 79 20 |tnames.a|nd only |
|00000b80| 74 68 65 20 6c 6f 67 69 | 6e 20 6e 61 6d 65 20 69 |the logi|n name i|
|00000b90| 73 20 74 65 73 74 65 64 | 2e 0a 58 25 25 0a 58 0a |s tested|..X%%.X.|
|00000ba0| 58 25 73 6f 75 72 63 65 | 5f 68 65 6c 70 25 0a 75 |X%source|_help%.u|
|00000bb0| 73 61 67 65 3a 20 73 6f | 75 72 63 65 2f 73 61 76 |sage: so|urce/sav|
|00000bc0| 65 6f 70 74 73 20 5b 66 | 69 6c 65 5d 0a 73 6f 75 |eopts [f|ile].sou|
|00000bd0| 72 63 65 2f 73 61 76 65 | 6f 70 74 73 20 77 69 6c |rce/save|opts wil|
|00000be0| 6c 20 6c 6f 61 64 2f 73 | 61 76 65 20 61 6c 6c 20 |l load/s|ave all |
|00000bf0| 76 61 72 69 61 62 6c 65 | 20 73 65 74 74 69 6e 67 |variable| setting|
|00000c00| 73 2c 20 6f 70 74 69 6f | 6e 73 2c 0a 61 6c 69 61 |s, optio|ns,.alia|
|00000c10| 73 65 73 2c 20 63 6d 64 | 27 73 2c 20 69 67 6e 6f |ses, cmd|'s, igno|
|00000c20| 72 65 64 20 68 65 61 64 | 65 72 73 20 2e 2e 2e 20 |red head|ers ... |
|00000c30| 65 76 65 72 79 74 68 69 | 6e 67 20 79 6f 75 20 63 |everythi|ng you c|
|00000c40| 61 6e 20 73 65 74 2c 0a | 69 74 20 6c 6f 61 64 73 |an set,.|it loads|
|00000c50| 20 6f 72 20 73 61 76 65 | 73 2e 20 54 68 65 20 66 | or save|s. The f|
|00000c60| 69 6c 65 20 6e 61 6d 65 | 64 20 75 73 65 64 20 66 |ile name|d used f|
|00000c70| 6f 6c 6c 6f 77 73 20 74 | 68 65 73 65 20 72 75 6c |ollows t|hese rul|
|00000c80| 65 73 3a 0a 58 0a 58 31 | 29 20 69 66 20 61 20 66 |es:.X.X1|) if a f|
|00000c90| 69 6c 65 6e 61 6d 65 20 | 69 73 20 67 69 76 65 6e |ilename |is given|
|00000ca0| 2c 20 74 68 61 74 20 66 | 69 6c 65 20 69 73 20 75 |, that f|ile is u|
|00000cb0| 73 65 64 2e 0a 58 32 29 | 20 66 69 6c 65 20 64 65 |sed..X2)| file de|
|00000cc0| 73 63 72 69 62 65 64 20 | 62 79 20 74 68 65 20 65 |scribed |by the e|
|00000cd0| 6e 76 69 72 6f 6e 6d 65 | 6e 74 20 76 61 72 69 61 |nvironme|nt varia|
|00000ce0| 62 6c 65 20 4d 41 49 4c | 52 43 0a 58 33 29 20 75 |ble MAIL|RC.X3) u|
|00000cf0| 73 65 72 27 73 20 68 6f | 6d 65 20 64 69 72 65 63 |ser's ho|me direc|
|00000d00| 74 6f 72 79 3a 20 2e 6d | 61 69 6c 72 63 0a 58 25 |tory: .m|ailrc.X%|
|00000d10| 25 0a 58 0a 58 25 67 65 | 6e 65 72 61 6c 25 0a 54 |%.X.X%ge|neral%.T|
|00000d20| 68 69 73 20 69 73 20 74 | 68 65 20 67 65 6e 65 72 |his is t|he gener|
|00000d30| 61 6c 20 68 65 6c 70 20 | 6d 65 73 73 61 67 65 2e |al help |message.|
|00000d40| 20 54 6f 20 67 65 74 20 | 68 65 6c 70 20 6f 6e 20 | To get |help on |
|00000d50| 61 20 73 70 65 63 69 66 | 69 63 0a 63 6f 6d 6d 61 |a specif|ic.comma|
|00000d60| 6e 64 2c 20 74 72 79 20 | 22 63 6f 6d 6d 61 6e 64 |nd, try |"command|
|00000d70| 20 2d 3f 22 2e 20 45 78 | 74 65 6e 64 65 64 20 68 | -?". Ex|tended h|
|00000d80| 65 6c 70 20 69 73 20 67 | 69 76 65 6e 20 62 79 20 |elp is g|iven by |
|00000d90| 74 79 70 69 6e 67 0a 58 | 60 68 65 6c 70 20 69 74 |typing.X|`help it|
|00000da0| 65 6d 27 20 77 68 65 72 | 65 20 69 74 65 6d 20 69 |em' wher|e item i|
|00000db0| 73 20 6f 6e 65 20 6f 66 | 3a 0a 58 20 20 20 20 70 |s one of|:.X p|
|00000dc0| 61 74 68 2c 20 6d 73 67 | 5f 6c 69 73 74 2c 20 70 |ath, msg|_list, p|
|00000dd0| 72 6f 6d 70 74 2c 20 68 | 64 72 5f 66 6f 72 6d 61 |rompt, h|dr_forma|
|00000de0| 74 2e 0a 48 65 6c 70 20 | 77 69 74 68 20 6d 73 67 |t..Help |with msg|
|00000df0| 5f 6c 69 73 74 20 69 73 | 20 68 69 67 68 6c 79 20 |_list is| highly |
|00000e00| 61 64 76 69 73 61 62 6c | 65 21 0a 58 0a 54 79 70 |advisabl|e!.X.Typ|
|00000e10| 65 20 22 3f 22 20 74 6f | 20 67 65 74 20 61 20 6c |e "?" to| get a l|
|00000e20| 69 73 74 20 6f 66 20 61 | 76 61 69 6c 61 62 6c 65 |ist of a|vailable|
|00000e30| 20 63 6f 6d 6d 61 6e 64 | 73 2e 20 20 54 72 79 20 | command|s. Try |
|00000e40| 22 3f 20 63 6f 6d 6d 61 | 6e 64 22 0a 74 6f 20 67 |"? comma|nd".to g|
|00000e50| 65 74 20 68 65 6c 70 20 | 6f 6e 20 74 68 65 20 70 |et help |on the p|
|00000e60| 61 72 74 69 63 75 6c 61 | 72 20 63 6f 6d 6d 61 6e |articula|r comman|
|00000e70| 64 20 74 68 61 74 20 79 | 6f 75 20 73 70 65 63 69 |d that y|ou speci|
|00000e80| 66 79 2e 0a 58 25 25 0a | 58 0a 58 25 70 61 74 68 |fy..X%%.|X.X%path|
|00000e90| 25 0a 57 68 65 6e 65 76 | 65 72 20 22 70 61 74 68 |%.Whenev|er "path|
|00000ea0| 22 20 69 73 20 73 70 65 | 63 69 66 69 65 64 2c 20 |" is spe|cified, |
|00000eb0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 73 79 |the foll|owing sy|
|00000ec0| 6e 74 61 78 20 69 73 20 | 6c 65 67 61 6c 20 62 65 |ntax is |legal be|
|00000ed0| 73 69 64 65 73 20 74 68 | 65 0a 6e 6f 72 6d 61 6c |sides th|e.normal|
|00000ee0| 20 70 61 74 68 20 61 64 | 64 72 65 73 73 69 6e 67 | path ad|dressing|
|00000ef0| 20 73 63 68 65 6d 65 20 | 75 73 65 64 20 62 79 20 | scheme |used by |
|00000f00| 75 6e 69 78 2e 0a 58 7e | 5b 75 73 65 72 5d 20 20 |unix..X~|[user] |
|00000f10| 20 20 20 2d 2d 20 74 68 | 65 20 68 6f 6d 65 20 64 | -- th|e home d|
|00000f20| 69 72 65 63 74 6f 72 79 | 20 6f 66 20 73 70 65 63 |irectory| of spec|
|00000f30| 69 66 69 65 64 20 75 73 | 65 72 20 28 79 6f 75 72 |ified us|er (your|
|00000f40| 73 20 62 79 20 64 65 66 | 61 75 6c 74 29 0a 58 25 |s by def|ault).X%|
|00000f50| 5b 75 73 65 72 5d 20 20 | 20 20 20 2d 2d 2f 75 73 |[user] | --/us|
|00000f60| 72 2f 73 70 6f 6f 6c 2f | 6d 61 69 6c 2f 6c 6f 67 |r/spool/|mail/log|
|00000f70| 69 6e 5f 6e 61 6d 65 20 | 5b 75 73 65 72 5f 6e 61 |in_name |[user_na|
|00000f80| 6d 65 5d 20 28 79 6f 75 | 72 73 20 62 79 20 64 65 |me] (you|rs by de|
|00000f90| 66 61 75 6c 74 29 0a 58 | 2b 66 69 6c 65 20 20 20 |fault).X|+file |
|00000fa0| 20 20 20 20 2d 2d 74 68 | 65 20 64 69 72 65 63 74 | --th|e direct|
|00000fb0| 6f 72 79 20 64 65 73 63 | 72 69 62 65 64 20 62 79 |ory desc|ribed by|
|00000fc0| 20 60 73 65 74 20 66 6f | 6c 64 65 72 27 3b 20 66 | `set fo|lder'; f|
|00000fd0| 69 6c 65 20 69 73 20 60 | 66 69 6c 65 27 0a 58 25 |ile is `|file'.X%|
|00000fe0| 25 0a 58 0a 58 25 6d 73 | 67 5f 6c 69 73 74 25 0a |%.X.X%ms|g_list%.|
|00000ff0| 41 20 22 6d 73 67 5f 6c | 69 73 74 22 20 72 65 66 |A "msg_l|ist" ref|
|00001000| 65 72 65 6e 63 65 73 20 | 6f 6e 65 20 6f 72 20 6d |erences |one or m|
|00001010| 6f 72 65 20 6d 65 73 73 | 61 67 65 73 2e 20 20 54 |ore mess|ages. T|
|00001020| 68 65 20 75 73 65 72 20 | 73 70 65 63 69 66 69 65 |he user |specifie|
|00001030| 73 0a 61 20 67 72 6f 75 | 70 20 6f 66 20 6d 65 73 |s.a grou|p of mes|
|00001040| 73 61 67 65 73 20 61 63 | 63 6f 72 64 69 6e 67 20 |sages ac|cording |
|00001050| 74 6f 20 61 20 73 70 65 | 63 69 61 6c 20 73 79 6e |to a spe|cial syn|
|00001060| 74 61 78 2e 0a 58 0a 58 | 2a 20 20 20 20 20 20 41 |tax..X.X|* A|
|00001070| 6c 6c 20 6d 65 73 73 61 | 67 65 73 2e 0a 58 5e 20 |ll messa|ges..X^ |
|00001080| 20 20 20 20 20 54 68 65 | 20 66 69 72 73 74 20 6d | The| first m|
|00001090| 65 73 73 61 67 65 2e 0a | 58 24 20 20 20 20 20 20 |essage..|X$ |
|000010a0| 54 68 65 20 6c 61 73 74 | 20 6d 65 73 73 61 67 65 |The last| message|
|000010b0| 2e 0a 58 2e 20 20 20 20 | 20 20 54 68 65 20 63 75 |..X. | The cu|
|000010c0| 72 72 65 6e 74 20 6d 65 | 73 73 61 67 65 2e 0a 4e |rrent me|ssage..N|
|000010d0| 2d 4d 20 20 20 20 41 20 | 72 61 6e 67 65 20 6f 66 |-M A |range of|
|000010e0| 20 6d 65 73 73 61 67 65 | 73 20 62 65 74 77 65 65 | message|s betwee|
|000010f0| 6e 20 4e 20 61 6e 64 20 | 4d 2e 0a 58 0a 49 6e 20 |n N and |M..X.In |
|00001100| 74 68 65 20 6c 61 73 74 | 20 63 61 73 65 2c 20 4e |the last| case, N|
|00001110| 20 61 6e 64 20 4d 20 6d | 61 79 20 62 65 20 2a 20 | and M m|ay be * |
|00001120| 5e 20 24 20 2e 20 6f 72 | 20 64 69 67 69 74 73 20 |^ $ . or| digits |
|00001130| 72 65 66 65 72 65 6e 63 | 69 6e 67 0a 65 78 70 6c |referenc|ing.expl|
|00001140| 69 63 69 74 20 6d 65 73 | 73 61 67 65 20 6e 75 6d |icit mes|sage num|
|00001150| 62 65 72 73 2e 20 20 54 | 68 65 20 72 61 6e 67 65 |bers. T|he range|
|00001160| 20 6d 75 73 74 20 62 65 | 20 69 6e 20 61 73 63 65 | must be| in asce|
|00001170| 6e 64 69 6e 67 20 6f 72 | 64 65 72 2e 0a 58 0a 59 |nding or|der..X.Y|
|00001180| 6f 75 20 63 61 6e 20 61 | 6c 73 6f 20 6e 65 67 61 |ou can a|lso nega|
|00001190| 74 65 20 6d 65 73 73 61 | 67 65 73 20 62 79 20 70 |te messa|ges by p|
|000011a0| 6c 61 63 69 6e 67 20 74 | 68 65 20 6d 65 73 73 61 |lacing t|he messa|
|000011b0| 67 65 20 6c 69 73 74 20 | 69 6e 73 69 64 65 0a 62 |ge list |inside.b|
|000011c0| 72 61 63 65 73 2c 20 60 | 7b 27 20 60 7d 27 20 2d |races, `|{' `}' -|
|000011d0| 2d 20 74 68 75 73 2c 20 | 74 68 65 20 65 78 70 72 |- thus, |the expr|
|000011e0| 65 73 73 69 6f 6e 20 22 | 32 2d 31 39 20 7b 31 31 |ession "|2-19 {11|
|000011f0| 2d 31 34 7d 22 20 72 65 | 66 65 72 65 6e 63 65 73 |-14}" re|ferences|
|00001200| 0a 6d 65 73 73 61 67 65 | 73 20 32 20 74 68 72 6f |.message|s 2 thro|
|00001210| 75 67 68 20 31 39 20 65 | 78 63 65 70 74 20 66 6f |ugh 19 e|xcept fo|
|00001220| 72 20 74 68 6f 73 65 20 | 62 65 74 77 65 65 6e 20 |r those |between |
|00001230| 31 31 20 74 68 72 6f 75 | 67 68 20 31 34 2e 0a 58 |11 throu|gh 14..X|
|00001240| 0a 43 6f 6d 6d 61 6e 64 | 73 20 63 61 6e 20 62 65 |.Command|s can be|
|00001250| 20 22 70 69 70 65 64 22 | 20 74 6f 20 6f 6e 65 20 | "piped"| to one |
|00001260| 61 6e 6f 74 68 65 72 2c | 20 62 65 63 61 75 73 65 |another,| because|
|00001270| 20 74 68 65 20 72 65 74 | 75 72 6e 0a 76 61 6c 75 | the ret|urn.valu|
|00001280| 65 20 6f 66 20 61 20 63 | 6f 6d 6d 61 6e 64 20 69 |e of a c|ommand i|
|00001290| 73 20 61 20 6d 73 67 5f | 6c 69 73 74 2c 20 6e 6f |s a msg_|list, no|
|000012a0| 74 20 74 65 78 74 2e 0a | 70 69 63 6b 20 2d 66 20 |t text..|pick -f |
|000012b0| 66 72 65 64 20 7c 20 6c | 70 72 20 20 20 77 69 6c |fred | l|pr wil|
|000012c0| 6c 20 66 69 6e 64 20 61 | 6c 6c 20 6d 65 73 73 61 |l find a|ll messa|
|000012d0| 67 65 73 20 22 66 72 6f | 6d 20 66 72 65 64 22 20 |ges "fro|m fred" |
|000012e0| 61 6e 64 0a 73 65 6e 64 | 20 74 68 65 6d 20 74 6f |and.send| them to|
|000012f0| 20 74 68 65 20 70 72 69 | 6e 74 65 72 2e 0a 58 0a | the pri|nter..X.|
|00001300| 43 6f 6d 6d 61 6e 64 73 | 20 64 65 61 6c 69 6e 67 |Commands| dealing|
|00001310| 20 77 69 74 68 20 6d 6f | 72 65 20 74 68 61 6e 20 | with mo|re than |
|00001320| 6f 6e 65 20 6d 65 73 73 | 61 67 65 20 70 72 6f 63 |one mess|age proc|
|00001330| 65 73 73 20 74 68 65 6d | 20 69 6e 0a 6f 72 64 65 |ess them| in.orde|
|00001340| 72 20 2d 2d 20 6e 6f 74 | 20 6e 65 63 65 73 73 61 |r -- not| necessa|
|00001350| 72 69 6c 79 20 74 68 65 | 20 6f 72 64 65 72 20 73 |rily the| order s|
|00001360| 70 65 63 69 66 69 65 64 | 2e 20 20 54 68 75 73 2c |pecified|. Thus,|
|00001370| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 2c 0a 73 61 | the com|mand,.sa|
|00001380| 76 65 20 31 2d 35 20 39 | 20 37 20 36 20 66 69 6c |ve 1-5 9| 7 6 fil|
|00001390| 65 0a 77 69 6c 6c 20 73 | 61 76 65 20 74 68 65 20 |e.will s|ave the |
|000013a0| 6d 65 73 73 61 67 65 73 | 20 69 6e 20 61 73 63 65 |messages| in asce|
|000013b0| 6e 64 69 6e 67 20 6f 72 | 64 65 72 3b 20 6e 6f 74 |nding or|der; not|
|000013c0| 20 61 73 20 73 70 65 63 | 69 66 69 65 64 2e 0a 58 | as spec|ified..X|
|000013d0| 25 25 0a 58 0a 58 25 70 | 72 65 73 65 72 76 65 5f |%%.X.X%p|reserve_|
|000013e0| 68 65 6c 70 25 0a 75 73 | 61 67 65 3a 20 70 72 65 |help%.us|age: pre|
|000013f0| 73 65 72 76 65 20 5b 6d | 73 67 5f 6c 69 73 74 5d |serve [m|sg_list]|
|00001400| 0a 50 72 65 73 65 72 76 | 65 20 73 61 76 65 73 20 |.Preserv|e saves |
|00001410| 64 65 6c 65 74 65 64 20 | 6f 72 20 72 65 61 64 20 |deleted |or read |
|00001420| 6d 65 73 73 61 67 65 73 | 20 69 6e 20 79 6f 75 72 |messages| in your|
|00001430| 20 6d 61 69 6c 62 6f 78 | 2e 0a 57 69 74 68 6f 75 | mailbox|..Withou|
|00001440| 74 20 65 78 70 6c 69 63 | 69 74 65 6c 79 20 73 65 |t explic|itely se|
|00001450| 74 74 69 6e 67 20 70 72 | 65 73 65 72 76 65 2c 20 |tting pr|eserve, |
|00001460| 61 6c 6c 20 6d 61 69 6c | 20 74 68 61 74 20 79 6f |all mail| that yo|
|00001470| 75 0a 72 65 61 64 20 77 | 69 6c 6c 20 62 65 20 73 |u.read w|ill be s|
|00001480| 61 76 65 64 20 69 6e 20 | 7e 2f 6d 62 6f 78 20 28 |aved in |~/mbox (|
|00001490| 6f 72 20 73 65 74 20 6d | 62 6f 78 29 2e 20 20 49 |or set m|box). I|
|000014a0| 66 20 79 6f 75 20 73 65 | 74 0a 58 22 68 6f 6c 64 |f you se|t.X"hold|
|000014b0| 22 2c 20 74 68 65 6e 20 | 74 68 69 73 20 69 73 20 |", then |this is |
|000014c0| 65 71 75 69 76 61 6c 65 | 6e 74 20 74 6f 20 70 72 |equivale|nt to pr|
|000014d0| 65 73 65 72 76 69 6e 67 | 20 65 61 63 68 20 6d 65 |eserving| each me|
|000014e0| 73 73 61 67 65 0a 61 73 | 20 79 6f 75 20 72 65 61 |ssage.as| you rea|
|000014f0| 64 20 69 74 2e 0a 58 25 | 25 0a 58 0a 58 25 73 61 |d it..X%|%.X.X%sa|
|00001500| 76 65 5f 68 65 6c 70 25 | 0a 75 73 61 67 65 3a 20 |ve_help%|.usage: |
|00001510| 73 61 76 65 2f 77 72 69 | 74 65 2f 63 6f 70 79 20 |save/wri|te/copy |
|00001520| 5b 21 5d 20 5b 6d 73 67 | 5f 6c 69 73 74 5d 20 5b |[!] [msg|_list] [|
|00001530| 66 69 6c 65 6e 61 6d 65 | 5d 0a 58 0a 49 66 20 6e |filename|].X.If n|
|00001540| 6f 20 66 69 6c 65 6e 61 | 6d 65 20 69 73 20 73 70 |o filena|me is sp|
|00001550| 65 63 69 66 69 65 64 2c | 20 7e 2f 6d 62 6f 78 20 |ecified,| ~/mbox |
|00001560| 28 6f 72 20 73 65 74 20 | 6d 62 6f 78 29 20 69 73 |(or set |mbox) is|
|00001570| 20 75 73 65 64 2e 0a 53 | 61 76 65 20 61 6e 64 20 | used..S|ave and |
|00001580| 77 72 69 74 65 20 77 69 | 6c 6c 20 61 70 70 65 6e |write wi|ll appen|
|00001590| 64 20 6d 73 67 20 69 66 | 20 60 66 69 6c 65 27 20 |d msg if| `file' |
|000015a0| 61 6c 72 65 61 64 79 20 | 65 78 69 73 74 73 0a 53 |already |exists.S|
|000015b0| 70 65 63 69 66 79 69 6e | 67 20 74 68 65 20 60 21 |pecifyin|g the `!|
|000015c0| 27 20 77 69 6c 6c 20 6f | 76 65 72 77 72 69 74 65 |' will o|verwrite|
|000015d0| 20 66 69 6c 65 20 28 65 | 2e 67 2e 20 65 72 61 73 | file (e|.g. eras|
|000015e0| 69 6e 67 20 69 74 20 66 | 69 72 73 74 29 2e 0a 54 |ing it f|irst)..T|
|000015f0| 6f 20 73 61 76 65 20 6d | 65 73 73 61 67 65 73 20 |o save m|essages |
|00001600| 74 6f 20 61 20 66 69 6c | 65 6e 61 6d 65 20 62 65 |to a fil|ename be|
|00001610| 67 69 6e 6e 69 6e 67 20 | 77 69 74 68 20 61 20 64 |ginning |with a d|
|00001620| 69 67 69 74 2c 0a 65 73 | 63 61 70 65 20 74 68 65 |igit,.es|cape the|
|00001630| 20 66 69 6c 65 6e 61 6d | 65 20 77 69 74 68 20 61 | filenam|e with a|
|00001640| 20 62 61 63 6b 73 6c 61 | 73 68 20 28 5c 29 0a 58 | backsla|sh (\).X|
|00001650| 60 77 72 69 74 65 27 20 | 77 69 6c 6c 20 77 72 69 |`write' |will wri|
|00001660| 74 65 20 6d 65 73 73 61 | 67 65 20 77 69 74 68 6f |te messa|ge witho|
|00001670| 75 74 20 74 68 65 20 68 | 65 61 64 65 72 73 20 28 |ut the h|eaders (|
|00001680| 6d 73 67 20 62 6f 64 79 | 20 6f 6e 6c 79 29 2e 0a |msg body| only)..|
|00001690| 53 61 76 65 20 61 6e 64 | 20 77 72 69 74 65 20 62 |Save and| write b|
|000016a0| 6f 74 68 20 6d 61 72 6b | 20 6d 65 73 73 61 67 65 |oth mark| message|
|000016b0| 73 20 66 6f 72 20 64 65 | 6c 65 74 69 6f 6e 20 75 |s for de|letion u|
|000016c0| 6e 6c 65 73 73 20 22 6b | 65 65 70 73 61 76 65 22 |nless "k|eepsave"|
|000016d0| 0a 69 73 20 73 65 74 2e | 20 20 43 6f 70 79 20 69 |.is set.| Copy i|
|000016e0| 73 20 69 64 65 6e 74 69 | 63 61 6c 20 74 6f 20 73 |s identi|cal to s|
|000016f0| 61 76 65 20 65 78 63 65 | 70 74 20 74 68 61 74 20 |ave exce|pt that |
|00001700| 6d 65 73 73 61 67 65 73 | 20 61 72 65 20 6e 6f 74 |messages| are not|
|00001710| 0a 6d 61 72 6b 65 64 20 | 66 6f 72 20 64 65 6c 65 |.marked |for dele|
|00001720| 74 69 6f 6e 20 28 69 64 | 65 6e 74 69 63 61 6c 20 |tion (id|entical |
|00001730| 74 6f 20 68 61 76 69 6e | 67 20 6b 65 65 70 73 61 |to havin|g keepsa|
|00001740| 76 65 20 73 65 74 29 2e | 0a 58 25 25 0a 58 0a 58 |ve set).|.X%%.X.X|
|00001750| 25 6c 70 72 25 0a 75 73 | 65 3a 20 6c 70 72 20 5b |%lpr%.us|e: lpr [|
|00001760| 2d 6e 5d 20 5b 2d 68 5d | 20 5b 6d 73 67 5f 6c 69 |-n] [-h]| [msg_li|
|00001770| 73 74 5d 0a 58 20 20 2d | 6e 20 20 20 20 20 20 20 |st].X -|n |
|00001780| 20 20 70 72 69 6e 74 20 | 62 6f 64 79 20 6f 66 20 | print |body of |
|00001790| 6d 65 73 73 61 67 65 20 | 6f 6e 6c 79 20 28 6e 6f |message |only (no|
|000017a0| 74 20 68 65 61 64 65 72 | 73 29 0a 58 20 20 2d 68 |t header|s).X -h|
|000017b0| 20 20 20 20 20 20 20 20 | 20 70 72 69 6e 74 20 61 | | print a|
|000017c0| 6c 6c 20 68 65 61 64 65 | 72 73 20 77 69 74 68 20 |ll heade|rs with |
|000017d0| 6d 65 73 73 61 67 65 20 | 62 6f 64 79 20 28 64 65 |message |body (de|
|000017e0| 66 61 75 6c 74 20 74 72 | 75 65 29 0a 58 20 20 2d |fault tr|ue).X -|
|000017f0| 50 78 78 20 20 20 20 20 | 20 20 70 72 69 6e 74 20 |Pxx | print |
|00001800| 6f 6e 20 70 72 69 6e 74 | 65 72 20 78 78 0a 58 25 |on print|er xx.X%|
|00001810| 25 0a 58 0a 58 25 72 65 | 73 70 6f 6e 64 5f 68 65 |%.X.X%re|spond_he|
|00001820| 6c 70 25 0a 75 73 61 67 | 65 3a 20 72 65 70 6c 79 |lp%.usag|e: reply|
|00001830| 73 65 6e 64 65 72 2f 72 | 65 70 6c 79 61 6c 6c 20 |sender/r|eplyall |
|00001840| 5b 6d 73 67 5f 6c 69 73 | 74 5d 20 5b 6d 61 69 6c |[msg_lis|t] [mail|
|00001850| 5f 66 6c 61 67 73 5d 20 | 5b 75 73 65 72 73 5d 0a |_flags] |[users].|
|00001860| 52 65 70 6c 79 73 65 6e | 64 65 72 20 6f 6e 6c 79 |Replysen|der only|
|00001870| 20 72 65 70 6c 69 65 73 | 20 74 6f 20 74 68 65 20 | replies| to the |
|00001880| 73 65 6e 64 65 72 20 61 | 6e 64 20 72 65 70 6c 79 |sender a|nd reply|
|00001890| 61 6c 6c 20 72 65 73 70 | 6f 6e 64 73 0a 74 6f 20 |all resp|onds.to |
|000018a0| 65 76 65 72 79 6f 6e 65 | 20 6f 6e 20 74 68 65 20 |everyone| on the |
|000018b0| 54 6f 3a 20 61 6e 64 20 | 43 63 3a 20 6c 69 6e 65 |To: and |Cc: line|
|000018c0| 73 20 6f 66 20 74 68 65 | 20 6d 65 73 73 61 67 65 |s of the| message|
|000018d0| 2e 0a 58 0a 54 68 65 20 | 63 6f 6d 6d 61 6e 64 73 |..X.The |commands|
|000018e0| 20 22 72 65 70 6f 6e 64 | 22 2c 20 22 72 65 70 6c | "repond|", "repl|
|000018f0| 79 22 2c 20 61 6e 64 20 | 22 72 22 20 61 72 65 20 |y", and |"r" are |
|00001900| 69 64 65 6e 74 69 63 61 | 6c 20 74 6f 0a 58 22 72 |identica|l to.X"r|
|00001910| 65 70 6c 79 73 65 6e 64 | 65 72 2e 22 20 54 68 65 |eplysend|er." The|
|00001920| 20 63 6f 6d 6d 61 6e 64 | 2c 20 22 52 22 20 69 73 | command|, "R" is|
|00001930| 20 69 64 65 6e 74 69 63 | 61 6c 20 74 6f 20 22 72 | identic|al to "r|
|00001940| 65 70 6c 79 61 6c 6c 2e | 22 0a 58 0a 49 66 20 61 |eplyall.|".X.If a|
|00001950| 20 6d 65 73 73 61 67 65 | 20 6c 69 73 74 20 69 73 | message| list is|
|00001960| 20 69 6e 64 69 63 61 74 | 65 64 2c 20 74 68 65 6e | indicat|ed, then|
|00001970| 20 65 61 63 68 20 6d 65 | 73 73 61 67 65 20 6f 6e | each me|ssage on|
|00001980| 20 74 68 65 20 6c 69 73 | 74 20 69 73 0a 72 65 70 | the lis|t is.rep|
|00001990| 6c 69 65 64 20 74 6f 20 | 69 6e 20 74 68 65 20 73 |lied to |in the s|
|000019a0| 61 6d 65 20 6d 61 6e 6e | 65 72 2e 20 20 41 6c 6c |ame mann|er. All|
|000019b0| 20 6f 74 68 65 72 20 61 | 72 67 75 6d 65 6e 74 73 | other a|rguments|
|000019c0| 20 61 72 65 20 70 61 73 | 73 65 64 0a 74 6f 20 74 | are pas|sed.to t|
|000019d0| 68 65 20 6d 61 69 6c 20 | 63 6f 6d 6d 61 6e 64 20 |he mail |command |
|000019e0| 28 27 6d 61 69 6c 5f 66 | 6c 61 67 73 27 20 61 6e |('mail_f|lags' an|
|000019f0| 64 20 27 75 73 65 72 73 | 27 29 2e 0a 58 0a 54 79 |d 'users|')..X.Ty|
|00001a00| 70 65 20 22 6d 61 69 6c | 20 2d 3f 22 20 66 6f 72 |pe "mail| -?" for|
|00001a10| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 6f 6e 20 | informa|tion on |
|00001a20| 6c 65 67 61 6c 20 6d 61 | 69 6c 20 66 6c 61 67 73 |legal ma|il flags|
|00001a30| 2e 0a 58 25 25 0a 58 0a | 58 25 73 6f 72 74 5f 68 |..X%%.X.|X%sort_h|
|00001a40| 65 6c 70 25 0a 75 73 61 | 67 65 3a 20 73 6f 72 74 |elp%.usa|ge: sort|
|00001a50| 20 5b 2d 5d 20 5b 64 20 | 7c 20 61 20 7c 20 73 20 | [-] [d || a | s |
|00001a60| 7c 20 53 20 7c 20 52 5d | 0a 58 20 20 64 20 20 20 || S | R]|.X d |
|00001a70| 20 20 20 20 20 20 73 6f | 72 74 20 61 63 63 6f 72 | so|rt accor|
|00001a80| 64 69 6e 67 20 74 6f 20 | 64 61 74 65 20 72 65 63 |ding to |date rec|
|00001a90| 65 69 76 65 64 0a 58 20 | 20 61 20 20 20 20 20 20 |eived.X | a |
|00001aa0| 20 20 20 61 75 74 68 6f | 72 20 28 61 6c 70 68 61 | autho|r (alpha|
|00001ab0| 62 65 74 69 63 61 6c 29 | 0a 58 20 20 73 20 20 20 |betical)|.X s |
|00001ac0| 20 20 20 20 20 20 73 75 | 62 6a 65 63 74 20 69 67 | su|bject ig|
|00001ad0| 6e 6f 72 69 6e 67 20 52 | 65 3a 20 61 73 20 70 61 |noring R|e: as pa|
|00001ae0| 72 74 20 6f 66 20 74 68 | 65 20 73 75 62 6a 65 63 |rt of th|e subjec|
|00001af0| 74 0a 58 20 20 52 20 20 | 20 20 20 20 20 20 20 73 |t.X R | s|
|00001b00| 75 62 6a 65 63 74 20 28 | 61 6c 70 68 61 62 65 74 |ubject (|alphabet|
|00001b10| 69 63 61 6c 29 0a 58 20 | 20 53 20 20 20 20 20 20 |ical).X | S |
|00001b20| 20 20 20 62 79 20 73 74 | 61 74 75 73 0a 54 68 65 | by st|atus.The|
|00001b30| 20 6f 70 74 69 6f 6e 61 | 6c 20 60 2d 27 20 66 6c | optiona|l `-' fl|
|00001b40| 61 67 20 77 69 6c 6c 20 | 72 65 76 65 72 73 65 20 |ag will |reverse |
|00001b50| 74 68 65 20 6f 72 64 65 | 72 20 6f 66 20 73 6f 72 |the orde|r of sor|
|00001b60| 74 69 6e 67 0a 42 79 20 | 64 65 66 61 75 6c 74 20 |ting.By |default |
|00001b70| 28 6e 6f 20 61 72 67 75 | 6d 65 6e 74 73 29 2c 20 |(no argu|ments), |
|00001b80| 73 6f 72 74 20 73 6f 72 | 74 73 20 6d 65 73 73 61 |sort sor|ts messa|
|00001b90| 67 65 73 20 62 79 20 73 | 74 61 74 75 73 3a 0a 4e |ges by s|tatus:.N|
|00001ba0| 65 77 2c 20 75 6e 72 65 | 61 64 20 6d 65 73 73 61 |ew, unre|ad messa|
|00001bb0| 67 65 73 20 61 72 65 20 | 66 69 72 73 74 2c 20 66 |ges are |first, f|
|00001bc0| 6f 6c 6c 6f 77 65 64 20 | 62 79 20 70 72 65 73 65 |ollowed |by prese|
|00001bd0| 72 76 65 64 20 6d 65 73 | 73 61 67 65 73 0a 61 6e |rved mes|sages.an|
|00001be0| 64 20 66 69 6e 61 6c 6c | 79 20 74 68 65 20 64 65 |d finall|y the de|
|00001bf0| 6c 65 74 65 64 20 6d 65 | 73 73 61 67 65 73 20 61 |leted me|ssages a|
|00001c00| 72 65 20 70 6c 61 63 65 | 64 20 61 74 20 74 68 65 |re place|d at the|
|00001c10| 20 65 6e 64 0a 58 25 25 | 0a 58 0a 58 25 70 69 63 | end.X%%|.X.X%pic|
|00001c20| 6b 25 0a 75 73 65 3a 20 | 70 69 63 6b 20 5b 2d 72 |k%.use: |pick [-r|
|00001c30| 20 6d 73 67 5f 6c 69 73 | 74 5d 20 5b 2d 64 20 5b | msg_lis|t] [-d [|
|00001c40| 2d 5d 5b 64 61 74 65 5d | 20 5d 20 5b 2d 73 7c 66 |-][date]| ] [-s|f|
|00001c50| 7c 74 5d 5d 20 5b 2d 78 | 5d 20 5b 2d 69 5d 20 5b ||t]] [-x|] [-i] [|
|00001c60| 2d 68 20 68 64 72 5d 20 | 5b 3c 70 61 74 3e 5d 0a |-h hdr] |[<pat>].|
|00001c70| 53 65 61 72 63 68 20 66 | 6f 72 20 70 61 74 74 65 |Search f|or patte|
|00001c80| 72 6e 73 20 77 69 74 68 | 69 6e 20 6d 65 73 73 61 |rns with|in messa|
|00001c90| 67 65 73 2e 20 45 6e 74 | 69 72 65 20 6d 65 73 73 |ges. Ent|ire mess|
|00001ca0| 61 67 65 73 20 61 72 65 | 20 73 65 61 72 63 68 65 |ages are| searche|
|00001cb0| 64 0a 66 6f 72 20 3c 70 | 61 74 74 65 72 6e 3e 20 |d.for <p|attern> |
|00001cc0| 75 6e 6c 65 73 73 20 2d | 73 2c 20 2d 66 2c 20 2d |unless -|s, -f, -|
|00001cd0| 74 2c 20 6f 72 20 2d 68 | 20 69 73 20 73 70 65 63 |t, or -h| is spec|
|00001ce0| 69 66 69 65 64 2e 0a 4f | 6e 6c 79 20 6f 6e 65 20 |ified..O|nly one |
|00001cf0| 6f 66 20 2d 73 2c 20 2d | 66 2c 20 2d 74 2c 20 2d |of -s, -|f, -t, -|
|00001d00| 64 20 61 6e 64 20 2d 68 | 20 63 61 6e 20 62 65 20 |d and -h| can be |
|00001d10| 73 70 65 63 69 66 69 65 | 64 20 61 74 20 6f 6e 63 |specifie|d at onc|
|00001d20| 65 2e 0a 58 2d 72 20 6d | 73 67 5f 6c 69 73 74 20 |e..X-r m|sg_list |
|00001d30| 20 72 65 73 74 72 69 63 | 74 20 74 68 65 20 72 61 | restric|t the ra|
|00001d40| 6e 67 65 20 6f 66 20 6d | 65 73 73 61 67 65 73 20 |nge of m|essages |
|00001d50| 73 65 61 72 63 68 20 74 | 6f 20 6d 73 67 5f 6c 69 |search t|o msg_li|
|00001d60| 73 74 0a 58 2d 64 3a 20 | 70 72 69 6e 74 20 6d 65 |st.X-d: |print me|
|00001d70| 73 73 61 67 65 20 68 65 | 61 64 65 72 73 20 6f 6e |ssage he|aders on|
|00001d80| 20 6f 72 20 61 66 74 65 | 72 20 5b 60 2d 27 20 62 | or afte|r [`-' b|
|00001d90| 65 66 6f 72 65 5d 20 60 | 64 61 74 65 27 20 28 6e |efore] `|date' (n|
|00001da0| 6f 20 70 61 74 74 65 72 | 6e 73 29 2e 0a 58 2d 68 |o patter|ns)..X-h|
|00001db0| 20 68 64 72 20 20 20 72 | 65 71 75 69 72 65 73 20 | hdr r|equires |
|00001dc0| 61 20 68 65 61 64 65 72 | 20 74 6f 20 62 65 20 73 |a header| to be s|
|00001dd0| 65 61 72 63 68 65 64 20 | 66 6f 72 2e 20 20 50 61 |earched |for. Pa|
|00001de0| 74 74 65 72 6e 20 73 65 | 61 72 63 68 65 64 20 69 |ttern se|arched i|
|00001df0| 6e 20 74 68 61 74 20 68 | 64 72 2e 0a 58 20 20 20 |n that h|dr..X |
|00001e00| 20 20 60 64 61 74 65 27 | 20 69 73 20 6f 66 20 74 | `date'| is of t|
|00001e10| 68 65 20 66 6f 72 6d 3a | 20 6d 6f 6e 74 68 2f 64 |he form:| month/d|
|00001e20| 61 74 65 2f 79 65 61 72 | 0a 58 20 20 20 20 20 20 |ate/year|.X |
|00001e30| 4f 6d 69 74 74 65 64 20 | 66 69 65 6c 64 73 20 64 |Omitted |fields d|
|00001e40| 65 66 61 75 6c 74 20 74 | 6f 20 74 6f 64 61 79 27 |efault t|o today'|
|00001e50| 73 20 76 61 6c 75 65 73 | 2e 20 45 78 61 6d 70 6c |s values|. Exampl|
|00001e60| 65 73 3a 0a 58 20 20 20 | 20 20 20 70 69 63 6b 20 |es:.X | pick |
|00001e70| 2d 64 20 34 2f 32 30 20 | 20 20 20 20 6d 73 67 73 |-d 4/20 | msgs|
|00001e80| 20 6f 6e 20 6f 72 20 61 | 66 74 65 72 20 41 70 72 | on or a|fter Apr|
|00001e90| 20 32 30 2c 20 74 68 69 | 73 20 79 65 61 72 0a 58 | 20, thi|s year.X|
|00001ea0| 20 20 20 20 20 20 70 69 | 63 6b 20 2d 64 20 2d 2f | pi|ck -d -/|
|00001eb0| 32 2f 38 35 20 20 20 6f | 6e 20 6f 72 20 62 65 66 |2/85 o|n or bef|
|00001ec0| 6f 72 65 20 74 68 65 20 | 32 6e 64 2c 20 74 68 69 |ore the |2nd, thi|
|00001ed0| 73 20 6d 6f 6e 74 68 2c | 20 31 39 38 35 0a 58 20 |s month,| 1985.X |
|00001ee0| 20 20 20 20 20 70 69 63 | 6b 20 2d 64 20 2f 20 20 | pic|k -d / |
|00001ef0| 20 20 20 20 20 20 66 69 | 6e 64 73 20 74 6f 64 61 | fi|nds toda|
|00001f00| 79 27 73 20 6d 65 73 73 | 61 67 65 73 20 6f 6e 6c |y's mess|ages onl|
|00001f10| 79 2e 0a 58 20 20 20 20 | 41 74 20 6c 65 61 73 74 |y..X |At least|
|00001f20| 20 6f 6e 65 20 60 2f 27 | 20 63 68 61 72 20 6d 75 | one `/'| char mu|
|00001f30| 73 74 20 62 65 20 75 73 | 65 64 20 69 6e 20 64 61 |st be us|ed in da|
|00001f40| 74 65 2e 0a 58 20 20 20 | 20 54 68 65 72 65 20 69 |te..X | There i|
|00001f50| 73 20 6e 6f 20 73 74 72 | 6f 6e 67 20 64 61 74 65 |s no str|ong date|
|00001f60| 20 63 68 65 63 6b 69 6e | 67 3b 20 32 2f 33 30 20 | checkin|g; 2/30 |
|00001f70| 77 6f 75 6c 64 20 62 65 | 20 63 6f 6e 73 69 64 65 |would be| conside|
|00001f80| 72 65 64 20 76 61 6c 69 | 64 0a 58 2d 73 20 73 65 |red vali|d.X-s se|
|00001f90| 61 72 63 68 20 66 6f 72 | 20 70 61 74 74 65 72 6e |arch for| pattern|
|00001fa0| 20 69 6e 20 74 68 65 20 | 22 73 75 62 6a 65 63 74 | in the |"subject|
|00001fb0| 22 20 68 65 61 64 65 72 | 73 20 6f 6e 6c 79 2e 0a |" header|s only..|
|00001fc0| 58 2d 66 20 73 65 61 72 | 63 68 20 66 6f 72 20 70 |X-f sear|ch for p|
|00001fd0| 61 74 74 65 72 6e 20 69 | 6e 20 74 68 65 20 22 66 |attern i|n the "f|
|00001fe0| 72 6f 6d 22 20 66 69 65 | 6c 64 20 28 61 75 74 68 |rom" fie|ld (auth|
|00001ff0| 6f 72 29 20 6f 6e 6c 79 | 2e 0a 58 2d 74 20 73 65 |or) only|..X-t se|
|00002000| 61 72 63 68 20 66 6f 72 | 20 70 61 74 74 65 72 6e |arch for| pattern|
|00002010| 20 69 6e 20 74 68 65 20 | 22 74 6f 22 20 66 69 65 | in the |"to" fie|
|00002020| 6c 64 2e 0a 58 2d 69 20 | 69 67 6e 6f 72 65 20 63 |ld..X-i |ignore c|
|00002030| 61 73 65 20 6f 66 20 6c | 65 74 74 65 72 73 2e 0a |ase of l|etters..|
|00002040| 58 2d 78 20 72 65 74 75 | 72 6e 20 74 68 6f 73 65 |X-x retu|rn those|
|00002050| 20 6d 65 73 73 61 67 65 | 73 20 77 68 69 63 68 20 | message|s which |
|00002060| 64 6f 20 4e 4f 54 20 6d | 61 74 63 68 2e 0a 58 25 |do NOT m|atch..X%|
|00002070| 25 0a 58 0a 58 25 61 6c | 69 61 73 25 0a 6f 70 74 |%.X.X%al|ias%.opt|
|00002080| 69 6f 6e 73 20 66 6f 72 | 20 61 6c 69 61 73 3a 0a |ions for| alias:.|
|00002090| 61 6c 69 61 73 20 20 20 | 20 20 20 20 20 20 20 20 |alias | |
|000020a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000020b0| 70 72 69 6e 74 20 61 6c | 6c 20 6e 61 6d 65 6c 69 |print al|l nameli|
|000020c0| 73 74 73 0a 61 6c 69 61 | 73 20 6e 61 6d 65 20 20 |sts.alia|s name |
|000020d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000020e0| 20 20 20 20 70 72 69 6e | 74 20 6e 61 6d 65 6c 69 | prin|t nameli|
|000020f0| 73 74 20 61 73 73 6f 63 | 69 61 74 65 64 20 77 69 |st assoc|iated wi|
|00002100| 74 68 20 6e 61 6d 65 0a | 61 6c 69 61 73 20 6e 61 |th name.|alias na|
|00002110| 6d 65 20 6e 61 6d 65 6c | 69 73 74 20 20 20 20 20 |me namel|ist |
|00002120| 20 20 20 20 20 20 20 20 | 73 65 74 20 22 6e 61 6d | |set "nam|
|00002130| 65 22 20 74 6f 20 76 61 | 6c 75 65 20 6f 66 20 6e |e" to va|lue of n|
|00002140| 61 6d 65 6c 69 73 74 2e | 0a 75 6e 61 6c 69 61 73 |amelist.|.unalias|
|00002150| 20 6e 61 6d 65 6c 69 73 | 74 20 20 20 20 20 20 20 | namelis|t |
|00002160| 20 20 20 20 20 20 20 20 | 20 75 6e 61 6c 69 61 73 | | unalias|
|00002170| 20 6e 61 6d 65 73 20 69 | 6e 20 6e 61 6d 65 6c 69 | names i|n nameli|
|00002180| 73 74 0a 58 0a 41 20 22 | 6e 61 6d 65 6c 69 73 74 |st.X.A "|namelist|
|00002190| 22 20 63 6f 6e 73 69 73 | 74 73 20 6f 66 20 6f 6e |" consis|ts of on|
|000021a0| 65 20 6f 72 20 6d 6f 72 | 65 20 61 64 64 72 65 73 |e or mor|e addres|
|000021b0| 73 65 73 2e 20 41 6e 20 | 61 64 64 72 65 73 73 0a |ses. An |address.|
|000021c0| 6d 61 79 20 62 65 20 61 | 20 6e 61 6d 65 20 61 6c |may be a| name al|
|000021d0| 72 65 61 64 79 20 73 65 | 74 20 74 6f 20 61 6e 6f |ready se|t to ano|
|000021e0| 74 68 65 72 20 6c 69 73 | 74 2c 20 76 61 6c 69 64 |ther lis|t, valid|
|000021f0| 20 75 73 65 72 2c 20 66 | 69 6c 65 0a 6f 72 20 70 | user, f|ile.or p|
|00002200| 72 6f 67 72 61 6d 2e 20 | 20 46 69 6c 65 6e 61 6d |rogram. | Filenam|
|00002210| 65 73 20 6d 75 73 74 20 | 62 65 20 66 75 6c 6c 20 |es must |be full |
|00002220| 70 61 74 68 6e 61 6d 65 | 73 20 62 65 67 69 6e 6e |pathname|s beginn|
|00002230| 69 6e 67 20 77 69 74 68 | 0a 61 20 27 2f 27 20 28 |ing with|.a '/' (|
|00002240| 6f 72 20 61 20 7e 20 65 | 78 70 61 6e 64 69 6e 67 |or a ~ e|xpanding|
|00002250| 20 74 6f 20 61 20 68 6f | 6d 65 20 64 69 72 65 63 | to a ho|me direc|
|00002260| 74 6f 72 79 29 2e 20 20 | 41 20 22 70 72 6f 67 72 |tory). |A "progr|
|00002270| 61 6d 22 0a 6d 75 73 74 | 20 73 74 61 72 74 20 77 |am".must| start w|
|00002280| 69 74 68 20 61 20 70 69 | 70 65 20 61 6e 64 20 62 |ith a pi|pe and b|
|00002290| 65 20 65 6e 63 61 73 65 | 64 20 69 6e 20 71 75 6f |e encase|d in quo|
|000022a0| 74 65 73 3a 0a 58 0a 58 | 20 20 20 20 22 7c 70 72 |tes:.X.X| "|pr|
|000022b0| 6f 67 72 61 6d 5f 6e 61 | 6d 65 22 0a 58 0a 54 68 |ogram_na|me".X.Th|
|000022c0| 65 20 63 6f 6d 6d 61 6e | 64 2c 20 22 65 78 70 61 |e comman|d, "expa|
|000022d0| 6e 64 22 2c 20 77 69 6c | 6c 20 70 72 69 6e 74 20 |nd", wil|l print |
|000022e0| 61 64 64 72 65 73 73 65 | 73 20 28 69 6e 63 6c 75 |addresse|s (inclu|
|000022f0| 64 69 6e 67 20 73 75 62 | 6c 69 73 74 73 29 0a 61 |ding sub|lists).a|
|00002300| 73 73 6f 63 69 61 74 65 | 64 20 77 69 74 68 20 74 |ssociate|d with t|
|00002310| 68 65 20 67 69 76 65 6e | 20 61 6c 69 61 73 2e 0a |he given| alias..|
|00002320| 58 25 25 0a 58 0a 58 25 | 66 72 6f 6d 25 0a 57 69 |X%%.X.X%|from%.Wi|
|00002330| 74 68 20 6e 6f 20 61 72 | 67 75 6d 65 6e 74 73 2c |th no ar|guments,|
|00002340| 20 66 72 6f 6d 20 77 69 | 6c 6c 20 70 72 69 6e 74 | from wi|ll print|
|00002350| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6d 65 73 | the cur|rent mes|
|00002360| 73 61 67 65 27 73 20 68 | 65 61 64 65 72 2e 0a 49 |sage's h|eader..I|
|00002370| 66 20 67 69 76 65 6e 20 | 61 20 6d 65 73 73 61 67 |f given |a messag|
|00002380| 65 20 6c 69 73 74 2c 20 | 66 72 6f 6d 20 77 69 6c |e list, |from wil|
|00002390| 6c 20 70 72 69 6e 74 20 | 74 68 65 20 68 65 61 64 |l print |the head|
|000023a0| 65 72 73 20 6f 66 20 74 | 68 6f 73 65 0a 6d 65 73 |ers of t|hose.mes|
|000023b0| 73 61 67 65 73 20 77 68 | 69 63 68 20 61 72 65 20 |sages wh|ich are |
|000023c0| 69 6e 20 74 68 65 20 6c | 69 73 74 2e 0a 58 0a 54 |in the l|ist..X.T|
|000023d0| 68 65 20 73 70 65 63 69 | 61 6c 20 61 72 67 75 6d |he speci|al argum|
|000023e0| 65 6e 74 73 2c 20 60 2d | 27 20 61 6e 64 20 60 2b |ents, `-|' and `+|
|000023f0| 27 20 63 61 6e 20 62 65 | 20 67 69 76 65 6e 20 74 |' can be| given t|
|00002400| 6f 20 6d 6f 76 65 20 74 | 68 65 0a 63 75 72 72 65 |o move t|he.curre|
|00002410| 6e 74 20 6d 65 73 73 61 | 67 65 20 70 6f 69 6e 74 |nt messa|ge point|
|00002420| 65 72 20 74 6f 20 74 68 | 65 20 70 72 65 76 69 6f |er to th|e previo|
|00002430| 75 73 20 6f 72 20 6e 65 | 78 74 20 6d 65 73 73 61 |us or ne|xt messa|
|00002440| 67 65 0a 72 65 73 70 65 | 63 74 69 76 65 6c 79 20 |ge.respe|ctively |
|00002450| 77 68 69 6c 65 20 61 6c | 73 6f 20 70 72 69 6e 74 |while al|so print|
|00002460| 69 6e 67 20 74 68 61 74 | 20 6d 65 73 73 61 67 65 |ing that| message|
|00002470| 27 73 20 68 65 61 64 65 | 72 2e 0a 58 0a 49 66 20 |'s heade|r..X.If |
|00002480| 61 20 6d 65 73 73 61 67 | 65 20 6c 69 73 74 20 77 |a messag|e list w|
|00002490| 61 73 20 67 69 76 65 6e | 20 69 6e 20 61 64 64 69 |as given| in addi|
|000024a0| 74 69 6f 6e 20 74 6f 20 | 60 2d 27 20 6f 72 20 60 |tion to |`-' or `|
|000024b0| 2b 27 2c 20 74 68 65 6e | 0a 74 68 65 20 63 75 72 |+', then|.the cur|
|000024c0| 72 65 6e 74 20 6d 65 73 | 73 61 67 65 20 70 6f 69 |rent mes|sage poi|
|000024d0| 6e 74 65 72 20 77 69 6c | 6c 20 62 65 20 73 65 74 |nter wil|l be set|
|000024e0| 20 74 6f 20 74 68 65 20 | 66 69 72 73 74 20 6f 72 | to the |first or|
|000024f0| 20 6c 61 73 74 0a 6d 65 | 73 73 61 67 65 2c 20 72 | last.me|ssage, r|
|00002500| 65 73 70 65 63 74 69 76 | 65 6c 79 2c 20 69 6e 20 |espectiv|ely, in |
|00002510| 74 68 65 20 6d 65 73 73 | 61 67 65 20 6c 69 73 74 |the mess|age list|
|00002520| 20 67 69 76 65 6e 2e 0a | 58 0a 66 72 6f 6d 20 2d | given..|X.from -|
|00002530| 20 31 30 2d 33 30 20 7b | 31 36 7d 0a 77 69 6c 6c | 10-30 {|16}.will|
|00002540| 20 70 72 69 6e 74 20 74 | 68 65 20 68 65 61 64 65 | print t|he heade|
|00002550| 72 73 20 6f 66 20 6d 65 | 73 73 61 67 65 73 20 31 |rs of me|ssages 1|
|00002560| 30 20 74 68 72 6f 75 67 | 68 20 33 30 20 65 78 63 |0 throug|h 30 exc|
|00002570| 65 70 74 20 66 6f 72 0a | 6d 65 73 73 61 67 65 20 |ept for.|message |
|00002580| 31 36 20 61 6e 64 20 73 | 65 74 20 74 68 65 20 63 |16 and s|et the c|
|00002590| 75 72 72 65 6e 74 20 6d | 65 73 73 61 67 65 20 70 |urrent m|essage p|
|000025a0| 6f 69 6e 74 65 72 20 74 | 6f 20 31 30 2e 0a 58 0a |ointer t|o 10..X.|
|000025b0| 70 69 63 6b 20 2d 66 20 | 44 61 6e 20 7c 20 66 72 |pick -f |Dan | fr|
|000025c0| 6f 6d 20 2b 0a 77 69 6c | 6c 20 70 72 69 6e 74 20 |om +.wil|l print |
|000025d0| 74 68 65 20 68 65 61 64 | 65 72 73 20 6f 66 20 61 |the head|ers of a|
|000025e0| 6c 6c 20 6d 65 73 73 61 | 67 65 73 20 74 68 61 74 |ll messa|ges that|
|000025f0| 20 63 6f 6e 74 61 69 6e | 20 44 61 6e 20 69 6e 0a | contain| Dan in.|
|00002600| 69 6e 20 74 68 65 20 61 | 75 74 68 6f 72 27 73 20 |in the a|uthor's |
|00002610| 6e 61 6d 65 20 61 6e 64 | 20 73 65 74 20 74 68 65 |name and| set the|
|00002620| 20 63 75 72 72 65 6e 74 | 20 6d 65 73 73 61 67 65 | current| message|
|00002630| 20 70 6f 69 6e 74 65 72 | 20 74 6f 0a 74 68 65 20 | pointer| to.the |
|00002640| 6c 61 73 74 20 6f 6e 65 | 20 6f 66 20 74 68 61 74 |last one| of that|
|00002650| 20 6b 69 6e 64 20 69 6e | 20 74 68 65 20 6c 69 73 | kind in| the lis|
|00002660| 74 2e 0a 58 0a 66 72 6f | 6d 20 2b 0a 77 69 6c 6c |t..X.fro|m +.will|
|00002670| 20 70 72 69 6e 74 20 74 | 68 65 20 68 65 61 64 65 | print t|he heade|
|00002680| 72 20 6f 66 20 74 68 65 | 20 6d 65 73 73 61 67 65 |r of the| message|
|00002690| 20 61 66 74 65 72 20 74 | 68 65 20 63 75 72 72 65 | after t|he curre|
|000026a0| 6e 74 20 6d 65 73 73 61 | 67 65 0a 61 6e 64 20 69 |nt messa|ge.and i|
|000026b0| 6e 63 72 65 6d 65 6e 74 | 20 74 68 65 20 63 75 72 |ncrement| the cur|
|000026c0| 72 65 6e 74 20 6d 65 73 | 73 61 67 65 20 70 6f 69 |rent mes|sage poi|
|000026d0| 6e 74 65 72 20 74 6f 20 | 74 68 65 20 6e 65 78 74 |nter to |the next|
|000026e0| 20 6d 65 73 73 61 67 65 | 2e 0a 58 25 25 0a 58 0a | message|..X%%.X.|
|000026f0| 58 25 6f 77 6e 5f 68 64 | 72 73 25 0a 48 65 72 65 |X%own_hd|rs%.Here|
|00002700| 20 69 73 20 77 68 65 72 | 65 20 79 6f 75 20 73 65 | is wher|e you se|
|00002710| 74 2c 20 75 6e 73 65 74 | 20 6f 72 20 76 69 65 77 |t, unset| or view|
|00002720| 20 79 6f 75 72 20 6f 77 | 6e 20 6d 65 73 73 61 67 | your ow|n messag|
|00002730| 65 20 68 65 61 64 65 72 | 73 2e 0a 54 68 65 73 65 |e header|s..These|
|00002740| 20 68 65 61 64 65 72 73 | 20 61 72 65 20 69 6e 63 | headers| are inc|
|00002750| 6c 75 64 65 64 20 69 6e | 20 61 6c 6c 20 79 6f 75 |luded in| all you|
|00002760| 72 20 6f 75 74 67 6f 69 | 6e 67 20 6d 61 69 6c 2e |r outgoi|ng mail.|
|00002770| 0a 58 0a 6f 70 74 69 6f | 6e 73 20 66 6f 72 20 6d |.X.optio|ns for m|
|00002780| 79 5f 68 64 72 73 3a 0a | 6d 79 5f 68 64 72 20 20 |y_hdrs:.|my_hdr |
|00002790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027a0| 20 20 20 20 20 20 20 20 | 61 6c 6c 20 68 65 61 64 | |all head|
|000027b0| 65 72 73 0a 6d 79 5f 68 | 64 72 20 68 65 61 64 65 |ers.my_h|dr heade|
|000027c0| 72 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |r | |
|000027d0| 20 20 20 20 76 61 6c 75 | 65 20 61 73 73 6f 63 69 | valu|e associ|
|000027e0| 61 74 65 64 20 77 69 74 | 68 20 68 65 61 64 65 72 |ated wit|h header|
|000027f0| 0a 6d 79 5f 68 64 72 20 | 68 65 61 64 65 72 3a 20 |.my_hdr |header: |
|00002800| 73 74 72 69 6e 67 20 20 | 20 20 20 20 20 20 20 20 |string | |
|00002810| 20 73 65 74 20 68 65 61 | 64 65 72 20 74 6f 20 73 | set hea|der to s|
|00002820| 74 72 69 6e 67 0a 75 6e | 5f 68 64 72 20 68 65 61 |tring.un|_hdr hea|
|00002830| 64 65 72 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |der | |
|00002840| 20 20 20 20 20 20 75 6e | 73 65 74 20 68 65 61 64 | un|set head|
|00002850| 65 72 0a 58 25 25 0a 58 | 0a 58 25 66 6b 65 79 5f |er.X%%.X|.X%fkey_|
|00002860| 68 65 6c 70 25 0a 66 6b | 65 79 27 73 20 61 72 65 |help%.fk|ey's are|
|00002870| 20 66 75 6e 63 74 69 6f | 6e 20 6b 65 79 20 73 65 | functio|n key se|
|00002880| 74 74 69 6e 67 73 20 69 | 6e 20 53 75 6e 74 6f 6f |ttings i|n Suntoo|
|00002890| 6c 73 20 28 67 72 61 70 | 68 69 63 73 29 20 6d 6f |ls (grap|hics) mo|
|000028a0| 64 65 0a 57 68 65 6e 20 | 72 75 6e 20 61 73 20 61 |de.When |run as a|
|000028b0| 20 74 6f 6f 6c 20 28 2d | 74 20 6f 6e 20 63 6f 6d | tool (-|t on com|
|000028c0| 6d 61 6e 64 20 6c 69 6e | 65 29 2c 20 63 68 6f 6f |mand lin|e), choo|
|000028d0| 73 65 20 74 68 65 20 4f | 70 74 69 6f 6e 73 20 49 |se the O|ptions I|
|000028e0| 74 65 6d 2c 0a 61 6e 64 | 20 74 68 65 20 66 75 6e |tem,.and| the fun|
|000028f0| 63 74 69 6f 6e 20 6b 65 | 79 20 6d 65 6e 75 20 6f |ction ke|y menu o|
|00002900| 70 74 69 6f 6e 2e 0a 58 | 25 25 0a 58 0a 58 25 66 |ption..X|%%.X.X%f|
|00002910| 75 6e 63 5f 68 65 6c 70 | 25 0a 63 6d 64 27 73 20 |unc_help|%.cmd's |
|00002920| 61 72 65 20 6a 75 73 74 | 20 6c 69 6b 65 20 61 6c |are just| like al|
|00002930| 69 61 73 65 73 20 69 6e | 20 74 68 65 20 63 2d 73 |iases in| the c-s|
|00002940| 68 65 6c 6c 2e 0a 63 6d | 64 20 20 20 20 20 20 20 |hell..cm|d |
|00002950| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 76 69 | | vi|
|00002960| 65 77 20 61 6c 6c 20 63 | 6f 6d 6d 61 6e 64 73 0a |ew all c|ommands.|
|00002970| 63 6d 64 20 60 63 6f 6d | 6d 61 6e 64 27 20 20 20 |cmd `com|mand' |
|00002980| 20 20 20 20 20 20 20 20 | 76 61 6c 75 65 20 61 73 | |value as|
|00002990| 73 6f 63 69 61 74 65 64 | 20 77 69 74 68 20 63 6f |sociated| with co|
|000029a0| 6d 6d 61 6e 64 0a 63 6d | 64 20 60 63 6f 6d 6d 61 |mmand.cm|d `comma|
|000029b0| 6e 64 27 20 22 76 61 6c | 75 65 22 20 20 20 73 65 |nd' "val|ue" se|
|000029c0| 74 20 63 6f 6d 6d 61 6e | 64 20 74 6f 20 76 61 6c |t comman|d to val|
|000029d0| 75 65 0a 75 6e 63 6d 64 | 20 60 63 6f 6d 6d 61 6e |ue.uncmd| `comman|
|000029e0| 64 27 20 20 20 20 20 20 | 20 20 20 75 6e 73 65 74 |d' | unset|
|000029f0| 20 63 6f 6d 6d 61 6e 64 | 0a 58 0a 49 66 20 79 6f | command|.X.If yo|
|00002a00| 75 20 77 61 6e 74 20 74 | 6f 20 72 65 66 65 72 65 |u want t|o refere|
|00002a10| 6e 63 65 20 68 69 73 74 | 6f 72 79 20 63 6f 6d 6d |nce hist|ory comm|
|00002a20| 61 6e 64 73 20 77 69 74 | 68 69 6e 20 61 20 63 6d |ands wit|hin a cm|
|00002a30| 64 2c 0a 65 73 63 61 70 | 65 20 74 68 65 20 21 20 |d,.escap|e the ! |
|00002a40| 77 69 74 68 20 61 20 62 | 61 63 6b 73 6c 61 6e 74 |with a b|ackslant|
|00002a50| 2e 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 3a 0a 58 |. For ex|ample:.X|
|00002a60| 0a 6d 61 69 6c 3e 20 63 | 6d 64 20 72 20 27 72 65 |.mail> c|md r 're|
|00002a70| 70 6c 79 73 65 6e 64 65 | 72 20 5c 21 2a 20 3b 20 |plysende|r \!* ; |
|00002a80| 64 65 6c 65 74 65 20 2d | 74 27 0a 58 0a 77 69 6c |delete -|t'.X.wil|
|00002a90| 6c 20 72 65 70 6c 79 20 | 75 73 69 6e 67 20 77 68 |l reply |using wh|
|00002aa0| 61 74 65 76 65 72 20 61 | 72 67 75 6d 65 6e 74 73 |atever a|rguments|
|00002ab0| 20 79 6f 75 20 77 69 6c | 6c 20 68 61 76 65 20 67 | you wil|l have g|
|00002ac0| 69 76 65 6e 0a 6f 6e 20 | 74 68 65 20 63 6f 6d 6d |iven.on |the comm|
|00002ad0| 61 6e 64 20 6c 69 6e 65 | 20 61 6e 64 20 74 68 65 |and line| and the|
|00002ae0| 6e 20 64 65 6c 65 74 65 | 20 74 68 61 74 20 6d 65 |n delete| that me|
|00002af0| 73 73 61 67 65 20 61 6e | 64 0a 74 68 65 6e 20 70 |ssage an|d.then p|
|00002b00| 72 69 6e 74 20 74 68 65 | 20 6e 65 78 74 20 6d 65 |rint the| next me|
|00002b10| 73 73 61 67 65 20 28 2d | 74 20 61 72 67 75 6d 65 |ssage (-|t argume|
|00002b20| 6e 74 20 74 6f 20 22 64 | 65 6c 65 74 65 22 29 2e |nt to "d|elete").|
|00002b30| 0a 58 25 25 0a 58 0a 58 | 25 68 65 61 64 65 72 73 |.X%%.X.X|%headers|
|00002b40| 25 0a 75 73 61 67 65 3a | 20 68 65 61 64 65 72 73 |%.usage:| headers|
|00002b50| 20 5b 2b 20 7c 20 2d 20 | 7c 20 4e 5d 20 5b 2d 48 | [+ | - || N] [-H|
|00002b60| 3a 63 5d 0a 70 72 69 6e | 74 20 6f 75 74 20 61 20 |:c].prin|t out a |
|00002b70| 73 63 72 65 65 6e 66 75 | 6c 20 6f 66 20 68 65 61 |screenfu|l of hea|
|00002b80| 64 65 72 73 2e 0a 58 2b | 20 20 70 72 69 6e 74 20 |ders..X+| print |
|00002b90| 74 68 65 20 6e 65 78 74 | 20 73 63 72 65 65 6e 66 |the next| screenf|
|00002ba0| 75 6c 2e 0a 58 2d 20 20 | 70 72 69 6e 74 20 74 68 |ul..X- |print th|
|00002bb0| 65 20 70 72 65 76 69 6f | 75 73 20 73 63 72 65 65 |e previo|us scree|
|00002bc0| 6e 66 75 6c 2e 0a 4e 20 | 20 28 77 68 65 72 65 20 |nful..N | (where |
|00002bd0| 4e 20 69 73 20 61 20 6e | 75 6d 62 65 72 29 20 70 |N is a n|umber) p|
|00002be0| 72 69 6e 74 20 61 20 73 | 63 72 65 65 6e 66 75 6c |rint a s|creenful|
|00002bf0| 20 73 74 61 72 74 69 6e | 67 20 61 74 20 4e 2e 0a | startin|g at N..|
|00002c00| 73 65 74 20 73 68 6f 77 | 5f 64 65 6c 65 74 65 64 |set show|_deleted|
|00002c10| 20 74 6f 20 6c 69 73 74 | 20 64 65 6c 65 74 65 64 | to list| deleted|
|00002c20| 20 6d 65 73 73 61 67 65 | 73 2e 0a 63 6d 64 20 68 | message|s..cmd h|
|00002c30| 20 68 65 61 64 65 72 73 | 20 20 20 20 20 20 20 20 | headers| |
|00002c40| 6c 6f 6f 6b 20 6c 69 6b | 65 20 55 43 42 2d 4d 61 |look lik|e UCB-Ma|
|00002c50| 69 6c 0a 63 6d 64 20 48 | 20 48 65 61 64 65 72 73 |il.cmd H| Headers|
|00002c60| 20 20 20 20 20 20 20 20 | 73 68 6f 77 20 64 65 6c | |show del|
|00002c70| 65 74 65 64 20 6d 65 73 | 73 61 67 65 73 20 28 6f |eted mes|sages (o|
|00002c80| 72 20 73 65 74 20 73 68 | 6f 77 5f 64 65 6c 65 74 |r set sh|ow_delet|
|00002c90| 65 64 29 0a 63 6d 64 20 | 7a 20 68 65 61 64 65 72 |ed).cmd |z header|
|00002ca0| 73 20 2b 20 20 20 20 20 | 20 60 7a 27 20 69 73 20 |s + | `z' is |
|00002cb0| 6e 65 78 74 20 73 63 72 | 65 65 6e 66 75 6c 0a 58 |next scr|eenful.X|
|00002cc0| 0a 41 72 67 75 6d 65 6e | 74 73 20 74 6f 20 74 68 |.Argumen|ts to th|
|00002cd0| 65 20 68 65 61 64 65 72 | 73 20 63 6f 6d 6d 61 6e |e header|s comman|
|00002ce0| 64 20 69 6e 63 6c 75 64 | 65 20 2d 48 3a 63 20 77 |d includ|e -H:c w|
|00002cf0| 68 65 72 65 20 60 63 27 | 20 69 73 20 6f 6e 65 20 |here `c'| is one |
|00002d00| 6f 66 0a 58 20 20 20 20 | 6e 20 20 20 20 6a 75 73 |of.X |n jus|
|00002d10| 74 20 70 72 69 6e 74 20 | 6d 65 73 73 61 67 65 73 |t print |messages|
|00002d20| 20 68 65 61 64 65 72 73 | 20 6f 66 20 4e 45 57 20 | headers| of NEW |
|00002d30| 6d 65 73 73 61 67 65 73 | 0a 58 20 20 20 20 64 20 |messages|.X d |
|00002d40| 20 20 20 64 65 6c 65 74 | 65 64 20 6d 65 73 73 61 | delet|ed messa|
|00002d50| 67 65 73 0a 58 20 20 20 | 20 75 20 20 20 20 75 6e |ges.X | u un|
|00002d60| 72 65 61 64 20 6d 65 73 | 73 61 67 65 73 0a 58 20 |read mes|sages.X |
|00002d70| 20 20 20 6f 20 20 20 20 | 6f 6c 64 20 6d 65 73 73 | o |old mess|
|00002d80| 61 67 65 73 0a 58 20 20 | 20 20 72 20 20 20 20 6d |ages.X | r m|
|00002d90| 65 73 73 61 67 65 73 20 | 74 68 61 74 20 68 61 76 |essages |that hav|
|00002da0| 65 20 62 65 65 6e 20 72 | 65 70 6c 69 65 64 20 74 |e been r|eplied t|
|00002db0| 6f 0a 58 20 20 20 20 61 | 20 20 20 20 61 6c 6c 20 |o.X a| all |
|00002dc0| 6d 65 73 73 61 67 65 73 | 20 28 6d 6f 73 74 6c 79 |messages| (mostly|
|00002dd0| 20 66 6f 72 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 | for the| command|
|00002de0| 20 6c 69 6e 65 20 61 72 | 67 75 6d 65 6e 74 20 2d | line ar|gument -|
|00002df0| 48 3a 63 29 0a 58 0a 70 | 69 70 69 6e 67 20 74 6f |H:c).X.p|iping to|
|00002e00| 20 68 65 61 64 65 72 73 | 20 77 69 6c 6c 20 70 72 | headers| will pr|
|00002e10| 69 6e 74 20 74 68 65 20 | 68 65 61 64 65 72 73 20 |int the |headers |
|00002e20| 6f 66 20 74 68 65 20 22 | 6f 75 74 70 75 74 22 20 |of the "|output" |
|00002e30| 6d 65 73 73 61 67 65 73 | 2e 0a 58 25 25 0a 58 0a |messages|..X%%.X.|
|00002e40| 58 25 68 64 72 5f 66 6f | 72 6d 61 74 25 0a 73 65 |X%hdr_fo|rmat%.se|
|00002e50| 74 20 68 64 72 5f 66 6f | 72 6d 61 74 3d 22 73 74 |t hdr_fo|rmat="st|
|00002e60| 72 69 6e 67 22 20 66 6f | 72 20 63 68 61 6e 67 69 |ring" fo|r changi|
|00002e70| 6e 67 20 74 68 65 20 64 | 69 73 70 6c 61 79 20 6f |ng the d|isplay o|
|00002e80| 66 20 6d 65 73 73 61 67 | 65 20 68 65 61 64 65 72 |f messag|e header|
|00002e90| 73 2e 0a 54 68 65 20 73 | 74 72 69 6e 67 20 75 73 |s..The s|tring us|
|00002ea0| 65 73 20 70 72 69 6e 74 | 66 20 73 74 79 6c 65 20 |es print|f style |
|00002eb0| 66 6f 72 6d 61 74 74 69 | 6e 67 20 61 6e 64 20 66 |formatti|ng and f|
|00002ec0| 6f 6c 6c 6f 77 73 20 74 | 68 65 73 65 20 63 6f 6e |ollows t|hese con|
|00002ed0| 76 65 6e 74 69 6f 6e 73 | 3a 0a 58 20 20 20 20 25 |ventions|:.X %|
|00002ee0| 66 20 20 22 66 72 6f 6d | 22 20 66 69 65 6c 64 20 |f "from|" field |
|00002ef0| 28 61 75 74 68 6f 72 29 | 2e 0a 58 20 20 20 20 25 |(author)|..X %|
|00002f00| 61 20 20 74 68 65 20 61 | 64 64 72 65 73 73 20 6f |a the a|ddress o|
|00002f10| 66 20 74 68 65 20 61 75 | 74 68 6f 72 2e 0a 58 20 |f the au|thor..X |
|00002f20| 20 20 20 25 6e 20 20 74 | 68 65 20 6e 61 6d 65 20 | %n t|he name |
|00002f30| 6f 66 20 74 68 65 20 61 | 75 74 68 6f 72 2e 0a 58 |of the a|uthor..X|
|00002f40| 20 20 20 20 25 74 20 20 | 22 74 6f 22 20 66 69 65 | %t |"to" fie|
|00002f50| 6c 64 20 28 72 65 63 69 | 70 69 65 6e 74 73 29 2e |ld (reci|pients).|
|00002f60| 0a 58 20 20 20 20 25 64 | 20 20 64 61 74 65 20 6f |.X %d| date o|
|00002f70| 66 20 74 68 65 20 6d 65 | 73 73 61 67 65 2e 0a 58 |f the me|ssage..X|
|00002f80| 20 20 20 20 25 54 20 20 | 74 68 65 20 74 69 6d 65 | %T |the time|
|00002f90| 20 6f 6e 6c 79 20 6f 66 | 20 74 68 65 20 6d 65 73 | only of| the mes|
|00002fa0| 73 61 67 65 0a 58 20 20 | 20 20 25 4e 20 20 74 68 |sage.X | %N th|
|00002fb0| 65 20 64 61 79 20 6e 75 | 6d 62 65 72 20 6f 66 20 |e day nu|mber of |
|00002fc0| 74 68 65 20 6d 6f 6e 74 | 68 20 6f 66 20 74 68 65 |the mont|h of the|
|00002fd0| 20 6d 65 73 73 61 67 65 | 0a 58 20 20 20 20 25 44 | message|.X %D|
|00002fe0| 20 20 74 68 65 20 64 61 | 79 20 6f 72 20 74 68 65 | the da|y or the|
|00002ff0| 20 77 65 65 6b 20 28 53 | 75 6e 2c 20 4d 6f 6e 2c | week (S|un, Mon,|
|00003000| 20 65 74 63 2e 29 0a 58 | 20 20 20 20 25 4d 20 20 | etc.).X| %M |
|00003010| 74 68 65 20 6d 6f 6e 74 | 68 20 6e 61 6d 65 20 6f |the mont|h name o|
|00003020| 66 20 74 68 65 20 6d 65 | 73 73 61 67 65 0a 58 20 |f the me|ssage.X |
|00003030| 20 20 20 25 59 20 20 74 | 68 65 20 79 65 61 72 20 | %Y t|he year |
|00003040| 6f 66 20 74 68 65 20 6d | 65 73 73 61 67 65 0a 58 |of the m|essage.X|
|00003050| 20 20 20 20 25 73 20 20 | 73 75 62 6a 65 63 74 20 | %s |subject |
|00003060| 6f 66 20 74 68 65 20 6d | 65 73 73 61 67 65 2e 0a |of the m|essage..|
|00003070| 58 20 20 20 20 25 6c 20 | 20 6e 75 6d 62 65 72 20 |X %l | number |
|00003080| 6f 66 20 6c 69 6e 65 73 | 20 69 6e 20 74 68 65 20 |of lines| in the |
|00003090| 6d 65 73 73 61 67 65 2e | 0a 58 20 20 20 20 25 63 |message.|.X %c|
|000030a0| 20 20 6e 75 6d 62 65 72 | 20 6f 66 20 63 68 61 72 | number| of char|
|000030b0| 61 63 74 65 72 73 20 28 | 62 79 74 65 73 29 20 69 |acters (|bytes) i|
|000030c0| 6e 20 74 68 65 20 6d 65 | 73 73 61 67 65 2e 0a 58 |n the me|ssage..X|
|000030d0| 20 20 20 20 5c 6e 20 20 | 61 20 6e 65 77 6c 69 6e | \n |a newlin|
|000030e0| 65 0a 58 20 20 20 20 5c | 74 20 20 61 20 74 61 62 |e.X \|t a tab|
|000030f0| 2e 0a 41 20 66 69 65 6c | 64 20 73 70 65 63 69 66 |..A fiel|d specif|
|00003100| 69 65 72 20 6d 61 79 20 | 62 65 20 75 73 65 64 2e |ier may |be used.|
|00003110| 20 20 54 68 75 73 2c 20 | 25 32 30 66 20 77 69 6c | Thus, |%20f wil|
|00003120| 6c 20 70 72 69 6e 74 20 | 74 68 65 20 66 69 72 73 |l print |the firs|
|00003130| 74 20 32 30 0a 63 68 61 | 72 61 63 74 65 72 73 20 |t 20.cha|racters |
|00003140| 6f 66 20 74 68 65 20 66 | 72 6f 6d 20 6c 69 6e 65 |of the f|rom line|
|00003150| 2e 20 20 4e 6f 20 6d 61 | 74 74 65 72 20 77 68 61 |. No ma|tter wha|
|00003160| 74 20 74 68 65 20 66 6f | 72 6d 61 74 74 69 6e 67 |t the fo|rmatting|
|00003170| 20 73 74 72 69 6e 67 2c | 0a 74 68 65 20 6d 65 73 | string,|.the mes|
|00003180| 73 61 67 65 20 6e 75 6d | 62 65 72 20 66 6f 6c 6c |sage num|ber foll|
|00003190| 6f 77 65 64 20 62 79 20 | 61 20 27 3e 27 20 28 69 |owed by |a '>' (i|
|000031a0| 66 20 63 75 72 72 65 6e | 74 20 6d 65 73 73 61 67 |f curren|t messag|
|000031b0| 65 29 20 69 73 20 70 72 | 69 6e 74 65 64 2e 0a 58 |e) is pr|inted..X|
|000031c0| 25 25 0a 58 0a 58 25 66 | 6f 6c 64 65 72 5f 68 65 |%%.X.X%f|older_he|
|000031d0| 6c 70 25 0a 75 73 61 67 | 65 3a 20 66 6f 6c 64 65 |lp%.usag|e: folde|
|000031e0| 72 20 5b 2d 4e 5d 20 5b | 2d 72 5d 20 5b 21 5d 20 |r [-N] [|-r] [!] |
|000031f0| 5b 20 25 5b 75 73 65 72 | 5d 20 7c 20 23 20 7c 20 |[ %[user|] | # | |
|00003200| 26 20 7c 20 66 69 6c 65 | 20 5d 0a 43 68 61 6e 67 |& | file| ].Chang|
|00003210| 65 20 63 75 72 72 65 6e | 74 20 66 6f 6c 64 65 72 |e curren|t folder|
|00003220| 2e 0a 4e 6f 20 61 72 67 | 75 6d 65 6e 74 73 20 70 |..No arg|uments p|
|00003230| 72 69 6e 74 73 20 63 75 | 72 72 65 6e 74 20 66 6f |rints cu|rrent fo|
|00003240| 6c 64 65 72 2e 0a 58 2d | 4e 3a 20 4e 6f 20 68 65 |lder..X-|N: No he|
|00003250| 61 64 65 72 73 20 61 72 | 65 20 64 69 73 70 6c 61 |aders ar|e displa|
|00003260| 79 65 64 20 75 70 6f 6e | 20 65 6e 74 65 72 69 6e |yed upon| enterin|
|00003270| 67 20 6e 65 77 20 66 6f | 6c 64 65 72 20 28 61 6c |g new fo|lder (al|
|00003280| 73 6f 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 29 |so comma|nd line)|
|00003290| 2e 0a 58 2d 72 3a 20 72 | 65 61 64 20 6f 6e 6c 79 |..X-r: r|ead only|
|000032a0| 20 6d 6f 64 65 20 28 79 | 6f 75 20 77 6f 6e 27 74 | mode (y|ou won't|
|000032b0| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 77 72 69 74 | be able| to writ|
|000032c0| 65 20 63 68 61 6e 67 65 | 73 20 74 6f 20 74 68 69 |e change|s to thi|
|000032d0| 73 20 66 6f 6c 64 65 72 | 29 2e 0a 49 66 20 60 21 |s folder|)..If `!|
|000032e0| 27 20 69 73 20 73 70 65 | 63 69 66 69 65 64 2c 20 |' is spe|cified, |
|000032f0| 63 75 72 72 65 6e 74 20 | 66 6f 6c 64 65 72 20 69 |current |folder i|
|00003300| 73 20 6e 6f 74 20 75 70 | 64 61 74 65 64 2e 0a 58 |s not up|dated..X|
|00003310| 25 5b 75 73 65 72 5d 20 | 66 6f 6c 64 65 72 20 74 |%[user] |folder t|
|00003320| 6f 20 2f 75 73 72 2f 73 | 70 6f 6f 6c 2f 6d 61 69 |o /usr/s|pool/mai|
|00003330| 6c 2f 5b 75 73 65 72 5d | 20 28 79 6f 75 20 64 65 |l/[user]| (you de|
|00003340| 66 61 75 6c 74 29 0a 58 | 23 20 20 66 6f 6c 64 65 |fault).X|# folde|
|00003350| 72 20 61 63 63 65 73 73 | 65 64 20 70 72 65 76 69 |r access|ed previ|
|00003360| 6f 75 73 20 74 6f 20 63 | 75 72 72 65 6e 74 20 66 |ous to c|urrent f|
|00003370| 6f 6c 64 65 72 0a 58 26 | 20 20 22 6d 62 6f 78 22 |older.X&| "mbox"|
|00003380| 20 2d 2d 20 64 65 66 61 | 75 6c 74 20 69 73 20 7e | -- defa|ult is ~|
|00003390| 2f 6d 62 6f 78 3b 20 6f | 72 20 73 65 74 20 6d 62 |/mbox; o|r set mb|
|000033a0| 6f 78 20 3d 20 22 66 69 | 6c 65 22 0a 58 25 25 0a |ox = "fi|le".X%%.|
|000033b0| 58 0a 58 25 70 72 6f 6d | 70 74 25 0a 73 65 74 20 |X.X%prom|pt%.set |
|000033c0| 70 72 6f 6d 70 74 20 3d | 20 22 73 74 72 69 6e 67 |prompt =| "string|
|000033d0| 22 0a 58 22 73 74 72 69 | 6e 67 22 20 69 73 20 66 |".X"stri|ng" is f|
|000033e0| 6f 6c 6c 6f 77 73 20 70 | 72 69 6e 74 66 20 73 74 |ollows p|rintf st|
|000033f0| 79 6c 65 20 66 6f 72 6d | 61 74 74 69 6e 67 20 63 |yle form|atting c|
|00003400| 6f 6e 76 65 6e 74 69 6f | 6e 73 3a 0a 58 20 20 20 |onventio|ns:.X |
|00003410| 20 5c 74 2c 20 5c 6e 20 | 77 69 6c 6c 20 62 65 20 | \t, \n |will be |
|00003420| 72 65 70 6c 61 63 65 64 | 20 62 79 20 61 20 74 61 |replaced| by a ta|
|00003430| 62 20 6f 72 20 6e 65 77 | 6c 69 6e 65 20 72 65 73 |b or new|line res|
|00003440| 70 65 63 74 69 76 65 6c | 79 2e 0a 58 20 20 20 20 |pectivel|y..X |
|00003450| 25 6d 09 20 63 75 72 72 | 65 6e 74 20 6d 65 73 73 |%m. curr|ent mess|
|00003460| 61 67 65 20 6e 75 6d 62 | 65 72 0a 58 20 20 20 20 |age numb|er.X |
|00003470| 25 74 09 20 74 6f 74 61 | 6c 20 6e 75 6d 62 65 72 |%t. tota|l number|
|00003480| 20 6f 66 20 6d 65 73 73 | 61 67 65 73 0a 58 20 20 | of mess|ages.X |
|00003490| 20 20 25 64 09 20 6e 75 | 6d 62 65 72 20 6f 66 20 | %d. nu|mber of |
|000034a0| 64 65 6c 65 74 65 64 20 | 6d 65 73 73 61 67 65 73 |deleted |messages|
|000034b0| 0a 58 20 20 20 20 25 75 | 09 20 6e 75 6d 62 65 72 |.X %u|. number|
|000034c0| 20 6f 66 20 75 6e 72 65 | 61 64 20 6d 65 73 73 61 | of unre|ad messa|
|000034d0| 67 65 73 0a 58 20 20 20 | 20 25 6e 09 20 6e 75 6d |ges.X | %n. num|
|000034e0| 62 65 72 20 6f 66 20 6e | 65 77 20 6d 65 73 73 61 |ber of n|ew messa|
|000034f0| 67 65 73 0a 58 20 20 20 | 20 25 66 09 20 6e 61 6d |ges.X | %f. nam|
|00003500| 65 20 6f 66 20 74 68 65 | 20 63 75 72 72 65 6e 74 |e of the| current|
|00003510| 20 77 6f 72 6b 69 6e 67 | 20 66 6f 6c 64 65 72 0a | working| folder.|
|00003520| 58 20 20 20 20 25 54 09 | 20 63 75 72 72 65 6e 74 |X %T.| current|
|00003530| 20 74 69 6d 65 0a 58 20 | 20 20 20 25 44 09 20 64 | time.X | %D. d|
|00003540| 61 79 20 6f 66 20 74 68 | 65 20 77 65 65 6b 0a 58 |ay of th|e week.X|
|00003550| 20 20 20 20 25 59 09 20 | 79 65 61 72 0a 58 20 20 | %Y. |year.X |
|00003560| 20 20 25 4d 09 20 6d 6f | 6e 74 68 0a 58 20 20 20 | %M. mo|nth.X |
|00003570| 20 25 4e 09 20 6e 75 6d | 62 65 72 20 6f 66 20 74 | %N. num|ber of t|
|00003580| 68 65 20 64 61 79 20 69 | 6e 20 74 68 65 20 6d 6f |he day i|n the mo|
|00003590| 6e 74 68 20 28 64 61 74 | 65 29 0a 58 25 25 0a 58 |nth (dat|e).X%%.X|
|000035a0| 0a 58 25 71 75 69 74 5f | 68 65 6c 70 25 0a 75 73 |.X%quit_|help%.us|
|000035b0| 61 67 65 3a 20 71 75 69 | 74 2f 65 78 69 74 22 2c |age: qui|t/exit",|
|000035c0| 0a 71 75 69 74 20 77 69 | 6c 6c 20 75 70 64 61 74 |.quit wi|ll updat|
|000035d0| 65 20 79 6f 75 72 20 6d | 61 69 6c 62 6f 78 3b 20 |e your m|ailbox; |
|000035e0| 69 66 20 6e 65 77 20 6d | 61 69 6c 20 68 61 73 20 |if new m|ail has |
|000035f0| 63 6f 6d 65 20 69 6e 2c | 20 79 6f 75 20 77 69 6c |come in,| you wil|
|00003600| 6c 20 62 65 0a 74 6f 6c | 64 20 73 6f 20 61 6e 64 |l be.tol|d so and|
|00003610| 20 67 69 76 65 6e 20 61 | 6e 20 6f 70 74 69 6f 6e | given a|n option|
|00003620| 20 77 68 65 74 68 65 72 | 20 74 6f 20 72 65 61 6c | whether| to real|
|00003630| 6c 79 20 71 75 69 74 20 | 6f 72 20 6e 6f 74 2e 0a |ly quit |or not..|
|00003640| 58 22 65 78 69 74 22 20 | 77 69 6c 6c 20 6c 65 61 |X"exit" |will lea|
|00003650| 76 65 20 6d 61 69 6c 20 | 6e 6f 74 20 75 70 64 61 |ve mail |not upda|
|00003660| 74 69 6e 67 20 79 6f 75 | 72 20 6d 61 69 6c 62 6f |ting you|r mailbo|
|00003670| 78 20 6e 6f 72 20 63 68 | 65 63 6b 20 66 6f 72 20 |x nor ch|eck for |
|00003680| 6e 65 77 20 6d 61 69 6c | 2e 0a 58 25 25 0a 58 0a |new mail|..X%%.X.|
|00003690| 58 25 6c 73 25 0a 54 68 | 65 20 6c 73 20 63 6f 6d |X%ls%.Th|e ls com|
|000036a0| 6d 61 6e 64 20 69 73 20 | 65 78 61 63 74 6c 79 20 |mand is |exactly |
|000036b0| 6c 69 6b 65 20 74 68 65 | 20 55 4e 49 58 20 63 6f |like the| UNIX co|
|000036c0| 6d 6d 61 6e 64 2c 20 22 | 6c 73 2e 22 0a 41 6c 6c |mmand, "|ls.".All|
|000036d0| 20 61 72 67 75 6d 65 6e | 74 73 20 61 72 65 20 74 | argumen|ts are t|
|000036e0| 68 65 20 73 61 6d 65 2e | 20 20 54 68 65 20 76 61 |he same.| The va|
|000036f0| 72 69 61 62 6c 65 20 22 | 6c 69 73 74 65 72 22 20 |riable "|lister" |
|00003700| 63 61 6e 0a 62 65 20 73 | 65 74 20 74 6f 20 61 6c |can.be s|et to al|
|00003710| 77 61 79 73 20 64 65 66 | 61 75 6c 74 20 74 6f 20 |ways def|ault to |
|00003720| 74 68 65 20 73 61 6d 65 | 20 61 72 67 75 6d 65 6e |the same| argumen|
|00003730| 74 73 20 61 76 6f 69 64 | 69 6e 67 0a 68 61 76 69 |ts avoid|ing.havi|
|00003740| 6e 67 20 74 6f 20 73 70 | 65 63 69 66 79 20 74 68 |ng to sp|ecify th|
|00003750| 65 6d 20 61 6c 6c 20 74 | 68 65 20 74 69 6d 65 2e |em all t|he time.|
|00003760| 20 20 54 68 65 20 22 66 | 6f 6c 64 65 72 73 22 0a | The "f|olders".|
|00003770| 63 6f 6d 6d 61 6e 64 20 | 69 73 20 6e 6f 74 68 69 |command |is nothi|
|00003780| 6e 67 20 6d 6f 72 65 20 | 74 68 61 6e 20 64 6f 69 |ng more |than doi|
|00003790| 6e 67 20 22 6c 73 20 24 | 66 6f 6c 64 65 72 22 20 |ng "ls $|folder" |
|000037a0| 66 72 6f 6d 0a 74 68 65 | 20 4d 75 73 68 20 70 72 |from.the| Mush pr|
|000037b0| 6f 6d 70 74 2e 0a 58 25 | 25 0a 58 0a 58 25 73 68 |ompt..X%|%.X.X%sh|
|000037c0| 65 6c 6c 25 0a 75 73 61 | 67 65 3a 20 73 68 20 5b |ell%.usa|ge: sh [|
|000037d0| 63 6f 6d 6d 61 6e 64 5d | 0a 49 66 20 61 20 22 63 |command]|.If a "c|
|000037e0| 6f 6d 6d 61 6e 64 22 20 | 69 73 20 67 69 76 65 6e |ommand" |is given|
|000037f0| 2c 20 74 68 61 74 20 55 | 4e 49 58 20 63 6f 6d 6d |, that U|NIX comm|
|00003800| 61 6e 64 20 77 69 6c 6c | 20 62 65 20 65 78 65 63 |and will| be exec|
|00003810| 75 74 65 64 0a 75 6e 64 | 65 72 20 74 68 65 20 42 |uted.und|er the B|
|00003820| 6f 75 72 6e 65 20 73 68 | 65 6c 6c 2e 20 49 66 20 |ourne sh|ell. If |
|00003830| 6e 6f 20 63 6f 6d 6d 61 | 6e 64 20 69 73 20 73 70 |no comma|nd is sp|
|00003840| 65 63 69 66 69 65 64 2c | 20 74 68 65 6e 20 61 6e |ecified,| then an|
|00003850| 0a 69 6e 74 65 72 61 63 | 74 69 76 65 20 73 68 65 |.interac|tive she|
|00003860| 6c 6c 20 77 69 6c 6c 20 | 62 65 20 73 74 61 72 74 |ll will |be start|
|00003870| 65 64 2e 20 54 68 65 20 | 65 6e 76 69 72 6f 6e 6d |ed. The |environm|
|00003880| 65 6e 74 20 76 61 72 69 | 61 62 6c 65 0a 53 48 45 |ent vari|able.SHE|
|00003890| 4c 4c 20 6f 72 20 74 68 | 65 20 6c 6f 63 61 6c 20 |LL or th|e local |
|000038a0| 6d 61 69 6c 20 73 68 65 | 6c 6c 20 76 61 72 69 61 |mail she|ll varia|
|000038b0| 62 6c 65 20 73 68 65 6c | 6c 20 20 64 65 73 63 72 |ble shel|l descr|
|000038c0| 69 62 65 73 20 74 68 65 | 0a 73 68 65 6c 6c 20 74 |ibes the|.shell t|
|000038d0| 6f 20 69 6e 76 6f 6b 65 | 2e 20 20 49 66 20 6e 6f |o invoke|. If no|
|000038e0| 6e 65 20 69 73 20 73 65 | 74 2c 20 74 68 65 6e 20 |ne is se|t, then |
|000038f0| 74 68 65 20 64 65 66 61 | 75 6c 74 20 73 68 65 6c |the defa|ult shel|
|00003900| 6c 20 69 73 0a 64 65 66 | 69 6e 65 64 20 62 79 20 |l is.def|ined by |
|00003910| 74 68 65 20 73 79 73 74 | 65 6d 20 61 64 6d 69 6e |the syst|em admin|
|00003920| 69 73 74 72 61 74 6f 72 | 20 28 63 75 72 72 65 6e |istrator| (curren|
|00003930| 74 6c 79 20 73 65 74 20 | 74 6f 20 63 73 68 29 2e |tly set |to csh).|
|00003940| 0a 58 0a 55 73 65 72 73 | 20 6f 6e 20 73 79 73 74 |.X.Users| on syst|
|00003950| 65 6d 73 20 77 69 74 68 | 20 6a 6f 62 20 63 6f 6e |ems with| job con|
|00003960| 74 72 6f 6c 20 77 69 6c | 6c 20 70 72 6f 62 61 62 |trol wil|l probab|
|00003970| 6c 79 20 68 61 76 65 20 | 6c 69 74 74 6c 65 0a 75 |ly have |little.u|
|00003980| 73 65 20 66 6f 72 20 74 | 68 65 20 73 68 20 63 6f |se for t|he sh co|
|00003990| 6d 6d 61 6e 64 2e 0a 58 | 25 25 0a 58 0a 58 25 73 |mmand..X|%%.X.X%s|
|000039a0| 74 6f 70 25 0a 54 68 65 | 20 73 74 6f 70 20 63 6f |top%.The| stop co|
|000039b0| 6d 6d 61 6e 64 20 73 65 | 6e 64 73 20 61 20 73 74 |mmand se|nds a st|
|000039c0| 6f 70 20 73 69 67 6e 61 | 6c 20 74 6f 20 74 68 65 |op signa|l to the|
|000039d0| 20 6d 61 69 6c 20 73 68 | 65 6c 6c 2e 0a 49 74 20 | mail sh|ell..It |
|000039e0| 69 73 20 65 71 75 69 76 | 61 6c 65 6e 74 20 74 6f |is equiv|alent to|
|000039f0| 20 5e 5a 20 61 73 20 69 | 74 20 77 69 6c 6c 20 73 | ^Z as i|t will s|
|00003a00| 74 6f 70 20 74 68 65 20 | 70 72 6f 63 65 73 73 2e |top the |process.|
|00003a10| 0a 53 69 6e 63 65 20 74 | 68 65 20 73 68 65 6c 6c |.Since t|he shell|
|00003a20| 20 6e 65 76 65 72 20 6e | 65 65 64 73 20 74 6f 20 | never n|eeds to |
|00003a30| 62 65 20 65 78 69 74 65 | 64 2c 20 74 68 65 20 63 |be exite|d, the c|
|00003a40| 6f 6d 6d 61 6e 64 0a 58 | 27 71 27 20 6d 61 79 20 |ommand.X|'q' may |
|00003a50| 62 65 20 61 6c 69 61 73 | 65 64 20 74 6f 20 22 73 |be alias|ed to "s|
|00003a60| 74 6f 70 22 20 61 6e 64 | 20 74 68 65 20 73 68 65 |top" and| the she|
|00003a70| 6c 6c 20 6d 61 79 20 68 | 61 76 65 2c 0a 58 25 20 |ll may h|ave,.X% |
|00003a80| 61 6c 69 61 73 20 27 6d | 61 69 6c 20 20 20 3f 6d |alias 'm|ail ?m|
|00003a90| 75 73 68 27 0a 77 68 69 | 63 68 20 77 69 6c 6c 20 |ush'.whi|ch will |
|00003aa0| 62 72 69 6e 67 20 6d 75 | 73 68 20 69 6e 74 6f 20 |bring mu|sh into |
|00003ab0| 74 68 65 20 66 6f 72 65 | 67 72 6f 75 6e 64 20 72 |the fore|ground r|
|00003ac0| 61 74 68 65 72 20 74 68 | 61 6e 0a 68 61 76 69 6e |ather th|an.havin|
|00003ad0| 67 20 74 6f 20 69 6e 76 | 6f 6b 65 20 61 20 6e 65 |g to inv|oke a ne|
|00003ae0| 77 20 73 68 65 6c 6c 2e | 20 20 4e 65 77 20 6d 61 |w shell.| New ma|
|00003af0| 69 6c 20 77 69 6c 6c 20 | 62 65 20 72 65 61 64 20 |il will |be read |
|00003b00| 0a 69 6e 74 6f 20 74 68 | 65 20 73 68 65 6c 6c 20 |.into th|e shell |
|00003b10| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 61 6e |automati|cally an|
|00003b20| 64 20 6d 75 63 68 20 74 | 69 6d 65 20 61 6e 64 20 |d much t|ime and |
|00003b30| 65 6e 65 72 67 79 20 0a | 69 73 20 73 61 76 65 64 |energy .|is saved|
|00003b40| 2e 0a 58 25 25 0a 58 0a | 58 25 63 75 72 73 65 73 |..X%%.X.|X%curses|
|00003b50| 25 0a 54 68 65 20 63 75 | 72 73 65 73 2d 62 61 73 |%.The cu|rses-bas|
|00003b60| 65 64 20 69 6e 74 65 72 | 66 61 63 65 20 66 6f 72 |ed inter|face for|
|00003b70| 20 4d 75 73 68 20 64 6f | 65 73 20 6e 6f 74 20 72 | Mush do|es not r|
|00003b80| 65 71 75 69 72 65 20 61 | 20 67 72 61 70 68 69 63 |equire a| graphic|
|00003b90| 73 0a 64 69 73 70 6c 61 | 79 2c 20 62 75 74 20 64 |s.displa|y, but d|
|00003ba0| 6f 65 73 20 72 65 71 75 | 69 72 65 73 20 61 20 74 |oes requ|ires a t|
|00003bb0| 65 72 6d 69 6e 61 6c 20 | 77 68 69 63 68 20 63 61 |erminal |which ca|
|00003bc0| 6e 20 68 61 6e 64 6c 65 | 20 75 70 6c 69 6e 65 0a |n handle| upline.|
|00003bd0| 63 75 72 73 6f 72 20 6d | 6f 76 65 6d 65 6e 74 20 |cursor m|ovement |
|00003be0| 63 61 70 61 62 69 6c 69 | 74 69 65 73 2e 20 20 41 |capabili|ties. A|
|00003bf0| 6c 6c 20 63 6f 6d 6d 61 | 6e 64 73 20 61 72 65 20 |ll comma|nds are |
|00003c00| 6f 6e 65 20 6b 65 79 2d | 73 74 72 6f 6b 65 0a 63 |one key-|stroke.c|
|00003c10| 6f 6d 6d 61 6e 64 73 20 | 61 6e 64 20 61 72 65 20 |ommands |and are |
|00003c20| 65 78 65 63 75 74 65 64 | 20 69 6e 73 74 61 6e 74 |executed| instant|
|00003c30| 61 6e 65 6f 75 73 6c 79 | 2e 20 20 41 20 6c 69 73 |aneously|. A lis|
|00003c40| 74 20 6f 66 20 63 75 72 | 73 65 73 0a 63 6f 6d 6d |t of cur|ses.comm|
|00003c50| 61 6e 64 73 20 69 73 20 | 67 69 76 65 6e 20 62 79 |ands is |given by|
|00003c60| 20 75 73 69 6e 67 20 74 | 68 65 20 60 3f 27 20 6b | using t|he `?' k|
|00003c70| 65 79 20 69 6e 20 63 75 | 72 73 65 73 20 6d 6f 64 |ey in cu|rses mod|
|00003c80| 65 2e 0a 58 25 25 0a 58 | 0a 58 25 62 69 6e 64 25 |e..X%%.X|.X%bind%|
|00003c90| 0a 42 69 6e 64 69 6e 67 | 20 69 73 20 64 6f 6e 65 |.Binding| is done|
|00003ca0| 20 66 6f 72 20 74 68 65 | 20 63 75 72 73 65 73 20 | for the| curses |
|00003cb0| 69 6e 74 65 72 66 61 63 | 65 20 6f 6e 6c 79 2e 20 |interfac|e only. |
|00003cc0| 20 49 74 20 61 6c 6c 6f | 77 73 0a 74 68 65 20 75 | It allo|ws.the u|
|00003cd0| 73 65 72 20 74 6f 20 62 | 69 6e 64 20 6b 65 79 73 |ser to b|ind keys|
|00003ce0| 74 72 6f 6b 65 73 20 6f | 72 20 6b 65 79 20 73 65 |trokes o|r key se|
|00003cf0| 71 75 65 6e 63 65 73 20 | 74 6f 20 63 6f 6d 6d 61 |quences |to comma|
|00003d00| 6e 64 73 2e 0a 58 0a 54 | 6f 20 62 69 6e 64 20 6b |nds..X.T|o bind k|
|00003d10| 65 79 73 74 72 6f 6b 65 | 73 20 74 68 61 74 20 61 |eystroke|s that a|
|00003d20| 72 65 20 63 6f 6e 74 72 | 6f 6c 20 63 68 61 72 61 |re contr|ol chara|
|00003d30| 63 74 65 72 73 2c 20 79 | 6f 75 20 6d 75 73 74 20 |cters, y|ou must |
|00003d40| 75 73 65 0a 74 68 65 20 | 6e 6f 74 61 74 69 6f 6e |use.the |notation|
|00003d50| 3a 20 22 5c 43 58 22 20 | 77 68 65 72 65 20 22 58 |: "\CX" |where "X|
|00003d60| 22 20 69 73 20 69 6e 20 | 75 70 70 65 72 2d 63 61 |" is in |upper-ca|
|00003d70| 73 65 20 61 6e 64 20 69 | 74 20 72 65 70 72 65 73 |se and i|t repres|
|00003d80| 65 6e 74 73 0a 74 68 65 | 20 63 6f 6e 74 72 6f 6c |ents.the| control|
|00003d90| 20 6b 65 79 20 79 6f 75 | 20 77 61 6e 74 20 74 6f | key you| want to|
|00003da0| 20 75 73 65 2e 20 22 5c | 43 4e 22 20 77 6f 75 6c | use. "\|CN" woul|
|00003db0| 64 20 62 65 20 63 6f 6e | 74 72 6f 6c 2d 4e 3b 20 |d be con|trol-N; |
|00003dc0| 22 5c 6e 22 0a 69 73 20 | 63 61 72 72 69 61 67 65 |"\n".is |carriage|
|00003dd0| 20 72 65 74 75 72 6e 2e | 20 20 59 6f 75 20 6d 61 | return.| You ma|
|00003de0| 79 20 6e 6f 74 20 62 69 | 6e 64 20 6b 65 79 62 6f |y not bi|nd keybo|
|00003df0| 61 72 64 20 67 65 6e 65 | 72 61 74 65 64 20 73 69 |ard gene|rated si|
|00003e00| 67 6e 61 6c 73 3b 0a 66 | 6f 72 20 6d 6f 73 74 20 |gnals;.f|or most |
|00003e10| 75 73 65 72 73 2c 20 74 | 68 6f 73 65 20 6b 65 79 |users, t|hose key|
|00003e20| 20 73 65 71 75 65 6e 63 | 65 73 20 61 72 65 20 63 | sequenc|es are c|
|00003e30| 6f 6e 74 72 6f 6c 2d 43 | 20 61 6e 64 20 63 6f 6e |ontrol-C| and con|
|00003e40| 74 72 6f 6c 2d 5c 2e 0a | 46 6f 72 20 75 73 65 72 |trol-\..|For user|
|00003e50| 73 20 77 69 74 68 20 6a | 6f 62 20 63 6f 6e 74 72 |s with j|ob contr|
|00003e60| 6f 6c 2c 20 63 6f 6e 74 | 72 6f 6c 2d 5a 20 61 6e |ol, cont|rol-Z an|
|00003e70| 64 20 63 6f 6e 74 72 6f | 6c 2d 59 20 61 72 65 20 |d contro|l-Y are |
|00003e80| 69 67 6e 6f 72 65 64 2e | 0a 54 6f 20 72 65 66 65 |ignored.|.To refe|
|00003e90| 72 65 6e 63 65 20 74 68 | 65 20 65 73 63 61 70 65 |rence th|e escape|
|00003ea0| 20 6b 65 79 2c 20 75 73 | 65 20 74 68 65 20 73 74 | key, us|e the st|
|00003eb0| 72 69 6e 67 2c 20 22 5c | 45 22 2e 0a 58 0a 54 68 |ring, "\|E"..X.Th|
|00003ec0| 65 20 73 70 61 63 65 62 | 61 72 20 6d 61 79 20 6e |e spaceb|ar may n|
|00003ed0| 6f 74 20 62 65 20 62 6f | 75 6e 64 20 73 69 6e 63 |ot be bo|und sinc|
|00003ee0| 65 20 69 74 20 69 73 20 | 74 68 65 20 6f 6e 6c 79 |e it is |the only|
|00003ef0| 20 77 61 79 20 74 6f 20 | 72 65 74 75 72 6e 0a 74 | way to |return.t|
|00003f00| 6f 20 74 68 65 20 6d 61 | 69 6e 20 6c 65 76 65 6c |o the ma|in level|
|00003f10| 20 66 72 6f 6d 20 74 68 | 65 20 22 2e 2e 2e 63 6f | from th|e "...co|
|00003f20| 6e 74 69 6e 75 65 2e 2e | 2e 22 20 70 72 6f 6d 70 |ntinue..|." promp|
|00003f30| 74 2e 0a 58 0a 54 72 79 | 69 6e 67 20 74 6f 20 62 |t..X.Try|ing to b|
|00003f40| 69 6e 64 20 61 20 6b 65 | 79 20 73 65 71 75 65 6e |ind a ke|y sequen|
|00003f50| 63 65 20 77 68 69 63 68 | 20 70 72 65 66 69 78 65 |ce which| prefixe|
|00003f60| 73 20 61 6e 6f 74 68 65 | 72 20 73 65 71 75 65 6e |s anothe|r sequen|
|00003f70| 63 65 0a 69 73 20 61 6e | 20 65 72 72 6f 72 20 61 |ce.is an| error a|
|00003f80| 6e 64 20 74 68 65 20 75 | 73 65 72 20 69 73 20 77 |nd the u|ser is w|
|00003f90| 61 72 6e 65 64 20 74 68 | 61 74 20 74 68 65 20 6c |arned th|at the l|
|00003fa0| 6f 6e 67 65 72 20 62 69 | 6e 64 69 6e 67 20 77 69 |onger bi|nding wi|
|00003fb0| 6c 6c 0a 6e 6f 74 20 77 | 6f 72 6b 2e 0a 58 0a 41 |ll.not w|ork..X.A|
|00003fc0| 73 20 61 6c 77 61 79 73 | 2c 20 2d 3f 20 77 69 6c |s always|, -? wil|
|00003fd0| 6c 20 67 69 76 65 20 68 | 65 6c 70 2e 0a 58 25 25 |l give h|elp..X%%|
|00003fe0| 0a 58 0a 58 25 6d 73 67 | 5f 66 6c 61 67 73 25 0a |.X.X%msg|_flags%.|
|00003ff0| 75 73 61 67 65 3a 20 66 | 6c 61 67 73 20 5b 6d 73 |usage: f|lags [ms|
|00004000| 67 5f 6c 69 73 74 20 5b | 4e 20 4f 20 52 20 44 20 |g_list [|N O R D |
|00004010| 50 20 55 20 52 20 72 5d | 20 5d 0a 54 68 69 73 20 |P U R r]| ].This |
|00004020| 63 6f 6d 6d 61 6e 64 20 | 64 69 73 70 6c 61 79 73 |command |displays|
|00004030| 20 74 68 65 20 73 74 61 | 74 65 20 6f 66 20 6d 65 | the sta|te of me|
|00004040| 73 73 61 67 65 73 20 61 | 73 20 73 65 65 6e 20 62 |ssages a|s seen b|
|00004050| 79 20 74 68 65 20 69 6e | 74 65 72 6e 61 6c 73 0a |y the in|ternals.|
|00004060| 6f 66 20 4d 75 73 68 2e | 20 20 54 68 69 73 20 69 |of Mush.| This i|
|00004070| 73 20 6e 6f 74 20 61 20 | 64 6f 63 75 6d 65 6e 74 |s not a |document|
|00004080| 65 64 20 63 6f 6d 6d 61 | 6e 64 2c 20 73 6f 20 64 |ed comma|nd, so d|
|00004090| 6f 6e 27 74 20 74 65 6c | 6c 20 61 6e 79 6f 6e 65 |on't tel|l anyone|
|000040a0| 2e 0a 49 66 20 61 20 6c | 69 73 74 20 69 73 20 67 |..If a l|ist is g|
|000040b0| 69 76 65 6e 20 28 6f 72 | 20 70 69 70 65 64 29 2c |iven (or| piped),|
|000040c0| 20 69 74 20 77 69 6c 6c | 20 74 65 6c 6c 20 77 68 | it will| tell wh|
|000040d0| 69 63 68 20 62 69 74 73 | 20 6f 66 20 74 68 65 20 |ich bits| of the |
|000040e0| 6d 65 73 73 61 67 65 0a | 61 72 65 20 73 65 74 3a |message.|are set:|
|000040f0| 20 4e 65 77 2c 20 4f 6c | 64 2c 20 52 65 61 64 2c | New, Ol|d, Read,|
|00004100| 20 44 65 6c 65 74 65 64 | 2c 20 50 72 65 73 65 72 | Deleted|, Preser|
|00004110| 76 65 64 2c 20 55 6e 72 | 65 61 64 2c 20 52 65 61 |ved, Unr|ead, Rea|
|00004120| 64 2c 20 61 6e 64 20 72 | 65 70 6c 69 65 64 2e 0a |d, and r|eplied..|
|00004130| 49 66 20 61 6e 79 20 28 | 6f 6e 65 20 6f 72 20 6d |If any (|one or m|
|00004140| 6f 72 65 29 20 6f 66 20 | 74 68 65 20 6f 70 74 69 |ore) of |the opti|
|00004150| 6f 6e 61 6c 20 62 69 74 | 73 20 61 72 65 20 67 69 |onal bit|s are gi|
|00004160| 76 65 6e 2c 20 74 68 65 | 6e 20 69 74 20 77 69 6c |ven, the|n it wil|
|00004170| 6c 20 73 65 74 0a 74 68 | 65 20 61 70 70 72 6f 70 |l set.th|e approp|
|00004180| 72 69 61 74 65 20 62 69 | 74 20 69 6e 20 74 68 65 |riate bi|t in the|
|00004190| 20 6c 69 73 74 20 67 69 | 76 65 6e 2e 20 20 41 73 | list gi|ven. As|
|000041a0| 20 75 73 75 61 6c 2c 20 | 69 66 20 6e 6f 20 6c 69 | usual, |if no li|
|000041b0| 73 74 20 69 73 20 67 69 | 76 65 6e 2c 0a 74 68 65 |st is gi|ven,.the|
|000041c0| 6e 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 6d 65 |n the cu|rrent me|
|000041d0| 73 73 61 67 65 20 69 73 | 20 75 73 65 64 20 28 6f |ssage is| used (o|
|000041e0| 72 20 73 65 74 20 62 69 | 74 73 20 6f 6e 20 61 20 |r set bi|ts on a |
|000041f0| 70 69 70 65 29 2e 0a 58 | 25 25 0a 58 0a 58 25 73 |pipe)..X|%%.X.X%s|
|00004200| 65 74 65 6e 76 25 0a 75 | 73 61 67 65 3a 20 73 65 |etenv%.u|sage: se|
|00004210| 74 65 6e 76 20 56 41 52 | 49 41 42 4c 45 20 5b 76 |tenv VAR|IABLE [v|
|00004220| 61 6c 75 65 5d 0a 58 0a | 56 61 72 69 61 62 6c 65 |alue].X.|Variable|
|00004230| 20 6e 61 6d 65 73 20 6d | 61 79 20 62 65 20 61 6e | names m|ay be an|
|00004240| 79 20 73 74 72 69 6e 67 | 2c 20 62 75 74 20 74 72 |y string|, but tr|
|00004250| 61 64 69 74 69 6f 6e 61 | 6c 6c 79 20 65 6e 76 69 |aditiona|lly envi|
|00004260| 72 6f 6e 6d 65 6e 74 20 | 76 61 72 69 61 62 6c 65 |ronment |variable|
|00004270| 73 0a 61 72 65 20 61 6c | 6c 20 75 70 70 65 72 20 |s.are al|l upper |
|00004280| 63 61 73 65 2e 20 20 49 | 66 20 6e 6f 20 22 76 61 |case. I|f no "va|
|00004290| 6c 75 65 22 20 69 73 20 | 73 70 65 63 69 66 69 65 |lue" is |specifie|
|000042a0| 64 2c 20 74 68 65 6e 20 | 74 68 65 20 76 61 72 69 |d, then |the vari|
|000042b0| 61 62 6c 65 20 6e 61 6d | 65 0a 77 69 6c 6c 20 62 |able nam|e.will b|
|000042c0| 65 20 73 65 74 20 74 6f | 20 61 6e 20 65 6d 70 74 |e set to| an empt|
|000042d0| 79 20 73 74 72 69 6e 67 | 2e 20 20 49 66 20 74 68 |y string|. If th|
|000042e0| 65 20 76 61 6c 75 65 20 | 63 6f 6e 74 61 69 6e 73 |e value |contains|
|000042f0| 20 73 70 61 63 65 73 2c | 20 79 6f 75 20 73 68 6f | spaces,| you sho|
|00004300| 75 6c 64 0a 65 6e 63 6c | 6f 73 65 20 74 68 65 20 |uld.encl|ose the |
|00004310| 73 74 72 69 6e 67 20 69 | 6e 20 71 75 6f 74 61 74 |string i|n quotat|
|00004320| 69 6f 6e 20 6d 61 72 6b | 73 2e 20 20 55 73 65 20 |ion mark|s. Use |
|00004330| 70 72 69 6e 74 65 6e 76 | 20 74 6f 20 70 72 69 6e |printenv| to prin|
|00004340| 74 20 61 20 6c 69 73 74 | 20 6f 66 0a 61 6c 6c 20 |t a list| of.all |
|00004350| 79 6f 75 72 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |your env|ironment|
|00004360| 20 76 61 72 69 61 62 6c | 65 73 2e 0a 58 25 25 0a | variabl|es..X%%.|
|00004370| 58 0a 58 25 75 6e 73 65 | 74 65 6e 76 25 0a 75 73 |X.X%unse|tenv%.us|
|00004380| 61 67 65 3a 20 75 6e 73 | 65 74 65 6e 76 20 56 41 |age: uns|etenv VA|
|00004390| 52 49 41 42 4c 45 0a 58 | 0a 59 6f 75 20 6d 75 73 |RIABLE.X|.You mus|
|000043a0| 74 20 73 70 65 63 69 66 | 79 20 6f 6e 65 20 61 6e |t specif|y one an|
|000043b0| 64 20 6f 6e 6c 79 20 6f | 6e 65 20 76 61 72 69 61 |d only o|ne varia|
|000043c0| 62 6c 65 20 74 6f 20 75 | 6e 73 65 74 20 69 6e 20 |ble to u|nset in |
|000043d0| 79 6f 75 72 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |your env|ironment|
|000043e0| 0a 76 61 72 69 61 62 6c | 65 20 73 65 74 74 69 6e |.variabl|e settin|
|000043f0| 67 73 2e 20 20 55 73 65 | 20 70 72 69 6e 74 65 6e |gs. Use| printen|
|00004400| 76 20 74 6f 20 70 72 69 | 6e 74 20 61 20 6c 69 73 |v to pri|nt a lis|
|00004410| 74 20 6f 66 20 61 6c 6c | 20 79 6f 75 72 20 65 6e |t of all| your en|
|00004420| 76 69 72 6f 6e 6d 65 6e | 74 0a 76 61 72 69 61 62 |vironmen|t.variab|
|00004430| 6c 65 73 2e 0a 58 25 25 | 0a 45 4e 44 5f 4f 46 5f |les..X%%|.END_OF_|
|00004440| 46 49 4c 45 0a 69 66 20 | 74 65 73 74 20 31 36 34 |FILE.if |test 164|
|00004450| 33 30 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |30 -ne `|wc -c <'|
|00004460| 63 6d 64 5f 68 65 6c 70 | 27 60 3b 20 74 68 65 6e |cmd_help|'`; then|
|00004470| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00004480| 5c 22 27 63 6d 64 5f 68 | 65 6c 70 27 5c 22 20 75 |\"'cmd_h|elp'\" u|
|00004490| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|000044a0| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|000044b0| 64 20 6f 66 20 27 63 6d | 64 5f 68 65 6c 70 27 0a |d of 'cm|d_help'.|
|000044c0| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 66 |fi.if te|st -f 'f|
|000044d0| 6b 65 79 73 2e 63 27 20 | 2d 61 20 22 24 7b 31 7d |keys.c' |-a "${1}|
|000044e0| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|000044f0| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00004500| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00004510| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00004520| 27 66 6b 65 79 73 2e 63 | 27 5c 22 0a 65 6c 73 65 |'fkeys.c|'\".else|
|00004530| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|00004540| 61 63 74 69 6e 67 20 5c | 22 27 66 6b 65 79 73 2e |acting \|"'fkeys.|
|00004550| 63 27 5c 22 20 5c 28 31 | 33 38 33 31 20 63 68 61 |c'\" \(1|3831 cha|
|00004560| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00004570| 2f 5e 58 2f 2f 22 20 3e | 27 66 6b 65 79 73 2e 63 |/^X//" >|'fkeys.c|
|00004580| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|00004590| 27 0a 58 2f 2a 20 40 28 | 23 29 66 6b 65 79 73 2e |'.X/* @(|#)fkeys.|
|000045a0| 63 09 09 28 63 29 20 63 | 6f 70 79 72 69 67 68 74 |c..(c) c|opyright|
|000045b0| 20 31 30 2f 31 38 2f 38 | 36 20 28 44 61 6e 20 48 | 10/18/8|6 (Dan H|
|000045c0| 65 6c 6c 65 72 29 20 2a | 2f 0a 58 0a 58 23 69 6e |eller) *|/.X.X#in|
|000045d0| 63 6c 75 64 65 20 22 6d | 75 73 68 2e 68 22 0a 58 |clude "m|ush.h".X|
|000045e0| 23 64 65 66 69 6e 65 20 | 64 72 61 77 28 78 31 2c |#define |draw(x1,|
|000045f0| 79 31 2c 78 32 2c 79 32 | 2c 4f 50 29 20 70 77 5f |y1,x2,y2|,OP) pw_|
|00004600| 76 65 63 74 6f 72 28 6d | 73 67 5f 77 69 6e 2c 20 |vector(m|sg_win, |
|00004610| 78 31 2c 79 31 2c 78 32 | 2c 79 32 2c 4f 50 2c 31 |x1,y1,x2|,y2,OP,1|
|00004620| 29 0a 58 23 64 65 66 69 | 6e 65 20 62 6f 78 28 78 |).X#defi|ne box(x|
|00004630| 31 2c 79 31 2c 78 32 2c | 79 32 2c 4f 50 29 20 20 |1,y1,x2,|y2,OP) |
|00004640| 5c 0a 58 09 64 72 61 77 | 28 78 31 2c 79 31 2c 20 |\.X.draw|(x1,y1, |
|00004650| 78 31 2c 79 32 2c 4f 50 | 29 2c 20 64 72 61 77 28 |x1,y2,OP|), draw(|
|00004660| 78 31 2c 79 32 2c 20 78 | 32 2c 79 32 2c 4f 50 29 |x1,y2, x|2,y2,OP)|
|00004670| 2c 20 5c 0a 58 20 20 20 | 20 20 20 20 20 64 72 61 |, \.X | dra|
|00004680| 77 28 78 32 2c 79 32 2c | 20 78 32 2c 79 31 2c 4f |w(x2,y2,| x2,y1,O|
|00004690| 50 29 2c 20 64 72 61 77 | 28 78 32 2c 79 31 2c 20 |P), draw|(x2,y1, |
|000046a0| 78 31 2c 79 31 2c 4f 50 | 29 0a 58 0a 73 74 72 75 |x1,y1,OP|).X.stru|
|000046b0| 63 74 20 63 6d 64 20 66 | 6b 65 79 5f 63 6d 64 73 |ct cmd f|key_cmds|
|000046c0| 5b 5d 20 3d 20 7b 0a 58 | 20 20 20 20 7b 20 22 74 |[] = {.X| { "t|
|000046d0| 6f 70 22 2c 20 66 6b 65 | 79 5f 63 6d 64 20 7d 2c |op", fke|y_cmd },|
|000046e0| 20 7b 20 22 63 6c 6f 73 | 65 22 2c 20 66 6b 65 79 | { "clos|e", fkey|
|000046f0| 5f 63 6d 64 20 7d 2c 20 | 7b 20 22 62 6f 74 74 6f |_cmd }, |{ "botto|
|00004700| 6d 22 2c 20 66 6b 65 79 | 5f 63 6d 64 20 7d 2c 0a |m", fkey|_cmd },.|
|00004710| 58 20 20 20 20 7b 20 22 | 6d 6f 76 65 22 2c 20 66 |X { "|move", f|
|00004720| 6b 65 79 5f 63 6d 64 20 | 7d 2c 20 7b 20 22 73 74 |key_cmd |}, { "st|
|00004730| 72 65 74 63 68 22 2c 20 | 66 6b 65 79 5f 63 6d 64 |retch", |fkey_cmd|
|00004740| 20 7d 2c 20 7b 20 22 72 | 65 70 61 69 6e 74 22 2c | }, { "r|epaint",|
|00004750| 20 66 6b 65 79 5f 63 6d | 64 20 7d 2c 0a 58 20 20 | fkey_cm|d },.X |
|00004760| 20 20 7b 20 22 73 65 74 | 74 69 6e 67 73 22 2c 20 | { "set|tings", |
|00004770| 66 6b 65 79 5f 73 65 74 | 74 69 6e 67 73 20 7d 2c |fkey_set|tings },|
|00004780| 20 7b 20 4e 55 4c 4c 2c | 20 71 75 69 74 20 7d 0a | { NULL,| quit }.|
|00004790| 58 7d 3b 0a 58 0a 58 23 | 64 65 66 69 6e 65 20 4c |X};.X.X#|define L|
|000047a0| 28 6e 29 09 09 4b 45 59 | 5f 4c 45 46 54 46 49 52 |(n)..KEY|_LEFTFIR|
|000047b0| 53 54 2b 28 6e 29 2d 31 | 0a 58 23 64 65 66 69 6e |ST+(n)-1|.X#defin|
|000047c0| 65 20 52 28 6e 29 09 09 | 4b 45 59 5f 52 49 47 48 |e R(n)..|KEY_RIGH|
|000047d0| 54 46 49 52 53 54 2b 28 | 6e 29 2d 31 0a 58 23 64 |TFIRST+(|n)-1.X#d|
|000047e0| 65 66 69 6e 65 20 46 28 | 6e 29 09 09 4b 45 59 5f |efine F(|n)..KEY_|
|000047f0| 54 4f 50 46 49 52 53 54 | 2b 28 6e 29 2d 31 0a 58 |TOPFIRST|+(n)-1.X|
|00004800| 23 64 65 66 69 6e 65 20 | 42 52 45 41 4b 5f 4b 45 |#define |BREAK_KE|
|00004810| 59 09 4b 45 59 5f 54 4f | 50 4c 41 53 54 0a 58 0a |Y.KEY_TO|PLAST.X.|
|00004820| 63 68 61 72 20 2a 6c 65 | 66 74 6b 65 79 5f 64 65 |char *le|ftkey_de|
|00004830| 66 61 75 6c 74 5f 73 65 | 74 74 69 6e 67 73 5b 5d |fault_se|ttings[]|
|00004840| 20 3d 20 7b 0a 58 20 20 | 20 20 22 4c 65 66 74 20 | = {.X | "Left |
|00004850| 46 75 6e 63 74 69 6f 6e | 20 4b 65 79 20 53 65 74 |Function| Key Set|
|00004860| 74 69 6e 67 73 22 2c 0a | 58 20 20 20 20 22 55 6e |tings",.|X "Un|
|00004870| 75 73 65 64 22 2c 09 09 | 2f 2a 20 4c 31 20 20 2a |used",..|/* L1 *|
|00004880| 2f 20 20 20 20 22 6e 65 | 78 74 22 2c 20 20 20 20 |/ "ne|xt", |
|00004890| 20 20 09 2f 2a 20 4c 32 | 20 20 2a 2f 0a 58 20 20 | ./* L2| */.X |
|000048a0| 20 20 22 75 6e 64 65 6c | 65 74 65 22 2c 09 20 09 | "undel|ete",. .|
|000048b0| 2f 2a 20 4c 33 20 20 2a | 2f 20 20 20 20 22 64 65 |/* L3 *|/ "de|
|000048c0| 6c 65 74 65 22 2c 20 09 | 09 2f 2a 20 4c 34 20 20 |lete", .|./* L4 |
|000048d0| 2a 2f 0a 58 20 20 20 20 | 22 72 65 70 6c 79 61 6c |*/.X |"replyal|
|000048e0| 6c 22 2c 20 20 09 2f 2a | 20 4c 35 20 20 2a 2f 20 |l", ./*| L5 */ |
|000048f0| 20 20 20 22 72 65 70 6c | 79 73 65 6e 64 65 72 22 | "repl|ysender"|
|00004900| 2c 20 20 20 09 2f 2a 20 | 4c 36 20 20 2a 2f 0a 58 |, ./* |L6 */.X|
|00004910| 20 20 20 20 22 6d 61 69 | 6c 22 2c 09 09 2f 2a 20 | "mai|l",../* |
|00004920| 4c 37 20 20 2a 2f 20 20 | 20 20 22 55 6e 73 65 74 |L7 */ | "Unset|
|00004930| 22 2c 09 09 2f 2a 20 4c | 38 20 20 2a 2f 0a 58 20 |",../* L|8 */.X |
|00004940| 20 20 20 22 6c 70 72 22 | 2c 20 20 09 09 2f 2a 20 | "lpr"|, ../* |
|00004950| 4c 39 20 20 2a 2f 20 20 | 20 20 22 73 65 74 74 69 |L9 */ | "setti|
|00004960| 6e 67 73 20 4c 22 2c 20 | 20 20 20 20 20 2f 2a 20 |ngs L", | /* |
|00004970| 4c 31 30 20 2a 2f 0a 58 | 20 20 20 20 30 0a 58 7d |L10 */.X| 0.X}|
|00004980| 3b 0a 58 0a 63 68 61 72 | 20 2a 74 6f 70 6b 65 79 |;.X.char| *topkey|
|00004990| 5f 64 65 66 61 75 6c 74 | 5f 73 65 74 74 69 6e 67 |_default|_setting|
|000049a0| 73 5b 5d 20 3d 20 7b 0a | 58 20 20 20 20 22 54 6f |s[] = {.|X "To|
|000049b0| 70 20 46 75 6e 63 74 69 | 6f 6e 20 4b 65 79 20 53 |p Functi|on Key S|
|000049c0| 65 74 74 69 6e 67 73 22 | 2c 0a 58 20 20 20 20 22 |ettings"|,.X "|
|000049d0| 74 6f 70 22 2c 09 09 2f | 2a 20 54 31 20 20 2a 2f |top",../|* T1 */|
|000049e0| 20 20 20 20 20 22 63 6c | 6f 73 65 22 2c 09 20 20 | "cl|ose",. |
|000049f0| 20 20 09 2f 2a 20 54 32 | 20 20 2a 2f 0a 58 20 20 | ./* T2| */.X |
|00004a00| 20 20 22 6d 6f 76 65 22 | 2c 09 09 2f 2a 20 54 33 | "move"|,../* T3|
|00004a10| 20 20 2a 2f 20 20 20 20 | 20 22 73 74 72 65 74 63 | */ | "stretc|
|00004a20| 68 22 2c 20 09 2f 2a 20 | 54 34 20 20 2a 2f 0a 58 |h", ./* |T4 */.X|
|00004a30| 20 20 20 20 22 62 6f 74 | 74 6f 6d 22 2c 09 09 2f | "bot|tom",../|
|00004a40| 2a 20 54 35 20 20 2a 2f | 20 20 20 20 20 22 72 65 |* T5 */| "re|
|00004a50| 70 61 69 6e 74 22 2c 20 | 20 20 09 2f 2a 20 54 36 |paint", | ./* T6|
|00004a60| 20 20 2a 2f 0a 58 20 20 | 20 20 22 55 6e 73 65 74 | */.X | "Unset|
|00004a70| 22 2c 09 09 2f 2a 20 54 | 37 20 20 2a 2f 20 20 20 |",../* T|7 */ |
|00004a80| 20 20 22 55 6e 73 65 74 | 22 2c 09 09 2f 2a 20 54 | "Unset|",../* T|
|00004a90| 38 20 20 2a 2f 0a 58 20 | 20 20 20 22 73 65 74 74 |8 */.X | "sett|
|00004aa0| 69 6e 67 73 20 46 22 2c | 20 09 2f 2a 20 54 39 20 |ings F",| ./* T9 |
|00004ab0| 20 2a 2f 0a 58 20 20 20 | 20 30 0a 58 7d 3b 0a 58 | */.X | 0.X};.X|
|00004ac0| 0a 63 68 61 72 20 2a 72 | 69 67 68 74 6b 65 79 5f |.char *r|ightkey_|
|00004ad0| 64 65 66 61 75 6c 74 5f | 73 65 74 74 69 6e 67 73 |default_|settings|
|00004ae0| 5b 5d 20 3d 20 7b 0a 58 | 20 20 20 20 22 52 69 67 |[] = {.X| "Rig|
|00004af0| 68 74 20 46 75 6e 63 74 | 69 6f 6e 20 4b 65 79 20 |ht Funct|ion Key |
|00004b00| 53 65 74 74 69 6e 67 73 | 22 2c 0a 58 20 20 20 20 |Settings|",.X |
|00004b10| 22 55 6e 73 65 74 22 2c | 09 09 2f 2a 20 52 31 20 |"Unset",|../* R1 |
|00004b20| 20 2a 2f 20 20 20 20 20 | 22 55 6e 73 65 74 22 2c | */ |"Unset",|
|00004b30| 09 09 20 2f 2a 20 52 32 | 20 20 2a 2f 0a 58 20 20 |.. /* R2| */.X |
|00004b40| 20 20 22 55 6e 73 65 74 | 22 2c 09 09 2f 2a 20 52 | "Unset|",../* R|
|00004b50| 33 20 20 2a 2f 20 20 20 | 20 20 22 55 6e 73 65 74 |3 */ | "Unset|
|00004b60| 22 2c 09 09 20 2f 2a 20 | 52 34 20 20 2a 2f 0a 58 |",.. /* |R4 */.X|
|00004b70| 20 20 20 20 22 55 6e 73 | 65 74 22 2c 09 09 2f 2a | "Uns|et",../*|
|00004b80| 20 52 35 20 20 2a 2f 20 | 20 20 20 20 22 55 6e 73 | R5 */ | "Uns|
|00004b90| 65 74 22 2c 09 09 20 2f | 2a 20 52 36 20 20 2a 2f |et",.. /|* R6 */|
|00004ba0| 0a 58 20 20 20 20 22 55 | 6e 73 65 74 22 2c 09 09 |.X "U|nset",..|
|00004bb0| 2f 2a 20 52 37 20 20 2a | 2f 20 20 20 20 20 22 55 |/* R7 *|/ "U|
|00004bc0| 6e 73 65 74 22 2c 09 09 | 20 2f 2a 20 52 38 20 20 |nset",..| /* R8 |
|00004bd0| 2a 2f 0a 58 20 20 20 20 | 22 55 6e 73 65 74 22 2c |*/.X |"Unset",|
|00004be0| 09 09 2f 2a 20 52 39 20 | 20 2a 2f 20 20 20 20 20 |../* R9 | */ |
|00004bf0| 22 55 6e 73 65 74 22 2c | 09 09 20 2f 2a 20 52 31 |"Unset",|.. /* R1|
|00004c00| 30 20 2a 2f 0a 58 20 20 | 20 20 22 55 6e 73 65 74 |0 */.X | "Unset|
|00004c10| 22 2c 09 09 2f 2a 20 52 | 31 31 20 2a 2f 20 20 20 |",../* R|11 */ |
|00004c20| 20 20 22 55 6e 73 65 74 | 22 2c 09 09 20 2f 2a 20 | "Unset|",.. /* |
|00004c30| 52 31 32 20 2a 2f 0a 58 | 20 20 20 20 22 55 6e 73 |R12 */.X| "Uns|
|00004c40| 65 74 22 2c 09 09 2f 2a | 20 52 31 33 20 2a 2f 20 |et",../*| R13 */ |
|00004c50| 20 20 20 20 22 55 6e 73 | 65 74 22 2c 09 09 20 2f | "Uns|et",.. /|
|00004c60| 2a 20 52 31 34 20 2a 2f | 0a 58 20 20 20 20 22 73 |* R14 */|.X "s|
|00004c70| 65 74 74 69 6e 67 73 20 | 52 22 2c 20 20 20 20 20 |ettings |R", |
|00004c80| 20 20 2f 2a 20 52 31 35 | 20 2a 2f 0a 58 20 20 20 | /* R15| */.X |
|00004c90| 20 30 0a 58 7d 3b 0a 58 | 0a 58 2f 2a 0a 58 20 2a | 0.X};.X|.X/*.X *|
|00004ca0| 20 45 78 65 63 75 74 65 | 20 63 6f 6d 6d 61 6e 64 | Execute| command|
|00004cb0| 73 20 64 65 66 69 6e 65 | 64 20 62 79 20 61 20 66 |s define|d by a f|
|00004cc0| 75 6e 63 74 69 6f 6e 20 | 6b 65 79 2e 0a 58 20 2a |unction |key..X *|
|00004cd0| 20 4c 65 66 74 20 6b 65 | 79 73 3a 0a 58 20 2a 20 | Left ke|ys:.X * |
|00004ce0| 4c 31 20 3d 20 28 6e 75 | 6c 6c 29 20 20 63 61 6e |L1 = (nu|ll) can|
|00004cf0| 27 74 20 62 65 20 73 65 | 74 0a 58 20 2a 20 4c 32 |'t be se|t.X * L2|
|00004d00| 20 2e 2e 2e 20 4c 31 30 | 0a 58 20 2a 20 54 6f 70 | ... L10|.X * Top|
|00004d10| 20 66 75 6e 63 74 69 6f | 6e 20 6b 65 79 73 0a 58 | functio|n keys.X|
|00004d20| 20 2a 20 46 31 20 2e 2e | 2e 20 46 39 2c 20 42 52 | * F1 ..|. F9, BR|
|00004d30| 45 41 4b 2f 62 61 63 6b | 73 70 61 63 65 20 28 6b |EAK/back|space (k|
|00004d40| 65 79 20 6e 6f 74 20 64 | 65 66 69 6e 61 62 6c 65 |ey not d|efinable|
|00004d50| 29 0a 58 20 2a 20 52 69 | 67 68 74 20 66 75 6e 63 |).X * Ri|ght func|
|00004d60| 74 69 6f 6e 20 6b 65 79 | 73 0a 58 20 2a 20 52 31 |tion key|s.X * R1|
|00004d70| 20 2e 2e 2e 20 52 31 35 | 0a 58 20 2a 20 55 73 75 | ... R15|.X * Usu|
|00004d80| 61 6c 6c 79 2c 20 74 68 | 65 20 6c 61 73 74 20 46 |ally, th|e last F|
|00004d90| 75 6e 63 74 69 6f 6e 20 | 6b 65 79 20 64 69 73 70 |unction |key disp|
|00004da0| 6c 61 79 73 20 74 68 65 | 20 6f 74 68 65 72 73 27 |lays the| others'|
|00004db0| 20 73 65 74 74 69 6e 67 | 73 2e 0a 58 20 2a 2f 0a | setting|s..X */.|
|00004dc0| 66 6b 65 79 28 6b 65 79 | 29 0a 72 65 67 69 73 74 |fkey(key|).regist|
|00004dd0| 65 72 20 63 68 61 72 20 | 2a 6b 65 79 3b 0a 58 7b |er char |*key;.X{|
|00004de0| 0a 58 20 20 20 20 72 65 | 67 69 73 74 65 72 20 63 |.X re|gister c|
|00004df0| 68 61 72 20 2a 2a 61 72 | 67 76 2c 20 2a 70 3b 0a |har **ar|gv, *p;.|
|00004e00| 58 20 20 20 20 63 68 61 | 72 20 62 75 66 5b 32 35 |X cha|r buf[25|
|00004e10| 36 5d 3b 0a 58 20 20 20 | 20 69 6e 74 20 6e 3b 0a |6];.X | int n;.|
|00004e20| 58 0a 58 20 20 20 20 2f | 2a 20 75 73 65 72 20 64 |X.X /|* user d|
|00004e30| 65 66 69 6e 65 64 20 68 | 65 72 65 2e 2e 2e 20 20 |efined h|ere... |
|00004e40| 20 20 20 20 20 20 2e 2e | 2e 20 64 65 66 61 75 6c | ..|. defaul|
|00004e50| 74 20 73 65 74 74 69 6e | 67 73 20 68 65 72 65 20 |t settin|gs here |
|00004e60| 2a 2f 0a 58 20 20 20 20 | 69 66 20 28 21 73 74 72 |*/.X |if (!str|
|00004e70| 6e 63 6d 70 28 28 70 20 | 3d 20 6b 65 79 5f 73 65 |ncmp((p |= key_se|
|00004e80| 74 5f 74 6f 28 6b 65 79 | 29 29 2c 20 22 55 6e 22 |t_to(key|)), "Un"|
|00004e90| 2c 20 32 29 29 20 7b 0a | 58 09 70 72 69 6e 74 28 |, 2)) {.|X.print(|
|00004ea0| 22 46 75 6e 63 69 74 6f | 6e 20 6b 65 79 3a 20 25 |"Funcito|n key: %|
|00004eb0| 73 20 20 25 73 22 2c 20 | 6b 65 79 2c 20 70 29 3b |s %s", |key, p);|
|00004ec0| 0a 58 09 72 65 74 75 72 | 6e 20 30 3b 0a 58 20 20 |.X.retur|n 0;.X |
|00004ed0| 20 20 7d 0a 58 20 20 20 | 20 2f 2a 20 6d 61 6b 65 | }.X | /* make|
|00004ee0| 5f 63 6f 6d 6d 61 6e 64 | 20 77 69 6c 6c 20 73 63 |_command| will sc|
|00004ef0| 72 65 77 20 75 70 20 22 | 70 22 2c 20 73 6f 20 63 |rew up "|p", so c|
|00004f00| 6f 70 79 20 69 74 20 66 | 69 72 73 74 20 2a 2f 0a |opy it f|irst */.|
|00004f10| 58 20 20 20 20 28 76 6f | 69 64 29 20 73 74 72 63 |X (vo|id) strc|
|00004f20| 70 79 28 62 75 66 2c 20 | 70 29 3b 0a 58 20 20 20 |py(buf, |p);.X |
|00004f30| 20 44 65 62 75 67 28 22 | 28 25 73 29 20 5c 22 25 | Debug("|(%s) \"%|
|00004f40| 73 5c 22 3a 20 22 2c 20 | 6b 65 79 2c 20 70 29 2c |s\": ", |key, p),|
|00004f50| 20 74 75 72 6e 6f 6e 28 | 67 6c 6f 62 5f 66 6c 61 | turnon(|glob_fla|
|00004f60| 67 73 2c 20 43 4f 4e 54 | 5f 50 52 4e 54 29 3b 0a |gs, CONT|_PRNT);.|
|00004f70| 58 20 20 20 20 69 66 20 | 28 61 72 67 76 20 3d 20 |X if |(argv = |
|00004f80| 6d 61 6b 65 5f 63 6f 6d | 6d 61 6e 64 28 62 75 66 |make_com|mand(buf|
|00004f90| 2c 20 54 52 50 4c 5f 4e | 55 4c 4c 2c 20 26 6e 29 |, TRPL_N|ULL, &n)|
|00004fa0| 29 0a 58 09 28 76 6f 69 | 64 29 20 64 6f 5f 63 6f |).X.(voi|d) do_co|
|00004fb0| 6d 6d 61 6e 64 28 6e 2c | 20 61 72 67 76 2c 20 6d |mmand(n,| argv, m|
|00004fc0| 73 67 5f 6c 69 73 74 29 | 3b 0a 58 20 20 20 20 72 |sg_list)|;.X r|
|00004fd0| 65 74 75 72 6e 20 2d 31 | 3b 0a 58 7d 0a 58 0a 66 |eturn -1|;.X}.X.f|
|00004fe0| 6b 65 79 5f 73 65 74 74 | 69 6e 67 73 28 69 2c 20 |key_sett|ings(i, |
|00004ff0| 61 72 67 76 29 0a 72 65 | 67 69 73 74 65 72 20 63 |argv).re|gister c|
|00005000| 68 61 72 20 69 3b 0a 72 | 65 67 69 73 74 65 72 20 |har i;.r|egister |
|00005010| 63 68 61 72 20 2a 2a 61 | 72 67 76 3b 0a 58 7b 0a |char **a|rgv;.X{.|
|00005020| 58 20 20 20 20 72 65 67 | 69 73 74 65 72 20 63 68 |X reg|ister ch|
|00005030| 61 72 20 6b 65 79 2c 20 | 2a 70 2c 20 2a 2a 66 6b |ar key, |*p, **fk|
|00005040| 65 79 5f 73 74 72 3b 0a | 58 20 20 20 20 63 68 61 |ey_str;.|X cha|
|00005050| 72 20 62 75 66 5b 32 35 | 36 5d 3b 0a 58 20 20 20 |r buf[25|6];.X |
|00005060| 20 63 68 61 72 20 2a 68 | 65 6c 70 5f 61 72 67 73 | char *h|elp_args|
|00005070| 5b 31 37 5d 3b 0a 58 0a | 58 20 20 20 20 69 66 20 |[17];.X.|X if |
|00005080| 28 21 2a 2b 2b 61 72 67 | 76 29 20 7b 0a 58 09 70 |(!*++arg|v) {.X.p|
|00005090| 72 69 6e 74 28 22 4d 75 | 73 74 20 73 70 65 63 69 |rint("Mu|st speci|
|000050a0| 66 79 20 6f 6e 65 20 6f | 66 20 4c 2c 20 46 20 6f |fy one o|f L, F o|
|000050b0| 72 20 52 20 74 6f 20 69 | 64 65 6e 74 69 66 79 20 |r R to i|dentify |
|000050c0| 61 20 66 75 6e 63 74 69 | 6f 6e 20 6b 65 79 20 73 |a functi|on key s|
|000050d0| 65 74 22 29 3b 0a 58 09 | 72 65 74 75 72 6e 20 2d |et");.X.|return -|
|000050e0| 31 3b 0a 58 20 20 20 20 | 7d 0a 58 20 20 20 20 6b |1;.X |}.X k|
|000050f0| 65 79 20 3d 20 2a 2a 61 | 72 67 76 3b 0a 58 20 20 |ey = **a|rgv;.X |
|00005100| 20 20 73 77 69 74 63 68 | 28 55 70 70 65 72 28 6b | switch|(Upper(k|
|00005110| 65 79 29 29 20 7b 0a 58 | 09 77 68 65 6e 20 27 4c |ey)) {.X|.when 'L|
|00005120| 27 3a 20 66 6b 65 79 5f | 73 74 72 20 3d 20 6c 65 |': fkey_|str = le|
|00005130| 66 74 6b 65 79 5f 64 65 | 66 61 75 6c 74 5f 73 65 |ftkey_de|fault_se|
|00005140| 74 74 69 6e 67 73 3b 0a | 58 09 77 68 65 6e 20 27 |ttings;.|X.when '|
|00005150| 46 27 3a 20 66 6b 65 79 | 5f 73 74 72 20 3d 20 74 |F': fkey|_str = t|
|00005160| 6f 70 6b 65 79 5f 64 65 | 66 61 75 6c 74 5f 73 65 |opkey_de|fault_se|
|00005170| 74 74 69 6e 67 73 3b 0a | 58 09 77 68 65 6e 20 27 |ttings;.|X.when '|
|00005180| 52 27 3a 20 66 6b 65 79 | 5f 73 74 72 20 3d 20 72 |R': fkey|_str = r|
|00005190| 69 67 68 74 6b 65 79 5f | 64 65 66 61 75 6c 74 5f |ightkey_|default_|
|000051a0| 73 65 74 74 69 6e 67 73 | 3b 0a 58 09 6f 74 68 65 |settings|;.X.othe|
|000051b0| 72 77 69 73 65 3a 20 70 | 72 69 6e 74 28 22 49 6e |rwise: p|rint("In|
|000051c0| 76 61 6c 69 64 20 6b 65 | 79 20 73 65 74 3a 20 25 |valid ke|y set: %|
|000051d0| 63 20 28 63 68 6f 6f 73 | 65 20 4c 2c 20 46 20 6f |c (choos|e L, F o|
|000051e0| 72 20 52 29 22 2c 20 6b | 65 79 29 3b 0a 58 09 09 |r R)", k|ey);.X..|
|000051f0| 20 20 20 72 65 74 75 72 | 6e 20 2d 31 3b 0a 58 20 | retur|n -1;.X |
|00005200| 20 20 20 7d 0a 58 20 20 | 20 20 68 65 6c 70 5f 61 | }.X | help_a|
|00005210| 72 67 73 5b 30 5d 20 3d | 20 66 6b 65 79 5f 73 74 |rgs[0] =| fkey_st|
|00005220| 72 5b 30 5d 3b 0a 58 20 | 20 20 20 66 6f 72 20 28 |r[0];.X | for (|
|00005230| 69 20 3d 20 31 3b 20 66 | 6b 65 79 5f 73 74 72 5b |i = 1; f|key_str[|
|00005240| 69 5d 3b 20 69 2b 2b 29 | 20 7b 0a 58 09 70 20 3d |i]; i++)| {.X.p =|
|00005250| 20 6b 65 79 5f 73 65 74 | 5f 74 6f 28 73 70 72 69 | key_set|_to(spri|
|00005260| 6e 74 66 28 62 75 66 2c | 20 22 25 63 25 64 22 2c |ntf(buf,| "%c%d",|
|00005270| 20 6b 65 79 2c 20 69 29 | 29 3b 0a 58 09 68 65 6c | key, i)|);.X.hel|
|00005280| 70 5f 61 72 67 73 5b 69 | 5d 20 3d 20 73 61 76 65 |p_args[i|] = save|
|00005290| 73 74 72 28 73 70 72 69 | 6e 74 66 28 62 75 66 2c |str(spri|ntf(buf,|
|000052a0| 20 22 25 63 25 2d 32 2e | 64 20 20 20 20 20 20 20 | "%c%-2.|d |
|000052b0| 25 73 22 2c 20 6b 65 79 | 2c 20 69 2c 20 70 29 29 |%s", key|, i, p))|
|000052c0| 3b 0a 58 20 20 20 20 7d | 0a 58 20 20 20 20 68 65 |;.X }|.X he|
|000052d0| 6c 70 5f 61 72 67 73 5b | 69 5d 20 3d 20 30 3b 20 |lp_args[|i] = 0; |
|000052e0| 20 2f 2a 20 6e 75 6c 6c | 20 74 65 72 6d 69 6e 61 | /* null| termina|
|000052f0| 74 65 20 6c 69 73 74 20 | 2a 2f 0a 58 20 20 20 20 |te list |*/.X |
|00005300| 28 76 6f 69 64 29 20 68 | 65 6c 70 28 70 72 69 6e |(void) h|elp(prin|
|00005310| 74 5f 73 77 2d 3e 74 73 | 5f 77 69 6e 64 6f 77 66 |t_sw->ts|_windowf|
|00005320| 64 2c 20 68 65 6c 70 5f | 61 72 67 73 2c 20 4e 55 |d, help_|args, NU|
|00005330| 4c 4c 29 3b 0a 58 0a 58 | 20 20 20 20 66 72 65 65 |LL);.X.X| free|
|00005340| 5f 76 65 63 28 68 65 6c | 70 5f 61 72 67 73 2b 31 |_vec(hel|p_args+1|
|00005350| 29 3b 0a 58 20 20 20 20 | 72 65 74 75 72 6e 20 30 |);.X |return 0|
|00005360| 3b 0a 58 7d 0a 58 0a 63 | 68 61 72 20 2a 0a 6b 65 |;.X}.X.c|har *.ke|
|00005370| 79 5f 73 65 74 5f 74 6f | 28 70 29 0a 72 65 67 69 |y_set_to|(p).regi|
|00005380| 73 74 65 72 20 63 68 61 | 72 20 2a 70 3b 0a 58 7b |ster cha|r *p;.X{|
|00005390| 0a 58 20 20 20 20 72 65 | 67 69 73 74 65 72 20 63 |.X re|gister c|
|000053a0| 68 61 72 20 2a 70 32 2c | 20 2a 2a 66 6b 65 79 5f |har *p2,| **fkey_|
|000053b0| 73 74 72 3b 0a 58 0a 58 | 20 20 20 20 73 77 69 74 |str;.X.X| swit|
|000053c0| 63 68 28 2a 70 29 20 7b | 0a 58 09 77 68 65 6e 20 |ch(*p) {|.X.when |
|000053d0| 27 4c 27 3a 20 66 6b 65 | 79 5f 73 74 72 20 3d 20 |'L': fke|y_str = |
|000053e0| 6c 65 66 74 6b 65 79 5f | 64 65 66 61 75 6c 74 5f |leftkey_|default_|
|000053f0| 73 65 74 74 69 6e 67 73 | 3b 0a 58 09 77 68 65 6e |settings|;.X.when|
|00005400| 20 27 46 27 3a 20 66 6b | 65 79 5f 73 74 72 20 3d | 'F': fk|ey_str =|
|00005410| 20 74 6f 70 6b 65 79 5f | 64 65 66 61 75 6c 74 5f | topkey_|default_|
|00005420| 73 65 74 74 69 6e 67 73 | 3b 0a 58 09 77 68 65 6e |settings|;.X.when|
|00005430| 20 27 52 27 3a 20 66 6b | 65 79 5f 73 74 72 20 3d | 'R': fk|ey_str =|
|00005440| 20 72 69 67 68 74 6b 65 | 79 5f 64 65 66 61 75 6c | rightke|y_defaul|
|00005450| 74 5f 73 65 74 74 69 6e | 67 73 3b 0a 58 20 20 20 |t_settin|gs;.X |
|00005460| 20 7d 0a 58 20 20 20 20 | 70 32 20 3d 20 64 6f 5f | }.X |p2 = do_|
|00005470| 73 65 74 28 66 6b 65 79 | 73 2c 20 70 29 3b 0a 58 |set(fkey|s, p);.X|
|00005480| 20 20 20 20 72 65 74 75 | 72 6e 20 28 70 32 29 3f | retu|rn (p2)?|
|00005490| 20 70 32 3a 20 66 6b 65 | 79 5f 73 74 72 5b 61 74 | p2: fke|y_str[at|
|000054a0| 6f 69 28 70 2b 31 29 5d | 3b 0a 58 7d 0a 58 0a 66 |oi(p+1)]|;.X}.X.f|
|000054b0| 6b 65 79 5f 63 6d 64 28 | 78 2c 20 70 29 0a 72 65 |key_cmd(|x, p).re|
|000054c0| 67 69 73 74 65 72 20 63 | 68 61 72 20 2a 2a 70 3b |gister c|har **p;|
|000054d0| 0a 58 7b 0a 58 20 20 20 | 20 69 66 20 28 21 73 74 |.X{.X | if (!st|
|000054e0| 72 63 6d 70 28 2a 70 2c | 20 22 63 6c 6f 73 65 22 |rcmp(*p,| "close"|
|000054f0| 29 29 0a 58 09 74 6f 6f | 6c 71 75 69 74 28 4e 4f |)).X.too|lquit(NO|
|00005500| 5f 49 54 45 4d 2c 20 30 | 2c 20 4e 4f 5f 45 56 45 |_ITEM, 0|, NO_EVE|
|00005510| 4e 54 29 3b 0a 58 20 20 | 20 20 65 6c 73 65 20 69 |NT);.X | else i|
|00005520| 66 20 28 21 73 74 72 63 | 6d 70 28 2a 70 2c 20 22 |f (!strc|mp(*p, "|
|00005530| 74 6f 70 22 29 29 0a 58 | 09 77 6d 67 72 5f 74 6f |top")).X|.wmgr_to|
|00005540| 70 28 74 6f 6f 6c 2d 3e | 74 6c 5f 77 69 6e 64 6f |p(tool->|tl_windo|
|00005550| 77 66 64 2c 20 72 6f 6f | 74 66 64 29 3b 0a 58 20 |wfd, roo|tfd);.X |
|00005560| 20 20 20 65 6c 73 65 20 | 69 66 20 28 21 73 74 72 | else |if (!str|
|00005570| 63 6d 70 28 2a 70 2c 20 | 22 6d 6f 76 65 22 29 29 |cmp(*p, |"move"))|
|00005580| 0a 58 09 77 6d 67 72 5f | 6d 6f 76 65 28 74 6f 6f |.X.wmgr_|move(too|
|00005590| 6c 2d 3e 74 6c 5f 77 69 | 6e 64 6f 77 66 64 2c 20 |l->tl_wi|ndowfd, |
|000055a0| 72 6f 6f 74 66 64 29 3b | 0a 58 20 20 20 20 65 6c |rootfd);|.X el|
|000055b0| 73 65 20 69 66 20 28 21 | 73 74 72 63 6d 70 28 2a |se if (!|strcmp(*|
|000055c0| 70 2c 20 22 73 74 72 65 | 74 63 68 22 29 29 0a 58 |p, "stre|tch")).X|
|000055d0| 09 77 6d 67 72 5f 73 74 | 72 65 74 63 68 28 74 6f |.wmgr_st|retch(to|
|000055e0| 6f 6c 2d 3e 74 6c 5f 77 | 69 6e 64 6f 77 66 64 2c |ol->tl_w|indowfd,|
|000055f0| 20 72 6f 6f 74 66 64 29 | 3b 0a 58 20 20 20 20 65 | rootfd)|;.X e|
|00005600| 6c 73 65 20 69 66 20 28 | 21 73 74 72 63 6d 70 28 |lse if (|!strcmp(|
|00005610| 2a 70 2c 20 22 62 6f 74 | 74 6f 6d 22 29 29 0a 58 |*p, "bot|tom")).X|
|00005620| 09 77 6d 67 72 5f 62 6f | 74 74 6f 6d 28 74 6f 6f |.wmgr_bo|ttom(too|
|00005630| 6c 2d 3e 74 6c 5f 77 69 | 6e 64 6f 77 66 64 2c 20 |l->tl_wi|ndowfd, |
|00005640| 72 6f 6f 74 66 64 29 3b | 0a 58 20 20 20 20 65 6c |rootfd);|.X el|
|00005650| 73 65 20 69 66 20 28 21 | 73 74 72 63 6d 70 28 2a |se if (!|strcmp(*|
|00005660| 70 2c 20 22 72 65 70 61 | 69 6e 74 22 29 29 0a 58 |p, "repa|int")).X|
|00005670| 09 77 6d 67 72 5f 72 65 | 66 72 65 73 68 77 69 6e |.wmgr_re|freshwin|
|00005680| 64 6f 77 28 74 6f 6f 6c | 2d 3e 74 6c 5f 77 69 6e |dow(tool|->tl_win|
|00005690| 64 6f 77 66 64 2c 20 72 | 6f 6f 74 66 64 29 3b 0a |dowfd, r|ootfd);.|
|000056a0| 58 20 20 20 20 72 65 74 | 75 72 6e 20 2d 31 3b 0a |X ret|urn -1;.|
|000056b0| 58 7d 0a 58 0a 58 2f 2a | 20 65 78 65 63 75 74 65 |X}.X.X/*| execute|
|000056c0| 20 61 20 63 6f 6d 6d 61 | 6e 64 20 67 69 76 65 6e | a comma|nd given|
|000056d0| 20 61 20 66 75 6e 63 74 | 69 6f 6e 20 6b 65 79 2c | a funct|ion key,|
|000056e0| 20 69 66 20 74 68 65 20 | 6b 65 79 20 69 73 20 75 | if the |key is u|
|000056f0| 73 65 72 20 64 65 66 69 | 6e 65 64 2c 0a 58 20 2a |ser defi|ned,.X *|
|00005700| 20 63 61 6c 6c 20 66 6b | 65 79 28 29 20 61 74 20 | call fk|ey() at |
|00005710| 74 6f 70 20 6f 66 20 66 | 69 6c 65 2e 20 50 61 72 |top of f|ile. Par|
|00005720| 61 6d 65 74 65 72 20 69 | 73 20 74 68 65 20 6b 65 |ameter i|s the ke|
|00005730| 79 20 6e 75 6d 62 65 72 | 20 69 6e 20 22 61 73 63 |y number| in "asc|
|00005740| 69 69 22 0a 58 20 2a 2f | 0a 66 75 6e 63 5f 6b 65 |ii".X */|.func_ke|
|00005750| 79 28 6b 65 79 29 0a 72 | 65 67 69 73 74 65 72 20 |y(key).r|egister |
|00005760| 69 6e 74 20 6b 65 79 3b | 0a 58 7b 0a 58 20 20 20 |int key;|.X{.X |
|00005770| 20 72 65 67 69 73 74 65 | 72 20 63 68 61 72 20 2a | registe|r char *|
|00005780| 70 3b 0a 58 20 20 20 20 | 63 68 61 72 20 62 75 66 |p;.X |char buf|
|00005790| 5b 34 5d 3b 0a 58 20 20 | 20 20 69 6e 74 20 6e 6b |[4];.X | int nk|
|000057a0| 65 79 3b 0a 58 0a 58 20 | 20 20 20 69 66 20 28 6b |ey;.X.X | if (k|
|000057b0| 65 79 20 3e 3d 20 4b 45 | 59 5f 4c 45 46 54 46 49 |ey >= KE|Y_LEFTFI|
|000057c0| 52 53 54 20 26 26 20 6b | 65 79 20 3c 3d 20 4b 45 |RST && k|ey <= KE|
|000057d0| 59 5f 4c 45 46 54 4c 41 | 53 54 29 0a 58 09 62 75 |Y_LEFTLA|ST).X.bu|
|000057e0| 66 5b 30 5d 20 3d 20 27 | 4c 27 2c 20 6e 6b 65 79 |f[0] = '|L', nkey|
|000057f0| 20 3d 20 6b 65 79 20 2d | 20 4b 45 59 5f 4c 45 46 | = key -| KEY_LEF|
|00005800| 54 46 49 52 53 54 3b 0a | 58 20 20 20 20 65 6c 73 |TFIRST;.|X els|
|00005810| 65 20 69 66 20 28 6b 65 | 79 20 3e 3d 20 4b 45 59 |e if (ke|y >= KEY|
|00005820| 5f 54 4f 50 46 49 52 53 | 54 20 26 26 20 6b 65 79 |_TOPFIRS|T && key|
|00005830| 20 3c 3d 20 4b 45 59 5f | 54 4f 50 4c 41 53 54 29 | <= KEY_|TOPLAST)|
|00005840| 0a 58 09 62 75 66 5b 30 | 5d 20 3d 20 27 46 27 2c |.X.buf[0|] = 'F',|
|00005850| 20 6e 6b 65 79 20 3d 20 | 6b 65 79 20 2d 20 4b 45 | nkey = |key - KE|
|00005860| 59 5f 54 4f 50 46 49 52 | 53 54 3b 0a 58 20 20 20 |Y_TOPFIR|ST;.X |
|00005870| 20 65 6c 73 65 20 69 66 | 20 28 6b 65 79 20 3e 3d | else if| (key >=|
|00005880| 20 4b 45 59 5f 52 49 47 | 48 54 46 49 52 53 54 20 | KEY_RIG|HTFIRST |
|00005890| 26 26 20 6b 65 79 20 3c | 3d 20 4b 45 59 5f 52 49 |&& key <|= KEY_RI|
|000058a0| 47 48 54 4c 41 53 54 29 | 0a 58 09 62 75 66 5b 30 |GHTLAST)|.X.buf[0|
|000058b0| 5d 20 3d 20 27 52 27 2c | 20 6e 6b 65 79 20 3d 20 |] = 'R',| nkey = |
|000058c0| 6b 65 79 20 2d 20 4b 45 | 59 5f 52 49 47 48 54 46 |key - KE|Y_RIGHTF|
|000058d0| 49 52 53 54 3b 0a 58 20 | 20 20 20 28 76 6f 69 64 |IRST;.X | (void|
|000058e0| 29 20 73 70 72 69 6e 74 | 66 28 62 75 66 2b 31 2c |) sprint|f(buf+1,|
|000058f0| 20 22 25 64 22 2c 20 6e | 6b 65 79 2b 31 29 3b 0a | "%d", n|key+1);.|
|00005900| 58 0a 58 20 20 20 20 72 | 65 74 75 72 6e 20 66 6b |X.X r|eturn fk|
|00005910| 65 79 28 62 75 66 29 3b | 0a 58 7d 0a 58 0a 76 6f |ey(buf);|.X}.X.vo|
|00005920| 69 64 0a 73 65 74 5f 66 | 6b 65 79 73 28 29 0a 58 |id.set_f|keys().X|
|00005930| 7b 0a 58 20 20 20 20 72 | 65 61 64 79 28 64 69 73 |{.X r|eady(dis|
|00005940| 70 6c 61 79 5f 6b 65 79 | 73 28 29 20 2b 20 31 30 |play_key|s() + 10|
|00005950| 29 3b 0a 58 20 20 20 20 | 70 72 69 6e 74 5f 76 61 |);.X |print_va|
|00005960| 6c 69 64 5f 66 75 6e 63 | 74 69 6f 6e 73 28 74 78 |lid_func|tions(tx|
|00005970| 74 2e 79 2b 32 30 29 3b | 0a 58 20 20 20 20 67 65 |t.y+20);|.X ge|
|00005980| 74 74 69 6e 67 5f 6f 70 | 74 73 20 3d 20 32 3b 0a |tting_op|ts = 2;.|
|00005990| 58 20 20 20 20 77 69 6e | 5f 73 65 74 63 75 72 73 |X win|_setcurs|
|000059a0| 6f 72 28 6d 73 67 5f 73 | 77 2d 3e 74 73 5f 77 69 |or(msg_s|w->ts_wi|
|000059b0| 6e 64 6f 77 66 64 2c 20 | 26 63 68 65 63 6b 6d 61 |ndowfd, |&checkma|
|000059c0| 72 6b 29 3b 0a 58 7d 0a | 58 0a 63 68 61 72 20 2a |rk);.X}.|X.char *|
|000059d0| 4d 53 47 20 3d 20 22 43 | 6c 69 63 6b 20 74 68 65 |MSG = "C|lick the|
|000059e0| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 6d 6f 75 | appropr|iate mou|
|000059f0| 73 65 20 62 75 74 74 6f | 6e 20 6f 76 65 72 20 61 |se butto|n over a|
|00005a00| 20 66 75 6e 63 74 69 6f | 6e 20 6b 65 79 22 3b 0a | functio|n key";.|
|00005a10| 72 65 61 64 79 28 59 29 | 0a 58 7b 0a 58 20 20 20 |ready(Y)|.X{.X |
|00005a20| 20 73 74 61 74 69 63 20 | 69 6e 74 20 79 3b 0a 58 | static |int y;.X|
|00005a30| 20 20 20 20 69 6e 74 20 | 78 20 3d 20 28 6d 73 67 | int |x = (msg|
|00005a40| 5f 72 65 63 74 2e 72 5f | 77 69 64 74 68 20 2d 20 |_rect.r_|width - |
|00005a50| 73 74 72 6c 65 6e 28 4d | 53 47 29 2a 6c 5f 77 69 |strlen(M|SG)*l_wi|
|00005a60| 64 74 68 28 4c 41 52 47 | 45 29 29 2f 32 3b 0a 58 |dth(LARG|E))/2;.X|
|00005a70| 20 20 20 20 69 66 20 28 | 59 29 0a 58 09 79 20 3d | if (|Y).X.y =|
|00005a80| 20 59 3b 0a 58 20 20 20 | 20 43 6c 72 74 6f 65 6f | Y;.X | Clrtoeo|
|00005a90| 6c 28 6d 73 67 5f 77 69 | 6e 2c 20 28 74 78 74 2e |l(msg_wi|n, (txt.|
|00005aa0| 78 20 3d 20 30 29 2c 20 | 28 74 78 74 2e 79 20 3d |x = 0), |(txt.y =|
|00005ab0| 20 79 29 2c 20 4c 41 52 | 47 45 29 3b 0a 58 20 20 | y), LAR|GE);.X |
|00005ac0| 20 20 68 69 67 68 6c 69 | 67 68 74 28 6d 73 67 5f | highli|ght(msg_|
|00005ad0| 77 69 6e 2c 20 78 2c 20 | 79 2c 20 4c 41 52 47 45 |win, x, |y, LARGE|
|00005ae0| 2c 20 4d 53 47 29 3b 0a | 58 7d 0a 58 0a 58 2f 2a |, MSG);.|X}.X.X/*|
|00005af0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 70 69 78 65 6c | number |of pixel|
|00005b00| 73 20 69 6e 20 78 20 61 | 6e 64 20 79 20 64 69 72 |s in x a|nd y dir|
|00005b10| 65 63 74 69 6f 6e 73 20 | 64 65 73 63 72 69 62 69 |ections |describi|
|00005b20| 6e 67 20 74 68 65 20 73 | 69 7a 65 20 6f 66 20 61 |ng the s|ize of a|
|00005b30| 20 67 72 61 70 68 69 63 | 61 6c 0a 58 20 2a 20 66 | graphic|al.X * f|
|00005b40| 75 6e 63 74 69 6f 6e 20 | 6b 65 79 2e 20 20 74 68 |unction |key. th|
|00005b50| 65 79 20 72 65 70 72 65 | 73 65 6e 74 20 74 68 65 |ey repre|sent the|
|00005b60| 20 6c 69 74 74 6c 65 20 | 6b 65 79 73 20 61 6e 64 | little |keys and|
|00005b70| 20 62 69 67 20 6b 65 79 | 73 20 72 65 73 70 65 63 | big key|s respec|
|00005b80| 74 69 76 65 6c 79 2e 0a | 58 20 2a 2f 0a 58 2f 2a |tively..|X */.X/*|
|00005b90| 20 73 74 61 74 69 63 20 | 73 74 72 75 63 74 20 70 | static |struct p|
|00005ba0| 72 5f 70 6f 73 20 66 6b | 65 79 5f 73 69 7a 65 73 |r_pos fk|ey_sizes|
|00005bb0| 5b 32 5d 20 3d 20 7b 20 | 7b 20 32 33 2c 20 32 33 |[2] = { |{ 23, 23|
|00005bc0| 20 7d 2c 20 7b 20 35 30 | 2c 20 32 33 20 7d 20 7d | }, { 50|, 23 } }|
|00005bd0| 3b 20 2a 2f 0a 73 74 61 | 74 69 63 20 73 74 72 75 |; */.sta|tic stru|
|00005be0| 63 74 20 70 72 5f 70 6f | 73 20 66 6b 65 79 5f 73 |ct pr_po|s fkey_s|
|00005bf0| 69 7a 65 73 5b 32 5d 20 | 3d 20 7b 20 7b 20 32 34 |izes[2] |= { { 24|
|00005c00| 2c 20 32 33 20 7d 2c 20 | 7b 20 35 32 2c 20 32 33 |, 23 }, |{ 52, 23|
|00005c10| 20 7d 20 7d 3b 0a 58 0a | 58 23 64 65 66 69 6e 65 | } };.X.|X#define|
|00005c20| 20 42 4f 52 44 45 52 09 | 09 34 20 20 20 2f 2a 20 | BORDER.|.4 /* |
|00005c30| 62 6f 72 64 65 72 20 28 | 64 69 73 74 61 6e 63 65 |border (|distance|
|00005c40| 29 20 62 65 74 77 65 65 | 6e 20 6b 65 79 73 20 2a |) betwee|n keys *|
|00005c50| 2f 0a 58 23 64 65 66 69 | 6e 65 20 4b 45 59 54 4f |/.X#defi|ne KEYTO|
|00005c60| 50 09 09 31 35 20 20 2f | 2a 20 64 69 73 74 61 6e |P..15 /|* distan|
|00005c70| 63 65 20 66 72 6f 6d 20 | 74 6f 70 20 74 6f 20 73 |ce from |top to s|
|00005c80| 74 61 72 74 20 64 72 61 | 77 69 6e 67 20 2a 2f 0a |tart dra|wing */.|
|00005c90| 58 23 64 65 66 69 6e 65 | 20 4c 45 46 54 5f 53 54 |X#define| LEFT_ST|
|00005ca0| 41 52 54 09 31 35 20 20 | 2f 2a 20 70 69 78 65 6c |ART.15 |/* pixel|
|00005cb0| 73 20 66 72 6f 6d 20 6c | 65 66 74 20 74 6f 20 73 |s from l|eft to s|
|00005cc0| 74 61 72 74 20 64 72 61 | 77 69 6e 67 20 62 6f 78 |tart dra|wing box|
|00005cd0| 65 73 20 2a 2f 0a 58 23 | 64 65 66 69 6e 65 20 54 |es */.X#|define T|
|00005ce0| 4f 50 5f 53 54 41 52 54 | 09 28 4c 45 46 54 5f 53 |OP_START|.(LEFT_S|
|00005cf0| 54 41 52 54 2b 32 2a 66 | 6b 65 79 5f 73 69 7a 65 |TART+2*f|key_size|
|00005d00| 73 5b 30 5d 2e 78 20 2b | 20 66 6b 65 79 5f 73 69 |s[0].x +| fkey_si|
|00005d10| 7a 65 73 5b 31 5d 2e 78 | 2b 42 4f 52 44 45 52 29 |zes[1].x|+BORDER)|
|00005d20| 0a 58 23 64 65 66 69 6e | 65 20 52 49 47 48 54 5f |.X#defin|e RIGHT_|
|00005d30| 53 54 41 52 54 09 28 54 | 4f 50 5f 53 54 41 52 54 |START.(T|OP_START|
|00005d40| 20 2b 20 35 2a 28 66 6b | 65 79 5f 73 69 7a 65 73 | + 5*(fk|ey_sizes|
|00005d50| 5b 30 5d 2e 78 2b 42 4f | 52 44 45 52 29 20 2b 20 |[0].x+BO|RDER) + |
|00005d60| 5c 0a 58 09 09 09 09 20 | 20 20 20 20 35 2a 28 66 |\.X.... | 5*(f|
|00005d70| 6b 65 79 5f 73 69 7a 65 | 73 5b 31 5d 2e 78 2b 42 |key_size|s[1].x+B|
|00005d80| 4f 52 44 45 52 29 29 0a | 58 0a 58 2f 2a 0a 58 20 |ORDER)).|X.X/*.X |
|00005d90| 2a 20 69 66 20 21 70 2c | 20 77 65 27 72 65 20 73 |* if !p,| we're s|
|00005da0| 65 74 74 69 6e 67 20 6b | 65 79 20 61 74 20 6c 6f |etting k|ey at lo|
|00005db0| 63 61 74 69 6f 6e 20 78 | 2c 79 2e 0a 58 20 2a 20 |cation x|,y..X * |
|00005dc0| 65 6c 73 65 20 53 65 74 | 20 74 68 61 74 20 6b 65 |else Set| that ke|
|00005dd0| 79 20 74 6f 20 74 68 69 | 73 20 73 74 72 69 6e 67 |y to thi|s string|
|00005de0| 20 28 70 29 2e 0a 58 20 | 2a 2f 0a 76 6f 69 64 0a | (p)..X |*/.void.|
|00005df0| 73 65 74 5f 6b 65 79 28 | 70 2c 20 78 2c 79 29 0a |set_key(|p, x,y).|
|00005e00| 72 65 67 69 73 74 65 72 | 20 63 68 61 72 20 2a 70 |register| char *p|
|00005e10| 3b 0a 72 65 67 69 73 74 | 65 72 20 69 6e 74 20 78 |;.regist|er int x|
|00005e20| 2c 79 3b 0a 58 7b 0a 58 | 20 20 20 20 63 68 61 72 |,y;.X{.X| char|
|00005e30| 20 09 62 75 66 5b 32 35 | 36 5d 2c 20 2a 2a 61 72 | .buf[25|6], **ar|
|00005e40| 67 76 3b 0a 58 20 20 20 | 20 73 74 61 74 69 63 20 |gv;.X | static |
|00005e50| 63 68 61 72 20 2a 6b 65 | 79 3b 0a 58 20 20 20 20 |char *ke|y;.X |
|00005e60| 69 6e 74 20 09 61 72 67 | 63 3b 0a 58 0a 58 20 20 |int .arg|c;.X.X |
|00005e70| 20 20 73 74 61 74 69 63 | 20 69 6e 74 20 6b 65 79 | static| int key|
|00005e80| 5f 78 2c 20 6b 65 79 5f | 79 3b 0a 58 20 20 20 20 |_x, key_|y;.X |
|00005e90| 69 66 20 28 21 70 29 20 | 7b 0a 58 09 69 66 20 28 |if (!p) |{.X.if (|
|00005ea0| 6b 65 79 20 3d 20 66 69 | 6e 64 5f 6b 65 79 28 78 |key = fi|nd_key(x|
|00005eb0| 2c 79 29 29 20 7b 0a 58 | 09 20 20 20 20 70 72 69 |,y)) {.X|. pri|
|00005ec0| 6e 74 28 22 54 79 70 65 | 20 6e 65 77 20 73 65 74 |nt("Type| new set|
|00005ed0| 74 69 6e 67 20 66 6f 72 | 20 6b 65 79 3a 20 25 73 |ting for| key: %s|
|00005ee0| 22 2c 20 6b 65 79 29 3b | 0a 58 09 20 20 20 20 28 |", key);|.X. (|
|00005ef0| 76 6f 69 64 29 20 73 70 | 72 69 6e 74 66 28 62 75 |void) sp|rintf(bu|
|00005f00| 66 2c 20 22 46 75 6e 63 | 74 69 6f 6e 20 6b 65 79 |f, "Func|tion key|
|00005f10| 20 5c 22 25 73 5c 22 3a | 20 22 2c 20 6b 65 79 29 | \"%s\":| ", key)|
|00005f20| 3b 0a 58 09 20 20 20 20 | 68 69 67 68 6c 69 67 68 |;.X. |highligh|
|00005f30| 74 28 6d 73 67 5f 77 69 | 6e 2c 20 32 30 2c 20 74 |t(msg_wi|n, 20, t|
|00005f40| 78 74 2e 79 2c 20 4c 41 | 52 47 45 2c 20 62 75 66 |xt.y, LA|RGE, buf|
|00005f50| 29 3b 0a 58 09 20 20 20 | 20 74 78 74 2e 78 20 3d |);.X. | txt.x =|
|00005f60| 20 32 30 20 2b 20 73 74 | 72 6c 65 6e 28 62 75 66 | 20 + st|rlen(buf|
|00005f70| 29 2a 6c 5f 77 69 64 74 | 68 28 4c 41 52 47 45 29 |)*l_widt|h(LARGE)|
|00005f80| 3b 0a 58 09 20 20 20 20 | 43 6c 72 74 6f 65 6f 6c |;.X. |Clrtoeol|
|00005f90| 28 6d 73 67 5f 77 69 6e | 2c 20 74 78 74 2e 78 2c |(msg_win|, txt.x,|
|00005fa0| 20 74 78 74 2e 79 2c 20 | 4c 41 52 47 45 29 3b 0a | txt.y, |LARGE);.|
|00005fb0| 58 09 20 20 20 20 74 79 | 70 65 5f 63 75 72 73 6f |X. ty|pe_curso|
|00005fc0| 72 28 50 49 58 5f 53 52 | 43 29 3b 0a 58 09 7d 20 |r(PIX_SR|C);.X.} |
|00005fd0| 65 6c 73 65 0a 58 09 20 | 20 20 20 72 65 61 64 79 |else.X. | ready|
|00005fe0| 28 30 29 3b 0a 58 09 6b | 65 79 5f 78 20 3d 20 78 |(0);.X.k|ey_x = x|
|00005ff0| 2c 20 6b 65 79 5f 79 20 | 3d 20 79 3b 0a 58 20 20 |, key_y |= y;.X |
|00006000| 20 20 7d 20 65 6c 73 65 | 20 7b 0a 58 09 75 5f 6c | } else| {.X.u_l|
|00006010| 6f 6e 67 20 73 61 76 65 | 5f 62 61 6e 67 20 3d 20 |ong save|_bang = |
|00006020| 69 73 6f 6e 28 67 6c 6f | 62 5f 66 6c 61 67 73 2c |ison(glo|b_flags,|
|00006030| 20 49 47 4e 5f 42 41 4e | 47 29 3b 0a 58 09 69 66 | IGN_BAN|G);.X.if|
|00006040| 20 28 21 2a 70 29 0a 58 | 09 20 20 20 20 28 76 6f | (!*p).X|. (vo|
|00006050| 69 64 29 20 73 70 72 69 | 6e 74 66 28 62 75 66 2c |id) spri|ntf(buf,|
|00006060| 20 22 75 6e 66 6b 65 79 | 20 25 73 22 2c 20 6b 65 | "unfkey| %s", ke|
|00006070| 79 29 3b 0a 58 09 65 6c | 73 65 0a 58 09 20 20 20 |y);.X.el|se.X. |
|00006080| 20 28 76 6f 69 64 29 20 | 73 70 72 69 6e 74 66 28 | (void) |sprintf(|
|00006090| 62 75 66 2c 20 22 66 6b | 65 79 20 25 73 20 5c 22 |buf, "fk|ey %s \"|
|000060a0| 25 73 5c 22 22 2c 20 6b | 65 79 2c 20 70 29 3b 0a |%s\"", k|ey, p);.|
|000060b0| 58 09 74 75 72 6e 6f 6e | 28 67 6c 6f 62 5f 66 6c |X.turnon|(glob_fl|
|000060c0| 61 67 73 2c 20 49 47 4e | 5f 42 41 4e 47 29 3b 0a |ags, IGN|_BANG);.|
|000060d0| 58 09 69 66 20 28 61 72 | 67 76 20 3d 20 6d 61 6b |X.if (ar|gv = mak|
|000060e0| 65 5f 63 6f 6d 6d 61 6e | 64 28 62 75 66 2c 20 54 |e_comman|d(buf, T|
|000060f0| 52 50 4c 5f 4e 55 4c 4c | 2c 20 26 61 72 67 63 29 |RPL_NULL|, &argc)|
|00006100| 29 20 7b 0a 58 09 20 20 | 20 20 28 76 6f 69 64 29 |) {.X. | (void)|
|00006110| 20 64 6f 5f 63 6f 6d 6d | 61 6e 64 28 61 72 67 63 | do_comm|and(argc|
|00006120| 2c 20 61 72 67 76 2c 20 | 6d 73 67 5f 6c 69 73 74 |, argv, |msg_list|
|00006130| 29 3b 0a 58 09 20 20 20 | 20 70 72 69 6e 74 28 22 |);.X. | print("|
|00006140| 46 75 6e 63 74 69 6f 6e | 20 6b 65 79 20 25 73 3a |Function| key %s:|
|00006150| 20 20 25 73 22 2c 20 6b | 65 79 2c 20 6b 65 79 5f | %s", k|ey, key_|
|00006160| 73 65 74 5f 74 6f 28 6b | 65 79 29 29 3b 0a 58 09 |set_to(k|ey));.X.|
|00006170| 7d 0a 58 09 69 66 20 28 | 21 73 61 76 65 5f 62 61 |}.X.if (|!save_ba|
|00006180| 6e 67 29 0a 58 09 20 20 | 20 20 74 75 72 6e 6f 66 |ng).X. | turnof|
|00006190| 66 28 67 6c 6f 62 5f 66 | 6c 61 67 73 2c 20 49 47 |f(glob_f|lags, IG|
|000061a0| 4e 5f 42 41 4e 47 29 3b | 0a 58 09 72 65 61 64 79 |N_BANG);|.X.ready|
|000061b0| 28 30 29 3b 0a 58 20 20 | 20 20 7d 0a 58 7d 0a 58 |(0);.X | }.X}.X|
|000061c0| 0a 58 2f 2a 20 70 61 73 | 73 65 64 20 74 68 65 20 |.X/* pas|sed the |
|000061d0| 78 20 61 6e 64 20 79 20 | 63 6f 6f 72 64 73 20 6f |x and y |coords o|
|000061e0| 66 20 61 20 6d 6f 75 73 | 65 20 63 6c 69 63 6b 2c |f a mous|e click,|
|000061f0| 20 72 65 74 75 72 6e 20 | 74 68 65 20 66 75 6e 63 | return |the func|
|00006200| 74 69 6f 6e 20 6b 65 79 | 0a 58 20 2a 20 74 68 61 |tion key|.X * tha|
|00006210| 74 20 65 78 69 73 74 73 | 20 69 6e 20 74 68 61 74 |t exists| in that|
|00006220| 20 70 6f 73 69 74 69 6f | 6e 2e 20 4e 55 4c 4c 20 | positio|n. NULL |
|00006230| 69 66 20 6e 6f 20 6b 65 | 79 20 74 68 65 72 65 2e |if no ke|y there.|
|00006240| 20 20 73 74 72 69 6e 67 | 20 77 69 6c 6c 20 62 65 | string| will be|
|00006250| 0a 58 20 2a 20 73 6f 6d | 65 74 68 69 6e 67 20 6c |.X * som|ething l|
|00006260| 69 6b 65 20 22 4c 36 22 | 20 6f 72 20 22 46 39 22 |ike "L6"| or "F9"|
|00006270| 20 6f 72 20 22 52 31 32 | 22 0a 58 20 2a 2f 0a 63 | or "R12|".X */.c|
|00006280| 68 61 72 20 2a 0a 66 69 | 6e 64 5f 6b 65 79 28 78 |har *.fi|nd_key(x|
|00006290| 2c 79 29 0a 69 6e 74 20 | 78 2c 20 79 3b 0a 58 7b |,y).int |x, y;.X{|
|000062a0| 0a 58 20 20 20 20 73 74 | 61 74 69 63 20 63 68 61 |.X st|atic cha|
|000062b0| 72 20 62 75 66 5b 36 5d | 3b 0a 58 20 20 20 20 69 |r buf[6]|;.X i|
|000062c0| 6e 74 20 72 6f 77 2c 20 | 63 6f 6c 3b 0a 58 20 20 |nt row, |col;.X |
|000062d0| 20 20 73 74 61 74 69 63 | 20 69 6e 74 20 6f 6c 64 | static| int old|
|000062e0| 5f 6c 65 66 74 2c 20 6f | 6c 64 5f 74 6f 70 2c 20 |_left, o|ld_top, |
|000062f0| 6f 6c 64 5f 72 69 67 68 | 74 2c 20 6f 6c 64 5f 62 |old_righ|t, old_b|
|00006300| 6f 74 3b 0a 58 0a 58 20 | 20 20 20 69 66 20 28 21 |ot;.X.X | if (!|
|00006310| 28 72 6f 77 20 3d 20 66 | 69 6e 64 5f 79 28 26 79 |(row = f|ind_y(&y|
|00006320| 29 29 29 0a 58 09 72 65 | 74 75 72 6e 20 4e 55 4c |))).X.re|turn NUL|
|00006330| 4c 3b 0a 58 20 20 20 20 | 69 66 20 28 78 20 3c 20 |L;.X |if (x < |
|00006340| 4c 45 46 54 5f 53 54 41 | 52 54 20 7c 7c 20 78 20 |LEFT_STA|RT || x |
|00006350| 3e 20 52 49 47 48 54 5f | 53 54 41 52 54 20 2b 20 |> RIGHT_|START + |
|00006360| 33 2a 28 66 6b 65 79 5f | 73 69 7a 65 73 5b 30 5d |3*(fkey_|sizes[0]|
|00006370| 2e 78 2b 42 4f 52 44 45 | 52 29 29 0a 58 09 72 65 |.x+BORDE|R)).X.re|
|00006380| 74 75 72 6e 20 4e 55 4c | 4c 3b 20 20 20 2f 2a 20 |turn NUL|L; /* |
|00006390| 6f 75 74 20 6f 66 20 72 | 61 6e 67 65 20 2a 2f 0a |out of r|ange */.|
|000063a0| 58 20 20 20 20 69 66 20 | 28 78 20 3e 20 4c 45 46 |X if |(x > LEF|
|000063b0| 54 5f 53 54 41 52 54 20 | 26 26 20 78 20 3c 20 54 |T_START |&& x < T|
|000063c0| 4f 50 5f 53 54 41 52 54 | 2d 66 6b 65 79 5f 73 69 |OP_START|-fkey_si|
|000063d0| 7a 65 73 5b 30 5d 2e 78 | 20 2d 20 42 4f 52 44 45 |zes[0].x| - BORDE|
|000063e0| 52 29 20 7b 0a 58 09 69 | 66 20 28 28 63 6f 6c 20 |R) {.X.i|f ((col |
|000063f0| 3d 20 28 78 20 3e 20 4c | 45 46 54 5f 53 54 41 52 |= (x > L|EFT_STAR|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.