mothra – retrieve and display World–Wide Web files|
mothra [ –dvak ] [ –m mtpt ] [ url ]|
Mothra uses webfs(4) to retrieve and display files from the World–Wide
Web, by name or through hypertext links. Web names, called URLs,
have a peculiar syntax:|
// begins the Internet address of the server where the file resides. The address may contain a colon and a TCP port number, which overrides the default port number for the service. Next comes a file name. Finally, the file name may be followed by # and a string giving a label within the file where the display should begin.
Mothra starts with the url given on the command line, defaulting to the environment variable $url.
There are a number of options:
The display contains the last message from mothra, a box where typed commands appear, a scrollable list of previously visited files, the title and URL of the current file, and the scrollable text of the current file.
Button 1 selects and displays a file, either from the list of
previously visited pages or from a link (indicated by underlined
text or a boxed image) in the current file. Button 2 shows the
URL of a file, but does not retrieve or display it. Button 3 pops
up a menu of commands:
paste Paste the snarf buffer to the current text entry.
plumb Plumb the current URL.
search Search for a regular expression in the current page.
save hit Save the current URL to the hit list.
hit list Retrieve and display the hit list.
exit Ask for confirmation and quit.
The typed commands are:
When mothra retrieves a direct link to a file that is not an HTML
document (for example a GIF or JPEG image), it will start up an
appropriate viewer, for example page (see page(1)) for most image
$home/lib/mothra/hit.html the hit list|
Files are saved in the form received, not in the form suggested
by the name in an s command. A directory index saved from moth
mode may be written in the local directory as a file named index.
Sanitizing remote file names for the local file system is imperfect.
Mothra is distributed in a preliminary state; it has more than
its share of bugs. Note that mothra, like the other Guardian Monsters,
has no particular concern for humanity.
Mothra first appeared in Plan 9 from Bell Labs (1995). It was
later modified for inclusion in 9front (September, 2011).|