XXXTERM(1)

NAME
xxxterm - lightweight web browser

SYNOPSIS
xxxterm [-nSTtV] [-f file] [url ...]

DESCRIPTION
xxxterm is a minimalistic web browser that tries to stay out of the way so that valuable screen real estate can be used for much more important stuff. It has sane defaults and does not require one to learn a language to do any configuration. It was written by hackers for hackers and it strives to be small, compact, and fast.

xxxterm is very simple in its use. Most actions are initiated via key or mouse bindings. Key bindings are based on those of the vi(1) text editor, giving web browsing a similar feel to navigating a text document. The KEY BINDINGS section below documents the various defaults and possible customizations.

The options are as follows:

-f file
    Specify an alternative configuration file.

-S  Disable the toolbar.

-T  Disable visualization of tabs.

-t  Disable tabs.

-n  Open a new tab in a running xxxterm for each specified URL. This option requires enable_socket to be enabled.

-V  Display version and exit.

FAST STARTUP
The following notation is used throughout this page:

C   Control
M   Meta (sometimes marked Alt)
M1  Mouse button 1
S   Shift

To browse to a specific address, either use the mouse to click on the address bar or press F6 to shift the keyboard focus to the address bar. The address is then entered manually.

The mouse can be used to navigate the page in the traditional manner, or the keyboard can be used instead. For example, PageUp and PageDown will scroll up and down the page.

To follow a link, either click on it or use the f key and have xxxterm assign numbers to each link on the page; entering that number on the keyboard will prompt xxxterm to follow the link.

KEY BINDINGS
xxxterm provides many actions accessed via key or mouse bindings. Note that WebKit & GTK+ have their own set of key bindings that are not overruled and therefore are available as-is.

  Search Commands
These commands are used to search for text strings within a web page.

/   Start a search
?   Start a backwards search
n   Next item matching search
N   Previous item matching search

  Focus Commands
These commands are used to shift the focus of xxxterm from one area to another.

F6  Focus on address bar
F7  Focus on search entry

  Command Aliases
These commands allow the user to map specific actions to specific keys. It can be useful when the -S option is used.

F9  Alias for ":open"
F10 Alias for ":open current-uri"
F11 Alias for ":tabnew"
F12 Alias for ":tabnew current-uri"

  Navigation Commands
These commands allow the user to navigate web pages and, to some extent, control the browser.

F5, C-r, C-l
    Reload page
C-R Reload page without using any cached data
Backspace, M-Left
    Previous page
S-BackSpace, M-Right
    Forward page
j, Down
    Next line on page
k, Up
    Previous line on page
G, End
    Bottom of page
gg, Home
    Top of page
Space, C-f, PageDown
    Page down
C-b, PageUp
    Page up
l, Right
    Page right
h, Left
    Page left
$   Page far right
0   Page far left
M-f Favorites
M-d Download manager
C-p Print page
M-h Global history
C-j Toggle javascript enabled for domain
C-s Toggle source view

  Tab Manipulation
xxxterm supports tabbed browsing. That is, web pages may be opened in separate tabs, allowing the user to quickly move from one page to another, and back. These commands then are used to create, destroy, and move between tabs.

C-M1
    Open new tab with the clicked link
C-t Create new tab with focus in URL entry
C-w Destroy current tab
U   Undo close tab
C-Left
    Go to the previous tab
C-Right
    Go to the next tab
C-[1..0]
    Jump to page N
C-minus
    Shrink font size by one point
C-plus, C-equal
    Grow font size by one point

  Yanking and pasting
These commands copy and paste text to and from the clipboard.

p   Paste the contents of the clipboard into the address bar
P   Paste the contents of the clipboard into a new tab
y   Yank the current URL into the clipboard

  Hyperlink Following
This allows the user to follow hyperlinks without using a mouse. Enter the corresponding number to follow the link. Alternatively one can type the name of the link and when there are no more possibilities xxxterm will follow the link.

f   Highlight all links and prefix them with a number.

  Exiting
Commands to exit the browser.

C-Q Quit

COMMAND MODE
Command mode works in a similar fashion to the vi(1) editor; it is entered by typing a colon and exited by typing Esc. The commands and their descriptions are listed below.

