2011-09-05 01:55:47 +00:00
|
|
|
.TH MOTHRA 1
|
|
|
|
.SH NAME
|
|
|
|
mothra \- retrieve World-Wide Web files
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B mothra
|
|
|
|
[
|
|
|
|
.B -m
|
|
|
|
.I mtpt
|
|
|
|
] [
|
|
|
|
.I url
|
|
|
|
]
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.I Mothra
|
|
|
|
retrieves and displays files from the World-Wide Web,
|
|
|
|
by name or through hypertext links.
|
|
|
|
Web names, called URLs, have a peculiar syntax:
|
|
|
|
.IP
|
|
|
|
.EX
|
|
|
|
http://netlib.att.com/netlib/1127/www/1127.html
|
|
|
|
http://akebono.stanford.edu:80/yahoo/
|
|
|
|
http://www.teleport.com/~crowell/
|
|
|
|
ftp://ftp.gmd.de/music/scores/harrington/Harrington.readme
|
|
|
|
.EE
|
|
|
|
.PP
|
|
|
|
The part up to the first colon gives the protocol for
|
|
|
|
retrieving the file.
|
|
|
|
.BR http: ,
|
|
|
|
Hyper-Text Transfer
|
|
|
|
Protocol, is the usual way of accessing web files.
|
|
|
|
.B ftp:
|
|
|
|
and
|
|
|
|
.B gopher:
|
|
|
|
are standard Internet services.
|
|
|
|
.PD
|
|
|
|
.PP
|
|
|
|
.B //
|
|
|
|
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
|
|
|
|
.B #
|
|
|
|
and a string giving a label within the file where the
|
|
|
|
display should begin.
|
|
|
|
.PP
|
|
|
|
.I Mothra
|
|
|
|
starts with the
|
|
|
|
.I url
|
|
|
|
given on the command line, defaulting to
|
|
|
|
the environment variable
|
|
|
|
.BR $url .
|
|
|
|
.PP
|
|
|
|
Mothra uses
|
|
|
|
.IR webfs (4)
|
|
|
|
to retrive the url data. The mountpoint, default is
|
|
|
|
.B /mnt/web,
|
|
|
|
can be changed with the
|
|
|
|
.BR -b
|
|
|
|
.I mtpt .
|
|
|
|
.PP
|
|
|
|
The display contains the last message from
|
|
|
|
.I 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.
|
|
|
|
.PP
|
|
|
|
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:
|
2011-09-23 03:45:47 +00:00
|
|
|
.TF alt\ display
|
|
|
|
.TP
|
|
|
|
.B alt display
|
|
|
|
Collapse or expand the navigation boxes at the top of the browser window.
|
|
|
|
.TP
|
|
|
|
.B snarf url
|
|
|
|
Copy the current URL to the snarf buffer.
|
2011-09-05 01:55:47 +00:00
|
|
|
.TP
|
2011-09-23 03:45:47 +00:00
|
|
|
.B paste
|
|
|
|
Paste the current snarf buffer at the current cursor position.
|
2011-09-05 01:55:47 +00:00
|
|
|
.TP
|
2011-09-23 03:45:47 +00:00
|
|
|
.B save hit
|
|
|
|
Save the current URL to the hit list.
|
2011-09-05 01:55:47 +00:00
|
|
|
.TP
|
2011-09-23 03:45:47 +00:00
|
|
|
.B hit list
|
|
|
|
Retrieve and display the hit list.
|
2011-09-05 01:55:47 +00:00
|
|
|
.TP
|
|
|
|
.B exit
|
|
|
|
Ask for confirmation and quit.
|
|
|
|
.PD
|
|
|
|
.PP
|
|
|
|
The typed commands are:
|
2011-09-23 16:04:08 +00:00
|
|
|
.TF typed\ commands
|
|
|
|
.TP
|
|
|
|
.B a
|
|
|
|
Collapse or expand the navigation boxes at the top of the browser window.
|
2011-09-05 01:55:47 +00:00
|
|
|
.TP
|
|
|
|
.BI g " url
|
|
|
|
Get the page with the given URL.
|
|
|
|
.TP
|
2011-09-23 03:45:47 +00:00
|
|
|
.B r
|
|
|
|
Reload the current page.
|
|
|
|
.TP
|
2011-09-05 01:55:47 +00:00
|
|
|
.BI s " file
|
2011-09-23 03:45:47 +00:00
|
|
|
Save the current page in the given
|
2011-09-05 01:55:47 +00:00
|
|
|
.I file.
|
|
|
|
.TP
|
2011-09-23 03:45:47 +00:00
|
|
|
.BI W " file
|
|
|
|
Capture a screenshot of the entire browser window in the given
|
|
|
|
.I file.
|
2011-09-05 01:55:47 +00:00
|
|
|
.TP
|
2011-09-23 03:45:47 +00:00
|
|
|
.BI w " file
|
|
|
|
Capture a screenshot of the content area in the given
|
|
|
|
.I file.
|
2011-09-05 01:55:47 +00:00
|
|
|
.TP
|
2011-09-23 03:45:47 +00:00
|
|
|
.B q
|
|
|
|
Quit.
|
2011-09-05 01:55:47 +00:00
|
|
|
.PD
|
|
|
|
.PP
|
|
|
|
When
|
|
|
|
.I mothra
|
|
|
|
retrieves a file that is not an
|
|
|
|
HTML document (for example a GIF or JPEG
|
|
|
|
image), it will start up an appropriate viewer, for example
|
|
|
|
.B fb/9v
|
|
|
|
(see
|
|
|
|
.IR 9v (9.1))
|
|
|
|
for image files.
|
|
|
|
.SH FILES
|
2011-09-23 03:45:47 +00:00
|
|
|
.B $home/lib/mothra/hit.html
|
|
|
|
the hit list
|
2011-09-05 01:55:47 +00:00
|
|
|
.br
|
|
|
|
.B $home/lib/mothra/mothra.url
|
|
|
|
log of visited URLs
|
|
|
|
.br
|
|
|
|
.B $home/lib/mothra/mothra.err
|
|
|
|
log of error messages, including HTML syntax errors
|
|
|
|
.SH SOURCE
|
|
|
|
.B /sys/src/cmd/mothra
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.IR webfs (4)
|
|
|
|
.SH BUGS
|
|
|
|
Files are saved in the form received,
|
|
|
|
not in the form suggested by the name in an
|
|
|
|
.B s
|
|
|
|
command.
|
|
|
|
.br
|
|
|
|
.I Mothra
|
|
|
|
is distributed in a preliminary state; it has more than its share of bugs.
|