Using tweb
Launching
Tweb is started from the command line as
tweb [<url>]
where the <url> can be
- a local file name, optionally prefixed with
file:
, e.g. file:/usr/doc/fltk/index.html
- an HTTP address prefixed with
http://
,
e.g. http://slashdot.org
- a ZIP file name and file name inside the file prefixed with
zip:
, e.g. zip:bbc_news.zip/business/index.html
If no URL is specified, tweb comes up with a blank screen.
The main window
The main window consists of
- a button marked F for the File menu
- the "back" button, marked B
- an entry field showing the current URL, or the progress for
loading a web page
- the HTML display area with vertical and horizontal scroll bars
The File menu
The file menu contains these entries:
- Open URL: prompt for a new URL to go to
- Add Bookmark: add the current location to the bookmarks
- Bookmarks: go to the bookmarks page
- About: display tool version and copyright
- Exit: quit tweb
Bookmarks
Tweb uses an extremely simplistic approach to bookmarks:
- Bookmarks are stored in
$HOME/.tweb/bookmarks.html
- When adding a bookmark, one line is appended to the
bookmarks.html
file
- When browsing bookmarks, the bookmarks file is displayed
- There are no functions to edit, remove, or otherwise manage the
bookmarks file; the user is expected to do this using a text
editor
ZIP archive support
When presented with a URL of type
zip:<filename>/<path>
, tweb tries to open
$HOME/.tweb/<filename>
using the unzip
tool, and extract the specified path from it for display.
References inside the ZIP file are handled correctly, enabling to
archive an entire hierarchy of web pages and storing them efficiently
for off-line reading.
See the description of the tweb-channels
utility on how to create the ZIP archives and download them to the
PDA.
Back to the main page
Email to henning.spruth@epost.de to
contact me.