home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| default
| |
100%
| TrID
| E-Mail message (Var. 2)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 61 6e | 64 79 40 63 6f 6d 70 2e |From: an|dy@comp.|
|00000010| 6c 61 6e 63 73 2e 61 63 | 2e 75 6b 20 28 41 6e 64 |lancs.ac|.uk (And|
|00000020| 79 20 43 6f 6c 65 62 6f | 75 72 6e 65 29 0a 4e 65 |y Colebo|urne).Ne|
|00000030| 77 73 67 72 6f 75 70 73 | 3a 20 61 6c 74 2e 73 6f |wsgroups|: alt.so|
|00000040| 75 72 63 65 73 0a 53 75 | 62 6a 65 63 74 3a 20 58 |urces.Su|bject: X|
|00000050| 62 72 6f 77 73 65 72 20 | 70 61 72 74 20 30 31 2f |browser |part 01/|
|00000060| 30 31 0a 4d 65 73 73 61 | 67 65 2d 49 44 3a 20 3c |01.Messa|ge-ID: <|
|00000070| 31 32 33 34 40 64 63 6c | 2d 76 69 74 75 73 2e 63 |1234@dcl|-vitus.c|
|00000080| 6f 6d 70 2e 6c 61 6e 63 | 73 2e 61 63 2e 75 6b 3e |omp.lanc|s.ac.uk>|
|00000090| 0a 44 61 74 65 3a 20 32 | 32 20 4d 61 72 20 39 31 |.Date: 2|2 Mar 91|
|000000a0| 20 31 34 3a 30 37 3a 34 | 30 20 47 4d 54 0a 0a 58 | 14:07:4|0 GMT..X|
|000000b0| 62 72 6f 77 73 65 72 20 | 69 73 20 61 20 66 69 6c |browser |is a fil|
|000000c0| 65 20 61 6e 64 20 64 69 | 72 65 63 74 6f 72 79 20 |e and di|rectory |
|000000d0| 62 72 6f 77 73 65 72 20 | 66 6f 72 20 58 2d 57 69 |browser |for X-Wi|
|000000e0| 6e 64 6f 77 73 2e 20 20 | 49 74 20 6e 65 65 64 73 |ndows. |It needs|
|000000f0| 20 4d 6f 74 69 66 20 31 | 2e 31 2e 0a 0a 4c 75 76 | Motif 1|.1...Luv|
|00000100| 20 27 6e 27 20 48 75 67 | 73 2c 0a 0a 41 6e 64 79 | 'n' Hug|s,..Andy|
|00000110| 0a 78 78 0a 0a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.xx..---|--------|
|00000120| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 63 75 74 |--------|-----cut|
|00000130| 20 68 65 72 65 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | here---|--------|
|00000140| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000150| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 0a 23 21 20 2f 62 |--------|-..#! /b|
|00000160| 69 6e 2f 73 68 0a 23 20 | 54 68 69 73 20 69 73 20 |in/sh.# |This is |
|00000170| 61 20 73 68 65 6c 6c 20 | 61 72 63 68 69 76 65 2c |a shell |archive,|
|00000180| 20 6d 65 61 6e 69 6e 67 | 3a 0a 23 20 31 2e 20 52 | meaning|:.# 1. R|
|00000190| 65 6d 6f 76 65 20 65 76 | 65 72 79 74 68 69 6e 67 |emove ev|erything|
|000001a0| 20 61 62 6f 76 65 20 74 | 68 65 20 23 21 20 2f 62 | above t|he #! /b|
|000001b0| 69 6e 2f 73 68 20 6c 69 | 6e 65 2e 0a 23 20 32 2e |in/sh li|ne..# 2.|
|000001c0| 20 53 61 76 65 20 74 68 | 65 20 72 65 73 75 6c 74 | Save th|e result|
|000001d0| 69 6e 67 20 74 65 78 74 | 20 69 6e 20 61 20 66 69 |ing text| in a fi|
|000001e0| 6c 65 2e 0a 23 20 33 2e | 20 45 78 65 63 75 74 65 |le..# 3.| Execute|
|000001f0| 20 74 68 65 20 66 69 6c | 65 20 77 69 74 68 20 2f | the fil|e with /|
|00000200| 62 69 6e 2f 73 68 20 28 | 6e 6f 74 20 63 73 68 29 |bin/sh (|not csh)|
|00000210| 20 74 6f 20 63 72 65 61 | 74 65 20 74 68 65 20 66 | to crea|te the f|
|00000220| 69 6c 65 73 3a 0a 23 09 | 43 4f 50 59 52 49 47 48 |iles:.#.|COPYRIGH|
|00000230| 54 0a 23 09 4d 61 6b 65 | 66 69 6c 65 0a 23 09 52 |T.#.Make|file.#.R|
|00000240| 45 41 44 4d 45 0a 23 09 | 54 4f 44 4f 0a 23 09 78 |EADME.#.|TODO.#.x|
|00000250| 62 72 6f 77 73 65 72 2e | 31 0a 23 09 78 62 72 6f |browser.|1.#.xbro|
|00000260| 77 73 65 72 2e 62 75 74 | 74 6f 6e 73 0a 23 09 78 |wser.but|tons.#.x|
|00000270| 62 72 6f 77 73 65 72 2e | 63 0a 23 09 78 62 72 6f |browser.|c.#.xbro|
|00000280| 77 73 65 72 2e 6d 61 67 | 69 63 0a 23 20 54 68 69 |wser.mag|ic.# Thi|
|00000290| 73 20 61 72 63 68 69 76 | 65 20 63 72 65 61 74 65 |s archiv|e create|
|000002a0| 64 3a 20 46 72 69 20 4d | 61 72 20 32 32 20 31 33 |d: Fri M|ar 22 13|
|000002b0| 3a 35 34 3a 31 36 20 31 | 39 39 31 0a 65 78 70 6f |:54:16 1|991.expo|
|000002c0| 72 74 20 50 41 54 48 3b | 20 50 41 54 48 3d 2f 62 |rt PATH;| PATH=/b|
|000002d0| 69 6e 3a 24 50 41 54 48 | 0a 69 66 20 74 65 73 74 |in:$PATH|.if test|
|000002e0| 20 2d 66 20 27 43 4f 50 | 59 52 49 47 48 54 27 0a | -f 'COP|YRIGHT'.|
|000002f0| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|00000300| 20 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 | will no|t over-w|
|00000310| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|00000320| 6c 65 20 22 27 43 4f 50 | 59 52 49 47 48 54 27 22 |le "'COP|YRIGHT'"|
|00000330| 0a 65 6c 73 65 0a 73 65 | 64 20 27 73 2f 5e 58 2f |.else.se|d 's/^X/|
|00000340| 2f 27 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |/' << \S|HAR_EOF |
|00000350| 3e 20 27 43 4f 50 59 52 | 49 47 48 54 27 0a 58 43 |> 'COPYR|IGHT'.XC|
|00000360| 6f 70 79 72 69 67 68 74 | 20 28 63 29 20 31 39 39 |opyright| (c) 199|
|00000370| 31 20 41 6e 64 79 20 43 | 6f 6c 65 62 6f 75 72 6e |1 Andy C|olebourn|
|00000380| 65 20 61 6e 64 20 74 68 | 65 20 55 6e 69 76 65 72 |e and th|e Univer|
|00000390| 73 69 74 79 20 6f 66 20 | 4c 61 6e 63 61 73 74 65 |sity of |Lancaste|
|000003a0| 72 0a 58 0a 58 50 65 72 | 6d 69 73 73 69 6f 6e 20 |r.X.XPer|mission |
|000003b0| 74 6f 20 75 73 65 2c 20 | 63 6f 70 79 2c 20 6d 6f |to use, |copy, mo|
|000003c0| 64 69 66 79 2c 20 64 69 | 73 74 72 69 62 75 74 65 |dify, di|stribute|
|000003d0| 2c 20 61 6e 64 20 73 65 | 6c 6c 20 74 68 69 73 20 |, and se|ll this |
|000003e0| 73 6f 66 74 77 61 72 65 | 0a 58 61 6e 64 20 69 74 |software|.Xand it|
|000003f0| 73 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |s docume|ntation |
|00000400| 66 6f 72 20 61 6e 79 20 | 70 75 72 70 6f 73 65 20 |for any |purpose |
|00000410| 69 73 20 68 65 72 65 62 | 79 20 67 72 61 6e 74 65 |is hereb|y grante|
|00000420| 64 20 77 69 74 68 6f 75 | 74 20 66 65 65 2c 0a 58 |d withou|t fee,.X|
|00000430| 70 72 6f 76 69 64 65 64 | 20 74 68 61 74 20 74 68 |provided| that th|
|00000440| 65 20 61 62 6f 76 65 20 | 63 6f 70 79 72 69 67 68 |e above |copyrigh|
|00000450| 74 20 6e 6f 74 69 63 65 | 20 61 70 70 65 61 72 20 |t notice| appear |
|00000460| 69 6e 20 61 6c 6c 20 63 | 6f 70 69 65 73 20 61 6e |in all c|opies an|
|00000470| 64 20 74 68 61 74 0a 58 | 62 6f 74 68 20 74 68 61 |d that.X|both tha|
|00000480| 74 20 63 6f 70 79 72 69 | 67 68 74 20 6e 6f 74 69 |t copyri|ght noti|
|00000490| 63 65 20 61 6e 64 20 74 | 68 69 73 20 70 65 72 6d |ce and t|his perm|
|000004a0| 69 73 73 69 6f 6e 20 6e | 6f 74 69 63 65 20 61 70 |ission n|otice ap|
|000004b0| 70 65 61 72 20 69 6e 0a | 58 73 75 70 70 6f 72 74 |pear in.|Xsupport|
|000004c0| 69 6e 67 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |ing docu|mentatio|
|000004d0| 6e 2c 20 61 6e 64 20 74 | 68 61 74 20 74 68 65 20 |n, and t|hat the |
|000004e0| 6e 61 6d 65 73 20 6f 66 | 20 41 6e 64 79 20 43 6f |names of| Andy Co|
|000004f0| 6c 65 62 6f 75 72 6e 65 | 20 61 6e 64 0a 58 74 68 |lebourne| and.Xth|
|00000500| 65 20 55 6e 69 76 65 72 | 73 69 74 79 20 6f 66 20 |e Univer|sity of |
|00000510| 4c 61 6e 63 61 73 74 65 | 72 20 6e 6f 74 20 62 65 |Lancaste|r not be|
|00000520| 20 75 73 65 64 20 69 6e | 20 61 64 76 65 72 74 69 | used in| adverti|
|00000530| 73 69 6e 67 20 6f 72 20 | 70 75 62 6c 69 63 69 74 |sing or |publicit|
|00000540| 79 20 0a 58 70 65 72 74 | 61 69 6e 69 6e 67 20 74 |y .Xpert|aining t|
|00000550| 6f 20 64 69 73 74 72 69 | 62 75 74 69 6f 6e 20 6f |o distri|bution o|
|00000560| 66 20 74 68 65 20 73 6f | 66 74 77 61 72 65 20 77 |f the so|ftware w|
|00000570| 69 74 68 6f 75 74 20 73 | 70 65 63 69 66 69 63 2c |ithout s|pecific,|
|00000580| 20 77 72 69 74 74 65 6e | 20 70 72 69 6f 72 0a 58 | written| prior.X|
|00000590| 70 65 72 6d 69 73 73 69 | 6f 6e 2e 20 20 41 6e 64 |permissi|on. And|
|000005a0| 79 20 43 6f 6c 65 62 6f | 75 72 6e 65 20 61 6e 64 |y Colebo|urne and|
|000005b0| 20 74 68 65 20 55 6e 69 | 76 65 72 73 69 74 79 20 | the Uni|versity |
|000005c0| 6f 66 20 4c 61 6e 63 61 | 73 74 65 72 20 6d 61 6b |of Lanca|ster mak|
|000005d0| 65 20 6e 6f 20 0a 58 72 | 65 70 72 65 73 65 6e 74 |e no .Xr|epresent|
|000005e0| 61 74 69 6f 6e 73 20 61 | 62 6f 75 74 20 74 68 65 |ations a|bout the|
|000005f0| 20 73 75 69 74 61 62 69 | 6c 69 74 79 20 6f 66 20 | suitabi|lity of |
|00000600| 74 68 69 73 20 73 6f 66 | 74 77 61 72 65 20 66 6f |this sof|tware fo|
|00000610| 72 20 61 6e 79 20 70 75 | 72 70 6f 73 65 2e 0a 58 |r any pu|rpose..X|
|00000620| 49 74 20 69 73 20 70 72 | 6f 76 69 64 65 64 20 22 |It is pr|ovided "|
|00000630| 61 73 20 69 73 22 20 77 | 69 74 68 6f 75 74 20 65 |as is" w|ithout e|
|00000640| 78 70 72 65 73 73 20 6f | 72 20 69 6d 70 6c 69 65 |xpress o|r implie|
|00000650| 64 20 77 61 72 72 61 6e | 74 79 2e 0a 58 0a 58 41 |d warran|ty..X.XA|
|00000660| 6e 64 79 20 43 6f 6c 65 | 62 6f 75 72 6e 65 20 61 |ndy Cole|bourne a|
|00000670| 6e 64 20 74 68 65 20 55 | 6e 69 76 65 72 73 69 74 |nd the U|niversit|
|00000680| 79 20 6f 66 20 4c 61 6e | 63 61 73 74 65 72 20 44 |y of Lan|caster D|
|00000690| 49 53 43 4c 41 49 4d 53 | 20 41 4c 4c 20 57 41 52 |ISCLAIMS| ALL WAR|
|000006a0| 52 41 4e 54 49 45 53 0a | 58 57 49 54 48 20 52 45 |RANTIES.|XWITH RE|
|000006b0| 47 41 52 44 20 54 4f 20 | 54 48 49 53 20 53 4f 46 |GARD TO |THIS SOF|
|000006c0| 54 57 41 52 45 2c 20 49 | 4e 43 4c 55 44 49 4e 47 |TWARE, I|NCLUDING|
|000006d0| 20 41 4c 4c 20 49 4d 50 | 4c 49 45 44 20 57 41 52 | ALL IMP|LIED WAR|
|000006e0| 52 41 4e 54 49 45 53 20 | 4f 46 20 0a 58 4d 45 52 |RANTIES |OF .XMER|
|000006f0| 43 48 41 4e 54 41 42 49 | 4c 49 54 59 20 41 4e 44 |CHANTABI|LITY AND|
|00000700| 20 46 49 54 4e 45 53 53 | 2c 20 49 4e 20 4e 4f 20 | FITNESS|, IN NO |
|00000710| 45 56 45 4e 54 20 53 48 | 41 4c 4c 20 41 6e 64 79 |EVENT SH|ALL Andy|
|00000720| 20 43 6f 6c 65 62 6f 75 | 72 6e 65 20 61 6e 64 20 | Colebou|rne and |
|00000730| 74 68 65 0a 58 55 6e 69 | 76 65 72 73 69 74 79 20 |the.XUni|versity |
|00000740| 6f 66 20 4c 61 6e 63 61 | 73 74 65 72 20 42 45 20 |of Lanca|ster BE |
|00000750| 4c 49 41 42 4c 45 20 46 | 4f 52 20 41 4e 59 20 53 |LIABLE F|OR ANY S|
|00000760| 50 45 43 49 41 4c 2c 20 | 49 4e 44 49 52 45 43 54 |PECIAL, |INDIRECT|
|00000770| 20 4f 52 20 43 4f 4e 53 | 45 51 55 45 4e 54 49 41 | OR CONS|EQUENTIA|
|00000780| 4c 0a 58 44 41 4d 41 47 | 45 53 20 4f 52 20 41 4e |L.XDAMAG|ES OR AN|
|00000790| 59 20 44 41 4d 41 47 45 | 53 20 57 48 41 54 53 4f |Y DAMAGE|S WHATSO|
|000007a0| 45 56 45 52 20 52 45 53 | 55 4c 54 49 4e 47 20 46 |EVER RES|ULTING F|
|000007b0| 52 4f 4d 20 4c 4f 53 53 | 20 4f 46 20 55 53 45 2c |ROM LOSS| OF USE,|
|000007c0| 20 44 41 54 41 20 4f 52 | 20 0a 58 50 52 4f 46 49 | DATA OR| .XPROFI|
|000007d0| 54 53 2c 20 57 48 45 54 | 48 45 52 20 49 4e 20 41 |TS, WHET|HER IN A|
|000007e0| 4e 20 41 43 54 49 4f 4e | 20 4f 46 20 43 4f 4e 54 |N ACTION| OF CONT|
|000007f0| 52 41 43 54 2c 20 4e 45 | 47 4c 49 47 45 4e 43 45 |RACT, NE|GLIGENCE|
|00000800| 20 4f 52 20 4f 54 48 45 | 52 20 54 4f 52 54 49 4f | OR OTHE|R TORTIO|
|00000810| 55 53 0a 58 41 43 54 49 | 4f 4e 2c 20 41 52 49 53 |US.XACTI|ON, ARIS|
|00000820| 49 4e 47 20 4f 55 54 20 | 4f 46 20 4f 52 20 49 4e |ING OUT |OF OR IN|
|00000830| 20 43 4f 4e 4e 45 43 54 | 49 4f 4e 20 57 49 54 48 | CONNECT|ION WITH|
|00000840| 20 54 48 45 20 55 53 45 | 20 4f 52 20 50 45 52 46 | THE USE| OR PERF|
|00000850| 4f 52 4d 41 4e 43 45 20 | 4f 46 20 0a 58 54 48 49 |ORMANCE |OF .XTHI|
|00000860| 53 20 53 4f 46 54 57 41 | 52 45 2e 0a 53 48 41 52 |S SOFTWA|RE..SHAR|
|00000870| 5f 45 4f 46 0a 66 69 20 | 23 20 65 6e 64 20 6f 66 |_EOF.fi |# end of|
|00000880| 20 6f 76 65 72 77 72 69 | 74 69 6e 67 20 63 68 65 | overwri|ting che|
|00000890| 63 6b 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 4d |ck.if te|st -f 'M|
|000008a0| 61 6b 65 66 69 6c 65 27 | 0a 74 68 65 6e 0a 09 65 |akefile'|.then..e|
|000008b0| 63 68 6f 20 73 68 61 72 | 3a 20 77 69 6c 6c 20 6e |cho shar|: will n|
|000008c0| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|000008d0| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 22 27 4d 61 |isting f|ile "'Ma|
|000008e0| 6b 65 66 69 6c 65 27 22 | 0a 65 6c 73 65 0a 73 65 |kefile'"|.else.se|
|000008f0| 64 20 27 73 2f 5e 58 2f | 2f 27 20 3c 3c 20 5c 53 |d 's/^X/|/' << \S|
|00000900| 48 41 52 5f 45 4f 46 20 | 3e 20 27 4d 61 6b 65 66 |HAR_EOF |> 'Makef|
|00000910| 69 6c 65 27 0a 58 4c 49 | 42 53 20 3d 20 2d 6c 58 |ile'.XLI|BS = -lX|
|00000920| 6d 20 2d 6c 58 74 20 2d | 6c 58 31 31 0a 58 0a 58 |m -lXt -|lX11.X.X|
|00000930| 78 62 72 6f 77 73 65 72 | 3a 09 78 62 72 6f 77 73 |xbrowser|:.xbrows|
|00000940| 65 72 2e 63 0a 58 09 63 | 63 20 2d 44 5f 4e 4f 5f |er.c.X.c|c -D_NO_|
|00000950| 50 52 4f 54 4f 20 2d 6f | 20 78 62 72 6f 77 73 65 |PROTO -o| xbrowse|
|00000960| 72 20 78 62 72 6f 77 73 | 65 72 2e 63 20 24 28 4c |r xbrows|er.c $(L|
|00000970| 49 42 53 29 0a 53 48 41 | 52 5f 45 4f 46 0a 63 68 |IBS).SHA|R_EOF.ch|
|00000980| 6d 6f 64 20 2b 78 20 27 | 4d 61 6b 65 66 69 6c 65 |mod +x '|Makefile|
|00000990| 27 0a 66 69 20 23 20 65 | 6e 64 20 6f 66 20 6f 76 |'.fi # e|nd of ov|
|000009a0| 65 72 77 72 69 74 69 6e | 67 20 63 68 65 63 6b 0a |erwritin|g check.|
|000009b0| 69 66 20 74 65 73 74 20 | 2d 66 20 27 52 45 41 44 |if test |-f 'READ|
|000009c0| 4d 45 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |ME'.then|..echo s|
|000009d0| 68 61 72 3a 20 77 69 6c | 6c 20 6e 6f 74 20 6f 76 |har: wil|l not ov|
|000009e0| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|000009f0| 67 20 66 69 6c 65 20 22 | 27 52 45 41 44 4d 45 27 |g file "|'README'|
|00000a00| 22 0a 65 6c 73 65 0a 73 | 65 64 20 27 73 2f 5e 58 |".else.s|ed 's/^X|
|00000a10| 2f 2f 27 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |//' << \|SHAR_EOF|
|00000a20| 20 3e 20 27 52 45 41 44 | 4d 45 27 0a 58 54 68 69 | > 'READ|ME'.XThi|
|00000a30| 73 20 69 73 20 78 62 72 | 6f 77 73 65 72 2c 20 61 |s is xbr|owser, a|
|00000a40| 20 75 73 65 72 2d 63 6f | 6e 66 69 67 75 72 61 62 | user-co|nfigurab|
|00000a50| 6c 65 20 66 69 6c 65 20 | 61 6e 64 20 64 69 72 65 |le file |and dire|
|00000a60| 63 74 6f 72 79 20 62 72 | 6f 77 73 65 72 20 66 6f |ctory br|owser fo|
|00000a70| 72 20 58 2d 57 69 6e 64 | 6f 77 73 2e 0a 58 49 74 |r X-Wind|ows..XIt|
|00000a80| 20 63 6f 6d 70 69 6c 65 | 73 20 77 69 74 68 20 4d | compile|s with M|
|00000a90| 6f 74 69 66 20 31 2e 31 | 0a 58 0a 58 53 65 6e 64 |otif 1.1|.X.XSend|
|00000aa0| 20 6d 65 20 73 6f 6d 65 | 74 68 69 6e 67 20 6e 69 | me some|thing ni|
|00000ab0| 63 65 20 69 66 20 79 6f | 75 20 6c 69 6b 65 20 74 |ce if yo|u like t|
|00000ac0| 68 69 73 20 70 72 6f 67 | 72 61 6d 2e 0a 58 0a 58 |his prog|ram..X.X|
|00000ad0| 41 6e 64 79 20 43 6f 6c | 65 62 6f 75 72 6e 65 0a |Andy Col|ebourne.|
|00000ae0| 58 44 65 70 74 2e 20 6f | 66 20 43 6f 6d 70 75 74 |XDept. o|f Comput|
|00000af0| 69 6e 67 0a 58 4c 61 6e | 63 61 73 74 65 72 20 55 |ing.XLan|caster U|
|00000b00| 6e 69 76 65 72 73 69 74 | 79 0a 58 42 61 69 6c 72 |niversit|y.XBailr|
|00000b10| 69 67 67 0a 58 4c 41 31 | 20 34 59 57 0a 58 0a 58 |igg.XLA1| 4YW.X.X|
|00000b20| 41 6e 64 79 40 75 6b 2e | 61 63 2e 6c 61 6e 63 73 |Andy@uk.|ac.lancs|
|00000b30| 2e 63 6f 6d 70 0a 53 48 | 41 52 5f 45 4f 46 0a 66 |.comp.SH|AR_EOF.f|
|00000b40| 69 20 23 20 65 6e 64 20 | 6f 66 20 6f 76 65 72 77 |i # end |of overw|
|00000b50| 72 69 74 69 6e 67 20 63 | 68 65 63 6b 0a 69 66 20 |riting c|heck.if |
|00000b60| 74 65 73 74 20 2d 66 20 | 27 54 4f 44 4f 27 0a 74 |test -f |'TODO'.t|
|00000b70| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00000b80| 77 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 2d 77 72 |will not| over-wr|
|00000b90| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|00000ba0| 65 20 22 27 54 4f 44 4f | 27 22 0a 65 6c 73 65 0a |e "'TODO|'".else.|
|00000bb0| 73 65 64 20 27 73 2f 5e | 58 2f 2f 27 20 3c 3c 20 |sed 's/^|X//' << |
|00000bc0| 5c 53 48 41 52 5f 45 4f | 46 20 3e 20 27 54 4f 44 |\SHAR_EO|F > 'TOD|
|00000bd0| 4f 27 0a 58 54 68 69 6e | 67 73 20 74 6f 20 64 6f |O'.XThin|gs to do|
|00000be0| 20 74 6f 20 76 65 72 73 | 69 6f 6e 20 31 2e 30 20 | to vers|ion 1.0 |
|00000bf0| 6f 66 20 78 62 72 6f 77 | 73 65 72 20 28 69 6e 20 |of xbrow|ser (in |
|00000c00| 6e 6f 20 70 61 72 74 69 | 63 75 6c 61 72 20 6f 72 |no parti|cular or|
|00000c10| 64 65 72 29 0a 58 0a 58 | 31 2e 20 41 64 64 20 61 |der).X.X|1. Add a|
|00000c20| 20 73 65 70 61 72 61 74 | 65 20 77 69 6c 64 63 61 | separat|e wildca|
|00000c30| 72 64 20 74 65 78 74 20 | 77 69 64 67 65 74 20 6e |rd text |widget n|
|00000c40| 65 78 74 20 74 6f 20 74 | 68 65 20 64 69 72 65 63 |ext to t|he direc|
|00000c50| 74 6f 72 79 5f 70 61 74 | 68 20 74 65 78 74 20 77 |tory_pat|h text w|
|00000c60| 69 64 67 65 74 2e 20 20 | 54 68 69 73 0a 58 63 6f |idget. |This.Xco|
|00000c70| 75 6c 64 20 68 6f 6c 64 | 20 22 2a 2e 63 22 20 61 |uld hold| "*.c" a|
|00000c80| 6e 64 20 6f 6e 6c 79 20 | 74 68 6f 73 65 20 66 69 |nd only |those fi|
|00000c90| 6c 65 73 20 6d 61 74 63 | 68 69 6e 67 20 74 68 61 |les matc|hing tha|
|00000ca0| 74 20 77 69 6c 64 63 61 | 72 64 20 69 6e 20 74 68 |t wildca|rd in th|
|00000cb0| 65 20 64 69 72 65 63 74 | 6f 72 79 20 77 6f 75 6c |e direct|ory woul|
|00000cc0| 64 20 62 65 0a 58 64 69 | 73 70 6c 61 79 65 64 2e |d be.Xdi|splayed.|
|00000cd0| 0a 58 0a 58 32 2e 20 52 | 65 64 69 72 65 63 74 20 |.X.X2. R|edirect |
|00000ce0| 73 74 64 6f 75 74 20 65 | 74 63 2e 20 74 6f 20 61 |stdout e|tc. to a|
|00000cf0| 20 73 63 72 6f 6c 6c 69 | 6e 67 20 74 65 78 74 20 | scrolli|ng text |
|00000d00| 77 69 6e 64 6f 77 2e 20 | 20 28 49 27 76 65 20 6e |window. | (I've n|
|00000d10| 6f 20 69 64 65 61 20 68 | 6f 77 20 74 6f 20 64 6f |o idea h|ow to do|
|00000d20| 20 74 68 69 73 21 29 0a | 58 0a 58 33 2e 20 43 68 | this!).|X.X3. Ch|
|00000d30| 65 63 6b 20 74 68 65 20 | 6d 61 67 69 63 20 6e 75 |eck the |magic nu|
|00000d40| 6d 62 65 72 20 6f 66 20 | 61 20 66 69 6c 65 20 28 |mber of |a file (|
|00000d50| 61 73 20 75 6e 69 78 20 | 66 69 6c 65 20 63 6f 6d |as unix |file com|
|00000d60| 6d 61 6e 64 20 64 6f 65 | 73 29 20 61 6e 64 20 65 |mand doe|s) and e|
|00000d70| 78 65 63 75 74 65 20 61 | 0a 58 63 6f 6d 6d 61 6e |xecute a|.Xcomman|
|00000d80| 64 20 6f 6e 20 74 68 65 | 20 66 69 6c 65 20 77 68 |d on the| file wh|
|00000d90| 65 6e 20 69 74 20 69 73 | 20 64 6f 75 62 6c 65 20 |en it is| double |
|00000da0| 63 6c 69 63 6b 65 64 20 | 6f 6e 2e 0a 58 0a 58 0a |clicked |on..X.X.|
|00000db0| 58 49 66 20 79 6f 75 20 | 77 72 69 74 65 20 61 6e |XIf you |write an|
|00000dc0| 79 20 63 6f 64 65 20 66 | 6f 72 20 61 6e 79 20 6f |y code f|or any o|
|00000dd0| 66 20 74 68 65 20 61 62 | 6f 76 65 20 70 6c 65 61 |f the ab|ove plea|
|00000de0| 73 65 20 73 65 6e 64 20 | 69 74 20 74 6f 20 6d 65 |se send |it to me|
|00000df0| 20 73 6f 20 69 74 20 63 | 61 6e 20 62 65 20 61 64 | so it c|an be ad|
|00000e00| 64 65 64 0a 58 61 6e 64 | 20 72 65 6c 65 61 73 65 |ded.Xand| release|
|00000e10| 64 21 20 20 41 6c 73 6f | 20 6d 61 69 6c 20 6d 65 |d! Also| mail me|
|00000e20| 20 69 66 20 79 6f 75 20 | 68 61 76 65 20 61 6e 79 | if you |have any|
|00000e30| 20 6e 65 77 20 69 64 65 | 61 73 20 66 6f 72 20 69 | new ide|as for i|
|00000e40| 6d 70 72 6f 76 69 6e 67 | 20 78 62 72 6f 77 73 65 |mproving| xbrowse|
|00000e50| 72 2e 0a 58 0a 58 61 6e | 64 79 40 75 6b 2e 61 63 |r..X.Xan|dy@uk.ac|
|00000e60| 2e 6c 61 6e 63 73 2e 63 | 6f 6d 70 0a 53 48 41 52 |.lancs.c|omp.SHAR|
|00000e70| 5f 45 4f 46 0a 66 69 20 | 23 20 65 6e 64 20 6f 66 |_EOF.fi |# end of|
|00000e80| 20 6f 76 65 72 77 72 69 | 74 69 6e 67 20 63 68 65 | overwri|ting che|
|00000e90| 63 6b 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 78 |ck.if te|st -f 'x|
|00000ea0| 62 72 6f 77 73 65 72 2e | 31 27 0a 74 68 65 6e 0a |browser.|1'.then.|
|00000eb0| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 77 69 6c 6c |.echo sh|ar: will|
|00000ec0| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|00000ed0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 22 27 |existing| file "'|
|00000ee0| 78 62 72 6f 77 73 65 72 | 2e 31 27 22 0a 65 6c 73 |xbrowser|.1'".els|
|00000ef0| 65 0a 73 65 64 20 27 73 | 2f 5e 58 2f 2f 27 20 3c |e.sed 's|/^X//' <|
|00000f00| 3c 20 5c 53 48 41 52 5f | 45 4f 46 20 3e 20 27 78 |< \SHAR_|EOF > 'x|
|00000f10| 62 72 6f 77 73 65 72 2e | 31 27 0a 58 2e 54 48 20 |browser.|1'.X.TH |
|00000f20| 78 62 72 6f 77 73 65 72 | 20 31 20 22 32 32 20 4d |xbrowser| 1 "22 M|
|00000f30| 61 72 63 68 20 31 39 39 | 31 22 0a 58 2e 53 48 20 |arch 199|1".X.SH |
|00000f40| 4e 41 4d 45 0a 58 78 62 | 72 6f 77 73 65 72 20 5c |NAME.Xxb|rowser \|
|00000f50| 2d 20 58 31 31 20 64 69 | 72 65 63 74 6f 72 79 20 |- X11 di|rectory |
|00000f60| 61 6e 64 20 66 69 6c 65 | 20 62 72 6f 77 73 65 72 |and file| browser|
|00000f70| 0a 58 2e 53 48 20 53 59 | 4e 4f 50 53 49 53 0a 58 |.X.SH SY|NOPSIS.X|
|00000f80| 2e 42 20 78 62 72 6f 77 | 73 65 72 20 5b 2d 64 65 |.B xbrow|ser [-de|
|00000f90| 62 75 67 5d 0a 58 2e 4c | 50 0a 58 0a 58 2e 53 48 |bug].X.L|P.X.X.SH|
|00000fa0| 20 44 45 53 43 52 49 50 | 54 49 4f 4e 0a 58 0a 58 | DESCRIP|TION.X.X|
|00000fb0| 58 62 72 6f 77 73 65 72 | 20 64 69 73 70 6c 61 79 |Xbrowser| display|
|00000fc0| 73 20 74 77 6f 20 64 69 | 72 65 63 74 6f 72 79 20 |s two di|rectory |
|00000fd0| 6c 69 73 74 69 6e 67 20 | 77 69 6e 64 6f 77 73 20 |listing |windows |
|00000fe0| 61 6e 64 20 61 6c 6c 6f | 77 73 20 74 68 65 20 75 |and allo|ws the u|
|00000ff0| 73 65 72 20 74 6f 0a 58 | 74 72 61 76 65 72 73 65 |ser to.X|traverse|
|00001000| 20 74 68 65 20 64 69 72 | 65 63 74 6f 72 79 20 73 | the dir|ectory s|
|00001010| 74 72 75 63 74 75 72 65 | 20 62 79 20 64 6f 75 62 |tructure| by doub|
|00001020| 6c 65 2d 63 6c 69 63 6b | 69 6e 67 20 6f 6e 20 64 |le-click|ing on d|
|00001030| 69 72 65 63 74 6f 72 79 | 20 6e 61 6d 65 73 2e 0a |irectory| names..|
|00001040| 58 46 69 6c 65 73 0a 58 | 6f 72 20 64 69 72 65 63 |XFiles.X|or direc|
|00001050| 74 6f 72 69 65 73 20 63 | 61 6e 20 62 65 20 6d 61 |tories c|an be ma|
|00001060| 72 6b 65 64 20 62 79 20 | 61 20 73 69 6e 67 6c 65 |rked by |a single|
|00001070| 2d 63 6c 69 63 6b 2c 20 | 61 6e 64 20 6f 70 65 72 |-click, |and oper|
|00001080| 61 74 69 6f 6e 73 20 70 | 65 72 66 6f 72 6d 65 64 |ations p|erformed|
|00001090| 20 6f 6e 0a 58 74 68 65 | 6d 2e 20 20 42 75 74 74 | on.Xthe|m. Butt|
|000010a0| 6f 6e 73 20 63 61 6e 20 | 62 65 20 0a 58 64 65 66 |ons can |be .Xdef|
|000010b0| 69 6e 65 64 20 77 68 69 | 63 68 2c 20 77 68 65 6e |ined whi|ch, when|
|000010c0| 20 70 72 65 73 73 65 64 | 2c 20 65 78 65 63 75 74 | pressed|, execut|
|000010d0| 65 20 73 70 65 63 69 66 | 69 65 64 20 63 6f 6d 6d |e specif|ied comm|
|000010e0| 61 6e 64 73 20 6f 6e 20 | 74 68 65 20 73 65 6c 65 |ands on |the sele|
|000010f0| 63 74 65 64 20 66 69 6c | 65 73 2e 0a 58 41 20 64 |cted fil|es..XA d|
|00001100| 6f 75 62 6c 65 20 63 6c | 69 63 6b 20 6f 6e 20 61 |ouble cl|ick on a|
|00001110| 20 66 69 6c 65 20 63 61 | 6e 20 62 65 20 75 73 65 | file ca|n be use|
|00001120| 64 20 74 6f 20 70 65 72 | 66 6f 72 6d 20 61 20 73 |d to per|form a s|
|00001130| 70 65 63 69 66 69 65 64 | 20 6f 70 65 72 61 74 69 |pecified| operati|
|00001140| 6f 6e 2c 0a 58 64 65 74 | 65 72 6d 69 6e 65 64 20 |on,.Xdet|ermined |
|00001150| 62 79 20 74 68 65 20 66 | 69 6c 65 20 6e 61 6d 65 |by the f|ile name|
|00001160| 20 6f 72 20 73 75 66 66 | 69 78 2e 0a 58 0a 58 54 | or suff|ix..X.XT|
|00001170| 77 6f 20 64 69 72 65 63 | 74 6f 72 79 20 77 69 6e |wo direc|tory win|
|00001180| 64 6f 77 73 2c 20 74 68 | 65 20 73 6f 75 72 63 65 |dows, th|e source|
|00001190| 20 61 6e 64 20 64 65 73 | 74 69 6e 61 74 69 6f 6e | and des|tination|
|000011a0| 20 64 69 72 65 63 74 6f | 72 69 65 73 2c 20 61 72 | directo|ries, ar|
|000011b0| 65 20 73 68 6f 77 6e 2e | 20 20 45 61 63 68 0a 58 |e shown.| Each.X|
|000011c0| 77 69 6e 64 6f 77 20 63 | 61 6e 20 64 69 73 70 6c |window c|an displ|
|000011d0| 61 79 20 64 69 66 66 65 | 72 65 6e 74 20 64 69 72 |ay diffe|rent dir|
|000011e0| 65 63 74 6f 72 69 65 73 | 2c 20 77 69 74 68 20 74 |ectories|, with t|
|000011f0| 68 65 20 70 61 74 68 20 | 6f 66 20 74 68 65 20 63 |he path |of the c|
|00001200| 75 72 72 65 6e 74 0a 58 | 64 69 72 65 63 74 6f 72 |urrent.X|director|
|00001210| 79 0a 58 73 68 6f 77 6e | 20 69 6e 20 61 20 74 65 |y.Xshown| in a te|
|00001220| 78 74 20 77 69 64 67 65 | 74 20 61 62 6f 76 65 20 |xt widge|t above |
|00001230| 69 74 2e 20 20 41 20 6e | 65 77 20 70 61 74 68 20 |it. A n|ew path |
|00001240| 6d 61 79 20 62 65 20 65 | 6e 74 65 72 65 64 0a 58 |may be e|ntered.X|
|00001250| 69 6e 20 68 65 72 65 20 | 61 6e 64 20 74 68 65 20 |in here |and the |
|00001260| 64 69 72 65 63 74 6f 72 | 79 20 77 69 6c 6c 20 62 |director|y will b|
|00001270| 65 20 72 65 2d 72 65 61 | 64 20 77 68 65 6e 20 72 |e re-rea|d when r|
|00001280| 65 74 75 72 6e 20 69 73 | 20 70 72 65 73 73 65 64 |eturn is| pressed|
|00001290| 2e 20 20 41 74 20 74 68 | 65 0a 58 62 6f 74 74 6f |. At th|e.Xbotto|
|000012a0| 6d 20 6f 66 20 65 61 63 | 68 20 64 69 72 65 63 74 |m of eac|h direct|
|000012b0| 6f 72 79 20 77 69 6e 64 | 6f 77 20 61 72 65 20 66 |ory wind|ow are f|
|000012c0| 6f 75 72 20 62 75 74 74 | 6f 6e 73 3a 0a 58 0a 58 |our butt|ons:.X.X|
|000012d0| 2e 49 20 09 41 6c 6c 0a | 58 73 65 6c 65 63 74 20 |.I .All.|Xselect |
|000012e0| 61 6c 6c 20 66 69 6c 65 | 73 20 61 6e 64 20 64 69 |all file|s and di|
|000012f0| 72 65 63 74 6f 72 69 65 | 73 2e 0a 58 0a 58 2e 49 |rectorie|s..X.X.I|
|00001300| 20 09 43 6c 65 61 72 0a | 58 64 65 73 65 6c 65 63 | .Clear.|Xdeselec|
|00001310| 74 73 20 61 6c 6c 20 66 | 69 6c 65 73 20 61 6e 64 |ts all f|iles and|
|00001320| 20 64 69 72 65 63 74 6f | 72 69 65 73 2e 0a 58 0a | directo|ries..X.|
|00001330| 58 2e 49 20 09 46 69 6c | 65 73 0a 58 73 65 6c 65 |X.I .Fil|es.Xsele|
|00001340| 63 74 73 20 6f 6e 6c 79 | 20 66 69 6c 65 73 2e 0a |cts only| files..|
|00001350| 58 0a 58 2e 49 20 09 49 | 6e 76 65 72 74 0a 58 69 |X.X.I .I|nvert.Xi|
|00001360| 6e 76 65 72 74 73 20 61 | 6c 6c 2e 0a 58 0a 58 2e |nverts a|ll..X.X.|
|00001370| 53 48 20 4f 50 54 49 4f | 4e 53 0a 58 5c 2d 64 65 |SH OPTIO|NS.X\-de|
|00001380| 62 75 67 20 20 20 20 44 | 69 73 70 6c 61 79 73 20 |bug D|isplays |
|00001390| 74 68 65 20 62 75 74 74 | 6f 6e 20 61 6e 64 20 6d |the butt|on and m|
|000013a0| 61 67 69 63 20 66 69 6c | 65 20 69 6e 66 6f 72 6d |agic fil|e inform|
|000013b0| 61 74 69 6f 6e 20 28 61 | 6e 64 20 61 6e 79 20 65 |ation (a|nd any e|
|000013c0| 72 72 6f 72 73 29 20 61 | 73 0a 58 74 68 65 20 66 |rrors) a|s.Xthe f|
|000013d0| 69 6c 65 73 20 61 72 65 | 20 72 65 61 64 2e 0a 58 |iles are| read..X|
|000013e0| 0a 58 2e 53 48 20 42 55 | 54 54 4f 4e 53 0a 58 54 |.X.SH BU|TTONS.XT|
|000013f0| 68 65 72 65 20 61 72 65 | 20 66 6f 75 72 20 62 75 |here are| four bu|
|00001400| 74 74 6f 6e 73 20 77 68 | 69 63 68 20 61 6c 77 61 |ttons wh|ich alwa|
|00001410| 79 73 20 61 70 70 65 61 | 72 2c 20 51 55 49 54 2c |ys appea|r, QUIT,|
|00001420| 20 56 49 45 57 2c 20 48 | 45 58 20 56 49 45 57 20 | VIEW, H|EX VIEW |
|00001430| 61 6e 64 20 52 45 4e 41 | 4d 45 2e 0a 58 0a 58 2e |and RENA|ME..X.X.|
|00001440| 49 20 51 55 49 54 0a 58 | 65 78 69 74 73 20 78 62 |I QUIT.X|exits xb|
|00001450| 72 6f 77 73 65 72 2c 0a | 58 0a 58 2e 49 20 56 49 |rowser,.|X.X.I VI|
|00001460| 45 57 0a 58 64 69 73 70 | 6c 61 79 73 20 73 65 6c |EW.Xdisp|lays sel|
|00001470| 65 63 74 65 64 20 74 65 | 78 74 20 66 69 6c 65 73 |ected te|xt files|
|00001480| 20 69 6e 20 61 20 77 69 | 6e 64 6f 77 2c 0a 58 0a | in a wi|ndow,.X.|
|00001490| 58 2e 49 20 48 45 58 20 | 56 49 45 57 0a 58 64 69 |X.I HEX |VIEW.Xdi|
|000014a0| 73 70 6c 61 79 73 20 73 | 65 6c 65 63 74 65 64 20 |splays s|elected |
|000014b0| 66 69 6c 65 73 20 61 73 | 20 68 65 78 20 63 6f 64 |files as| hex cod|
|000014c0| 65 73 20 69 6e 20 61 20 | 77 69 6e 64 6f 77 2e 0a |es in a |window..|
|000014d0| 58 0a 58 2e 49 20 52 45 | 4e 41 4d 45 0a 58 61 6c |X.X.I RE|NAME.Xal|
|000014e0| 6c 6f 77 73 20 73 65 6c | 65 63 74 65 64 20 66 69 |lows sel|ected fi|
|000014f0| 6c 65 73 20 61 6e 64 20 | 64 69 72 65 63 74 6f 72 |les and |director|
|00001500| 69 65 73 20 74 6f 20 62 | 65 20 72 65 6e 61 6d 65 |ies to b|e rename|
|00001510| 64 2e 20 0a 58 0a 58 4f | 74 68 65 72 20 62 75 74 |d. .X.XO|ther but|
|00001520| 74 6f 6e 73 20 61 72 65 | 20 64 65 66 69 6e 65 64 |tons are| defined|
|00001530| 20 69 6e 20 61 20 66 69 | 6c 65 20 63 61 6c 6c 65 | in a fi|le calle|
|00001540| 64 20 0a 58 2e 49 20 78 | 62 72 6f 77 73 65 72 2e |d .X.I x|browser.|
|00001550| 62 75 74 74 6f 6e 73 0a | 58 77 68 69 63 68 20 69 |buttons.|Xwhich i|
|00001560| 73 20 65 69 74 68 65 72 | 20 69 6e 20 74 68 65 20 |s either| in the |
|00001570| 64 69 72 65 63 74 6f 72 | 79 20 69 6e 20 77 68 69 |director|y in whi|
|00001580| 63 68 20 78 62 72 6f 77 | 73 65 72 20 69 73 20 73 |ch xbrow|ser is s|
|00001590| 74 61 72 74 65 64 20 6f | 72 20 74 68 65 20 64 69 |tarted o|r the di|
|000015a0| 72 65 63 74 6f 72 79 0a | 58 73 70 65 63 69 66 69 |rectory.|Xspecifi|
|000015b0| 65 64 20 62 79 20 74 68 | 65 20 65 6e 76 69 72 6f |ed by th|e enviro|
|000015c0| 6e 6d 65 6e 74 20 76 61 | 72 69 61 62 6c 65 0a 58 |nment va|riable.X|
|000015d0| 2e 49 20 58 42 52 4f 57 | 53 45 52 2e 0a 58 49 74 |.I XBROW|SER..XIt|
|000015e0| 20 69 73 20 72 65 61 64 | 20 61 75 74 6f 6d 61 74 | is read| automat|
|000015f0| 69 63 61 6c 6c 79 20 77 | 68 65 6e 20 78 62 72 6f |ically w|hen xbro|
|00001600| 77 73 65 72 20 69 73 20 | 72 75 6e 2e 0a 58 0a 58 |wser is |run..X.X|
|00001610| 45 61 63 68 20 6c 69 6e | 65 20 69 6e 20 74 68 65 |Each lin|e in the|
|00001620| 20 62 75 74 74 6f 6e 20 | 66 69 6c 65 20 73 70 65 | button |file spe|
|00001630| 63 69 66 69 65 73 3a 0a | 58 20 31 2e 20 74 68 65 |cifies:.|X 1. the|
|00001640| 20 62 75 74 74 6f 6e 20 | 6c 61 62 65 6c 2c 0a 58 | button |label,.X|
|00001650| 20 32 2e 20 74 68 65 20 | 63 6f 6e 74 65 78 74 20 | 2. the |context |
|00001660| 69 6e 20 77 68 69 63 68 | 20 74 68 65 20 63 6f 6d |in which| the com|
|00001670| 6d 61 6e 64 20 69 73 20 | 75 73 65 64 2c 0a 58 20 |mand is |used,.X |
|00001680| 33 2e 20 61 20 72 65 2d | 72 65 61 64 20 66 6c 61 |3. a re-|read fla|
|00001690| 67 2c 20 61 6e 64 0a 58 | 20 34 2e 20 61 20 63 6f |g, and.X| 4. a co|
|000016a0| 6d 6d 61 6e 64 3a 0a 58 | 0a 58 41 20 27 23 27 20 |mmand:.X|.XA '#' |
|000016b0| 61 74 20 74 68 65 20 73 | 74 61 72 74 20 6f 66 20 |at the s|tart of |
|000016c0| 61 20 6c 69 6e 65 20 69 | 6e 64 69 63 61 74 65 73 |a line i|ndicates|
|000016d0| 20 74 68 61 74 20 74 68 | 65 20 6c 69 6e 65 20 69 | that th|e line i|
|000016e0| 73 20 61 20 63 6f 6d 6d | 65 6e 74 2e 0a 58 0a 58 |s a comm|ent..X.X|
|000016f0| 2e 53 53 20 42 75 74 74 | 6f 6e 20 4c 61 62 65 6c |.SS Butt|on Label|
|00001700| 0a 58 54 68 65 20 6c 61 | 62 65 6c 20 69 73 20 74 |.XThe la|bel is t|
|00001710| 68 65 20 74 65 78 74 20 | 74 68 61 74 20 77 69 6c |he text |that wil|
|00001720| 6c 20 61 70 70 65 61 72 | 20 6f 6e 20 74 68 65 20 |l appear| on the |
|00001730| 62 75 74 74 6f 6e 3b 20 | 69 74 20 6d 61 79 20 6e |button; |it may n|
|00001740| 6f 74 20 63 6f 6e 74 61 | 69 6e 20 73 70 61 63 65 |ot conta|in space|
|00001750| 73 2e 0a 58 0a 58 2e 53 | 53 20 42 75 74 74 6f 6e |s..X.X.S|S Button|
|00001760| 20 43 6f 6e 74 65 78 74 | 0a 58 54 68 65 20 62 75 | Context|.XThe bu|
|00001770| 74 74 6f 6e 20 63 6f 6e | 74 65 78 74 20 64 65 74 |tton con|text det|
|00001780| 65 72 6d 69 6e 65 73 20 | 74 68 65 20 72 65 6c 61 |ermines |the rela|
|00001790| 74 69 6f 6e 73 68 69 70 | 20 62 65 74 77 65 65 6e |tionship| between|
|000017a0| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 61 6e 64 | the com|mand and|
|000017b0| 20 74 68 65 0a 58 69 74 | 65 6d 73 20 73 65 6c 65 | the.Xit|ems sele|
|000017c0| 63 74 65 64 20 69 6e 20 | 74 68 65 20 64 69 72 65 |cted in |the dire|
|000017d0| 63 74 6f 72 79 20 76 69 | 65 77 65 72 73 2e 20 20 |ctory vi|ewers. |
|000017e0| 53 6f 6d 65 20 63 6f 6d | 6d 61 6e 64 73 20 6d 61 |Some com|mands ma|
|000017f0| 79 20 62 65 20 70 65 72 | 66 6f 72 6d 65 64 20 6f |y be per|formed o|
|00001800| 6e 0a 58 6d 61 6e 79 20 | 66 69 6c 65 73 20 61 74 |n.Xmany |files at|
|00001810| 20 6f 6e 63 65 2c 20 66 | 6f 72 20 65 78 61 6d 70 | once, f|or examp|
|00001820| 6c 65 20 27 63 6f 6d 70 | 72 65 73 73 2c 27 20 77 |le 'comp|ress,' w|
|00001830| 68 65 72 65 61 73 20 6f | 74 68 65 72 73 20 6f 6e |hereas o|thers on|
|00001840| 6c 79 20 6d 61 6b 65 20 | 73 65 6e 73 65 20 77 69 |ly make |sense wi|
|00001850| 74 68 0a 58 6f 6e 65 20 | 66 69 6c 65 2c 20 66 6f |th.Xone |file, fo|
|00001860| 72 20 65 78 61 6d 70 6c | 65 20 78 65 64 69 74 2e |r exampl|e xedit.|
|00001870| 20 20 54 68 65 20 66 6f | 72 6d 65 72 20 77 6f 75 | The fo|rmer wou|
|00001880| 6c 64 20 75 73 65 20 61 | 20 62 75 74 74 6f 6e 20 |ld use a| button |
|00001890| 63 6f 6e 74 65 78 74 20 | 6f 66 20 27 61 6c 6c 2c |context |of 'all,|
|000018a0| 27 0a 58 61 6e 64 20 74 | 68 65 20 6c 61 74 74 65 |'.Xand t|he latte|
|000018b0| 72 20 77 6f 75 6c 64 20 | 75 73 65 20 27 65 61 63 |r would |use 'eac|
|000018c0| 68 2e 27 20 20 54 68 65 | 20 64 69 66 66 65 72 65 |h.' The| differe|
|000018d0| 6e 63 65 20 69 73 20 74 | 68 61 74 20 61 20 6e 65 |nce is t|hat a ne|
|000018e0| 77 20 78 65 64 69 74 20 | 69 73 20 72 75 6e 20 66 |w xedit |is run f|
|000018f0| 6f 72 0a 58 65 61 63 68 | 20 73 65 6c 65 63 74 65 |or.Xeach| selecte|
|00001900| 64 20 66 69 6c 65 20 69 | 6e 20 74 68 65 20 6c 61 |d file i|n the la|
|00001910| 74 74 65 72 20 63 61 73 | 65 2e 20 20 54 68 65 20 |tter cas|e. The |
|00001920| 61 76 61 69 6c 61 62 6c | 65 20 62 75 74 74 6f 6e |availabl|e button|
|00001930| 20 63 6f 6e 74 65 78 74 | 73 20 61 72 65 20 6c 69 | context|s are li|
|00001940| 73 74 65 64 20 62 65 6c | 6f 77 3a 0a 58 0a 58 2e |sted bel|ow:.X.X.|
|00001950| 49 20 61 6c 6c 0a 58 5c | 2d 20 65 78 65 63 75 74 |I all.X\|- execut|
|00001960| 65 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 6f 6e |e the co|mmand on|
|00001970| 63 65 20 77 69 74 68 20 | 61 6c 6c 20 74 68 65 20 |ce with |all the |
|00001980| 6d 61 72 6b 65 64 20 66 | 69 6c 65 73 20 61 73 0a |marked f|iles as.|
|00001990| 58 74 68 65 20 70 61 72 | 61 6d 65 74 65 72 2e 20 |Xthe par|ameter. |
|000019a0| 20 54 68 65 20 63 6f 6d | 6d 61 6e 64 20 77 69 6c | The com|mand wil|
|000019b0| 6c 20 62 65 20 72 75 6e | 20 69 6e 20 74 68 65 20 |l be run| in the |
|000019c0| 64 69 72 65 63 74 6f 72 | 79 20 6f 66 20 74 68 65 |director|y of the|
|000019d0| 20 6d 61 72 6b 65 64 20 | 66 69 6c 65 73 2e 0a 58 | marked |files..X|
|000019e0| 28 4f 6e 65 20 27 25 73 | 27 20 73 68 6f 75 6c 64 |(One '%s|' should|
|000019f0| 20 62 65 20 70 72 65 73 | 65 6e 74 20 69 6e 20 74 | be pres|ent in t|
|00001a00| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 73 74 72 69 6e |he comma|nd strin|
|00001a10| 67 29 2e 0a 58 0a 58 2e | 49 20 61 6c 6c 70 61 74 |g)..X.X.|I allpat|
|00001a20| 68 0a 58 5c 2d 20 74 68 | 65 20 63 6f 6d 6d 61 6e |h.X\- th|e comman|
|00001a30| 64 20 69 73 20 65 78 65 | 63 75 74 65 64 20 6f 6e |d is exe|cuted on|
|00001a40| 63 65 20 61 6e 64 20 66 | 75 6c 6c 20 70 61 74 68 |ce and f|ull path|
|00001a50| 6e 61 6d 65 73 20 61 72 | 65 20 75 73 65 64 20 66 |names ar|e used f|
|00001a60| 6f 72 20 65 61 63 68 0a | 58 66 69 6c 65 2e 20 20 |or each.|Xfile. |
|00001a70| 28 4f 6e 65 20 27 25 73 | 27 20 73 68 6f 75 6c 64 |(One '%s|' should|
|00001a80| 20 62 65 20 70 72 65 73 | 65 6e 74 20 69 6e 20 74 | be pres|ent in t|
|00001a90| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 73 74 72 69 6e |he comma|nd strin|
|00001aa0| 67 29 0a 58 0a 58 2e 49 | 20 65 61 63 68 0a 58 5c |g).X.X.I| each.X\|
|00001ab0| 2d 20 65 78 65 63 75 74 | 65 20 74 68 65 20 63 6f |- execut|e the co|
|00001ac0| 6d 6d 61 6e 64 20 6f 6e | 63 65 20 66 6f 72 20 65 |mmand on|ce for e|
|00001ad0| 61 63 68 20 66 69 6c 65 | 20 6d 61 72 6b 65 64 2e |ach file| marked.|
|00001ae0| 20 20 28 4f 6e 65 20 27 | 25 73 27 20 73 68 6f 75 | (One '|%s' shou|
|00001af0| 6c 64 20 62 65 20 70 72 | 65 73 65 6e 74 20 69 6e |ld be pr|esent in|
|00001b00| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 73 74 72 | the com|mand str|
|00001b10| 69 6e 67 29 0a 58 0a 58 | 2e 49 20 63 6f 6d 6d 61 |ing).X.X|.I comma|
|00001b20| 6e 64 0a 58 5c 2d 20 65 | 78 65 63 75 74 65 20 74 |nd.X\- e|xecute t|
|00001b30| 68 65 20 63 6f 6d 6d 61 | 6e 64 2e 20 20 54 68 65 |he comma|nd. The|
|00001b40| 20 63 75 72 72 65 6e 74 | 20 77 6f 72 6b 69 6e 67 | current| working|
|00001b50| 20 64 69 72 65 63 74 6f | 72 79 20 77 69 6c 6c 20 | directo|ry will |
|00001b60| 62 65 20 73 65 74 20 74 | 6f 20 74 68 65 20 70 61 |be set t|o the pa|
|00001b70| 74 68 0a 58 6f 66 20 74 | 68 65 20 6c 61 73 74 20 |th.Xof t|he last |
|00001b80| 66 69 6c 65 20 63 6c 69 | 63 6b 65 64 20 6f 6e 20 |file cli|cked on |
|00001b90| 62 65 66 6f 72 65 20 74 | 68 65 20 63 6f 6d 6d 61 |before t|he comma|
|00001ba0| 6e 64 20 69 73 20 65 78 | 65 63 75 74 65 64 2e 20 |nd is ex|ecuted. |
|00001bb0| 4e 6f 20 70 61 72 61 6d | 65 74 65 72 73 20 61 72 |No param|eters ar|
|00001bc0| 65 0a 58 73 75 62 73 74 | 69 74 75 74 65 64 20 28 |e.Xsubst|ituted (|
|00001bd0| 6e 6f 20 27 25 73 27 20 | 73 68 6f 75 6c 64 20 62 |no '%s' |should b|
|00001be0| 65 20 70 72 65 73 65 6e | 74 20 69 6e 20 74 68 65 |e presen|t in the|
|00001bf0| 20 63 6f 6d 6d 61 6e 64 | 20 73 74 72 69 6e 67 29 | command| string)|
|00001c00| 2e 0a 58 0a 58 2e 49 20 | 73 6f 75 72 63 65 64 65 |..X.X.I |sourcede|
|00001c10| 73 74 0a 58 5c 2d 20 74 | 77 6f 20 73 74 72 69 6e |st.X\- t|wo strin|
|00001c20| 67 73 20 61 72 65 20 70 | 6c 61 63 65 64 20 69 6e |gs are p|laced in|
|00001c30| 74 6f 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 73 |to the c|ommand s|
|00001c40| 74 72 69 6e 67 3a 20 66 | 69 72 73 74 2c 20 61 6c |tring: f|irst, al|
|00001c50| 6c 20 74 68 65 0a 58 66 | 69 6c 65 73 20 73 65 6c |l the.Xf|iles sel|
|00001c60| 65 63 74 65 64 20 6f 6e | 20 74 68 65 20 6c 65 66 |ected on| the lef|
|00001c70| 74 2c 20 61 6e 64 20 73 | 65 63 6f 6e 64 6c 79 2c |t, and s|econdly,|
|00001c80| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 72 69 67 | the cur|rent rig|
|00001c90| 68 74 2d 64 69 72 65 63 | 74 6f 72 79 20 6e 61 6d |ht-direc|tory nam|
|00001ca0| 65 2e 20 20 54 68 65 20 | 73 69 6e 67 6c 65 0a 58 |e. The |single.X|
|00001cb0| 63 6f 6d 6d 61 6e 64 20 | 69 73 20 74 68 65 6e 20 |command |is then |
|00001cc0| 65 78 65 63 75 74 65 64 | 2e 20 28 54 77 6f 20 27 |executed|. (Two '|
|00001cd0| 25 73 27 20 73 68 6f 75 | 6c 64 20 62 65 20 70 72 |%s' shou|ld be pr|
|00001ce0| 65 73 65 6e 74 20 69 6e | 20 74 68 65 20 63 6f 6d |esent in| the com|
|00001cf0| 6d 61 6e 64 20 73 74 72 | 69 6e 67 2e 29 0a 58 0a |mand str|ing.).X.|
|00001d00| 58 54 68 65 20 72 65 61 | 73 6f 6e 20 66 6f 72 20 |XThe rea|son for |
|00001d10| 74 68 65 20 64 69 73 74 | 69 6e 63 74 69 6f 6e 20 |the dist|inction |
|00001d20| 62 65 74 77 65 65 6e 20 | 27 61 6c 6c 27 20 61 6e |between |'all' an|
|00001d30| 64 20 27 61 6c 6c 70 61 | 74 68 27 20 69 73 20 62 |d 'allpa|th' is b|
|00001d40| 65 63 61 75 73 65 20 74 | 68 65 20 74 77 6f 0a 58 |ecause t|he two.X|
|00001d50| 64 69 72 65 63 74 6f 72 | 79 20 76 69 65 77 65 72 |director|y viewer|
|00001d60| 73 20 6d 61 79 20 62 65 | 20 6f 70 65 6e 65 64 20 |s may be| opened |
|00001d70| 6f 6e 20 64 69 66 66 65 | 72 65 6e 74 20 64 69 72 |on diffe|rent dir|
|00001d80| 65 63 74 6f 72 69 65 73 | 2e 20 20 57 69 74 68 20 |ectories|. With |
|00001d90| 27 61 6c 6c 27 2c 20 74 | 68 65 0a 58 63 6f 6d 6d |'all', t|he.Xcomm|
|00001da0| 61 6e 64 20 69 73 20 72 | 75 6e 20 66 72 6f 6d 20 |and is r|un from |
|00001db0| 74 68 65 20 64 69 72 65 | 63 74 6f 72 79 20 6f 66 |the dire|ctory of|
|00001dc0| 20 74 68 65 20 6c 65 66 | 74 20 68 61 6e 64 20 76 | the lef|t hand v|
|00001dd0| 69 65 77 65 72 20 66 6f | 72 20 66 69 6c 65 73 20 |iewer fo|r files |
|00001de0| 73 65 6c 65 63 74 65 64 | 20 6f 6e 0a 58 74 68 65 |selected| on.Xthe|
|00001df0| 20 6c 65 66 74 2c 20 61 | 6e 64 20 61 6e 6f 74 68 | left, a|nd anoth|
|00001e00| 65 72 20 63 6f 6d 6d 61 | 6e 64 20 72 75 6e 20 66 |er comma|nd run f|
|00001e10| 72 6f 6d 20 74 68 65 20 | 64 69 72 65 63 74 6f 72 |rom the |director|
|00001e20| 79 20 6f 66 20 74 68 65 | 20 72 69 67 68 74 20 68 |y of the| right h|
|00001e30| 61 6e 64 20 76 69 65 77 | 65 72 20 66 6f 72 0a 58 |and view|er for.X|
|00001e40| 74 68 6f 73 65 20 66 69 | 6c 65 73 20 73 65 6c 65 |those fi|les sele|
|00001e50| 63 74 65 64 20 6f 6e 20 | 74 68 65 20 72 69 67 68 |cted on |the righ|
|00001e60| 74 2e 20 20 49 66 20 72 | 75 6e 6e 69 6e 67 20 74 |t. If r|unning t|
|00001e70| 77 6f 20 73 65 70 61 72 | 61 74 65 20 63 6f 6d 6d |wo separ|ate comm|
|00001e80| 61 6e 64 73 20 69 73 20 | 69 6e 61 70 70 72 6f 70 |ands is |inapprop|
|00001e90| 72 69 61 74 65 2c 0a 58 | 74 68 65 6e 20 27 61 6c |riate,.X|then 'al|
|00001ea0| 6c 70 61 74 68 27 20 73 | 68 6f 75 6c 64 20 62 65 |lpath' s|hould be|
|00001eb0| 20 75 73 65 64 3b 20 69 | 74 20 65 78 65 63 75 74 | used; i|t execut|
|00001ec0| 65 73 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 6f |es the c|ommand o|
|00001ed0| 6e 6c 79 20 6f 6e 63 65 | 2c 20 77 69 74 68 20 74 |nly once|, with t|
|00001ee0| 68 65 20 66 75 6c 6c 20 | 70 61 74 68 6e 61 6d 65 |he full |pathname|
|00001ef0| 73 0a 58 67 69 76 65 6e | 20 66 6f 72 20 65 61 63 |s.Xgiven| for eac|
|00001f00| 68 20 66 69 6c 65 2e 20 | 20 54 68 69 73 20 69 73 |h file. | This is|
|00001f10| 20 75 73 65 66 75 6c 2c | 20 66 6f 72 20 65 78 61 | useful,| for exa|
|00001f20| 6d 70 6c 65 2c 20 77 69 | 74 68 20 74 68 65 20 27 |mple, wi|th the '|
|00001f30| 64 69 66 66 27 20 63 6f | 6d 6d 61 6e 64 2c 20 77 |diff' co|mmand, w|
|00001f40| 68 65 72 65 20 69 74 20 | 6d 75 73 74 0a 58 62 65 |here it |must.Xbe|
|00001f50| 20 72 75 6e 20 6f 6e 6c | 79 20 6f 6e 63 65 2c 20 | run onl|y once, |
|00001f60| 65 76 65 6e 20 69 66 20 | 74 68 65 20 74 77 6f 20 |even if |the two |
|00001f70| 66 69 6c 65 73 20 6c 69 | 65 20 69 6e 20 64 69 66 |files li|e in dif|
|00001f80| 66 65 72 65 6e 74 20 64 | 69 72 65 63 74 6f 72 69 |ferent d|irectori|
|00001f90| 65 73 2e 0a 58 0a 58 2e | 53 53 20 52 65 2d 72 65 |es..X.X.|SS Re-re|
|00001fa0| 61 64 20 46 6c 61 67 0a | 58 54 68 65 20 72 65 2d |ad Flag.|XThe re-|
|00001fb0| 72 65 61 64 20 66 6c 61 | 67 20 69 73 20 65 69 74 |read fla|g is eit|
|00001fc0| 68 65 72 20 61 20 27 79 | 27 20 6f 72 20 61 6e 20 |her a 'y|' or an |
|00001fd0| 27 6e 27 2e 0a 58 49 74 | 20 69 6e 64 69 63 61 74 |'n'..XIt| indicat|
|00001fe0| 65 73 20 77 68 65 74 68 | 65 72 20 74 68 65 20 64 |es wheth|er the d|
|00001ff0| 69 72 65 63 74 6f 72 79 | 20 76 69 65 77 65 72 20 |irectory| viewer |
|00002000| 73 68 6f 75 6c 64 20 62 | 65 20 72 65 2d 72 65 61 |should b|e re-rea|
|00002010| 64 20 61 66 74 65 72 20 | 74 68 65 20 63 6f 6d 6d |d after |the comm|
|00002020| 61 6e 64 20 68 61 73 0a | 58 62 65 65 6e 20 65 78 |and has.|Xbeen ex|
|00002030| 65 63 75 74 65 64 2e 20 | 20 54 68 69 73 20 69 73 |ecuted. | This is|
|00002040| 20 65 73 73 65 6e 74 69 | 61 6c 20 61 66 74 65 72 | essenti|al after|
|00002050| 20 61 20 63 6f 6d 6d 61 | 6e 64 20 74 68 61 74 20 | a comma|nd that |
|00002060| 6d 61 79 20 63 68 61 6e | 67 65 20 74 68 65 20 63 |may chan|ge the c|
|00002070| 6f 6e 74 65 6e 74 73 20 | 6f 66 0a 58 61 20 64 69 |ontents |of.Xa di|
|00002080| 72 65 63 74 6f 72 79 2c | 20 28 66 6f 72 20 65 78 |rectory,| (for ex|
|00002090| 61 6d 70 6c 65 20 27 6d | 6b 64 69 72 27 20 6f 72 |ample 'm|kdir' or|
|000020a0| 20 27 6d 61 6b 65 27 29 | 20 74 6f 20 6b 65 65 70 | 'make')| to keep|
|000020b0| 20 74 68 65 20 76 69 65 | 77 65 72 20 75 70 20 74 | the vie|wer up t|
|000020c0| 6f 20 64 61 74 65 2e 0a | 58 0a 58 2e 53 53 20 42 |o date..|X.X.SS B|
|000020d0| 75 74 74 6f 6e 20 43 6f | 6d 6d 61 6e 64 0a 58 54 |utton Co|mmand.XT|
|000020e0| 68 65 20 72 65 73 74 20 | 6f 66 20 74 68 65 20 6c |he rest |of the l|
|000020f0| 69 6e 65 20 69 73 20 74 | 61 6b 65 6e 20 74 6f 20 |ine is t|aken to |
|00002100| 62 65 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 74 |be the c|ommand t|
|00002110| 68 61 74 20 77 69 6c 6c | 20 62 65 20 65 78 65 63 |hat will| be exec|
|00002120| 75 74 65 64 20 77 68 65 | 6e 20 74 68 65 20 62 75 |uted whe|n the bu|
|00002130| 74 74 6f 6e 20 69 73 0a | 58 70 72 65 73 73 65 64 |tton is.|Xpressed|
|00002140| 2e 20 20 55 70 20 74 6f | 20 74 77 6f 20 27 25 73 |. Up to| two '%s|
|00002150| 27 20 6d 61 79 20 62 65 | 20 70 72 65 73 65 6e 74 |' may be| present|
|00002160| 20 28 64 65 70 65 6e 64 | 69 6e 67 20 6f 6e 20 74 | (depend|ing on t|
|00002170| 68 65 20 63 6f 6e 74 65 | 78 74 20 75 73 65 64 29 |he conte|xt used)|
|00002180| 2e 20 20 54 68 65 73 65 | 0a 58 77 69 6c 6c 20 62 |. These|.Xwill b|
|00002190| 65 20 73 75 62 73 74 69 | 74 75 74 65 64 2c 20 77 |e substi|tuted, w|
|000021a0| 68 65 6e 20 74 68 65 20 | 62 75 74 74 6f 6e 20 69 |hen the |button i|
|000021b0| 73 20 70 72 65 73 73 65 | 64 2c 20 62 79 20 6f 6e |s presse|d, by on|
|000021c0| 65 20 6f 72 20 6d 6f 72 | 65 20 68 69 67 68 6c 69 |e or mor|e highli|
|000021d0| 67 68 74 65 64 0a 58 66 | 69 6c 65 6e 61 6d 65 73 |ghted.Xf|ilenames|
|000021e0| 2e 0a 58 0a 58 4e 6f 74 | 65 20 74 68 61 74 20 74 |..X.XNot|e that t|
|000021f0| 68 65 20 62 75 74 74 6f | 6e 20 63 6f 6d 6d 61 6e |he butto|n comman|
|00002200| 64 20 6d 61 79 20 66 69 | 6e 69 73 68 20 77 69 74 |d may fi|nish wit|
|00002210| 68 20 61 6e 20 27 26 27 | 20 73 79 6d 62 6f 6c 2c |h an '&'| symbol,|
|00002220| 20 69 6e 20 77 68 69 63 | 68 20 63 61 73 65 20 74 | in whic|h case t|
|00002230| 68 65 20 63 6f 6d 6d 61 | 6e 64 0a 58 77 69 6c 6c |he comma|nd.Xwill|
|00002240| 20 62 65 20 72 75 6e 20 | 69 6e 20 74 68 65 20 62 | be run |in the b|
|00002250| 61 63 6b 67 72 6f 75 6e | 64 3b 20 79 6f 75 20 6d |ackgroun|d; you m|
|00002260| 61 79 20 63 6f 6e 74 69 | 6e 75 65 20 74 6f 20 75 |ay conti|nue to u|
|00002270| 73 65 20 74 68 65 20 62 | 72 6f 77 73 65 72 20 77 |se the b|rowser w|
|00002280| 68 69 6c 73 74 20 69 74 | 20 65 78 65 63 75 74 65 |hilst it| execute|
|00002290| 73 2e 0a 58 49 6e 20 74 | 68 69 73 20 63 61 73 65 |s..XIn t|his case|
|000022a0| 20 74 68 6f 75 67 68 2c | 20 74 68 65 20 72 65 2d | though,| the re-|
|000022b0| 72 65 61 64 20 66 6c 61 | 67 20 6d 61 79 20 6e 6f |read fla|g may no|
|000022c0| 74 20 68 61 76 65 20 74 | 68 65 20 64 65 73 69 72 |t have t|he desir|
|000022d0| 65 64 20 65 66 66 65 63 | 74 2c 20 61 73 20 74 68 |ed effec|t, as th|
|000022e0| 65 20 64 69 72 65 63 74 | 6f 72 79 0a 58 77 69 6c |e direct|ory.Xwil|
|000022f0| 6c 20 62 65 20 72 65 2d | 72 65 61 64 20 61 66 74 |l be re-|read aft|
|00002300| 65 72 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 68 |er the c|ommand h|
|00002310| 61 73 20 73 74 61 72 74 | 65 64 2c 20 6e 6f 74 20 |as start|ed, not |
|00002320| 61 66 74 65 72 20 69 74 | 20 68 61 73 20 66 69 6e |after it| has fin|
|00002330| 69 73 68 65 64 2e 0a 58 | 0a 58 41 6e 20 61 64 64 |ished..X|.XAn add|
|00002340| 69 74 69 6f 6e 61 6c 20 | 70 61 72 61 6d 65 74 65 |itional |paramete|
|00002350| 72 20 6d 61 79 20 62 65 | 20 72 65 71 75 65 73 74 |r may be| request|
|00002360| 65 64 20 66 72 6f 6d 20 | 74 68 65 20 75 73 65 72 |ed from |the user|
|00002370| 20 62 65 66 6f 72 65 20 | 61 20 63 6f 6d 6d 61 6e | before |a comman|
|00002380| 64 20 69 73 20 65 78 65 | 63 75 74 65 64 20 62 79 |d is exe|cuted by|
|00002390| 0a 58 69 6e 73 65 72 74 | 69 6e 67 20 61 20 27 5e |.Xinsert|ing a '^|
|000023a0| 27 20 63 68 61 72 61 63 | 74 65 72 2c 20 61 73 20 |' charac|ter, as |
|000023b0| 69 6e 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |in the f|ollowing|
|000023c0| 20 65 78 61 6d 70 6c 65 | 3a 0a 58 0a 58 4d 6b 44 | example|:.X.XMkD|
|000023d0| 69 72 20 20 20 20 63 6f | 6d 6d 61 6e 64 20 20 20 |ir co|mmand |
|000023e0| 20 79 20 20 20 20 6d 6b | 64 69 72 20 5e 4d 6b 44 | y mk|dir ^MkD|
|000023f0| 69 72 40 45 6e 74 65 72 | 20 64 69 72 65 63 74 6f |ir@Enter| directo|
|00002400| 72 79 20 6e 61 6d 65 5e | 0a 58 0a 58 57 68 65 6e |ry name^|.X.XWhen|
|00002410| 20 74 68 65 20 4d 6b 44 | 69 72 20 62 75 74 74 6f | the MkD|ir butto|
|00002420| 6e 20 69 73 20 70 72 65 | 73 73 65 64 2c 20 61 20 |n is pre|ssed, a |
|00002430| 64 69 61 6c 6f 67 75 65 | 20 62 6f 78 20 69 73 20 |dialogue| box is |
|00002440| 70 72 65 73 65 6e 74 65 | 64 20 74 6f 20 74 68 65 |presente|d to the|
|00002450| 20 75 73 65 72 2e 20 20 | 49 74 73 20 74 69 74 6c | user. |Its titl|
|00002460| 65 0a 58 69 73 20 74 68 | 65 20 73 74 72 69 6e 67 |e.Xis th|e string|
|00002470| 20 61 70 70 65 61 72 69 | 6e 67 20 62 65 74 77 65 | appeari|ng betwe|
|00002480| 65 6e 20 74 68 65 20 66 | 69 72 73 74 20 27 5e 27 |en the f|irst '^'|
|00002490| 20 61 6e 64 20 74 68 65 | 20 27 40 27 20 28 69 2e | and the| '@' (i.|
|000024a0| 65 2e 20 27 4d 6b 44 69 | 72 27 29 2c 20 61 6e 64 |e. 'MkDi|r'), and|
|000024b0| 20 69 74 73 20 70 72 6f | 6d 70 74 0a 58 69 73 20 | its pro|mpt.Xis |
|000024c0| 74 68 65 20 72 65 73 74 | 20 6f 66 20 74 68 65 20 |the rest| of the |
|000024d0| 74 65 78 74 20 75 70 20 | 74 6f 20 74 68 65 20 73 |text up |to the s|
|000024e0| 65 63 6f 6e 64 20 27 5e | 27 2e 20 20 41 20 74 65 |econd '^|'. A te|
|000024f0| 78 74 20 77 69 64 67 65 | 74 20 69 73 20 70 72 6f |xt widge|t is pro|
|00002500| 76 69 64 65 64 2c 20 61 | 6c 6f 6e 67 20 77 69 74 |vided, a|long wit|
|00002510| 68 20 27 4f 4b 27 0a 58 | 61 6e 64 20 27 43 61 6e |h 'OK'.X|and 'Can|
|00002520| 63 65 6c 27 20 62 75 74 | 74 6f 6e 73 2e 20 20 50 |cel' but|tons. P|
|00002530| 72 65 73 73 69 6e 67 20 | 74 68 65 20 27 4f 4b 27 |ressing |the 'OK'|
|00002540| 20 62 75 74 74 6f 6e 20 | 72 65 61 64 73 20 74 68 | button |reads th|
|00002550| 65 20 74 65 78 74 20 74 | 68 61 74 20 74 68 65 20 |e text t|hat the |
|00002560| 75 73 65 72 20 68 61 73 | 20 65 6e 74 65 72 65 64 |user has| entered|
|00002570| 0a 58 69 6e 74 6f 20 74 | 68 65 20 74 65 78 74 20 |.Xinto t|he text |
|00002580| 77 69 64 67 65 74 2c 20 | 73 75 62 73 74 69 74 75 |widget, |substitu|
|00002590| 74 65 73 20 74 68 61 74 | 20 69 6e 20 74 68 65 20 |tes that| in the |
|000025a0| 63 6f 6d 6d 61 6e 64 20 | 73 74 72 69 6e 67 20 69 |command |string i|
|000025b0| 6e 20 70 6c 61 63 65 20 | 6f 66 20 61 6c 6c 20 74 |n place |of all t|
|000025c0| 65 78 74 20 62 65 74 77 | 65 65 6e 0a 58 74 68 65 |ext betw|een.Xthe|
|000025d0| 20 27 5e 27 20 73 79 6d | 62 6f 6c 73 2c 20 61 6e | '^' sym|bols, an|
|000025e0| 64 20 66 69 6e 61 6c 6c | 79 20 65 78 65 63 75 74 |d finall|y execut|
|000025f0| 65 73 20 74 68 65 20 6e | 65 77 20 63 6f 6d 6d 61 |es the n|ew comma|
|00002600| 6e 64 2e 20 20 54 68 69 | 73 20 61 6c 6c 6f 77 73 |nd. Thi|s allows|
|00002610| 20 61 6e 79 20 63 6f 6d | 6d 61 6e 64 20 74 6f 20 | any com|mand to |
|00002620| 61 63 63 65 70 74 0a 58 | 61 6e 20 65 78 74 72 61 |accept.X|an extra|
|00002630| 20 70 61 72 61 6d 65 74 | 65 72 20 73 74 72 69 6e | paramet|er strin|
|00002640| 67 20 66 72 6f 6d 20 74 | 68 65 20 75 73 65 72 20 |g from t|he user |
|00002650| 62 65 66 6f 72 65 20 65 | 78 65 63 75 74 69 6f 6e |before e|xecution|
|00002660| 2e 0a 58 0a 58 2e 53 53 | 20 45 78 61 6d 70 6c 65 |..X.X.SS| Example|
|00002670| 73 0a 58 0a 58 43 4f 4d | 50 52 45 53 53 20 20 20 |s.X.XCOM|PRESS |
|00002680| 20 61 6c 6c 20 20 20 20 | 79 20 20 20 20 63 6f 6d | all |y com|
|00002690| 70 72 65 73 73 20 25 73 | 0a 58 0a 58 54 68 69 73 |press %s|.X.XThis|
|000026a0| 20 63 72 65 61 74 65 73 | 20 61 20 62 75 74 74 6f | creates| a butto|
|000026b0| 6e 20 6c 61 62 65 6c 6c | 65 64 20 77 69 74 68 20 |n labell|ed with |
|000026c0| 74 68 65 20 73 74 72 69 | 6e 67 0a 58 2e 49 20 43 |the stri|ng.X.I C|
|000026d0| 4f 4d 50 52 45 53 53 2e | 0a 58 57 68 65 6e 20 69 |OMPRESS.|.XWhen i|
|000026e0| 74 20 69 73 20 70 72 65 | 73 73 65 64 2c 20 74 68 |t is pre|ssed, th|
|000026f0| 65 0a 58 2e 49 20 63 6f | 6d 70 72 65 73 73 0a 58 |e.X.I co|mpress.X|
|00002700| 63 6f 6d 6d 61 6e 64 20 | 69 73 20 65 78 65 63 75 |command |is execu|
|00002710| 74 65 64 20 6f 6e 20 61 | 6c 6c 20 6f 66 20 74 68 |ted on a|ll of th|
|00002720| 65 20 69 74 65 6d 73 20 | 74 68 61 74 20 61 72 65 |e items |that are|
|00002730| 20 73 65 6c 65 63 74 65 | 64 20 69 6e 20 74 68 65 | selecte|d in the|
|00002740| 0a 58 64 69 72 65 63 74 | 6f 72 79 20 77 69 6e 64 |.Xdirect|ory wind|
|00002750| 6f 77 73 2e 20 20 54 68 | 65 20 64 69 72 65 63 74 |ows. Th|e direct|
|00002760| 6f 72 79 20 76 69 65 77 | 65 72 20 77 69 6c 6c 20 |ory view|er will |
|00002770| 62 65 20 72 65 2d 72 65 | 61 64 20 61 66 74 65 72 |be re-re|ad after|
|00002780| 20 74 68 65 0a 58 63 6f | 6d 6d 61 6e 64 20 68 61 | the.Xco|mmand ha|
|00002790| 73 20 65 78 65 63 75 74 | 65 64 2e 20 20 41 6e 79 |s execut|ed. Any|
|000027a0| 20 6f 75 74 70 75 74 20 | 66 72 6f 6d 20 74 68 65 | output |from the|
|000027b0| 20 63 6f 6d 6d 61 6e 64 | 20 77 69 6c 6c 20 61 70 | command| will ap|
|000027c0| 70 65 61 72 20 69 6e 20 | 74 68 65 0a 58 77 69 6e |pear in |the.Xwin|
|000027d0| 64 6f 77 20 66 72 6f 6d | 20 77 68 65 72 65 20 74 |dow from| where t|
|000027e0| 68 65 20 62 72 6f 77 73 | 65 72 20 77 61 73 20 73 |he brows|er was s|
|000027f0| 74 61 72 74 65 64 2c 20 | 61 6e 64 20 61 6e 79 20 |tarted, |and any |
|00002800| 69 6e 70 75 74 20 72 65 | 71 75 69 72 65 64 20 77 |input re|quired w|
|00002810| 69 6c 6c 20 62 65 0a 58 | 74 61 6b 65 6e 20 66 72 |ill be.X|taken fr|
|00002820| 6f 6d 20 74 68 65 20 73 | 61 6d 65 20 77 69 6e 64 |om the s|ame wind|
|00002830| 6f 77 2e 0a 58 0a 58 4d | 41 49 4c 20 20 20 20 61 |ow..X.XM|AIL a|
|00002840| 6c 6c 70 61 74 68 20 20 | 20 20 6e 20 20 20 20 63 |llpath | n c|
|00002850| 61 74 20 25 73 20 7c 20 | 6d 61 69 6c 20 5e 4d 61 |at %s | |mail ^Ma|
|00002860| 69 6c 40 45 6e 74 65 72 | 20 75 73 65 72 6e 61 6d |il@Enter| usernam|
|00002870| 65 5e 0a 58 0a 58 54 68 | 69 73 20 63 72 65 61 74 |e^.X.XTh|is creat|
|00002880| 65 73 20 61 20 62 75 74 | 74 6f 6e 20 6c 61 62 65 |es a but|ton labe|
|00002890| 6c 6c 65 64 20 77 69 74 | 68 20 74 68 65 20 73 74 |lled wit|h the st|
|000028a0| 72 69 6e 67 0a 58 2e 49 | 20 4d 41 49 4c 2e 0a 58 |ring.X.I| MAIL..X|
|000028b0| 57 68 65 6e 20 69 74 20 | 69 73 20 70 72 65 73 73 |When it |is press|
|000028c0| 65 64 2c 20 74 68 65 20 | 66 75 6c 6c 20 70 61 74 |ed, the |full pat|
|000028d0| 68 6e 61 6d 65 73 20 6f | 66 20 61 6c 6c 20 73 65 |hnames o|f all se|
|000028e0| 6c 65 63 74 65 64 20 66 | 69 6c 65 73 20 61 72 65 |lected f|iles are|
|000028f0| 20 73 75 62 73 74 69 74 | 75 74 65 64 0a 58 66 6f | substit|uted.Xfo|
|00002900| 72 20 74 68 65 20 27 25 | 73 27 20 61 6e 64 20 61 |r the '%|s' and a|
|00002910| 20 64 69 61 6c 6f 67 75 | 65 20 65 6e 74 69 74 6c | dialogu|e entitl|
|00002920| 65 64 20 27 4d 61 69 6c | 27 20 69 73 20 62 72 6f |ed 'Mail|' is bro|
|00002930| 75 67 68 74 20 75 70 20 | 70 72 6f 6d 70 74 69 6e |ught up |promptin|
|00002940| 67 20 74 68 65 20 75 73 | 65 72 20 66 6f 72 0a 58 |g the us|er for.X|
|00002950| 61 20 75 73 65 72 6e 61 | 6d 65 2e 20 20 50 72 65 |a userna|me. Pre|
|00002960| 73 73 69 6e 67 20 27 4f | 4b 27 20 70 6c 61 63 65 |ssing 'O|K' place|
|00002970| 73 20 74 68 65 20 75 73 | 65 72 6e 61 6d 65 20 61 |s the us|ername a|
|00002980| 66 74 65 72 20 74 68 65 | 20 27 6d 61 69 6c 27 20 |fter the| 'mail' |
|00002990| 63 6f 6d 6d 61 6e 64 2c | 20 61 6e 64 0a 58 66 69 |command,| and.Xfi|
|000029a0| 6e 61 6c 6c 79 20 74 68 | 65 20 63 6f 6d 6d 61 6e |nally th|e comman|
|000029b0| 64 20 73 74 72 69 6e 67 | 20 69 73 20 65 78 65 63 |d string| is exec|
|000029c0| 75 74 65 64 2e 0a 58 0a | 58 2e 53 53 20 45 58 41 |uted..X.|X.SS EXA|
|000029d0| 4d 50 4c 45 20 42 55 54 | 54 4f 4e 53 0a 58 2e 6e |MPLE BUT|TONS.X.n|
|000029e0| 66 0a 58 58 54 45 52 4d | 09 09 63 6f 6d 6d 61 6e |f.XXTERM|..comman|
|000029f0| 64 09 09 6e 09 78 74 65 | 72 6d 20 26 20 0a 58 43 |d..n.xte|rm & .XC|
|00002a00| 4f 50 59 09 09 73 6f 75 | 72 63 65 64 65 73 74 09 |OPY..sou|rcedest.|
|00002a10| 79 09 63 70 20 2d 72 69 | 20 25 73 20 25 73 20 0a |y.cp -ri| %s %s .|
|00002a20| 58 58 56 09 09 61 6c 6c | 09 09 6e 09 78 76 20 25 |XXV..all|..n.xv %|
|00002a30| 73 20 26 0a 58 56 49 09 | 09 65 61 63 68 09 09 6e |s &.XVI.|.each..n|
|00002a40| 09 78 74 65 72 6d 20 2d | 65 20 76 69 20 25 73 20 |.xterm -|e vi %s |
|00002a50| 26 20 0a 58 44 49 46 46 | 09 09 61 6c 6c 70 61 74 |& .XDIFF|..allpat|
|00002a60| 68 09 09 6e 09 64 69 66 | 66 20 25 73 20 7c 20 78 |h..n.dif|f %s | x|
|00002a70| 6d 6c 65 73 73 20 26 0a | 58 2e 66 69 0a 58 0a 58 |mless &.|X.fi.X.X|
|00002a80| 2e 53 48 20 44 4f 55 42 | 4c 45 2d 43 4c 49 43 4b |.SH DOUB|LE-CLICK|
|00002a90| 49 4e 47 0a 58 44 6f 75 | 62 6c 65 2d 63 6c 69 63 |ING.XDou|ble-clic|
|00002aa0| 6b 69 6e 67 20 6f 6e 20 | 61 20 64 69 72 65 63 74 |king on |a direct|
|00002ab0| 6f 72 79 20 6e 61 6d 65 | 20 28 69 6e 64 69 63 61 |ory name| (indica|
|00002ac0| 74 65 64 20 62 79 20 61 | 20 27 2f 27 20 61 66 74 |ted by a| '/' aft|
|00002ad0| 65 72 20 69 74 73 20 6e | 61 6d 65 29 20 77 69 6c |er its n|ame) wil|
|00002ae0| 6c 0a 58 63 68 61 6e 67 | 65 20 74 68 65 20 64 69 |l.Xchang|e the di|
|00002af0| 72 65 63 74 6f 72 79 20 | 77 69 6e 64 6f 77 20 74 |rectory |window t|
|00002b00| 6f 20 76 69 65 77 20 74 | 68 61 74 20 64 69 72 65 |o view t|hat dire|
|00002b10| 63 74 6f 72 79 2e 20 0a | 58 41 20 64 6f 75 62 6c |ctory. .|XA doubl|
|00002b20| 65 2d 63 6c 69 63 6b 20 | 6f 6e 20 61 6e 20 65 78 |e-click |on an ex|
|00002b30| 65 63 75 74 61 62 6c 65 | 20 66 69 6c 65 20 28 69 |ecutable| file (i|
|00002b40| 6e 64 69 63 61 74 65 64 | 20 62 79 20 61 6e 20 27 |ndicated| by an '|
|00002b50| 2a 27 20 61 66 74 65 72 | 20 69 74 73 20 6e 61 6d |*' after| its nam|
|00002b60| 65 29 20 77 69 6c 6c 0a | 58 72 75 6e 20 69 74 2e |e) will.|Xrun it.|
|00002b70| 20 20 44 6f 75 62 6c 65 | 20 63 6c 69 63 6b 69 6e | Double| clickin|
|00002b80| 67 20 6f 6e 20 61 20 66 | 69 6c 65 20 77 69 6c 6c |g on a f|ile will|
|00002b90| 0a 58 69 6e 69 74 69 61 | 74 65 20 61 20 73 65 61 |.Xinitia|te a sea|
|00002ba0| 72 63 68 20 74 68 72 6f | 75 67 68 20 61 20 6c 69 |rch thro|ugh a li|
|00002bb0| 73 74 20 28 63 61 6c 6c | 65 64 20 74 68 65 0a 58 |st (call|ed the.X|
|00002bc0| 2e 49 20 6d 61 67 69 63 | 20 6c 69 73 74 29 0a 58 |.I magic| list).X|
|00002bd0| 74 6f 20 73 65 65 20 69 | 66 20 74 68 65 72 65 20 |to see i|f there |
|00002be0| 69 73 20 61 20 6d 61 74 | 63 68 20 77 69 74 68 20 |is a mat|ch with |
|00002bf0| 74 68 61 74 20 66 69 6c | 65 2e 20 20 41 20 6d 61 |that fil|e. A ma|
|00002c00| 74 63 68 20 63 61 75 73 | 65 73 20 61 20 63 6f 72 |tch caus|es a cor|
|00002c10| 72 65 73 70 6f 6e 64 69 | 6e 67 0a 58 63 6f 6d 6d |respondi|ng.Xcomm|
|00002c20| 61 6e 64 20 74 6f 20 62 | 65 20 65 78 65 63 75 74 |and to b|e execut|
|00002c30| 65 64 2e 0a 58 0a 58 2e | 53 48 20 4d 41 47 49 43 |ed..X.X.|SH MAGIC|
|00002c40| 20 46 49 4c 45 0a 58 54 | 68 69 73 20 6d 61 67 69 | FILE.XT|his magi|
|00002c50| 63 20 6c 69 73 74 20 69 | 73 20 72 65 61 64 20 66 |c list i|s read f|
|00002c60| 72 6f 6d 20 0a 58 2e 49 | 20 78 62 72 6f 77 73 65 |rom .X.I| xbrowse|
|00002c70| 72 2e 6d 61 67 69 63 0a | 58 77 68 65 6e 20 78 62 |r.magic.|Xwhen xb|
|00002c80| 72 6f 77 73 65 72 20 69 | 73 20 72 75 6e 2e 20 20 |rowser i|s run. |
|00002c90| 49 74 20 73 68 6f 75 6c | 64 20 62 65 0a 58 70 72 |It shoul|d be.Xpr|
|00002ca0| 65 73 65 6e 74 20 65 69 | 74 68 65 72 20 69 6e 20 |esent ei|ther in |
|00002cb0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 64 69 72 65 |the curr|ent dire|
|00002cc0| 63 74 6f 72 79 20 6f 72 | 20 74 68 65 20 64 69 72 |ctory or| the dir|
|00002cd0| 65 63 74 6f 72 79 20 73 | 70 65 63 69 66 69 65 64 |ectory s|pecified|
|00002ce0| 20 62 79 20 74 68 65 0a | 58 65 6e 76 69 72 6f 6e | by the.|Xenviron|
|00002cf0| 6d 65 6e 74 20 76 61 72 | 69 61 62 6c 65 0a 58 2e |ment var|iable.X.|
|00002d00| 49 20 58 42 52 4f 57 53 | 45 52 2e 0a 58 0a 58 45 |I XBROWS|ER..X.XE|
|00002d10| 61 63 68 20 6c 69 6e 65 | 20 69 6e 20 74 68 65 20 |ach line| in the |
|00002d20| 6d 61 67 69 63 20 66 69 | 6c 65 20 73 70 65 63 69 |magic fi|le speci|
|00002d30| 66 69 65 73 3a 0a 58 20 | 31 2e 20 54 68 65 20 6d |fies:.X |1. The m|
|00002d40| 61 67 69 63 20 63 6c 61 | 73 73 69 66 69 63 61 74 |agic cla|ssificat|
|00002d50| 69 6f 6e 0a 58 20 32 2e | 20 41 20 6d 61 74 63 68 |ion.X 2.| A match|
|00002d60| 20 73 74 72 69 6e 67 0a | 58 20 33 2e 20 52 65 2d | string.|X 3. Re-|
|00002d70| 72 65 61 64 20 66 6c 61 | 67 0a 58 20 34 2e 20 41 |read fla|g.X 4. A|
|00002d80| 20 63 6f 6d 6d 61 6e 64 | 0a 58 0a 58 2e 53 53 20 | command|.X.X.SS |
|00002d90| 4d 61 67 69 63 20 43 6c | 61 73 73 69 66 69 63 61 |Magic Cl|assifica|
|00002da0| 74 69 6f 6e 0a 58 54 68 | 65 0a 58 2e 49 20 6d 61 |tion.XTh|e.X.I ma|
|00002db0| 67 69 63 20 63 6c 61 73 | 73 0a 58 69 73 20 65 69 |gic clas|s.Xis ei|
|00002dc0| 74 68 65 72 20 74 68 65 | 20 73 74 72 69 6e 67 0a |ther the| string.|
|00002dd0| 58 2e 49 20 66 69 6c 65 | 0a 58 6f 72 0a 58 2e 49 |X.I file|.Xor.X.I|
|00002de0| 20 73 75 66 66 69 78 2e | 0a 58 49 74 20 73 70 65 | suffix.|.XIt spe|
|00002df0| 63 69 66 69 65 73 20 77 | 68 65 74 68 65 72 0a 58 |cifies w|hether.X|
|00002e00| 74 68 65 20 6d 61 74 63 | 68 2d 73 74 72 69 6e 67 |the matc|h-string|
|00002e10| 20 73 68 6f 75 6c 64 20 | 62 65 20 75 73 65 64 20 | should |be used |
|00002e20| 74 6f 20 6c 6f 6f 6b 20 | 66 6f 72 20 61 20 77 68 |to look |for a wh|
|00002e30| 6f 6c 65 20 66 69 6c 65 | 6e 61 6d 65 20 6f 72 20 |ole file|name or |
|00002e40| 6a 75 73 74 20 74 68 65 | 20 73 75 66 66 69 78 2e |just the| suffix.|
|00002e50| 0a 58 0a 58 2e 53 53 20 | 4d 61 74 63 68 20 53 74 |.X.X.SS |Match St|
|00002e60| 72 69 6e 67 0a 58 54 68 | 65 0a 58 2e 49 20 6d 61 |ring.XTh|e.X.I ma|
|00002e70| 74 63 68 20 73 74 72 69 | 6e 67 0a 58 73 70 65 63 |tch stri|ng.Xspec|
|00002e80| 69 66 69 65 73 20 74 68 | 65 20 66 69 6c 65 6e 61 |ifies th|e filena|
|00002e90| 6d 65 20 6f 72 20 73 75 | 66 66 69 78 20 74 6f 20 |me or su|ffix to |
|00002ea0| 62 65 20 75 73 65 64 20 | 77 68 65 6e 20 6d 61 74 |be used |when mat|
|00002eb0| 63 68 69 6e 67 2e 0a 58 | 0a 58 2e 53 53 20 52 65 |ching..X|.X.SS Re|
|00002ec0| 2d 72 65 61 64 20 66 6c | 61 67 0a 58 54 68 65 20 |-read fl|ag.XThe |
|00002ed0| 72 65 2d 72 65 61 64 20 | 66 6c 61 67 20 69 73 20 |re-read |flag is |
|00002ee0| 65 69 74 68 65 72 20 61 | 20 27 79 27 20 6f 72 20 |either a| 'y' or |
|00002ef0| 61 6e 20 27 6e 27 2e 0a | 58 49 74 20 69 6e 64 69 |an 'n'..|XIt indi|
|00002f00| 63 61 74 65 73 20 77 68 | 65 74 68 65 72 20 74 68 |cates wh|ether th|
|00002f10| 65 20 64 69 72 65 63 74 | 6f 72 79 20 76 69 65 77 |e direct|ory view|
|00002f20| 65 72 20 73 68 6f 75 6c | 64 20 62 65 20 72 65 2d |er shoul|d be re-|
|00002f30| 72 65 61 64 20 61 66 74 | 65 72 20 74 68 65 20 63 |read aft|er the c|
|00002f40| 6f 6d 6d 61 6e 64 20 68 | 61 73 0a 58 62 65 65 6e |ommand h|as.Xbeen|
|00002f50| 20 65 78 65 63 75 74 65 | 64 2e 0a 58 0a 58 2e 53 | execute|d..X.X.S|
|00002f60| 53 20 43 6f 6d 6d 61 6e | 64 0a 58 54 68 65 0a 58 |S Comman|d.XThe.X|
|00002f70| 2e 49 20 63 6f 6d 6d 61 | 6e 64 0a 58 69 73 20 65 |.I comma|nd.Xis e|
|00002f80| 78 65 63 75 74 65 64 20 | 61 66 74 65 72 20 61 20 |xecuted |after a |
|00002f90| 6d 61 74 63 68 20 68 61 | 73 20 62 65 65 6e 20 66 |match ha|s been f|
|00002fa0| 6f 75 6e 64 2e 20 20 49 | 66 20 74 68 65 20 63 6f |ound. I|f the co|
|00002fb0| 6d 6d 61 6e 64 20 73 74 | 72 69 6e 67 20 69 73 0a |mmand st|ring is.|
|00002fc0| 58 2e 49 20 2a 76 69 65 | 77 2c 0a 58 74 68 65 20 |X.I *vie|w,.Xthe |
|00002fd0| 78 62 72 6f 77 73 65 72 | 20 69 6e 74 65 72 6e 61 |xbrowser| interna|
|00002fe0| 6c 20 66 75 6e 63 74 69 | 6f 6e 20 69 73 20 75 73 |l functi|on is us|
|00002ff0| 65 64 20 74 6f 20 73 68 | 6f 77 20 74 68 65 20 66 |ed to sh|ow the f|
|00003000| 69 6c 65 2e 0a 58 53 69 | 6d 69 6c 61 72 6c 79 2c |ile..XSi|milarly,|
|00003010| 0a 58 2e 49 20 2a 68 65 | 78 0a 58 77 69 6c 6c 20 |.X.I *he|x.Xwill |
|00003020| 75 73 65 20 74 68 65 20 | 78 62 72 6f 77 73 65 72 |use the |xbrowser|
|00003030| 20 69 6e 74 65 72 6e 61 | 6c 20 68 65 78 20 76 69 | interna|l hex vi|
|00003040| 65 77 20 66 75 6e 63 74 | 69 6f 6e 2e 0a 58 4f 74 |ew funct|ion..XOt|
|00003050| 68 65 72 77 69 73 65 2c | 0a 58 74 68 65 20 63 6f |herwise,|.Xthe co|
|00003060| 6d 6d 61 6e 64 20 69 73 | 20 65 78 65 63 75 74 65 |mmand is| execute|
|00003070| 64 20 69 6e 20 74 68 65 | 20 73 61 6d 65 20 6d 61 |d in the| same ma|
|00003080| 6e 6e 65 72 20 61 73 20 | 42 75 74 74 6f 6e 20 46 |nner as |Button F|
|00003090| 69 6c 65 20 63 6f 6d 6d | 61 6e 64 20 73 74 72 69 |ile comm|and stri|
|000030a0| 6e 67 73 20 28 73 65 65 | 20 61 62 6f 76 65 29 2e |ngs (see| above).|
|000030b0| 0a 58 0a 58 2e 53 53 20 | 45 78 61 6d 70 6c 65 20 |.X.X.SS |Example |
|000030c0| 4d 61 67 69 63 20 44 65 | 66 69 6e 69 74 69 6f 6e |Magic De|finition|
|000030d0| 73 0a 58 2e 6e 66 0a 58 | 66 69 6c 65 09 2e 58 64 |s.X.nf.X|file..Xd|
|000030e0| 65 66 61 75 6c 74 73 09 | 6e 09 63 73 68 20 2d 63 |efaults.|n.csh -c|
|000030f0| 20 22 78 65 64 69 74 20 | 25 73 22 20 26 0a 58 66 | "xedit |%s" &.Xf|
|00003100| 69 6c 65 09 52 45 41 44 | 4d 45 09 09 6e 09 2a 76 |ile.READ|ME..n.*v|
|00003110| 69 65 77 0a 58 73 75 66 | 66 69 78 09 2e 61 75 09 |iew.Xsuf|fix..au.|
|00003120| 09 6e 09 2f 75 73 72 2f | 64 65 6d 6f 2f 53 4f 55 |.n./usr/|demo/SOU|
|00003130| 4e 44 2f 70 6c 61 79 20 | 2d 76 20 32 30 20 25 73 |ND/play |-v 20 %s|
|00003140| 20 26 0a 58 73 75 66 66 | 69 78 09 2e 74 61 72 09 | &.Xsuff|ix..tar.|
|00003150| 09 6e 09 74 61 72 20 74 | 76 66 20 25 73 20 7c 20 |.n.tar t|vf %s | |
|00003160| 78 6d 6c 65 73 73 20 26 | 0a 58 73 75 66 66 69 78 |xmless &|.Xsuffix|
|00003170| 09 2e 67 69 66 09 09 6e | 09 78 6c 6f 61 64 69 6d |..gif..n|.xloadim|
|00003180| 61 67 65 20 25 73 20 26 | 0a 58 2e 66 69 0a 58 0a |age %s &|.X.fi.X.|
|00003190| 58 2e 53 48 20 48 49 4e | 54 53 20 41 4e 44 20 54 |X.SH HIN|TS AND T|
|000031a0| 49 50 53 0a 58 0a 58 2e | 53 53 20 43 6f 6d 6d 61 |IPS.X.X.|SS Comma|
|000031b0| 6e 64 20 53 74 72 69 6e | 67 73 0a 58 0a 58 43 6f |nd Strin|gs.X.XCo|
|000031c0| 6d 6d 61 6e 64 20 73 74 | 72 69 6e 67 20 6d 61 79 |mmand st|ring may|
|000031d0| 20 63 6f 6e 74 61 69 6e | 20 6d 75 6c 74 69 70 6c | contain| multipl|
|000031e0| 65 20 63 6f 6d 6d 61 6e | 64 73 20 73 65 70 61 72 |e comman|ds separ|
|000031f0| 61 74 65 64 20 62 79 20 | 70 69 70 65 73 20 6f 72 |ated by |pipes or|
|00003200| 20 73 65 6d 69 2d 63 6f | 6c 6f 6e 73 20 69 6e 0a | semi-co|lons in.|
|00003210| 58 74 68 65 20 75 73 75 | 61 6c 20 6d 61 6e 6e 65 |Xthe usu|al manne|
|00003220| 72 2e 20 20 54 68 65 79 | 20 6d 61 79 20 61 6c 73 |r. They| may als|
|00003230| 6f 20 62 65 20 72 75 6e | 20 69 6e 20 74 68 65 20 |o be run| in the |
|00003240| 62 61 63 6b 67 72 6f 75 | 6e 64 20 62 79 20 61 70 |backgrou|nd by ap|
|00003250| 70 65 6e 64 69 6e 67 20 | 61 6e 20 27 26 27 2e 20 |pending |an '&'. |
|00003260| 20 54 6f 0a 58 72 75 6e | 20 6d 75 6c 74 69 70 6c | To.Xrun| multipl|
|00003270| 65 20 63 6f 6d 6d 61 6e | 64 73 20 69 6e 20 74 68 |e comman|ds in th|
|00003280| 65 20 62 61 63 6b 67 72 | 6f 75 6e 64 2c 20 65 6e |e backgr|ound, en|
|00003290| 63 6c 6f 73 65 20 74 68 | 65 6d 20 69 6e 20 70 61 |close th|em in pa|
|000032a0| 72 65 6e 74 68 65 73 65 | 73 20 27 28 27 20 61 6e |renthese|s '(' an|
|000032b0| 64 20 27 29 27 0a 58 62 | 65 66 6f 72 65 20 61 70 |d ')'.Xb|efore ap|
|000032c0| 70 65 6e 64 69 6e 67 20 | 74 68 65 20 27 26 27 2e |pending |the '&'.|
|000032d0| 0a 58 0a 58 43 6f 6d 6d | 61 6e 64 73 20 61 72 65 |.X.XComm|ands are|
|000032e0| 20 65 78 65 63 75 74 65 | 64 20 76 69 61 20 74 68 | execute|d via th|
|000032f0| 65 20 42 6f 75 72 6e 65 | 20 73 68 65 6c 6c 2e 20 |e Bourne| shell. |
|00003300| 20 54 68 69 73 20 6d 65 | 61 6e 73 20 74 68 61 74 | This me|ans that|
|00003310| 20 63 73 68 20 75 73 65 | 72 73 20 77 69 6c 6c 20 | csh use|rs will |
|00003320| 6e 6f 74 20 62 65 20 61 | 62 6c 65 0a 58 74 6f 20 |not be a|ble.Xto |
|00003330| 75 73 65 20 74 68 65 69 | 72 20 61 6c 69 61 73 65 |use thei|r aliase|
|00003340| 73 2e 20 20 54 6f 20 6f | 76 65 72 63 6f 6d 65 20 |s. To o|vercome |
|00003350| 74 68 69 73 20 70 72 6f | 62 6c 65 6d 20 70 72 65 |this pro|blem pre|
|00003360| 63 65 64 65 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |cede the| command|
|00003370| 20 62 79 20 27 63 73 68 | 20 2d 20 63 27 0a 58 0a | by 'csh| - c'.X.|
|00003380| 58 58 2d 57 69 6e 64 6f | 77 20 75 73 65 72 73 20 |XX-Windo|w users |
|00003390| 6d 61 79 20 72 75 6e 20 | 63 6f 6d 6d 61 6e 64 73 |may run |commands|
|000033a0| 20 69 6e 20 78 74 65 72 | 6d 20 77 69 6e 64 6f 77 | in xter|m window|
|000033b0| 73 20 75 73 69 6e 67 20 | 63 6f 6d 6d 61 6e 64 20 |s using |command |
|000033c0| 73 74 72 69 6e 67 73 20 | 6f 66 20 74 68 65 20 66 |strings |of the f|
|000033d0| 6f 72 6d 20 6f 66 20 74 | 68 65 0a 58 66 6f 6c 6c |orm of t|he.Xfoll|
|000033e0| 6f 77 69 6e 67 20 65 78 | 61 6d 70 6c 65 2c 20 77 |owing ex|ample, w|
|000033f0| 68 69 63 68 20 72 75 6e | 73 20 27 76 69 27 20 6f |hich run|s 'vi' o|
|00003400| 6e 20 73 65 6c 65 63 74 | 65 64 20 66 69 6c 65 73 |n select|ed files|
|00003410| 2e 0a 58 2e 6e 66 0a 58 | 78 74 65 72 6d 20 2d 65 |..X.nf.X|xterm -e|
|00003420| 20 76 69 20 25 73 0a 58 | 2e 66 69 0a 58 0a 58 2e | vi %s.X|.fi.X.X.|
|00003430| 53 48 20 58 2d 52 45 53 | 4f 55 52 43 45 53 0a 58 |SH X-RES|OURCES.X|
|00003440| 54 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 69 74 |The numb|er of it|
|00003450| 65 6d 73 20 76 69 73 69 | 62 6c 65 20 69 6e 20 65 |ems visi|ble in e|
|00003460| 61 63 68 20 6c 69 73 74 | 20 63 61 6e 20 62 65 20 |ach list| can be |
|00003470| 61 6c 74 65 72 65 64 20 | 62 79 20 70 75 74 74 69 |altered |by putti|
|00003480| 6e 67 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ng the f|ollowing|
|00003490| 0a 58 69 6e 20 74 68 65 | 20 2e 58 64 65 66 61 75 |.Xin the| .Xdefau|
|000034a0| 6c 74 73 20 66 69 6c 65 | 3a 0a 58 0a 58 58 62 72 |lts file|:.X.XXbr|
|000034b0| 6f 77 73 65 72 2a 73 69 | 64 65 6c 69 73 74 2e 76 |owser*si|delist.v|
|000034c0| 69 73 69 62 6c 65 49 74 | 65 6d 43 6f 75 6e 74 3a |isibleIt|emCount:|
|000034d0| 20 3c 69 6e 74 3e 0a 58 | 0a 58 28 57 68 65 72 65 | <int>.X|.X(Where|
|000034e0| 20 3c 69 6e 74 3e 20 69 | 73 20 74 68 65 20 6e 75 | <int> i|s the nu|
|000034f0| 6d 62 65 72 20 6f 66 20 | 76 69 73 69 62 6c 65 20 |mber of |visible |
|00003500| 6c 69 6e 65 73 20 69 6e | 20 65 61 63 68 20 6c 69 |lines in| each li|
|00003510| 73 74 29 0a 58 0a 58 54 | 68 65 20 77 69 6e 64 6f |st).X.XT|he windo|
|00003520| 77 20 77 68 69 63 68 20 | 69 73 20 75 73 65 64 20 |w which |is used |
|00003530| 66 6f 72 20 56 49 45 57 | 20 68 61 73 20 74 68 65 |for VIEW| has the|
|00003540| 20 72 65 73 6f 75 72 63 | 65 6e 61 6d 65 20 22 74 | resourc|ename "t|
|00003550| 65 78 74 77 69 6e 64 6f | 77 22 2e 20 20 54 68 65 |extwindo|w". The|
|00003560| 20 73 69 7a 65 0a 58 63 | 61 6e 20 62 65 20 63 68 | size.Xc|an be ch|
|00003570| 61 6e 67 65 64 2e 20 20 | 65 2e 67 2e 0a 58 2e 6e |anged. |e.g..X.n|
|00003580| 66 0a 58 58 62 72 6f 77 | 73 65 72 2a 74 65 78 74 |f.XXbrow|ser*text|
|00003590| 77 69 6e 64 6f 77 2e 72 | 6f 77 73 3a 09 09 32 30 |window.r|ows:..20|
|000035a0| 0a 58 58 62 72 6f 77 73 | 65 72 2a 74 65 78 74 77 |.XXbrows|er*textw|
|000035b0| 69 6e 64 6f 77 2e 63 6f | 6c 75 6d 6e 73 3a 09 09 |indow.co|lumns:..|
|000035c0| 38 30 0a 58 2e 66 69 0a | 58 0a 58 54 68 65 20 73 |80.X.fi.|X.XThe s|
|000035d0| 74 72 69 70 20 6f 66 20 | 62 75 74 74 6f 6e 73 20 |trip of |buttons |
|000035e0| 61 6c 6f 6e 67 20 74 68 | 65 20 62 6f 74 74 6f 6d |along th|e bottom|
|000035f0| 20 6f 66 20 74 68 65 20 | 6d 61 69 6e 20 77 69 6e | of the |main win|
|00003600| 64 6f 77 20 63 61 6e 20 | 62 65 20 6d 61 64 65 20 |dow can |be made |
|00003610| 74 6f 0a 58 70 6f 73 69 | 74 69 6f 6e 20 74 68 65 |to.Xposi|tion the|
|00003620| 20 62 75 74 74 6f 6e 73 | 20 69 6e 20 72 6f 77 73 | buttons| in rows|
|00003630| 20 61 6e 64 20 63 6f 6c | 75 6d 6e 73 3a 0a 58 0a | and col|umns:.X.|
|00003640| 58 46 6f 72 20 74 77 6f | 20 72 6f 77 73 20 6f 66 |XFor two| rows of|
|00003650| 20 62 75 74 74 6f 6e 73 | 3a 0a 58 0a 58 58 62 72 | buttons|:.X.XXbr|
|00003660| 6f 77 73 65 72 2a 62 75 | 74 74 6f 6e 73 74 72 69 |owser*bu|ttonstri|
|00003670| 70 2e 70 61 63 6b 69 6e | 67 3a 09 09 50 41 43 4b |p.packin|g:..PACK|
|00003680| 5f 43 4f 4c 55 4d 4e 0a | 58 58 62 72 6f 77 73 65 |_COLUMN.|XXbrowse|
|00003690| 72 2a 62 75 74 74 6f 6e | 73 74 72 69 70 2e 6e 75 |r*button|strip.nu|
|000036a0| 6d 43 6f 6c 75 6d 6e 73 | 3a 09 32 0a 58 0a 58 2e |mColumns|:.2.X.X.|
|000036b0| 53 48 20 46 49 4c 45 53 | 0a 58 2e 6e 66 0a 58 24 |SH FILES|.X.nf.X$|
|000036c0| 58 42 52 4f 57 53 45 52 | 2f 78 62 72 6f 77 73 65 |XBROWSER|/xbrowse|
|000036d0| 72 2e 62 75 74 74 6f 6e | 73 0a 58 24 58 42 52 4f |r.button|s.X$XBRO|
|000036e0| 57 53 45 52 2f 78 62 72 | 6f 77 73 65 72 2e 6d 61 |WSER/xbr|owser.ma|
|000036f0| 67 69 63 0a 58 78 62 72 | 6f 77 73 65 72 2e 62 75 |gic.Xxbr|owser.bu|
|00003700| 74 74 6f 6e 73 0a 58 78 | 62 72 6f 77 73 65 72 2e |ttons.Xx|browser.|
|00003710| 6d 61 67 69 63 0a 58 24 | 48 4f 4d 45 2f 2e 58 64 |magic.X$|HOME/.Xd|
|00003720| 65 66 61 75 6c 74 73 0a | 58 2e 66 69 0a 58 0a 58 |efaults.|X.fi.X.X|
|00003730| 2e 53 48 20 53 45 45 20 | 41 4c 53 4f 0a 58 78 6d |.SH SEE |ALSO.Xxm|
|00003740| 6c 65 73 73 0a 58 0a 58 | 2e 53 48 20 42 55 47 53 |less.X.X|.SH BUGS|
|00003750| 0a 58 54 68 65 72 65 20 | 70 72 6f 62 61 62 6c 79 |.XThere |probably|
|00003760| 20 61 72 65 20 73 6f 6d | 65 21 0a 58 0a 58 2e 53 | are som|e!.X.X.S|
|00003770| 48 20 41 55 54 48 4f 52 | 0a 58 41 6e 64 79 20 43 |H AUTHOR|.XAndy C|
|00003780| 6f 6c 65 62 6f 75 72 6e | 65 0a 53 48 41 52 5f 45 |olebourn|e.SHAR_E|
|00003790| 4f 46 0a 66 69 20 23 20 | 65 6e 64 20 6f 66 20 6f |OF.fi # |end of o|
|000037a0| 76 65 72 77 72 69 74 69 | 6e 67 20 63 68 65 63 6b |verwriti|ng check|
|000037b0| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 78 62 72 |.if test| -f 'xbr|
|000037c0| 6f 77 73 65 72 2e 62 75 | 74 74 6f 6e 73 27 0a 74 |owser.bu|ttons'.t|
|000037d0| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|000037e0| 77 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 2d 77 72 |will not| over-wr|
|000037f0| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|00003800| 65 20 22 27 78 62 72 6f | 77 73 65 72 2e 62 75 74 |e "'xbro|wser.but|
|00003810| 74 6f 6e 73 27 22 0a 65 | 6c 73 65 0a 73 65 64 20 |tons'".e|lse.sed |
|00003820| 27 73 2f 5e 58 2f 2f 27 | 20 3c 3c 20 5c 53 48 41 |'s/^X//'| << \SHA|
|00003830| 52 5f 45 4f 46 20 3e 20 | 27 78 62 72 6f 77 73 65 |R_EOF > |'xbrowse|
|00003840| 72 2e 62 75 74 74 6f 6e | 73 27 0a 58 23 20 42 75 |r.button|s'.X# Bu|
|00003850| 74 74 6f 6e 6e 61 6d 65 | 09 63 6f 6e 74 65 78 74 |ttonname|.context|
|00003860| 09 20 20 20 20 72 65 72 | 65 61 64 64 69 72 3f 09 |. rer|eaddir?.|
|00003870| 63 6f 6d 6d 61 6e 64 20 | 73 74 72 69 6e 67 0a 58 |command |string.X|
|00003880| 23 20 0a 58 43 6f 70 79 | 09 09 73 6f 75 72 63 65 |# .XCopy|..source|
|00003890| 64 65 73 74 09 79 09 63 | 70 20 2d 72 69 20 25 73 |dest.y.c|p -ri %s|
|000038a0| 20 25 73 0a 58 4d 6f 76 | 65 09 09 73 6f 75 72 63 | %s.XMov|e..sourc|
|000038b0| 65 64 65 73 74 09 79 09 | 6d 76 20 2d 69 20 25 73 |edest.y.|mv -i %s|
|000038c0| 20 25 73 0a 58 44 65 6c | 65 74 65 09 09 61 6c 6c | %s.XDel|ete..all|
|000038d0| 09 09 79 09 72 6d 20 2d | 69 72 20 25 73 0a 58 4d |..y.rm -|ir %s.XM|
|000038e0| 61 6b 65 44 69 72 09 09 | 63 6f 6d 6d 61 6e 64 09 |akeDir..|command.|
|000038f0| 09 79 09 6d 6b 64 69 72 | 20 5e 4d 61 6b 65 20 44 |.y.mkdir| ^Make D|
|00003900| 69 72 65 63 74 6f 72 79 | 40 45 6e 74 65 72 20 6e |irectory|@Enter n|
|00003910| 65 77 20 64 69 72 20 6e | 61 6d 65 3a 5e 0a 58 58 |ew dir n|ame:^.XX|
|00003920| 56 09 09 61 6c 6c 09 09 | 6e 09 78 76 20 25 73 20 |V..all..|n.xv %s |
|00003930| 26 0a 58 58 65 64 69 74 | 09 09 65 61 63 68 09 09 |&.XXedit|..each..|
|00003940| 6e 09 63 73 68 20 2d 63 | 20 22 78 65 64 69 74 20 |n.csh -c| "xedit |
|00003950| 25 73 20 22 26 0a 58 4d | 6f 72 65 09 09 65 61 63 |%s "&.XM|ore..eac|
|00003960| 68 09 09 6e 09 78 74 65 | 72 6d 20 2d 65 20 6d 6f |h..n.xte|rm -e mo|
|00003970| 72 65 20 25 73 20 2f 64 | 65 76 2f 6e 75 6c 6c 20 |re %s /d|ev/null |
|00003980| 26 20 0a 58 23 56 49 09 | 09 65 61 63 68 09 09 6e |& .X#VI.|.each..n|
|00003990| 09 78 74 65 72 6d 20 2d | 65 20 76 69 20 25 73 20 |.xterm -|e vi %s |
|000039a0| 26 20 0a 58 58 74 65 72 | 6d 09 09 63 6f 6d 6d 61 |& .XXter|m..comma|
|000039b0| 6e 64 09 09 6e 09 78 74 | 65 72 6d 20 26 0a 58 46 |nd..n.xt|erm &.XF|
|000039c0| 69 6c 65 09 09 61 6c 6c | 09 09 6e 09 66 69 6c 65 |ile..all|..n.file|
|000039d0| 20 25 73 0a 58 57 6f 72 | 64 43 6f 75 6e 74 09 61 | %s.XWor|dCount.a|
|000039e0| 6c 6c 09 09 6e 09 77 63 | 20 25 73 0a 58 44 69 66 |ll..n.wc| %s.XDif|
|000039f0| 66 09 09 61 6c 6c 70 61 | 74 68 09 09 6e 09 64 69 |f..allpa|th..n.di|
|00003a00| 66 66 20 25 73 20 7c 20 | 78 6d 6c 65 73 73 20 26 |ff %s | |xmless &|
|00003a10| 0a 58 50 6c 61 79 09 09 | 65 61 63 68 09 09 6e 09 |.XPlay..|each..n.|
|00003a20| 63 61 74 20 25 73 20 3e | 2f 64 65 76 2f 61 75 64 |cat %s >|/dev/aud|
|00003a30| 69 6f 0a 58 4d 61 6e 09 | 09 65 61 63 68 09 09 6e |io.XMan.|.each..n|
|00003a40| 09 6e 72 6f 66 66 20 2d | 6d 61 6e 20 25 73 20 7c |.nroff -|man %s ||
|00003a50| 20 78 6d 6c 65 73 73 20 | 26 0a 58 43 6f 6d 70 72 | xmless |&.XCompr|
|00003a60| 65 73 73 09 61 6c 6c 09 | 09 79 09 63 6f 6d 70 72 |ess.all.|.y.compr|
|00003a70| 65 73 73 20 25 73 20 0a | 58 55 6e 63 6f 6d 70 72 |ess %s .|XUncompr|
|00003a80| 65 73 73 09 61 6c 6c 09 | 09 79 09 75 6e 63 6f 6d |ess.all.|.y.uncom|
|00003a90| 70 72 65 73 73 20 25 73 | 0a 58 67 72 65 70 09 09 |press %s|.Xgrep..|
|00003aa0| 61 6c 6c 70 61 74 68 09 | 09 6e 09 67 72 65 70 20 |allpath.|.n.grep |
|00003ab0| 5e 47 72 65 70 40 45 6e | 74 65 72 20 73 65 61 72 |^Grep@En|ter sear|
|00003ac0| 63 68 20 73 74 72 69 6e | 67 3a 5e 20 25 73 20 7c |ch strin|g:^ %s ||
|00003ad0| 20 78 6d 6c 65 73 73 20 | 26 0a 58 43 6f 6d 6d 61 | xmless |&.XComma|
|00003ae0| 6e 64 09 09 61 6c 6c 70 | 61 74 68 09 09 79 09 63 |nd..allp|ath..y.c|
|00003af0| 73 68 20 2d 63 20 22 5e | 43 6f 6d 6d 61 6e 64 40 |sh -c "^|Command@|
|00003b00| 45 6e 74 65 72 20 63 6f | 6d 6d 61 6e 64 20 66 6f |Enter co|mmand fo|
|00003b10| 72 20 73 65 6c 65 63 74 | 65 64 20 66 69 6c 65 73 |r select|ed files|
|00003b20| 3a 5e 20 25 73 22 09 09 | 0a 58 43 68 6d 6f 64 09 |:^ %s"..|.XChmod.|
|00003b30| 09 61 6c 6c 70 61 74 68 | 09 09 79 09 63 68 6d 6f |.allpath|..y.chmo|
|00003b40| 64 20 5e 43 68 6d 6f 64 | 40 45 6e 74 65 72 20 70 |d ^Chmod|@Enter p|
|00003b50| 72 6f 74 65 63 74 69 6f | 6e 73 20 66 6f 72 20 66 |rotectio|ns for f|
|00003b60| 69 6c 65 73 5e 20 25 73 | 0a 58 50 72 69 6e 74 09 |iles^ %s|.XPrint.|
|00003b70| 09 61 6c 6c 70 61 74 68 | 20 20 20 20 20 20 20 20 |.allpath| |
|00003b80| 20 6e 20 20 20 20 20 20 | 09 6c 70 72 20 5e 50 72 | n |.lpr ^Pr|
|00003b90| 69 6e 74 6f 75 74 40 45 | 6e 74 65 72 20 6f 70 74 |intout@E|nter opt|
|00003ba0| 69 6f 6e 73 3a 5e 20 25 | 73 20 26 0a 53 48 41 52 |ions:^ %|s &.SHAR|
|00003bb0| 5f 45 4f 46 0a 63 68 6d | 6f 64 20 2b 78 20 27 78 |_EOF.chm|od +x 'x|
|00003bc0| 62 72 6f 77 73 65 72 2e | 62 75 74 74 6f 6e 73 27 |browser.|buttons'|
|00003bd0| 0a 66 69 20 23 20 65 6e | 64 20 6f 66 20 6f 76 65 |.fi # en|d of ove|
|00003be0| 72 77 72 69 74 69 6e 67 | 20 63 68 65 63 6b 0a 69 |rwriting| check.i|
|00003bf0| 66 20 74 65 73 74 20 2d | 66 20 27 78 62 72 6f 77 |f test -|f 'xbrow|
|00003c00| 73 65 72 2e 63 27 0a 74 | 68 65 6e 0a 09 65 63 68 |ser.c'.t|hen..ech|
|00003c10| 6f 20 73 68 61 72 3a 20 | 77 69 6c 6c 20 6e 6f 74 |o shar: |will not|
|00003c20| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00003c30| 74 69 6e 67 20 66 69 6c | 65 20 22 27 78 62 72 6f |ting fil|e "'xbro|
|00003c40| 77 73 65 72 2e 63 27 22 | 0a 65 6c 73 65 0a 73 65 |wser.c'"|.else.se|
|00003c50| 64 20 27 73 2f 5e 58 2f | 2f 27 20 3c 3c 20 5c 53 |d 's/^X/|/' << \S|
|00003c60| 48 41 52 5f 45 4f 46 20 | 3e 20 27 78 62 72 6f 77 |HAR_EOF |> 'xbrow|
|00003c70| 73 65 72 2e 63 27 0a 58 | 2f 2a 2a 20 58 42 72 6f |ser.c'.X|/** XBro|
|00003c80| 77 73 65 72 20 56 31 2e | 30 20 62 79 20 41 6e 64 |wser V1.|0 by And|
|00003c90| 79 20 43 6f 6c 65 62 6f | 75 72 6e 65 20 2a 2a 2f |y Colebo|urne **/|
|00003ca0| 0a 58 0a 58 2f 2a 2a 20 | 53 6f 6d 65 20 6f 66 20 |.X.X/** |Some of |
|00003cb0| 74 68 69 73 20 63 6f 64 | 65 20 69 73 20 6e 6f 74 |this cod|e is not|
|00003cc0| 20 76 65 72 79 20 74 69 | 64 79 21 20 20 49 20 6d | very ti|dy! I m|
|00003cd0| 61 79 20 63 6c 65 61 6e | 20 69 74 20 75 70 20 6f |ay clean| it up o|
|00003ce0| 6e 65 20 64 61 79 2e 20 | 2a 2a 2f 0a 58 2f 2a 2a |ne day. |**/.X/**|
|00003cf0| 20 69 66 20 79 6f 75 20 | 66 69 6e 64 20 61 6e 79 | if you |find any|
|00003d00| 20 62 75 67 73 2c 20 70 | 6c 65 61 73 65 20 6d 61 | bugs, p|lease ma|
|00003d10| 69 6c 20 6d 65 20 77 69 | 74 68 20 74 68 65 20 64 |il me wi|th the d|
|00003d20| 65 74 61 69 6c 73 20 28 | 61 6e 64 20 66 69 78 65 |etails (|and fixe|
|00003d30| 73 3f 29 20 2a 2a 2f 0a | 58 0a 58 23 69 6e 63 6c |s?) **/.|X.X#incl|
|00003d40| 75 64 65 20 3c 73 74 64 | 69 6f 2e 68 3e 0a 58 23 |ude <std|io.h>.X#|
|00003d50| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 6c 69 62 2e |include |<stdlib.|
|00003d60| 68 3e 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 79 |h>.X#inc|lude <sy|
|00003d70| 73 2f 70 61 72 61 6d 2e | 68 3e 0a 58 23 69 6e 63 |s/param.|h>.X#inc|
|00003d80| 6c 75 64 65 20 3c 64 69 | 72 65 6e 74 2e 68 3e 0a |lude <di|rent.h>.|
|00003d90| 58 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 58 31 31 |X.X#incl|ude <X11|
|00003da0| 2f 49 6e 74 72 69 6e 73 | 69 63 2e 68 3e 0a 58 23 |/Intrins|ic.h>.X#|
|00003db0| 69 6e 63 6c 75 64 65 20 | 3c 58 6d 2f 58 6d 2e 68 |include |<Xm/Xm.h|
|00003dc0| 3e 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 58 6d 2f |>.X#incl|ude <Xm/|
|00003dd0| 4c 61 62 65 6c 2e 68 3e | 0a 58 23 69 6e 63 6c 75 |Label.h>|.X#inclu|
|00003de0| 64 65 20 3c 58 6d 2f 52 | 6f 77 43 6f 6c 75 6d 6e |de <Xm/R|owColumn|
|00003df0| 2e 68 3e 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 58 |.h>.X#in|clude <X|
|00003e00| 6d 2f 54 65 78 74 2e 68 | 3e 0a 58 23 69 6e 63 6c |m/Text.h|>.X#incl|
|00003e10| 75 64 65 20 3c 58 6d 2f | 4c 69 73 74 2e 68 3e 0a |ude <Xm/|List.h>.|
|00003e20| 58 23 69 6e 63 6c 75 64 | 65 20 3c 58 6d 2f 50 75 |X#includ|e <Xm/Pu|
|00003e30| 73 68 42 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |shB.h>.X|#include|
|00003e40| 20 3c 58 6d 2f 46 6f 72 | 6d 2e 68 3e 0a 58 23 69 | <Xm/For|m.h>.X#i|
|00003e50| 6e 63 6c 75 64 65 20 3c | 58 6d 2f 46 72 61 6d 65 |nclude <|Xm/Frame|
|00003e60| 2e 68 3e 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 58 |.h>.X#in|clude <X|
|00003e70| 6d 2f 53 65 6c 65 63 74 | 69 6f 42 2e 68 3e 0a 58 |m/Select|ioB.h>.X|
|00003e80| 23 69 6e 63 6c 75 64 65 | 20 3c 58 6d 2f 44 69 61 |#include| <Xm/Dia|
|00003e90| 6c 6f 67 53 2e 68 3e 0a | 58 0a 58 23 64 65 66 69 |logS.h>.|X.X#defi|
|00003ea0| 6e 65 20 56 45 52 53 49 | 4f 4e 53 54 52 49 4e 47 |ne VERSI|ONSTRING|
|00003eb0| 20 22 58 42 72 6f 77 73 | 65 72 20 56 65 72 73 69 | "XBrows|er Versi|
|00003ec0| 6f 6e 20 31 2e 30 22 0a | 58 23 64 65 66 69 6e 65 |on 1.0".|X#define|
|00003ed0| 20 4d 41 47 49 43 5f 46 | 49 4c 45 20 22 78 62 72 | MAGIC_F|ILE "xbr|
|00003ee0| 6f 77 73 65 72 2e 6d 61 | 67 69 63 22 0a 58 23 64 |owser.ma|gic".X#d|
|00003ef0| 65 66 69 6e 65 20 42 55 | 54 54 4f 4e 53 5f 46 49 |efine BU|TTONS_FI|
|00003f00| 4c 45 20 22 78 62 72 6f | 77 73 65 72 2e 62 75 74 |LE "xbro|wser.but|
|00003f10| 74 6f 6e 73 22 0a 58 0a | 58 53 74 72 69 6e 67 20 |tons".X.|XString |
|00003f20| 66 61 6c 6c 62 61 63 6b | 5f 72 65 73 6f 75 72 63 |fallback|_resourc|
|00003f30| 65 73 5b 5d 20 3d 20 7b | 0a 58 20 20 20 20 22 2a |es[] = {|.X "*|
|00003f40| 74 69 74 6c 65 2a 66 6f | 6e 74 4c 69 73 74 3a 09 |title*fo|ntList:.|
|00003f50| 09 09 2a 2d 74 69 6d 65 | 73 2d 62 6f 6c 64 2d 72 |..*-time|s-bold-r|
|00003f60| 2d 2a 2d 2a 2d 2a 2d 31 | 34 30 2d 2a 22 20 2c 0a |-*-*-*-1|40-*" ,.|
|00003f70| 58 20 20 20 20 22 2a 74 | 65 78 74 77 69 6e 64 6f |X "*t|extwindo|
|00003f80| 77 2e 72 6f 77 73 3a 09 | 09 09 32 34 22 2c 0a 58 |w.rows:.|..24",.X|
|00003f90| 20 20 20 20 22 2a 74 65 | 78 74 77 69 6e 64 6f 77 | "*te|xtwindow|
|00003fa0| 2e 63 6f 6c 75 6d 6e 73 | 3a 09 09 38 30 22 2c 0a |.columns|:..80",.|
|00003fb0| 58 20 20 20 20 22 2a 73 | 69 64 65 6c 69 73 74 2e |X "*s|idelist.|
|00003fc0| 76 69 73 69 62 6c 65 49 | 74 65 6d 43 6f 75 6e 74 |visibleI|temCount|
|00003fd0| 3a 09 31 32 22 2c 0a 58 | 20 20 20 20 4e 55 4c 4c |:.12",.X| NULL|
|00003fe0| 2c 0a 58 7d 3b 0a 58 0a | 58 0a 58 23 64 65 66 69 |,.X};.X.|X.X#defi|
|00003ff0| 6e 65 20 44 49 52 53 49 | 5a 45 20 31 30 30 30 0a |ne DIRSI|ZE 1000.|
|00004000| 58 23 64 65 66 69 6e 65 | 20 53 54 52 49 4e 47 28 |X#define| STRING(|
|00004010| 41 29 20 73 74 72 63 70 | 79 28 6d 61 6c 6c 6f 63 |A) strcp|y(malloc|
|00004020| 28 73 74 72 6c 65 6e 28 | 41 29 2b 31 29 2c 41 29 |(strlen(|A)+1),A)|
|00004030| 3b 0a 58 23 64 65 66 69 | 6e 65 20 4d 46 49 4c 45 |;.X#defi|ne MFILE|
|00004040| 20 30 0a 58 23 64 65 66 | 69 6e 65 20 4d 53 55 46 | 0.X#def|ine MSUF|
|00004050| 46 49 58 20 31 0a 58 23 | 64 65 66 69 6e 65 20 4c |FIX 1.X#|define L|
|00004060| 45 46 54 20 30 0a 58 23 | 64 65 66 69 6e 65 20 52 |EFT 0.X#|define R|
|00004070| 49 47 48 54 20 31 0a 58 | 0a 58 63 68 61 72 20 6c |IGHT 1.X|.Xchar l|
|00004080| 65 66 74 63 64 5b 4d 41 | 58 50 41 54 48 4c 45 4e |eftcd[MA|XPATHLEN|
|00004090| 5d 3b 0a 58 63 68 61 72 | 20 72 69 67 68 74 63 64 |];.Xchar| rightcd|
|000040a0| 5b 4d 41 58 50 41 54 48 | 4c 45 4e 5d 3b 0a 58 57 |[MAXPATH|LEN];.XW|
|000040b0| 69 64 67 65 74 20 74 6f | 70 6c 65 76 65 6c 2c 20 |idget to|plevel, |
|000040c0| 6c 65 66 74 69 6e 66 6f | 6c 61 62 65 6c 2c 20 72 |leftinfo|label, r|
|000040d0| 69 67 68 74 69 6e 66 6f | 6c 61 62 65 6c 3b 0a 58 |ightinfo|label;.X|
|000040e0| 63 68 61 72 20 2a 61 73 | 74 72 69 6e 67 3b 0a 58 |char *as|tring;.X|
|000040f0| 42 6f 6f 6c 65 61 6e 20 | 64 65 62 75 67 3b 0a 58 |Boolean |debug;.X|
|00004100| 42 6f 6f 6c 65 61 6e 20 | 72 65 61 64 61 66 74 65 |Boolean |readafte|
|00004110| 72 63 6f 6d 6d 61 6e 64 | 3b 0a 58 0a 58 0a 58 73 |rcommand|;.X.X.Xs|
|00004120| 74 72 75 63 74 20 45 6e | 74 72 79 0a 58 7b 0a 58 |truct En|try.X{.X|
|00004130| 20 20 20 20 63 68 61 72 | 20 2a 6e 61 6d 65 3b 0a | char| *name;.|
|00004140| 58 20 20 20 20 6f 66 66 | 5f 74 20 73 69 7a 65 3b |X off|_t size;|
|00004150| 0a 58 20 20 20 20 42 6f | 6f 6c 65 61 6e 20 64 69 |.X Bo|olean di|
|00004160| 72 3b 0a 58 20 20 20 20 | 69 6e 74 20 6d 6f 64 65 |r;.X |int mode|
|00004170| 3b 0a 58 20 20 20 20 63 | 68 61 72 20 2a 70 61 74 |;.X c|har *pat|
|00004180| 68 3b 0a 58 20 20 20 20 | 63 68 61 72 20 2a 66 75 |h;.X |char *fu|
|00004190| 6c 6c 6e 61 6d 65 3b 0a | 58 7d 3b 0a 58 0a 58 0a |llname;.|X};.X.X.|
|000041a0| 58 73 74 72 75 63 74 20 | 4d 61 67 69 63 0a 58 7b |Xstruct |Magic.X{|
|000041b0| 0a 58 20 20 20 20 69 6e | 74 20 6d 74 79 70 65 3b |.X in|t mtype;|
|000041c0| 0a 58 20 20 20 20 63 68 | 61 72 20 2a 6d 6e 61 6d |.X ch|ar *mnam|
|000041d0| 65 3b 0a 58 20 20 20 20 | 63 68 61 72 20 2a 6d 73 |e;.X |char *ms|
|000041e0| 74 72 69 6e 67 3b 0a 58 | 20 20 20 20 42 6f 6f 6c |tring;.X| Bool|
|000041f0| 65 61 6e 20 6d 72 65 72 | 65 61 64 3b 0a 58 0a 58 |ean mrer|ead;.X.X|
|00004200| 7d 3b 0a 58 0a 58 0a 58 | 73 74 72 75 63 74 20 42 |};.X.X.X|struct B|
|00004210| 75 74 74 6f 6e 0a 58 7b | 0a 58 20 20 20 20 69 6e |utton.X{|.X in|
|00004220| 74 20 63 6f 6e 74 65 78 | 74 3b 0a 58 20 20 20 20 |t contex|t;.X |
|00004230| 63 68 61 72 20 2a 63 6f | 6d 6d 61 6e 64 3b 0a 58 |char *co|mmand;.X|
|00004240| 20 20 20 20 42 6f 6f 6c | 65 61 6e 20 72 65 72 65 | Bool|ean rere|
|00004250| 61 64 3b 0a 58 7d 3b 0a | 58 0a 58 0a 58 23 64 65 |ad;.X};.|X.X.X#de|
|00004260| 66 69 6e 65 20 42 41 4c | 4c 20 30 0a 58 23 64 65 |fine BAL|L 0.X#de|
|00004270| 66 69 6e 65 20 42 45 41 | 43 48 20 31 0a 58 23 64 |fine BEA|CH 1.X#d|
|00004280| 65 66 69 6e 65 20 42 43 | 4f 4d 4d 41 4e 44 20 32 |efine BC|OMMAND 2|
|00004290| 0a 58 23 64 65 66 69 6e | 65 20 42 53 4f 55 52 43 |.X#defin|e BSOURC|
|000042a0| 45 44 45 53 54 20 33 0a | 58 23 64 65 66 69 6e 65 |EDEST 3.|X#define|
|000042b0| 20 42 41 4c 4c 50 41 54 | 48 20 34 0a 58 0a 58 73 | BALLPAT|H 4.X.Xs|
|000042c0| 74 72 75 63 74 20 42 75 | 74 74 6f 6e 20 2a 62 75 |truct Bu|tton *bu|
|000042d0| 74 74 6f 6e 6c 69 73 74 | 5b 32 35 35 5d 3b 0a 58 |ttonlist|[255];.X|
|000042e0| 69 6e 74 20 6e 75 6d 5f | 62 75 74 74 6f 6e 73 3b |int num_|buttons;|
|000042f0| 0a 58 0a 58 73 74 72 75 | 63 74 20 4d 61 67 69 63 |.X.Xstru|ct Magic|
|00004300| 20 2a 6d 61 67 69 63 6c | 69 73 74 5b 32 35 35 5d | *magicl|ist[255]|
|00004310| 3b 0a 58 69 6e 74 20 6e | 75 6d 5f 6d 61 67 69 63 |;.Xint n|um_magic|
|00004320| 3b 0a 58 0a 58 73 74 72 | 75 63 74 20 45 6e 74 72 |;.X.Xstr|uct Entr|
|00004330| 79 20 2a 6c 65 66 74 70 | 74 72 73 5b 44 49 52 53 |y *leftp|trs[DIRS|
|00004340| 49 5a 45 5d 3b 0a 58 73 | 74 72 75 63 74 20 45 6e |IZE];.Xs|truct En|
|00004350| 74 72 79 20 2a 72 69 67 | 68 74 70 74 72 73 5b 44 |try *rig|htptrs[D|
|00004360| 49 52 53 49 5a 45 5d 3b | 0a 58 69 6e 74 20 6c 65 |IRSIZE];|.Xint le|
|00004370| 66 74 6c 69 73 74 6e 75 | 6d 2c 20 72 69 67 68 74 |ftlistnu|m, right|
|00004380| 6c 69 73 74 6e 75 6d 3b | 0a 58 57 69 64 67 65 74 |listnum;|.XWidget|
|00004390| 20 6c 65 66 74 6c 69 73 | 74 2c 20 72 69 67 68 74 | leftlis|t, right|
|000043a0| 6c 69 73 74 20 2c 6c 65 | 66 74 6c 61 62 65 6c 2c |list ,le|ftlabel,|
|000043b0| 20 72 69 67 68 74 6c 61 | 62 65 6c 2c 20 6c 65 66 | rightla|bel, lef|
|000043c0| 74 64 69 72 74 65 78 74 | 2c 20 72 69 67 68 74 64 |tdirtext|, rightd|
|000043d0| 69 72 74 65 78 74 3b 0a | 58 69 6e 74 20 72 65 6e |irtext;.|Xint ren|
|000043e0| 61 6d 65 5f 70 6f 70 75 | 70 73 3b 0a 58 63 68 61 |ame_popu|ps;.Xcha|
|000043f0| 72 20 2a 63 6f 6d 6d 61 | 6e 64 5f 73 74 72 69 6e |r *comma|nd_strin|
|00004400| 67 3b 0a 58 6c 6f 6e 67 | 20 69 6e 74 20 73 69 7a |g;.Xlong| int siz|
|00004410| 65 3b 0a 58 63 68 61 72 | 20 2a 78 62 72 6f 77 73 |e;.Xchar| *xbrows|
|00004420| 65 72 70 61 74 68 3b 0a | 58 0a 58 69 6e 74 20 63 |erpath;.|X.Xint c|
|00004430| 6f 6d 70 61 72 65 28 70 | 74 72 31 2c 20 70 74 72 |ompare(p|tr1, ptr|
|00004440| 32 29 0a 58 76 6f 69 64 | 20 2a 70 74 72 31 2c 20 |2).Xvoid| *ptr1, |
|00004450| 2a 70 74 72 32 3b 0a 58 | 7b 0a 58 20 20 20 20 72 |*ptr2;.X|{.X r|
|00004460| 65 74 75 72 6e 28 20 73 | 74 72 63 6d 70 28 20 28 |eturn( s|trcmp( (|
|00004470| 28 73 74 72 75 63 74 20 | 45 6e 74 72 79 20 2a 29 |(struct |Entry *)|
|00004480| 2a 28 73 74 72 75 63 74 | 20 45 6e 74 72 79 20 2a |*(struct| Entry *|
|00004490| 2a 29 70 74 72 31 29 2d | 3e 6e 61 6d 65 2c 20 28 |*)ptr1)-|>name, (|
|000044a0| 28 73 74 72 75 63 74 20 | 45 6e 74 72 79 20 2a 29 |(struct |Entry *)|
|000044b0| 2a 28 73 74 72 75 63 74 | 20 45 6e 74 72 79 20 2a |*(struct| Entry *|
|000044c0| 2a 29 70 74 72 32 29 2d | 3e 6e 61 6d 65 20 29 29 |*)ptr2)-|>name ))|
|000044d0| 3b 0a 58 7d 0a 58 0a 58 | 0a 58 76 6f 69 64 20 73 |;.X}.X.X|.Xvoid s|
|000044e0| 65 74 5f 6c 61 62 65 6c | 28 77 2c 20 73 74 72 29 |et_label|(w, str)|
|000044f0| 0a 58 57 69 64 67 65 74 | 20 77 3b 0a 58 63 68 61 |.XWidget| w;.Xcha|
|00004500| 72 20 2a 73 74 72 3b 0a | 58 7b 0a 58 69 6e 74 20 |r *str;.|X{.Xint |
|00004510| 61 63 3b 0a 58 41 72 67 | 20 61 6c 5b 32 5d 3b 0a |ac;.XArg| al[2];.|
|00004520| 58 58 6d 53 74 72 69 6e | 67 20 6c 61 62 65 6c 5f |XXmStrin|g label_|
|00004530| 6c 61 62 65 6c 3b 0a 58 | 0a 58 20 20 20 20 61 63 |label;.X|.X ac|
|00004540| 20 3d 20 30 3b 0a 58 20 | 20 20 20 6c 61 62 65 6c | = 0;.X | label|
|00004550| 5f 6c 61 62 65 6c 20 3d | 20 58 6d 53 74 72 69 6e |_label =| XmStrin|
|00004560| 67 43 72 65 61 74 65 4c | 74 6f 52 28 73 74 72 2c |gCreateL|toR(str,|
|00004570| 20 58 6d 53 54 52 49 4e | 47 5f 44 45 46 41 55 4c | XmSTRIN|G_DEFAUL|
|00004580| 54 5f 43 48 41 52 53 45 | 54 29 3b 0a 58 20 20 20 |T_CHARSE|T);.X |
|00004590| 20 58 74 53 65 74 41 72 | 67 28 61 6c 5b 61 63 5d | XtSetAr|g(al[ac]|
|000045a0| 2c 20 58 6d 4e 6c 61 62 | 65 6c 54 79 70 65 2c 20 |, XmNlab|elType, |
|000045b0| 58 6d 53 54 52 49 4e 47 | 29 3b 20 61 63 2b 2b 3b |XmSTRING|); ac++;|
|000045c0| 0a 58 20 20 20 20 58 74 | 53 65 74 41 72 67 28 61 |.X Xt|SetArg(a|
|000045d0| 6c 5b 61 63 5d 2c 20 58 | 6d 4e 6c 61 62 65 6c 53 |l[ac], X|mNlabelS|
|000045e0| 74 72 69 6e 67 2c 20 6c | 61 62 65 6c 5f 6c 61 62 |tring, l|abel_lab|
|000045f0| 65 6c 29 3b 20 61 63 2b | 2b 3b 0a 58 20 20 20 20 |el); ac+|+;.X |
|00004600| 58 74 53 65 74 56 61 6c | 75 65 73 28 77 2c 20 61 |XtSetVal|ues(w, a|
|00004610| 6c 2c 20 61 63 29 3b 0a | 58 20 20 20 20 58 6d 55 |l, ac);.|X XmU|
|00004620| 70 64 61 74 65 44 69 73 | 70 6c 61 79 28 77 29 3b |pdateDis|play(w);|
|00004630| 0a 58 7d 0a 58 0a 58 76 | 6f 69 64 20 64 69 73 70 |.X}.X.Xv|oid disp|
|00004640| 6c 61 79 65 72 72 6f 72 | 28 74 2c 20 73 69 64 65 |layerror|(t, side|
|00004650| 29 0a 58 63 68 61 72 20 | 2a 74 3b 0a 58 69 6e 74 |).Xchar |*t;.Xint|
|00004660| 20 73 69 64 65 3b 0a 58 | 7b 0a 58 0a 58 20 20 20 | side;.X|{.X.X |
|00004670| 20 69 66 20 28 73 69 64 | 65 20 3d 3d 20 4c 45 46 | if (sid|e == LEF|
|00004680| 54 29 0a 58 20 20 20 20 | 20 20 20 20 73 65 74 5f |T).X | set_|
|00004690| 6c 61 62 65 6c 28 6c 65 | 66 74 69 6e 66 6f 6c 61 |label(le|ftinfola|
|000046a0| 62 65 6c 2c 20 74 29 3b | 0a 58 20 20 20 20 65 6c |bel, t);|.X el|
|000046b0| 73 65 0a 58 20 20 20 20 | 20 20 20 20 73 65 74 5f |se.X | set_|
|000046c0| 6c 61 62 65 6c 28 72 69 | 67 68 74 69 6e 66 6f 6c |label(ri|ghtinfol|
|000046d0| 61 62 65 6c 2c 20 74 29 | 3b 0a 58 0a 58 7d 0a 58 |abel, t)|;.X.X}.X|
|000046e0| 0a 58 76 6f 69 64 20 61 | 64 64 5f 73 69 7a 65 28 |.Xvoid a|dd_size(|
|000046f0| 70 74 72 29 0a 58 73 74 | 72 75 63 74 20 45 6e 74 |ptr).Xst|ruct Ent|
|00004700| 72 79 20 2a 70 74 72 3b | 0a 58 7b 0a 58 20 20 20 |ry *ptr;|.X{.X |
|00004710| 20 73 69 7a 65 20 3d 20 | 73 69 7a 65 20 2b 20 70 | size = |size + p|
|00004720| 74 72 2d 3e 73 69 7a 65 | 3b 0a 58 7d 0a 58 0a 58 |tr->size|;.X}.X.X|
|00004730| 0a 58 0a 58 76 6f 69 64 | 20 64 69 73 70 6c 61 79 |.X.Xvoid| display|
|00004740| 5f 69 6e 66 6f 28 73 69 | 64 65 29 0a 58 69 6e 74 |_info(si|de).Xint|
|00004750| 20 73 69 64 65 3b 0a 58 | 7b 0a 58 69 6e 74 20 2a | side;.X|{.Xint *|
|00004760| 73 65 6c 6c 69 73 74 3b | 0a 58 69 6e 74 20 6e 75 |sellist;|.Xint nu|
|00004770| 6d 73 65 6c 2c 20 6e 3b | 0a 58 63 68 61 72 20 6c |msel, n;|.Xchar l|
|00004780| 69 6e 65 5b 32 35 35 5d | 3b 0a 58 0a 58 20 20 20 |ine[255]|;.X.X |
|00004790| 20 6e 75 6d 73 65 6c 20 | 3d 20 30 3b 0a 58 20 20 | numsel |= 0;.X |
|000047a0| 20 20 73 69 7a 65 20 3d | 20 30 3b 0a 58 20 20 20 | size =| 0;.X |
|000047b0| 20 69 66 20 28 73 69 64 | 65 20 3d 3d 20 4c 45 46 | if (sid|e == LEF|
|000047c0| 54 29 0a 58 20 20 20 20 | 20 20 20 20 7b 0a 58 20 |T).X | {.X |
|000047d0| 20 20 20 20 20 20 20 6e | 75 6d 73 65 6c 20 3d 20 | n|umsel = |
|000047e0| 66 6f 72 65 61 63 68 6c | 65 66 74 28 61 64 64 5f |foreachl|eft(add_|
|000047f0| 73 69 7a 65 29 3b 0a 58 | 20 20 20 20 20 20 20 20 |size);.X| |
|00004800| 73 70 72 69 6e 74 66 28 | 6c 69 6e 65 2c 20 22 25 |sprintf(|line, "%|
|00004810| 64 20 73 65 6c 65 63 74 | 65 64 2c 20 25 64 20 62 |d select|ed, %d b|
|00004820| 79 74 65 73 22 2c 20 6e | 75 6d 73 65 6c 2c 20 73 |ytes", n|umsel, s|
|00004830| 69 7a 65 29 3b 0a 58 20 | 20 20 20 20 20 20 20 73 |ize);.X | s|
|00004840| 65 74 5f 6c 61 62 65 6c | 28 6c 65 66 74 69 6e 66 |et_label|(leftinf|
|00004850| 6f 6c 61 62 65 6c 2c 20 | 6c 69 6e 65 29 3b 0a 58 |olabel, |line);.X|
|00004860| 20 20 20 20 20 20 20 20 | 7d 0a 58 20 20 20 20 65 | |}.X e|
|00004870| 6c 73 65 0a 58 20 20 20 | 20 20 20 20 20 7b 0a 58 |lse.X | {.X|
|00004880| 20 20 20 20 20 20 20 20 | 6e 75 6d 73 65 6c 20 3d | |numsel =|
|00004890| 20 66 6f 72 65 61 63 68 | 72 69 67 68 74 28 61 64 | foreach|right(ad|
|000048a0| 64 5f 73 69 7a 65 29 3b | 0a 58 20 20 20 20 20 20 |d_size);|.X |
|000048b0| 20 20 73 70 72 69 6e 74 | 66 28 6c 69 6e 65 2c 20 | sprint|f(line, |
|000048c0| 22 25 64 20 73 65 6c 65 | 63 74 65 64 2c 20 25 64 |"%d sele|cted, %d|
|000048d0| 20 62 79 74 65 73 22 2c | 20 6e 75 6d 73 65 6c 2c | bytes",| numsel,|
|000048e0| 20 73 69 7a 65 29 3b 0a | 58 20 20 20 20 20 20 20 | size);.|X |
|000048f0| 20 73 65 74 5f 6c 61 62 | 65 6c 28 72 69 67 68 74 | set_lab|el(right|
|00004900| 69 6e 66 6f 6c 61 62 65 | 6c 2c 20 6c 69 6e 65 29 |infolabe|l, line)|
|00004910| 3b 0a 58 20 20 20 20 20 | 20 20 20 7d 0a 58 0a 58 |;.X | }.X.X|
|00004920| 7d 0a 58 0a 58 69 6e 74 | 20 64 69 72 5f 6c 69 73 |}.X.Xint| dir_lis|
|00004930| 74 28 6c 69 73 74 2c 20 | 64 69 72 2c 20 70 74 72 |t(list, |dir, ptr|
|00004940| 73 29 0a 58 2f 2a 20 2a | 2a 20 72 65 61 64 20 61 |s).X/* *|* read a|
|00004950| 20 64 69 72 20 66 72 6f | 6d 20 27 64 69 72 27 20 | dir fro|m 'dir' |
|00004960| 73 74 72 69 6e 67 20 61 | 6e 64 20 73 65 74 20 74 |string a|nd set t|
|00004970| 68 65 20 6c 69 73 74 20 | 63 6f 6e 74 65 6e 74 73 |he list |contents|
|00004980| 20 69 6e 20 77 69 64 67 | 65 74 20 27 6c 69 73 74 | in widg|et 'list|
|00004990| 20 2a 2a 2f 0a 58 57 69 | 64 67 65 74 20 6c 69 73 | **/.XWi|dget lis|
|000049a0| 74 3b 0a 58 63 68 61 72 | 20 2a 64 69 72 3b 20 0a |t;.Xchar| *dir; .|
|000049b0| 58 73 74 72 75 63 74 20 | 45 6e 74 72 79 20 2a 70 |Xstruct |Entry *p|
|000049c0| 74 72 73 5b 5d 3b 0a 58 | 7b 0a 58 41 72 67 20 61 |trs[];.X|{.XArg a|
|000049d0| 6c 5b 31 30 5d 3b 0a 58 | 69 6e 74 20 61 63 3b 0a |l[10];.X|int ac;.|
|000049e0| 58 44 49 52 20 2a 64 69 | 72 6c 3b 0a 58 73 74 72 |XDIR *di|rl;.Xstr|
|000049f0| 75 63 74 20 64 69 72 65 | 6e 74 20 2a 64 65 6e 74 |uct dire|nt *dent|
|00004a00| 3b 0a 58 58 6d 53 74 72 | 69 6e 67 20 69 74 65 6d |;.XXmStr|ing item|
|00004a10| 5f 61 72 72 61 79 5b 44 | 49 52 53 49 5a 45 5d 3b |_array[D|IRSIZE];|
|00004a20| 0a 58 69 6e 74 20 69 74 | 65 6d 73 2c 6c 6f 6f 70 |.Xint it|ems,loop|
|00004a30| 2c 20 73 69 64 65 2c 20 | 6e 3b 0a 58 73 74 72 75 |, side, |n;.Xstru|
|00004a40| 63 74 20 73 74 61 74 20 | 62 75 66 3b 0a 58 63 68 |ct stat |buf;.Xch|
|00004a50| 61 72 20 69 6e 66 6f 5f | 6c 69 6e 65 5b 32 35 35 |ar info_|line[255|
|00004a60| 5d 3b 0a 58 63 68 61 72 | 20 70 5b 31 30 5d 3b 0a |];.Xchar| p[10];.|
|00004a70| 58 6d 6f 64 65 5f 74 20 | 6d 6f 64 65 3b 0a 58 0a |Xmode_t |mode;.X.|
|00004a80| 58 20 20 20 20 69 66 20 | 28 6c 69 73 74 20 3d 3d |X if |(list ==|
|00004a90| 20 6c 65 66 74 6c 69 73 | 74 29 0a 58 20 20 20 20 | leftlis|t).X |
|00004aa0| 20 20 20 20 73 69 64 65 | 20 3d 20 4c 45 46 54 3b | side| = LEFT;|
|00004ab0| 0a 58 20 20 20 20 65 6c | 73 65 0a 58 20 20 20 20 |.X el|se.X |
|00004ac0| 20 20 20 20 73 69 64 65 | 20 3d 20 52 49 47 48 54 | side| = RIGHT|
|00004ad0| 3b 0a 58 0a 58 20 20 20 | 20 64 69 72 6c 20 3d 20 |;.X.X | dirl = |
|00004ae0| 6f 70 65 6e 64 69 72 28 | 64 69 72 29 3b 0a 58 20 |opendir(|dir);.X |
|00004af0| 20 20 20 69 66 20 28 64 | 69 72 6c 20 3d 3d 20 4e | if (d|irl == N|
|00004b00| 55 4c 4c 29 0a 58 20 20 | 20 20 20 20 20 20 7b 0a |ULL).X | {.|
|00004b10| 58 20 20 20 20 20 20 20 | 20 64 69 73 70 6c 61 79 |X | display|
|00004b20| 65 72 72 6f 72 28 22 63 | 61 6e 27 74 20 6f 70 65 |error("c|an't ope|
|00004b30| 6e 20 64 69 72 22 2c 20 | 73 69 64 65 29 3b 0a 58 |n dir", |side);.X|
|00004b40| 20 20 20 20 20 20 20 20 | 72 65 74 75 72 6e 28 30 | |return(0|
|00004b50| 29 3b 0a 58 20 20 20 20 | 20 20 20 20 7d 0a 58 0a |);.X | }.X.|
|00004b60| 58 20 20 20 20 69 66 20 | 28 73 69 64 65 20 3d 3d |X if |(side ==|
|00004b70| 20 4c 45 46 54 29 0a 58 | 20 20 20 20 20 20 20 20 | LEFT).X| |
|00004b80| 7b 0a 58 20 20 20 20 20 | 20 20 20 66 6f 72 20 28 |{.X | for (|
|00004b90| 6e 3d 30 3b 20 6e 20 3c | 20 6c 65 66 74 6c 69 73 |n=0; n <| leftlis|
|00004ba0| 74 6e 75 6d 3b 20 6e 2b | 2b 29 0a 58 20 20 20 20 |tnum; n+|+).X |
|00004bb0| 20 20 20 20 20 20 20 20 | 20 66 72 65 65 28 70 74 | | free(pt|
|00004bc0| 72 73 5b 6e 5d 29 3b 0a | 58 20 20 20 20 20 20 20 |rs[n]);.|X |
|00004bd0| 20 7d 0a 58 20 20 20 20 | 65 6c 73 65 20 0a 58 20 | }.X |else .X |
|00004be0| 20 20 20 20 20 20 20 7b | 0a 58 20 20 20 20 20 20 | {|.X |
|00004bf0| 20 20 66 6f 72 20 28 6e | 3d 30 3b 20 6e 20 3c 20 | for (n|=0; n < |
|00004c00| 72 69 67 68 74 6c 69 73 | 74 6e 75 6d 3b 20 6e 2b |rightlis|tnum; n+|
|00004c10| 2b 29 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 |+).X | |
|00004c20| 20 66 72 65 65 28 70 74 | 72 73 5b 6e 5d 29 3b 0a | free(pt|rs[n]);.|
|00004c30| 58 20 20 20 20 20 20 20 | 20 7d 0a 58 20 20 20 20 |X | }.X |
|00004c40| 69 74 65 6d 73 20 3d 20 | 30 3b 0a 58 20 20 20 20 |items = |0;.X |
|00004c50| 66 6f 72 20 28 20 64 65 | 6e 74 20 3d 20 72 65 61 |for ( de|nt = rea|
|00004c60| 64 64 69 72 28 64 69 72 | 6c 29 3b 20 64 65 6e 74 |ddir(dir|l); dent|
|00004c70| 20 21 3d 20 4e 55 4c 4c | 20 3b 20 64 65 6e 74 20 | != NULL| ; dent |
|00004c80| 3d 20 72 65 61 64 64 69 | 72 28 64 69 72 6c 29 20 |= readdi|r(dirl) |
|00004c90| 29 0a 58 20 20 20 20 20 | 20 20 20 7b 0a 58 20 20 |).X | {.X |
|00004ca0| 20 20 20 20 20 20 63 68 | 61 72 20 70 61 74 68 5b | ch|ar path[|
|00004cb0| 4d 41 58 4e 41 4d 4c 45 | 4e 5d 3b 0a 58 0a 58 20 |MAXNAMLE|N];.X.X |
|00004cc0| 20 20 20 20 20 20 20 73 | 70 72 69 6e 74 66 28 70 | s|printf(p|
|00004cd0| 61 74 68 2c 20 22 25 73 | 2f 25 73 22 2c 20 64 69 |ath, "%s|/%s", di|
|00004ce0| 72 2c 20 64 65 6e 74 2d | 3e 64 5f 6e 61 6d 65 29 |r, dent-|>d_name)|
|00004cf0| 3b 0a 58 20 20 20 20 20 | 20 20 20 73 74 61 74 28 |;.X | stat(|
|00004d00| 70 61 74 68 2c 20 26 62 | 75 66 29 3b 0a 58 0a 58 |path, &b|uf);.X.X|
|00004d10| 20 20 20 20 20 20 20 20 | 70 74 72 73 5b 69 74 65 | |ptrs[ite|
|00004d20| 6d 73 5d 20 3d 20 28 73 | 74 72 75 63 74 20 45 6e |ms] = (s|truct En|
|00004d30| 74 72 79 20 2a 29 6d 61 | 6c 6c 6f 63 28 73 69 7a |try *)ma|lloc(siz|
|00004d40| 65 6f 66 28 73 74 72 75 | 63 74 20 45 6e 74 72 79 |eof(stru|ct Entry|
|00004d50| 29 29 3b 0a 58 20 20 20 | 20 20 20 20 20 70 74 72 |));.X | ptr|
|00004d60| 73 5b 69 74 65 6d 73 5d | 2d 3e 64 69 72 20 3d 20 |s[items]|->dir = |
|00004d70| 53 5f 49 53 44 49 52 28 | 62 75 66 2e 73 74 5f 6d |S_ISDIR(|buf.st_m|
|00004d80| 6f 64 65 29 3b 0a 58 20 | 20 20 20 20 20 20 20 70 |ode);.X | p|
|00004d90| 74 72 73 5b 69 74 65 6d | 73 5d 2d 3e 73 69 7a 65 |trs[item|s]->size|
|00004da0| 20 3d 20 62 75 66 2e 73 | 74 5f 73 69 7a 65 3b 0a | = buf.s|t_size;.|
|00004db0| 58 20 20 20 20 20 20 20 | 20 70 74 72 73 5b 69 74 |X | ptrs[it|
|00004dc0| 65 6d 73 5d 2d 3e 6d 6f | 64 65 20 3d 20 62 75 66 |ems]->mo|de = buf|
|00004dd0| 2e 73 74 5f 6d 6f 64 65 | 3b 0a 58 20 20 20 20 20 |.st_mode|;.X |
|00004de0| 20 20 20 70 74 72 73 5b | 69 74 65 6d 73 5d 2d 3e | ptrs[|items]->|
|00004df0| 6e 61 6d 65 20 3d 20 53 | 54 52 49 4e 47 28 64 65 |name = S|TRING(de|
|00004e00| 6e 74 2d 3e 64 5f 6e 61 | 6d 65 29 3b 0a 58 20 20 |nt->d_na|me);.X |
|00004e10| 20 20 20 20 20 20 70 74 | 72 73 5b 69 74 65 6d 73 | pt|rs[items|
|00004e20| 5d 2d 3e 70 61 74 68 20 | 3d 20 53 54 52 49 4e 47 |]->path |= STRING|
|00004e30| 28 64 69 72 29 3b 0a 58 | 20 20 20 20 20 20 20 20 |(dir);.X| |
|00004e40| 70 74 72 73 5b 69 74 65 | 6d 73 5d 2d 3e 66 75 6c |ptrs[ite|ms]->ful|
|00004e50| 6c 6e 61 6d 65 20 3d 20 | 58 74 4d 61 6c 6c 6f 63 |lname = |XtMalloc|
|00004e60| 28 73 74 72 6c 65 6e 28 | 64 69 72 29 2b 73 74 72 |(strlen(|dir)+str|
|00004e70| 6c 65 6e 28 64 65 6e 74 | 2d 3e 64 5f 6e 61 6d 65 |len(dent|->d_name|
|00004e80| 29 2b 32 29 3b 0a 58 20 | 20 20 20 20 20 20 20 73 |)+2);.X | s|
|00004e90| 70 72 69 6e 74 66 28 70 | 74 72 73 5b 69 74 65 6d |printf(p|trs[item|
|00004ea0| 73 5d 2d 3e 66 75 6c 6c | 6e 61 6d 65 2c 20 22 25 |s]->full|name, "%|
|00004eb0| 73 2f 25 73 22 2c 20 64 | 69 72 2c 20 64 65 6e 74 |s/%s", d|ir, dent|
|00004ec0| 2d 3e 64 5f 6e 61 6d 65 | 29 3b 0a 58 20 20 20 20 |->d_name|);.X |
|00004ed0| 20 20 20 20 69 74 65 6d | 73 2b 2b 3b 0a 58 20 20 | item|s++;.X |
|00004ee0| 20 20 20 20 20 20 7d 0a | 58 0a 58 20 20 20 20 63 | }.|X.X c|
|00004ef0| 6c 6f 73 65 64 69 72 28 | 64 69 72 6c 29 3b 0a 58 |losedir(|dirl);.X|
|00004f00| 0a 58 20 20 20 20 71 73 | 6f 72 74 28 70 74 72 73 |.X qs|ort(ptrs|
|00004f10| 2c 20 69 74 65 6d 73 2c | 20 73 69 7a 65 6f 66 28 |, items,| sizeof(|
|00004f20| 73 74 72 75 63 74 20 45 | 6e 74 72 79 20 2a 29 2c |struct E|ntry *),|
|00004f30| 20 63 6f 6d 70 61 72 65 | 29 3b 0a 58 0a 58 20 20 | compare|);.X.X |
|00004f40| 20 20 66 6f 72 20 28 6c | 6f 6f 70 3d 30 3b 20 6c | for (l|oop=0; l|
|00004f50| 6f 6f 70 20 3c 20 69 74 | 65 6d 73 3b 20 6c 6f 6f |oop < it|ems; loo|
|00004f60| 70 2b 2b 29 0a 58 20 20 | 20 20 20 20 20 20 7b 0a |p++).X | {.|
|00004f70| 58 20 20 20 20 20 20 20 | 20 63 68 61 72 20 74 3b |X | char t;|
|00004f80| 0a 58 0a 58 20 20 20 20 | 20 20 20 20 74 20 3d 20 |.X.X | t = |
|00004f90| 27 20 27 3b 0a 58 20 20 | 20 20 20 20 20 20 69 66 |' ';.X | if|
|00004fa0| 20 28 70 74 72 73 5b 6c | 6f 6f 70 5d 2d 3e 64 69 | (ptrs[l|oop]->di|
|00004fb0| 72 29 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 |r).X | |
|00004fc0| 74 3d 27 2f 27 3b 0a 58 | 20 20 20 20 20 20 20 20 |t='/';.X| |
|00004fd0| 65 6c 73 65 0a 58 20 20 | 20 20 20 20 20 20 69 66 |else.X | if|
|00004fe0| 20 28 70 74 72 73 5b 6c | 6f 6f 70 5d 2d 3e 6d 6f | (ptrs[l|oop]->mo|
|00004ff0| 64 65 20 26 20 53 5f 49 | 58 55 53 52 29 0a 58 20 |de & S_I|XUSR).X |
|00005000| 20 20 20 20 20 20 20 20 | 20 20 20 74 20 3d 20 27 | | t = '|
|00005010| 2a 27 3b 0a 58 20 20 20 | 20 6d 6f 64 65 20 3d 20 |*';.X | mode = |
|00005020| 70 74 72 73 5b 6c 6f 6f | 70 5d 2d 3e 6d 6f 64 65 |ptrs[loo|p]->mode|
|00005030| 3b 0a 58 20 20 20 20 73 | 74 72 63 70 79 28 70 2c |;.X s|trcpy(p,|
|00005040| 20 22 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 22 29 3b 0a | "------|----");.|
|00005050| 58 20 20 20 20 69 66 20 | 28 70 74 72 73 5b 6c 6f |X if |(ptrs[lo|
|00005060| 6f 70 5d 2d 3e 64 69 72 | 29 0a 58 20 20 20 20 20 |op]->dir|).X |
|00005070| 20 20 20 70 5b 30 5d 20 | 3d 20 27 64 27 3b 0a 58 | p[0] |= 'd';.X|
|00005080| 20 20 20 20 69 66 20 28 | 6d 6f 64 65 20 26 20 53 | if (|mode & S|
|00005090| 5f 49 52 55 53 52 29 0a | 58 20 20 20 20 20 20 20 |_IRUSR).|X |
|000050a0| 20 70 5b 31 5d 20 3d 20 | 27 72 27 3b 0a 58 20 20 | p[1] = |'r';.X |
|000050b0| 20 20 69 66 20 28 6d 6f | 64 65 20 26 20 53 5f 49 | if (mo|de & S_I|
|000050c0| 57 55 53 52 29 0a 58 20 | 20 20 20 20 20 20 20 70 |WUSR).X | p|
|000050d0| 5b 32 5d 20 3d 20 27 77 | 27 3b 0a 58 20 20 20 20 |[2] = 'w|';.X |
|000050e0| 69 66 20 28 6d 6f 64 65 | 20 26 20 53 5f 49 58 55 |if (mode| & S_IXU|
|000050f0| 53 52 29 0a 58 20 20 20 | 20 20 20 20 20 70 5b 33 |SR).X | p[3|
|00005100| 5d 20 3d 20 27 78 27 3b | 0a 58 20 20 20 20 69 66 |] = 'x';|.X if|
|00005110| 20 28 6d 6f 64 65 20 26 | 20 53 5f 49 52 47 52 50 | (mode &| S_IRGRP|
|00005120| 29 0a 58 20 20 20 20 20 | 20 20 20 70 5b 34 5d 20 |).X | p[4] |
|00005130| 3d 20 27 72 27 3b 0a 58 | 20 20 20 20 69 66 20 28 |= 'r';.X| if (|
|00005140| 6d 6f 64 65 20 26 20 53 | 5f 49 57 47 52 50 29 0a |mode & S|_IWGRP).|
|00005150| 58 20 20 20 20 20 20 20 | 20 70 5b 35 5d 20 3d 20 |X | p[5] = |
|00005160| 27 77 27 3b 0a 58 20 20 | 20 20 69 66 20 28 6d 6f |'w';.X | if (mo|
|00005170| 64 65 20 26 20 53 5f 49 | 58 47 52 50 29 0a 58 20 |de & S_I|XGRP).X |
|00005180| 20 20 20 20 20 20 20 70 | 5b 36 5d 20 3d 20 27 78 | p|[6] = 'x|
|00005190| 27 3b 0a 58 20 20 20 20 | 69 66 20 28 6d 6f 64 65 |';.X |if (mode|
|000051a0| 20 26 20 53 5f 49 52 4f | 54 48 29 0a 58 20 20 20 | & S_IRO|TH).X |
|000051b0| 20 20 20 20 20 70 5b 37 | 5d 20 3d 20 27 72 27 3b | p[7|] = 'r';|
|000051c0| 0a 58 20 20 20 20 69 66 | 20 28 6d 6f 64 65 20 26 |.X if| (mode &|
|000051d0| 20 53 5f 49 57 4f 54 48 | 29 0a 58 20 20 20 20 20 | S_IWOTH|).X |
|000051e0| 20 20 20 70 5b 38 5d 20 | 3d 20 27 77 27 3b 0a 58 | p[8] |= 'w';.X|
|000051f0| 20 20 20 20 69 66 20 28 | 6d 6f 64 65 20 26 20 53 | if (|mode & S|
|00005200| 5f 49 58 4f 54 48 29 0a | 58 20 20 20 20 20 20 20 |_IXOTH).|X |
|00005210| 20 70 5b 39 5d 20 3d 20 | 27 78 27 3b 0a 58 0a 58 | p[9] = |'x';.X.X|
|00005220| 20 20 20 20 20 20 20 20 | 73 70 72 69 6e 74 66 28 | |sprintf(|
|00005230| 69 6e 66 6f 5f 6c 69 6e | 65 2c 20 22 20 25 73 20 |info_lin|e, " %s |
|00005240| 25 38 64 20 25 73 25 63 | 22 2c 20 70 2c 20 70 74 |%8d %s%c|", p, pt|
|00005250| 72 73 5b 6c 6f 6f 70 5d | 2d 3e 73 69 7a 65 2c 20 |rs[loop]|->size, |
|00005260| 70 74 72 73 5b 6c 6f 6f | 70 5d 2d 3e 6e 61 6d 65 |ptrs[loo|p]->name|
|00005270| 2c 20 74 29 3b 0a 58 20 | 20 20 20 20 20 20 20 69 |, t);.X | i|
|00005280| 74 65 6d 5f 61 72 72 61 | 79 5b 6c 6f 6f 70 5d 20 |tem_arra|y[loop] |
|00005290| 3d 20 28 58 6d 53 74 72 | 69 6e 67 29 58 6d 53 74 |= (XmStr|ing)XmSt|
|000052a0| 72 69 6e 67 43 72 65 61 | 74 65 4c 74 6f 52 28 69 |ringCrea|teLtoR(i|
|000052b0| 6e 66 6f 5f 6c 69 6e 65 | 2c 20 58 6d 53 54 52 49 |nfo_line|, XmSTRI|
|000052c0| 4e 47 5f 44 45 46 41 55 | 4c 54 5f 43 48 41 52 53 |NG_DEFAU|LT_CHARS|
|000052d0| 45 54 29 3b 0a 58 20 20 | 20 20 20 20 20 20 7d 0a |ET);.X | }.|
|000052e0| 58 0a 58 20 20 20 20 61 | 63 20 3d 20 30 3b 0a 58 |X.X a|c = 0;.X|
|000052f0| 20 20 20 20 58 74 53 65 | 74 41 72 67 28 61 6c 5b | XtSe|tArg(al[|
|00005300| 61 63 5d 2c 20 58 6d 4e | 69 74 65 6d 73 2c 20 28 |ac], XmN|items, (|
|00005310| 58 74 41 72 67 56 61 6c | 29 69 74 65 6d 5f 61 72 |XtArgVal|)item_ar|
|00005320| 72 61 79 29 3b 20 61 63 | 2b 2b 3b 0a 58 20 20 20 |ray); ac|++;.X |
|00005330| 20 58 74 53 65 74 41 72 | 67 28 61 6c 5b 61 63 5d | XtSetAr|g(al[ac]|
|00005340| 2c 20 58 6d 4e 69 74 65 | 6d 43 6f 75 6e 74 2c 20 |, XmNite|mCount, |
|00005350| 28 58 74 41 72 67 56 61 | 6c 29 69 74 65 6d 73 29 |(XtArgVa|l)items)|
|00005360| 3b 20 61 63 2b 2b 3b 0a | 58 20 20 20 20 58 74 53 |; ac++;.|X XtS|
|00005370| 65 74 56 61 6c 75 65 73 | 28 6c 69 73 74 2c 20 61 |etValues|(list, a|
|00005380| 6c 2c 20 61 63 29 3b 0a | 58 20 20 20 20 58 6d 4c |l, ac);.|X XmL|
|00005390| 69 73 74 44 65 73 65 6c | 65 63 74 41 6c 6c 49 74 |istDesel|ectAllIt|
|000053a0| 65 6d 73 28 6c 69 73 74 | 29 3b 0a 58 20 20 20 20 |ems(list|);.X |
|000053b0| 64 69 73 70 6c 61 79 65 | 72 72 6f 72 28 22 4f 4b |displaye|rror("OK|
|000053c0| 2e 22 2c 20 73 69 64 65 | 29 3b 0a 58 20 20 20 20 |.", side|);.X |
|000053d0| 72 65 74 75 72 6e 28 69 | 74 65 6d 73 29 3b 0a 58 |return(i|tems);.X|
|000053e0| 7d 0a 58 0a 58 76 6f 69 | 64 20 72 65 61 64 5f 6c |}.X.Xvoi|d read_l|
|000053f0| 65 66 74 28 29 0a 58 7b | 0a 58 20 20 20 20 73 65 |eft().X{|.X se|
|00005400| 74 5f 6c 61 62 65 6c 28 | 6c 65 66 74 69 6e 66 6f |t_label(|leftinfo|
|00005410| 6c 61 62 65 6c 2c 20 22 | 52 65 61 64 69 6e 67 20 |label, "|Reading |
|00005420| 64 69 72 65 63 74 6f 72 | 79 2e 2e 2e 22 29 3b 0a |director|y...");.|
|00005430| 58 20 20 20 20 6c 65 66 | 74 6c 69 73 74 6e 75 6d |X lef|tlistnum|
|00005440| 20 3d 20 64 69 72 5f 6c | 69 73 74 28 6c 65 66 74 | = dir_l|ist(left|
|00005450| 6c 69 73 74 2c 20 6c 65 | 66 74 63 64 2c 20 6c 65 |list, le|ftcd, le|
|00005460| 66 74 70 74 72 73 29 3b | 0a 58 7d 0a 58 0a 58 76 |ftptrs);|.X}.X.Xv|
|00005470| 6f 69 64 20 72 65 61 64 | 5f 72 69 67 68 74 28 29 |oid read|_right()|
|00005480| 0a 58 7b 0a 58 20 20 20 | 20 73 65 74 5f 6c 61 62 |.X{.X | set_lab|
|00005490| 65 6c 28 72 69 67 68 74 | 69 6e 66 6f 6c 61 62 65 |el(right|infolabe|
|000054a0| 6c 2c 20 22 52 65 61 64 | 69 6e 67 20 64 69 72 65 |l, "Read|ing dire|
|000054b0| 63 74 6f 72 79 2e 2e 2e | 22 29 3b 0a 58 20 20 20 |ctory...|");.X |
|000054c0| 20 72 69 67 68 74 6c 69 | 73 74 6e 75 6d 20 3d 20 | rightli|stnum = |
|000054d0| 64 69 72 5f 6c 69 73 74 | 28 72 69 67 68 74 6c 69 |dir_list|(rightli|
|000054e0| 73 74 2c 20 72 69 67 68 | 74 63 64 2c 20 72 69 67 |st, righ|tcd, rig|
|000054f0| 68 74 70 74 72 73 29 3b | 0a 58 7d 0a 58 0a 58 76 |htptrs);|.X}.X.Xv|
|00005500| 6f 69 64 20 64 6f 5f 6c | 65 66 74 28 29 0a 58 7b |oid do_l|eft().X{|
|00005510| 0a 58 20 20 20 20 67 65 | 74 77 64 28 6c 65 66 74 |.X ge|twd(left|
|00005520| 63 64 29 3b 0a 58 20 20 | 20 20 58 6d 54 65 78 74 |cd);.X | XmText|
|00005530| 53 65 74 53 74 72 69 6e | 67 28 6c 65 66 74 64 69 |SetStrin|g(leftdi|
|00005540| 72 74 65 78 74 2c 20 6c | 65 66 74 63 64 29 3b 0a |rtext, l|eftcd);.|
|00005550| 58 20 20 20 20 72 65 61 | 64 5f 6c 65 66 74 28 29 |X rea|d_left()|
|00005560| 3b 0a 58 7d 0a 58 0a 58 | 76 6f 69 64 20 64 6f 5f |;.X}.X.X|void do_|
|00005570| 72 69 67 68 74 28 29 0a | 58 7b 0a 58 20 20 20 20 |right().|X{.X |
|00005580| 67 65 74 77 64 28 72 69 | 67 68 74 63 64 29 3b 0a |getwd(ri|ghtcd);.|
|00005590| 58 20 20 20 20 58 6d 54 | 65 78 74 53 65 74 53 74 |X XmT|extSetSt|
|000055a0| 72 69 6e 67 28 72 69 67 | 68 74 64 69 72 74 65 78 |ring(rig|htdirtex|
|000055b0| 74 2c 20 72 69 67 68 74 | 63 64 29 3b 0a 58 20 20 |t, right|cd);.X |
|000055c0| 20 20 72 65 61 64 5f 72 | 69 67 68 74 28 29 3b 0a | read_r|ight();.|
|000055d0| 58 7d 0a 58 0a 58 76 6f | 69 64 20 69 6e 69 74 28 |X}.X.Xvo|id init(|
|000055e0| 29 0a 58 7b 0a 58 20 20 | 20 20 64 6f 5f 6c 65 66 |).X{.X | do_lef|
|000055f0| 74 28 29 3b 0a 58 20 20 | 20 20 64 6f 5f 72 69 67 |t();.X | do_rig|
|00005600| 68 74 28 29 3b 0a 58 7d | 0a 58 0a 58 0a 58 0a 58 |ht();.X}|.X.X.X.X|
|00005610| 76 6f 69 64 20 6e 65 77 | 6c 65 66 74 64 69 72 28 |void new|leftdir(|
|00005620| 29 0a 58 7b 0a 58 20 20 | 20 20 73 74 72 63 70 79 |).X{.X | strcpy|
|00005630| 28 6c 65 66 74 63 64 2c | 20 58 6d 54 65 78 74 47 |(leftcd,| XmTextG|
|00005640| 65 74 53 74 72 69 6e 67 | 28 6c 65 66 74 64 69 72 |etString|(leftdir|
|00005650| 74 65 78 74 29 29 3b 0a | 58 20 20 20 20 72 65 61 |text));.|X rea|
|00005660| 64 5f 6c 65 66 74 28 29 | 3b 0a 58 7d 0a 58 0a 58 |d_left()|;.X}.X.X|
|00005670| 76 6f 69 64 20 6e 65 77 | 72 69 67 68 74 64 69 72 |void new|rightdir|
|00005680| 28 29 0a 58 7b 0a 58 20 | 20 20 20 73 74 72 63 70 |().X{.X | strcp|
|00005690| 79 28 72 69 67 68 74 63 | 64 2c 20 58 6d 54 65 78 |y(rightc|d, XmTex|
|000056a0| 74 47 65 74 53 74 72 69 | 6e 67 28 72 69 67 68 74 |tGetStri|ng(right|
|000056b0| 64 69 72 74 65 78 74 29 | 29 3b 0a 58 20 20 20 20 |dirtext)|);.X |
|000056c0| 72 65 61 64 5f 72 69 67 | 68 74 28 29 3b 0a 58 7d |read_rig|ht();.X}|
|000056d0| 0a 58 0a 58 0a 58 0a 58 | 76 6f 69 64 20 73 79 73 |.X.X.X.X|void sys|
|000056e0| 28 63 6f 6d 29 0a 58 63 | 68 61 72 20 2a 63 6f 6d |(com).Xc|har *com|
|000056f0| 3b 0a 58 7b 0a 58 20 20 | 20 20 66 70 72 69 6e 74 |;.X{.X | fprint|
|00005700| 66 28 73 74 64 6f 75 74 | 2c 20 22 25 73 5c 6e 22 |f(stdout|, "%s\n"|
|00005710| 2c 20 63 6f 6d 29 3b 0a | 58 20 20 20 20 73 79 73 |, com);.|X sys|
|00005720| 74 65 6d 28 63 6f 6d 29 | 3b 0a 58 20 20 20 20 69 |tem(com)|;.X i|
|00005730| 66 20 28 72 65 61 64 61 | 66 74 65 72 63 6f 6d 6d |f (reada|ftercomm|
|00005740| 61 6e 64 29 0a 58 20 20 | 20 20 20 20 20 20 7b 0a |and).X | {.|
|00005750| 58 20 20 20 20 20 20 20 | 20 72 65 61 64 5f 6c 65 |X | read_le|
|00005760| 66 74 28 29 3b 0a 58 20 | 20 20 20 20 20 20 20 72 |ft();.X | r|
|00005770| 65 61 64 5f 72 69 67 68 | 74 28 29 3b 0a 58 20 20 |ead_righ|t();.X |
|00005780| 20 20 20 20 20 20 7d 0a | 58 0a 58 7d 0a 58 0a 58 | }.|X.X}.X.X|
|00005790| 20 20 20 20 20 0a 58 0a | 58 0a 58 0a 58 76 6f 69 | .X.|X.X.Xvoi|
|000057a0| 64 20 6b 69 6c 6c 70 6f | 70 28 77 2c 20 63 31 2c |d killpo|p(w, c1,|
|000057b0| 20 63 32 29 0a 58 57 69 | 64 67 65 74 20 77 3b 0a | c2).XWi|dget w;.|
|000057c0| 58 7b 0a 58 20 20 20 20 | 58 74 55 6e 6d 61 6e 61 |X{.X |XtUnmana|
|000057d0| 67 65 43 68 69 6c 64 28 | 77 29 3b 0a 58 20 20 20 |geChild(|w);.X |
|000057e0| 20 58 74 44 65 73 74 72 | 6f 79 57 69 64 67 65 74 | XtDestr|oyWidget|
|000057f0| 28 77 29 3b 0a 58 7d 0a | 58 0a 58 0a 58 73 74 61 |(w);.X}.|X.X.Xsta|
|00005800| 74 69 63 20 58 74 43 61 | 6c 6c 62 61 63 6b 52 65 |tic XtCa|llbackRe|
|00005810| 63 20 63 61 6c 6c 5f 6b | 69 6c 6c 5b 5d 20 3d 20 |c call_k|ill[] = |
|00005820| 7b 20 7b 28 58 74 43 61 | 6c 6c 62 61 63 6b 50 72 |{ {(XtCa|llbackPr|
|00005830| 6f 63 29 6b 69 6c 6c 70 | 6f 70 2c 20 28 63 61 64 |oc)killp|op, (cad|
|00005840| 64 72 5f 74 29 4e 55 4c | 4c 7d 2c 0a 58 20 20 20 |dr_t)NUL|L},.X |
|00005850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005860| 20 20 20 20 20 20 20 20 | 20 7b 20 28 58 74 43 61 | | { (XtCa|
|00005870| 6c 6c 62 61 63 6b 50 72 | 6f 63 29 4e 55 4c 4c 2c |llbackPr|oc)NULL,|
|00005880| 20 28 63 61 64 64 72 5f | 74 29 4e 55 4c 4c 7d 20 | (caddr_|t)NULL} |
|00005890| 7d 3b 0a 58 0a 58 0a 58 | 0a 58 76 6f 69 64 20 73 |};.X.X.X|.Xvoid s|
|000058a0| 74 72 69 6e 67 5f 70 6f | 70 75 70 28 74 69 74 6c |tring_po|pup(titl|
|000058b0| 65 2c 20 69 6e 66 6f 2c | 20 69 6e 69 74 73 74 72 |e, info,| initstr|
|000058c0| 2c 20 63 61 6c 6c 62 61 | 63 6b 2c 20 65 6e 74 72 |, callba|ck, entr|
|000058d0| 79 29 0a 58 63 68 61 72 | 20 2a 74 69 74 6c 65 2c |y).Xchar| *title,|
|000058e0| 20 2a 69 6e 66 6f 2c 20 | 2a 69 6e 69 74 73 74 72 | *info, |*initstr|
|000058f0| 3b 0a 58 58 74 43 61 6c | 6c 62 61 63 6b 50 72 6f |;.XXtCal|lbackPro|
|00005900| 63 20 63 61 6c 6c 62 61 | 63 6b 3b 0a 58 73 74 72 |c callba|ck;.Xstr|
|00005910| 75 63 74 20 45 6e 74 72 | 79 20 2a 65 6e 74 72 79 |uct Entr|y *entry|
|00005920| 3b 0a 58 7b 0a 58 57 69 | 64 67 65 74 20 70 6f 70 |;.X{.XWi|dget pop|
|00005930| 2c 20 73 74 72 69 6e 67 | 74 65 78 74 2c 20 6f 75 |, string|text, ou|
|00005940| 74 65 72 2c 20 72 63 2c | 20 6c 61 62 65 6c 3b 0a |ter, rc,| label;.|
|00005950| 58 41 72 67 20 61 6c 5b | 31 30 5d 3b 0a 58 69 6e |XArg al[|10];.Xin|
|00005960| 74 20 61 63 3b 0a 58 46 | 49 4c 45 20 2a 66 70 20 |t ac;.XF|ILE *fp |
|00005970| 3d 20 4e 55 4c 4c 3b 0a | 58 57 69 64 67 65 74 20 |= NULL;.|XWidget |
|00005980| 6f 6b 62 75 74 74 6f 6e | 2c 20 63 61 6e 63 65 6c |okbutton|, cancel|
|00005990| 62 75 74 74 6f 6e 2c 20 | 63 61 6e 63 65 6c 61 6c |button, |cancelal|
|000059a0| 6c 62 75 74 74 6f 6e 3b | 0a 58 0a 58 0a 58 20 20 |lbutton;|.X.X.X |
|000059b0| 20 20 61 63 20 3d 20 30 | 3b 0a 58 20 20 20 20 58 | ac = 0|;.X X|
|000059c0| 74 53 65 74 41 72 67 28 | 61 6c 5b 61 63 5d 2c 20 |tSetArg(|al[ac], |
|000059d0| 58 6d 4e 64 69 61 6c 6f | 67 53 74 79 6c 65 2c 20 |XmNdialo|gStyle, |
|000059e0| 58 6d 44 49 41 4c 4f 47 | 5f 41 50 50 4c 49 43 41 |XmDIALOG|_APPLICA|
|000059f0| 54 49 4f 4e 5f 4d 4f 44 | 41 4c 29 3b 20 20 61 63 |TION_MOD|AL); ac|
|00005a00| 2b 2b 3b 0a 58 20 20 20 | 20 58 74 53 65 74 41 72 |++;.X | XtSetAr|
|00005a10| 67 28 61 6c 5b 61 63 5d | 2c 20 58 6d 4e 73 65 6c |g(al[ac]|, XmNsel|
|00005a20| 65 63 74 69 6f 6e 4c 61 | 62 65 6c 53 74 72 69 6e |ectionLa|belStrin|
|00005a30| 67 2c 20 58 6d 53 74 72 | 69 6e 67 43 72 65 61 74 |g, XmStr|ingCreat|
|00005a40| 65 28 69 6e 66 6f 2c 20 | 58 6d 53 54 52 49 4e 47 |e(info, |XmSTRING|
|00005a50| 5f 44 45 46 41 55 4c 54 | 5f 43 48 41 52 53 45 54 |_DEFAULT|_CHARSET|
|00005a60| 29 20 29 3b 20 61 63 2b | 2b 3b 0a 58 20 20 20 20 |) ); ac+|+;.X |
|00005a70| 58 74 53 65 74 41 72 67 | 28 61 6c 5b 61 63 5d 2c |XtSetArg|(al[ac],|
|00005a80| 20 58 6d 4e 74 65 78 74 | 53 74 72 69 6e 67 2c 20 | XmNtext|String, |
|00005a90| 58 6d 53 74 72 69 6e 67 | 43 72 65 61 74 65 28 69 |XmString|Create(i|
|00005aa0| 6e 69 74 73 74 72 2c 20 | 58 6d 53 54 52 49 4e 47 |nitstr, |XmSTRING|
|00005ab0| 5f 44 45 46 41 55 4c 54 | 5f 43 48 41 52 53 45 54 |_DEFAULT|_CHARSET|
|00005ac0| 29 20 29 3b 20 61 63 2b | 2b 3b 0a 58 20 20 20 20 |) ); ac+|+;.X |
|00005ad0| 70 6f 70 20 3d 20 58 6d | 43 72 65 61 74 65 50 72 |pop = Xm|CreatePr|
|00005ae0| 6f 6d 70 74 44 69 61 6c | 6f 67 28 74 6f 70 6c 65 |omptDial|og(tople|
|00005af0| 76 65 6c 2c 20 22 73 74 | 72 69 6e 67 70 6f 70 75 |vel, "st|ringpopu|
|00005b00| 70 22 2c 20 61 6c 2c 20 | 61 63 29 3b 0a 58 20 20 |p", al, |ac);.X |
|00005b10| 20 20 6f 75 74 65 72 20 | 3d 20 58 74 50 61 72 65 | outer |= XtPare|
|00005b20| 6e 74 28 70 6f 70 29 3b | 0a 58 0a 58 20 20 20 20 |nt(pop);|.X.X |
|00005b30| 61 63 20 3d 20 30 3b 0a | 58 20 20 20 20 58 74 53 |ac = 0;.|X XtS|
|00005b40| 65 74 41 72 67 28 61 6c | 5b 61 63 5d 2c 20 58 6d |etArg(al|[ac], Xm|
|00005b50| 4e 75 6e 6d 61 70 43 61 | 6c 6c 62 61 63 6b 2c 20 |NunmapCa|llback, |
|00005b60| 63 61 6c 6c 5f 6b 69 6c | 6c 29 3b 20 20 61 63 2b |call_kil|l); ac+|
|00005b70| 2b 3b 0a 58 20 20 20 20 | 58 74 53 65 74 56 61 6c |+;.X |XtSetVal|
|00005b80| 75 65 73 28 6f 75 74 65 | 72 2c 20 61 6c 2c 20 61 |ues(oute|r, al, a|
|00005b90| 63 29 3b 0a 58 0a 58 20 | 20 20 20 73 74 72 69 6e |c);.X.X | strin|
|00005ba0| 67 74 65 78 74 20 3d 20 | 58 6d 53 65 6c 65 63 74 |gtext = |XmSelect|
|00005bb0| 69 6f 6e 42 6f 78 47 65 | 74 43 68 69 6c 64 28 70 |ionBoxGe|tChild(p|
|00005bc0| 6f 70 2c 20 58 6d 44 49 | 41 4c 4f 47 5f 54 45 58 |op, XmDI|ALOG_TEX|
|00005bd0| 54 20 29 3b 0a 58 0a 58 | 20 20 20 20 6f 6b 62 75 |T );.X.X| okbu|
|00005be0| 74 74 6f 6e 20 3d 20 58 | 6d 53 65 6c 65 63 74 69 |tton = X|mSelecti|
|00005bf0| 6f 6e 42 6f 78 47 65 74 | 43 68 69 6c 64 28 70 6f |onBoxGet|Child(po|
|00005c00| 70 2c 20 58 6d 44 49 41 | 4c 4f 47 5f 4f 4b 5f 42 |p, XmDIA|LOG_OK_B|
|00005c10| 55 54 54 4f 4e 29 3b 0a | 58 20 20 20 20 63 61 6e |UTTON);.|X can|
|00005c20| 63 65 6c 62 75 74 74 6f | 6e 20 3d 20 58 6d 53 65 |celbutto|n = XmSe|
|00005c30| 6c 65 63 74 69 6f 6e 42 | 6f 78 47 65 74 43 68 69 |lectionB|oxGetChi|
|00005c40| 6c 64 28 70 6f 70 2c 20 | 58 6d 44 49 41 4c 4f 47 |ld(pop, |XmDIALOG|
|00005c50| 5f 43 41 4e 43 45 4c 5f | 42 55 54 54 4f 4e 29 3b |_CANCEL_|BUTTON);|
|00005c60| 0a 58 0a 58 20 20 20 20 | 58 74 55 6e 6d 61 6e 61 |.X.X |XtUnmana|
|00005c70| 67 65 43 68 69 6c 64 28 | 58 6d 53 65 6c 65 63 74 |geChild(|XmSelect|
|00005c80| 69 6f 6e 42 6f 78 47 65 | 74 43 68 69 6c 64 28 70 |ionBoxGe|tChild(p|
|00005c90| 6f 70 2c 20 58 6d 44 49 | 41 4c 4f 47 5f 48 45 4c |op, XmDI|ALOG_HEL|
|00005ca0| 50 5f 42 55 54 54 4f 4e | 29 20 29 3b 0a 58 0a 58 |P_BUTTON|) );.X.X|
|00005cb0| 20 20 20 20 58 74 41 64 | 64 43 61 6c 6c 62 61 63 | XtAd|dCallbac|
|00005cc0| 6b 28 70 6f 70 2c 20 58 | 6d 4e 6f 6b 43 61 6c 6c |k(pop, X|mNokCall|
|00005cd0| 62 61 63 6b 2c 20 63 61 | 6c 6c 62 61 63 6b 2c 20 |back, ca|llback, |
|00005ce0| 28 58 74 50 6f 69 6e 74 | 65 72 29 65 6e 74 72 79 |(XtPoint|er)entry|
|00005cf0| 29 3b 0a 58 20 20 20 20 | 58 74 41 64 64 43 61 6c |);.X |XtAddCal|
|00005d00| 6c 62 61 63 6b 28 70 6f | 70 2c 20 58 6d 4e 63 61 |lback(po|p, XmNca|
|00005d10| 6e 63 65 6c 43 61 6c 6c | 62 61 63 6b 2c 20 63 61 |ncelCall|back, ca|
|00005d20| 6c 6c 62 61 63 6b 2c 20 | 28 58 74 50 6f 69 6e 74 |llback, |(XtPoint|
|00005d30| 65 72 29 65 6e 74 72 79 | 29 3b 0a 58 0a 58 20 20 |er)entry|);.X.X |
|00005d40| 20 20 58 74 55 6e 6d 61 | 6e 61 67 65 43 68 69 6c | XtUnma|nageChil|
|00005d50| 64 28 58 6d 53 65 6c 65 | 63 74 69 6f 6e 42 6f 78 |d(XmSele|ctionBox|
|00005d60| 47 65 74 43 68 69 6c 64 | 28 70 6f 70 2c 20 58 6d |GetChild|(pop, Xm|
|00005d70| 44 49 41 4c 4f 47 5f 53 | 45 50 41 52 41 54 4f 52 |DIALOG_S|EPARATOR|
|00005d80| 20 29 20 29 3b 0a 58 0a | 58 20 20 20 20 61 63 20 | ) );.X.|X ac |
|00005d90| 3d 20 30 3b 0a 58 20 20 | 20 20 58 74 53 65 74 41 |= 0;.X | XtSetA|
|00005da0| 72 67 20 28 61 6c 5b 61 | 63 5d 2c 20 58 6d 4e 74 |rg (al[a|c], XmNt|
|00005db0| 69 74 6c 65 2c 20 74 69 | 74 6c 65 29 3b 20 61 63 |itle, ti|tle); ac|
|00005dc0| 2b 2b 3b 0a 58 20 20 20 | 20 58 74 53 65 74 56 61 |++;.X | XtSetVa|
|00005dd0| 6c 75 65 73 28 6f 75 74 | 65 72 2c 20 61 6c 2c 20 |lues(out|er, al, |
|00005de0| 61 63 29 3b 0a 58 0a 58 | 20 20 20 20 58 74 4d 61 |ac);.X.X| XtMa|
|00005df0| 6e 61 67 65 43 68 69 6c | 64 28 70 6f 70 29 3b 0a |nageChil|d(pop);.|
|00005e00| 58 7d 0a 58 0a 58 0a 58 | 76 6f 69 64 20 76 69 65 |X}.X.X.X|void vie|
|00005e10| 77 5f 77 69 6e 64 6f 77 | 28 73 74 72 2c 20 74 69 |w_window|(str, ti|
|00005e20| 74 6c 65 29 0a 58 63 68 | 61 72 20 2a 73 74 72 3b |tle).Xch|ar *str;|
|00005e30| 0a 58 63 68 61 72 20 2a | 74 69 74 6c 65 3b 0a 58 |.Xchar *|title;.X|
|00005e40| 7b 0a 58 57 69 64 67 65 | 74 20 70 6f 70 2c 20 74 |{.XWidge|t pop, t|
|00005e50| 65 78 74 77 69 6e 64 6f | 77 2c 20 6f 75 74 65 72 |extwindo|w, outer|
|00005e60| 3b 0a 58 41 72 67 20 61 | 6c 5b 31 30 5d 3b 0a 58 |;.XArg a|l[10];.X|
|00005e70| 69 6e 74 20 61 63 3b 0a | 58 20 20 20 20 61 63 20 |int ac;.|X ac |
|00005e80| 3d 20 30 3b 0a 58 20 20 | 20 20 58 74 53 65 74 41 |= 0;.X | XtSetA|
|00005e90| 72 67 28 61 6c 5b 61 63 | 5d 2c 20 58 6d 4e 6f 6b |rg(al[ac|], XmNok|
|00005ea0| 4c 61 62 65 6c 53 74 72 | 69 6e 67 2c 20 58 6d 53 |LabelStr|ing, XmS|
|00005eb0| 74 72 69 6e 67 43 72 65 | 61 74 65 28 22 43 6c 6f |tringCre|ate("Clo|
|00005ec0| 73 65 22 2c 20 58 6d 53 | 54 52 49 4e 47 5f 44 45 |se", XmS|TRING_DE|
|00005ed0| 46 41 55 4c 54 5f 43 48 | 41 52 53 45 54 29 20 29 |FAULT_CH|ARSET) )|
|00005ee0| 3b 20 61 63 2b 2b 3b 0a | 58 20 20 20 20 70 6f 70 |; ac++;.|X pop|
|00005ef0| 20 3d 20 58 6d 43 72 65 | 61 74 65 50 72 6f 6d 70 | = XmCre|atePromp|
|00005f00| 74 44 69 61 6c 6f 67 28 | 74 6f 70 6c 65 76 65 6c |tDialog(|toplevel|
|00005f10| 2c 20 22 74 65 78 74 70 | 6f 70 75 70 22 2c 20 61 |, "textp|opup", a|
|00005f20| 6c 2c 20 61 63 29 3b 0a | 58 20 20 20 20 6f 75 74 |l, ac);.|X out|
|00005f30| 65 72 20 3d 20 58 74 50 | 61 72 65 6e 74 28 70 6f |er = XtP|arent(po|
|00005f40| 70 29 3b 0a 58 0a 58 20 | 20 20 20 61 63 20 3d 20 |p);.X.X | ac = |
|00005f50| 30 3b 0a 58 20 20 20 20 | 58 74 53 65 74 41 72 67 |0;.X |XtSetArg|
|00005f60| 28 61 6c 5b 61 63 5d 2c | 20 58 6d 4e 75 6e 6d 61 |(al[ac],| XmNunma|
|00005f70| 70 43 61 6c 6c 62 61 63 | 6b 2c 20 63 61 6c 6c 5f |pCallbac|k, call_|
|00005f80| 6b 69 6c 6c 29 3b 20 20 | 61 63 2b 2b 3b 0a 58 20 |kill); |ac++;.X |
|00005f90| 20 20 20 58 74 53 65 74 | 56 61 6c 75 65 73 28 6f | XtSet|Values(o|
|00005fa0| 75 74 65 72 2c 20 61 6c | 2c 20 61 63 29 3b 0a 58 |uter, al|, ac);.X|
|00005fb0| 0a 58 20 20 20 20 58 74 | 55 6e 6d 61 6e 61 67 65 |.X Xt|Unmanage|
|00005fc0| 43 68 69 6c 64 28 58 6d | 53 65 6c 65 63 74 69 6f |Child(Xm|Selectio|
|00005fd0| 6e 42 6f 78 47 65 74 43 | 68 69 6c 64 28 70 6f 70 |nBoxGetC|hild(pop|
|00005fe0| 2c 20 58 6d 44 49 41 4c | 4f 47 5f 53 45 4c 45 43 |, XmDIAL|OG_SELEC|
|00005ff0| 54 49 4f 4e 5f 4c 41 42 | 45 4c 29 20 29 3b 0a 58 |TION_LAB|EL) );.X|
|00006000| 20 20 20 20 58 74 55 6e | 6d 61 6e 61 67 65 43 68 | XtUn|manageCh|
|00006010| 69 6c 64 28 58 6d 53 65 | 6c 65 63 74 69 6f 6e 42 |ild(XmSe|lectionB|
|00006020| 6f 78 47 65 74 43 68 69 | 6c 64 28 70 6f 70 2c 20 |oxGetChi|ld(pop, |
|00006030| 58 6d 44 49 41 4c 4f 47 | 5f 54 45 58 54 20 29 20 |XmDIALOG|_TEXT ) |
|00006040| 29 3b 0a 58 20 20 20 20 | 58 74 55 6e 6d 61 6e 61 |);.X |XtUnmana|
|00006050| 67 65 43 68 69 6c 64 28 | 58 6d 53 65 6c 65 63 74 |geChild(|XmSelect|
|00006060| 69 6f 6e 42 6f 78 47 65 | 74 43 68 69 6c 64 28 70 |ionBoxGe|tChild(p|
|00006070| 6f 70 2c 20 58 6d 44 49 | 41 4c 4f 47 5f 53 45 50 |op, XmDI|ALOG_SEP|
|00006080| 41 52 41 54 4f 52 20 29 | 20 29 3b 0a 58 20 20 20 |ARATOR )| );.X |
|00006090| 20 58 74 55 6e 6d 61 6e | 61 67 65 43 68 69 6c 64 | XtUnman|ageChild|
|000060a0| 28 58 6d 53 65 6c 65 63 | 74 69 6f 6e 42 6f 78 47 |(XmSelec|tionBoxG|
|000060b0| 65 74 43 68 69 6c 64 28 | 70 6f 70 2c 20 58 6d 44 |etChild(|pop, XmD|
|000060c0| 49 41 4c 4f 47 5f 41 50 | 50 4c 59 5f 42 55 54 54 |IALOG_AP|PLY_BUTT|
|000060d0| 4f 4e 29 20 29 3b 0a 58 | 20 20 20 20 58 74 55 6e |ON) );.X| XtUn|
|000060e0| 6d 61 6e 61 67 65 43 68 | 69 6c 64 28 58 6d 53 65 |manageCh|ild(XmSe|
|000060f0| 6c 65 63 74 69 6f 6e 42 | 6f 78 47 65 74 43 68 69 |lectionB|oxGetChi|
|00006100| 6c 64 28 70 6f 70 2c 20 | 58 6d 44 49 41 4c 4f 47 |ld(pop, |XmDIALOG|
|00006110| 5f 43 41 4e 43 45 4c 5f | 42 55 54 54 4f 4e 29 20 |_CANCEL_|BUTTON) |
|00006120| 29 3b 0a 58 20 20 20 20 | 58 74 55 6e 6d 61 6e 61 |);.X |XtUnmana|
|00006130| 67 65 43 68 69 6c 64 28 | 58 6d 53 65 6c 65 63 74 |geChild(|XmSelect|
|00006140| 69 6f 6e 42 6f 78 47 65 | 74 43 68 69 6c 64 28 70 |ionBoxGe|tChild(p|
|00006150| 6f 70 2c 20 58 6d 44 49 | 41 4c 4f 47 5f 48 45 4c |op, XmDI|ALOG_HEL|
|00006160| 50 5f 42 55 54 54 4f 4e | 29 20 29 3b 0a 58 0a 58 |P_BUTTON|) );.X.X|
|00006170| 0a 58 20 20 20 20 61 63 | 20 3d 20 30 3b 0a 58 0a |.X ac| = 0;.X.|
|00006180| 58 20 20 20 20 58 74 53 | 65 74 41 72 67 28 61 6c |X XtS|etArg(al|
|00006190| 5b 61 63 5d 2c 20 58 6d | 4e 65 64 69 74 4d 6f 64 |[ac], Xm|NeditMod|
|000061a0| 65 2c 20 58 6d 4d 55 4c | 54 49 5f 4c 49 4e 45 5f |e, XmMUL|TI_LINE_|
|000061b0| 45 44 49 54 29 3b 20 61 | 63 2b 2b 3b 0a 58 20 20 |EDIT); a|c++;.X |
|000061c0| 20 20 58 74 53 65 74 41 | 72 67 28 61 6c 5b 61 63 | XtSetA|rg(al[ac|
|000061d0| 5d 2c 20 58 6d 4e 73 63 | 72 6f 6c 6c 4c 65 66 74 |], XmNsc|rollLeft|
|000061e0| 53 69 64 65 2c 20 54 52 | 55 45 29 3b 20 61 63 2b |Side, TR|UE); ac+|
|000061f0| 2b 3b 0a 58 20 20 20 20 | 74 65 78 74 77 69 6e 64 |+;.X |textwind|
|00006200| 6f 77 20 3d 20 58 6d 43 | 72 65 61 74 65 53 63 72 |ow = XmC|reateScr|
|00006210| 6f 6c 6c 65 64 54 65 78 | 74 28 70 6f 70 2c 20 22 |olledTex|t(pop, "|
|00006220| 74 65 78 74 77 69 6e 64 | 6f 77 22 2c 20 61 6c 2c |textwind|ow", al,|
|00006230| 20 61 63 29 3b 0a 58 20 | 20 20 20 58 74 4d 61 6e | ac);.X | XtMan|
|00006240| 61 67 65 43 68 69 6c 64 | 28 74 65 78 74 77 69 6e |ageChild|(textwin|
|00006250| 64 6f 77 29 3b 0a 58 0a | 58 20 20 20 20 61 63 20 |dow);.X.|X ac |
|00006260| 3d 20 30 3b 0a 58 20 20 | 20 20 58 74 53 65 74 41 |= 0;.X | XtSetA|
|00006270| 72 67 20 28 61 6c 5b 61 | 63 5d 2c 20 58 6d 4e 74 |rg (al[a|c], XmNt|
|00006280| 69 74 6c 65 2c 20 74 69 | 74 6c 65 29 3b 20 61 63 |itle, ti|tle); ac|
|00006290| 2b 2b 3b 0a 58 20 20 20 | 20 58 74 53 65 74 56 61 |++;.X | XtSetVa|
|000062a0| 6c 75 65 73 28 6f 75 74 | 65 72 2c 20 61 6c 2c 20 |lues(out|er, al, |
|000062b0| 61 63 29 3b 0a 58 0a 58 | 20 20 20 20 58 6d 54 65 |ac);.X.X| XmTe|
|000062c0| 78 74 53 65 74 53 74 72 | 69 6e 67 28 74 65 78 74 |xtSetStr|ing(text|
|000062d0| 77 69 6e 64 6f 77 2c 20 | 73 74 72 29 3b 0a 58 20 |window, |str);.X |
|000062e0| 20 20 20 58 6d 55 70 64 | 61 74 65 44 69 73 70 6c | XmUpd|ateDispl|
|000062f0| 61 79 28 74 65 78 74 77 | 69 6e 64 6f 77 29 3b 0a |ay(textw|indow);.|
|00006300| 58 20 20 20 20 58 74 4d | 61 6e 61 67 65 43 68 69 |X XtM|anageChi|
|00006310| 6c 64 28 70 6f 70 29 3b | 0a 58 7d 0a 58 0a 58 0a |ld(pop);|.X}.X.X.|
|00006320| 58 76 6f 69 64 20 74 65 | 78 74 5f 70 6f 70 75 70 |Xvoid te|xt_popup|
|00006330| 28 66 69 6c 65 6e 61 6d | 65 29 0a 58 63 68 61 72 |(filenam|e).Xchar|
|00006340| 20 2a 66 69 6c 65 6e 61 | 6d 65 3b 0a 58 7b 0a 58 | *filena|me;.X{.X|
|00006350| 0a 58 46 49 4c 45 20 2a | 66 70 20 3d 20 4e 55 4c |.XFILE *|fp = NUL|
|00006360| 4c 3b 0a 58 69 6e 74 20 | 66 69 6c 65 5f 6c 65 6e |L;.Xint |file_len|
|00006370| 67 74 68 3b 0a 58 63 68 | 61 72 20 2a 20 66 69 6c |gth;.Xch|ar * fil|
|00006380| 65 5f 73 74 72 69 6e 67 | 3b 0a 58 73 74 72 75 63 |e_string|;.Xstruc|
|00006390| 74 20 73 74 61 74 20 73 | 74 61 74 62 75 66 3b 0a |t stat s|tatbuf;.|
|000063a0| 58 0a 58 0a 58 20 20 20 | 20 2f 2a 2a 20 6c 6f 61 |X.X.X | /** loa|
|000063b0| 64 20 74 68 65 20 66 69 | 6c 65 20 2a 2a 2f 0a 58 |d the fi|le **/.X|
|000063c0| 0a 58 20 20 20 20 69 66 | 20 28 28 66 70 20 3d 20 |.X if| ((fp = |
|000063d0| 66 6f 70 65 6e 28 66 69 | 6c 65 6e 61 6d 65 2c 20 |fopen(fi|lename, |
|000063e0| 22 72 22 29 29 20 3d 3d | 20 4e 55 4c 4c 29 0a 58 |"r")) ==| NULL).X|
|000063f0| 20 20 20 20 20 20 20 20 | 7b 0a 58 20 20 20 20 20 | |{.X |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.