about, version
    Show the "About" page.

ca  Display CA certificates.

cert, cert show
    Download and display certificates of domain on tab.

cert save
    Save certificate into a local store. The next time the site is visited it is compared against the store. If the certificate matches, the address bar will be blue; if it doesn't the bar will be red.

cookie
    The cookie command is used to manipulate the cookie whitelist. Used by itself it expands to cookie show all.

cookies
    Show cookie jar contents.

cookie save

cookie save domain
    Save the top level domain name to the persitent whitelist. For example, the www.peereboom.us domain would result in saving .peereboom.us.

    This action enables cookies if it is currently disabled for this entry.

cookie save fqdn
    Save the current fully qualified domain name (FQDN) to the persitent whitelist.

cookie show all
    Show all persistent and session entries in the cookie whitelist.

cookie show persistent
    Show all persistent entries in the cookie whitelist.

cookie show session
    Show all session entries in the cookie whitelist.

cookie toggle

cookie toggle domain
    Toggle cookie support for the current top level domain.

cookie toggle fqdn
    Toggle Java Script execution for the current FQDN.

dl  Show download manager.

fav Show favorites.

favadd
    Add the current page to favorites.

h, hist, history
    Show global history.

help
    Show help page.

home
    Go to home URL.

js  The js command is used to manipulate the Java Script whitelist. Used by itself it expands to js show all.

js save

js save domain
    Saves the top level domain name to the persitent whitelist. For example, the www.peereboom.us domain would result in saving .peereboom.us.

    This action enables Java Script if it is currently disabled for this entry.

js save fqdn
    Saves the current FQDN to the persitent whitelist.

js show all
    Shows all persistent and session entries in the JS whitelist.

js show persistent
    Shows all persistent entries in the JS whitelist.

js show session
    Shows all session entries in the JS whitelist.

js toggle

js toggle domain
    Toggle Java Script execution for the current top level domain.

js toggle fqdn
    Toggle Java Script execution for the current FQDN.

open, op, o URL
    Open URL.

print
    Print page.

qa, qa!, q!
    Quit xxxterm.

quit, q
    Close current tab and quit xxxterm if it is the last tab.

restart
    Restart xxxterm and reload all current tabs.

stats
    Show blocked cookie statistics. These statistics vary based on settings and are not persistent.

tabclose, tabc
    Close current tab.

tabnew, tabedit, tabe URL
    Create new tab and optionally open provided URL.

tabnext, tabn
    Go to the next tab.

tabprevious, tabp
    Go to the previous tab.

w   Save open tabs. The tabs will be restored next time xxxterm is started.

wq, wq!
    Save open tabs and quit. The tabs will be restored next time xxxterm is started.

FILES
~/.xxxterm.conf
    xxxterm user specific settings.
~/.xxxterm
    xxxterm scratch directory.

xxxterm tries to open the user specific file, ~/.xxxterm.conf. If that file is unavailable, it then uses built-in defaults.

The format of the file is keyword = setting. For example:

    http_proxy = http://127.0.0.1:8080

Enabling or disabling an option is done by using 1 or 0 respectively.

The file supports the following keywords:

alias
    Defines an alias for a given URL, so that the URL is loaded when the alias is entered in the address bar. If the aliased URL includes a %s format specifier, then any argument given after the alias on the address bar is substituted. For example, if g,http://www.google.com/search?q=%s is defined as an alias, then the URL http://www.google.com/search?q=foo is loaded when navigating to "g foo".
allow_volatile_cookies
    If set cookies are stored in the session cache but will be discarded once xxxterm exits. Unfortunately enabling this does allow for some limited tracking on the web.
append_next
    When set a new tab is appended after the current tab instead of being appended as the last tab.
cookie_policy
    This field delineates the cookie policy. Possible values are: no3rdparty, reject 3rd party cookies. accept, accept all cookies. reject, reject all cookies.
cookie_wl
    This is a cookie whitelist item. Use multiple times to add multiple entries. Valid entries are for example *.moo.com and the equivalent .moo.com. A fully qualified host is also valid and is for example www.moo.com.
