3 mothra \- retrieve and display World-Wide Web files
19 to retrieve and display files from the World-Wide Web,
20 by name or through hypertext links.
21 Web names, called URLs, have a peculiar syntax:
24 http://netlib.att.com/netlib/1127/www/1127.html
25 http://akebono.stanford.edu:80/yahoo/
26 http://www.teleport.com/~crowell/
27 ftp://ftp.gmd.de/music/scores/harrington/Harrington.readme
30 The part up to the first colon gives the protocol for
34 Protocol, is the usual way of accessing web files.
38 are standard Internet services.
42 begins the Internet address of the server where the file resides.
43 The address may contain a colon and a TCP port
44 number, which overrides the
45 default port number for the service. Next comes a
46 file name. Finally, the file name may be followed by
48 and a string giving a label within the file where the
54 given on the command line, defaulting to
55 the environment variable
58 There are a number of options:
73 Verbose mode. Causes HTML errors to appear in
74 .B $home/lib/mothra/mothra.err
76 The display contains the last message from
78 a box where typed commands appear,
79 a scrollable list of previously visited files,
80 the title and URL of the current file,
81 and the scrollable text of the current file.
83 Button 1 selects and displays a file, either from the list
84 of previously visited pages or from a link (indicated
85 by underlined text or a boxed image) in the
86 current file. Button 2 shows the URL of a file,
87 but does not retrieve or display it.
88 Button 3 pops up a menu of commands:
92 Collapse or expand the navigation boxes at the top of the browser window.
95 Enter moth mode and switch to the moth cursor. If the HREF of an image
96 link is different from the URL of the image itself, a link to the HREF will be
97 printed on the right side of the image. Clicking an image or link with mouse
98 button 1 saves a copy of the file in the current directory. Clicking mouse
99 button 2 sets the target as the current URL.
102 menu option again exits moth mode.
105 Copy the current URL to the snarf buffer.
108 Paste the current snarf buffer at the current cursor position.
111 Save the current URL to the hit list.
114 Retrieve and display the hit list.
117 Ask for confirmation and quit.
120 The typed commands are:
124 Collapse or expand the navigation boxes at the top of the browser window.
127 Get the page with the given URL.
132 from the list of previously viewed pages.
135 Enter or exit moth mode.
138 Reload the current page.
141 Save the current page in the given
145 Capture a screenshot of the entire browser window in the given
149 Capture a screenshot of the content area in the given
158 retrieves a file that is not an
159 HTML document (for example a GIF or JPEG
160 image), it will start up an appropriate viewer, for example
164 for most image files.
166 .B $home/lib/mothra/hit.html
169 .B $home/lib/mothra/mothra.url
172 .B $home/lib/mothra/mothra.err
173 log of error messages, including HTML syntax errors
175 .B /sys/src/cmd/mothra
179 Files are saved in the form received,
180 not in the form suggested by the name in an
182 command. A directory index saved from moth mode may be written in
183 the local directory as a file named
185 Sanitizing remote file names for the local file system is imperfect.
188 is distributed in a preliminary state; it has more than its share of bugs. Note that
190 like the other Guardian Monsters, has no particular concern for humanity.