cookies_enabled
    Enable cookies.
ctrl_click_focus
    Give focus in newly created tab instead of opening it in the background.
default_font_size
    Set the default browsing font size.
download_dir
    Locations where files are downloaded to. This directory must exist and xxxterm validates that during startup.
enable_cookie_whitelist
    When enabled all cookies must be in the whitelist or they are rejected.
enable_js_whitelist
    When enabled all domains must be in the js whitelist in order to run javascript. NOTE: Make sure enable_scripts is set to 0.
enable_plugins
    Enable plugins.
enable_scripts
    Enable scripts.
enable_socket
    When enabled the first instance of xxxterm will create a socket in the ~/.xxxterm directory. Using the -n url option on subsequent xxxterm invocations will cause the specified URL to be loaded in a new tab. Only a user with identical UID and GID can use this option.
fancy_bar
    Enables a backward, forward, and stop button to the toolbar. Additionally if search_string is set it'll enable an entry box for searches.
http_proxy
    Proxy server in URL format. xxxterm overrides http_proxy if it is specified as an environment variable. It must be noted that one MUST use an IP address and not a FQDN.

    If one desires to use a socks proxy then an intermediary tool must be used. It has been reported that tsocks works with xxxterm.
icon_size
    Permits icon sizes to be changed if fancy_bar is enabled. Size 1 is small; 2 is normal; 3 and 4 are progressively larger.
js_wl
    This is a javascript whitelist item. See cookie_wl for semantics and more details.
mime_type
    Sets an action for a specific or default MIME type. For example, to download and view a pdf using kpdf set mime_type = application/pdf,kpdf. To set a default value use *, for example mime_type = video/*,mplayer. Note that the action is only passed the URL and not all applications are capable of downloading content and therefore one might have to create a wrapper script to download the content first.
read_only_cookies
    Mark cookies file read-only and discard all cookies once the session is terminated.
refresh_interval
    Refresh interval while in the download manager. The default is 10.
resource_dir
    Directory that contains various xxxterm resources such as icons. This is OS-specific and should be handled by the porter.
runtime_settings
    This setting points to a filename in the .xxxterm work directory that contains runtime configuration entries. This file is parsed as a normal configuration file and will override settings since it is read at a later time. One should only use this file to add js_wl, cookie_wl and mime_type entries. This file is machine generated and should not be edited by hand.
save_global_history
    If set the global history will be saved to ~/.xxxterm/history when quitting and restored at startup. See the KEY BINDINGS section above for how the global history is accessed. Global history is not saved to disk by default.
save_rejected_cookies
    Saves rejected cookies in cookie format in {work_dir}/rejected.txt. All cookies are saved and unlike a cookie jar they are never replaced. Make sure there is enough disk space to enable this feature.
search_string
    Default search engine string. See the xxxterm.conf file for details.
session_timeout
    If this value is greater than 3600 then it is the time added in seconds to a session cookie. If the value is smaller than 3600 then there is no change to the expiration of a session cookie.
single_instance
    If set only one xxxterm will be permitted to run. If there is a URL specified it will be opened in a new tab in the already running xxxterm session.
ssl_ca_file
    If set to a valid PEM file all server certificates will be validated against it. The URL bar will be colored green when the certificate is trusted and yellow when untrusted.
ssl_strict_certs
    If this value is set connections to untrusted sites will be aborted. This value is only used if ssl_ca_file is set.
user_agent
    Set to override the default xxxterm user-agent string.
window_height
    Set the default height of the browser window.
window_width
    Set the default width of the browser window. If ssl_ca_file is not set then the URL bar will color all HTTPS connections red.

HISTORY
xxxterm was inspired by vimprobable2 and the bloat in other UNIX web browsers.

AUTHORS
-nosplit xxxterm was written by Marco Peereboom <marco@peereboom.us>, Stevan Andjelkovic <stevan@student.chalmers.se> and Edd Barrett <vext01@gmail.com>.

BUGS
When save_global_history is enabled xxxterm is supposed to, in addition to restoring the global history, color the visited links accordingly; however due to bug #51747 in WebKit this does not happen.