VOOZH about

URL: http://links.twibright.com/user_en.html

⇱ Links user documentation


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but without any warranty ; without even the implied warranty of merchantability or fitness for a particular purpose . See the GNU General Public License for more details.

Welcome to Links, the most powerful web browser for professional work with the World Wide Web. The Links web browser combines ease of use, crystal clear pictures of exactly rendered video output, and the power and reliability of an HTTP requester and HTML parser written manually without compromises in C.

A new user interface unique to the Links web browser makes work easier and faster for people seriously interested in routine, fast, accurate and secure work with the World Wide Web. New functions like asynchronous DNS lookup and the possibility of smoothly enlarging images on the page make possible unprecedentedly quick movement in WWW space. Orienting on thumbnails in image search engines is made easier using this image enlargement technology. A simple and thorough system of interactive menus allows easy and unambiguous configuration of the browser with maximum possible security for sensitive data.

You will find here a complete guide for using the Links web browser:
  1. Introduction to the Links web browser
    1. Ease of control, productivity and compatibility
    2. Low profile footprint in the file system
    3. Accurate presentation of graphical elements
    4. Important features
    5. Supported platforms
  2. Installation
    1. Installation requirements
    2. Compilation and installation
    3. Browser calibration
    4. The .links configuration file
  3. Running Links in different environments
    1. Text mode and graphics mode
    2. Using the X-Window graphics system
    3. Other graphics systems: SVGAlib and framebuffer
    4. Virtual consoles versus windows
  4. The Links user interface
    1. Basic terms
    2. Frames and scrolling
    3. Links and the status line
    4. Objects on the page
    5. Using the Links menu bar
    6. Dialog windows
  5. Functions accessible through the menu system
    1. File Menu
      1. Goto URL
      2. Go back
      3. History
      4. Reload
      5. Bookmarks
      6. Save bookmarks
      7. New window
      8. Save as
      9. Save URL as
      10. Kill background connections
      11. Flush all caches
      12. Resource info
      13. Memory info
      14. OS shell
      15. Exit
    2. View menu
      1. Search
      2. Search backwards
      3. Find next
      4. Find previous
      5. Toggle html/plain
      6. Document info
      7. Header info
      8. Frame at full screen
      9. HTML options
      10. Save HTML options
    3. Link menu
    4. Downloads menu
    5. Help menu
  6. Customising Links: the Setup menu
    1. Language
    2. Terminal options
    3. Video settings
    4. Network Options
    5. Miscellaneous options
    6. Cache
    7. Mail and telnet
    8. Associations and extensions
    9. Save settings
  7. Examples
  8. Problems and frequently asked questions
    1. Solving problems
    2. FAQ
    3. General questions
  9. Appendix 1: Links and javascript
  10. Appendix 2: the GNU General Public Licence

prev Contents Installation

The Links web browser has been conceived to fulfill the complex demands of today's low-level IT specialists.

The Links web browser posesses easily controllable powerful internal mechanisms for DNS lookup, HTTP requests, HTML parsing, decoding of image data streams, execution of Javascript and rendering of quality video graphics. The system ensures very high and accurate graphical power suitable even for demanding applications, like the presentation of medical data with high grey scale dynamics (such as X-ray images) in projection halls or previewing professional photography archives and presentation volumes from primary image data carriers in 48-bit colour depth corresponding to use of professional drum scanners. At the same time, it supports common display monitors or projectors with the standard colour depth of only 24 bits per pixel, even under unfavourable gamma conditions in the display chain. All web applications that involve image material may be exploited in a way that ensures an unusually high quality level in the graphics output and in accomodation to a particular user's working environment. Information loss can be prevented even at high processing speeds, exploiting the wide possibilities of the WWW interface.

The user interface in text mode is backward-compatible with the Lynx web browser; therefore users who have been using this browser until now can easily move on to Links.

The resampling subsystem of Links presents a typeface with unprecedented legibility even at extremely high numbers of lines per screen. Thanks to this, the use of the screen area can extend to the physical boundary of the specific monitor available to the user. Both reliability in reading and comfort at work are increased, and work output is maximized. A technology of adaptive convolution increases these benefits in areas of small interline pixel pitch.

On the other hand the resampling technology used brings finer letter contours at high interline pitches, reduction of the amount of font data necessary, and unusual flexibility in extending the unicode glyph set by national alphabetic or arbitrary pictorial symbols, independently of the source platform of the glyph image data. Moreover insertion of a glyph is possible without prior vectorisation directly from physical image carriers immediately after performing rasterization on the image acquisition device.

This unique technology (LPFFS) allows immediate and easy simultaneous integration of all browser components into the existing file hierarchy of the operating system. Thanks to LPFFS, the browser after installation takes the form of a single executable file into which all components necessary for running are already integrated. This avoids many problems during installation and possible uninstallation. Conflict-free installation of the browser is fostered in an existing file system while maintaining compatibility with the file system hierarchy standard (FHS) even on very large and complicated systems with remote directory tree sharing over a network.

Images, graphics and colour elements of HTML pages are processed in a highly standardized way, which ensures maximum reproducibility of the output on various imaging platforms and for diverse image formats. The video and typesetting subsystems complies to standards RFC 1867, RFC 1942, RFC 1945, RFC 2068, RFC 2109, RFC 959, RFC 1738, RFC 1808, RFC 1288, ITU T.81, CCIR Recommendation 601, JFIF 1.02, ISO DIS 10918-1, RFC 2083, IEC 61966-2-1, ISO 9241.

Links can be run on the following platforms. On all of them Links works in text mode and in graphics mode under the X-Window system. With some operating systems, additional supported graphics systems are included in parentheses.
Contents Next: Running Links in different environments

Links is shipped as a source code tarball links-2.3.tar.gz . The source code is freely accessible on the web. For the installation we assume that you have one of the files links-2.3.tar.gz or links-2.3.tar.bz2 in your current working directory.

To install and run Links in text mode, the following basic programs are necessary:

For operation in graphics mode the following additional libraries are necessary:

If libtiff or libjpeg is not installed on your system, the browser will compile without TIFF or JPEG image support respectively. However, the libpng library is necessary for operation of the browser , as the internal fonts are stored in PNG format.

The following libraries are optional:


Warning:
You need the development packages for these libraries as well. They contain header files necessary for compilation. If your system uses a package management system, check that you have packages with "devel" or "dev" in their name installed for these libraries.
  1. Unpack the installation archive links-2.3.tar.gz ; a directory named links-2.3 will be created.
    gzip -d links-2.3.tar.gz
    tar -xvf links-2.3.tar
    
  2. Alternatively, if you don't have the gzip program , but only the bzip2 program, you can unpack the links-2.3.tar.bz2 archive with these commands:
    bzip2 -d links-2.3.tar.bz2
    tar -xvf links-2.3.tar
    
  3. Enter the created directory links-2.3
    cd links-2.3
    
  4. Run the configuration script "./configure", it will automatically detect what libraries you have and switch on corresponding functions of the browser accordingly.
    ./configure --enable-graphics 
    
    If you want to compile the browser as a text-only version (without graphics support), write only
    ./configure 
    
    The configure program should find all necessary libraries on your system. In rare cases it can happen that some libraries are not found although they are installed (for example when you have an atypical installation). In this case you will need to enter the correct library path manually using compiler switches:
    • --with-ssl=path , where path is the path to SSL library (typically is in  /usr/local/ssl or /usr/lib/ssl )
    • --x-libraries=path , where path is the path to the  X-Window libraries (typically /usr/X11/lib )
    • --x-includes=path , where path is the path to X-Window header files (typically /usr/X11/include )
    If you do not know the path to some library, consult your system administrator.

    If you want to set up configuration script parameters in a more detailed way, the following command will show you all the possible parameters:

    ./configure --help
    
    If you need to set up special paths to header files and libraries before running the configure script, set up the following environment variables CFLAGS , CPPFLAGS , LDFLAGS. If you want, for example, to look for header files in the path /usr/ext/include and libraries in the path /usr/ext/lib , before running the configure script, write (in bash ):
    export
    CFLAGS="$CFLAGS -I/usr/ext/include" export CPPFLAGS="$CFLAGS
    -I/usr/ext/include" export LDFLAGS="$LDFLAGS -L/usr/ext/lib" 
    
    Note: This advice is only for advanced users; if you aren't sure, ask your system administrator.
  5. Start compilation with the command
    make
    
  6. After the compilation finishes, a single binary file named links will be created. No further files are necessary for the operation of the browser. Therefore you can easily copy the program between computers.
  7. Copy the links file into a directory where you install executable files, preferably on your $PATH (the path where executable files are searched for) — for example, if you are an administrator:
    cp ./links /usr/bin/
    
    If you are installing the browser as a user, copy the file links into your home directory, into a sub-directory where you store executable files. For example:
    cp ./links ~/bin/
    
  8. If you are using the X-Window system and want to install the Links icon into your window manager, you will find it in the file graphics/links.xpm . The icon is 48x48 pixels in size.
  9. If you don't have a permanent connection to the Internet, copy the whole subdirectory doc/ into some suitable place, for example /usr/share/, /usr/local/share/, /usr/doc/, /usr/share/doc/, … , or into your home directory. The most important is the directory doc/links_cal/ , which contains a procedure for screen picture calibration (calibration.html in English and kalibrace.html in Czech).
  10. If desired, remove the archive and directories with source files:
    cd ..
    rm -r links-2.0.tar links-2.0
    

    This completes the installation. Now it is necessary to calibrate the browser. If your browser is compiled for text mode only, skip the calibration procedure and go directly to the following section on the .links configuration file.

    Run

    links -g doc/calibration.html
    
    or possibly write a different path to the file calibration.html depending on where you copied the document.

    If you are connected to the Internet, you can display the calibration directly from the Internet. Write on the command line:

    links -g
    
    After seeing the welcome dialogue, close it by pressing , then press the key or click the left mouse button on the bar on the top edge of the browser window. Then using the left and right arrow keys, move on to "Help" and press . Possibly click by mouse on "Help". Now using the up and down arrow keys, select "Calibration" and press or directly click on "Calibration".

    On the screen you should see this picture:

    👁 Image

    Now proceed exactly step by step according to the instructions on your screen.


    Warning:
    Image quality is not guaranteed without calibration .

    When you run the browser for the first time, the .links directory will be created in your home directory, as determined by the $HOME system variable (or, if this doesn't exist, in the directory where the binary file links is stored). This created directory will be used for storing configuration files, bookmarks, history and more system information.


    Warning:
    Do not erase the configuration directory! Otherwise you will lose all your browser settings and bookmarks.

    Installation Contents The Links user interface

    This chapter provides basic information about launching the Links browser in text mode inside a virtual console or xterm, and in various graphical environments. In the following chapters you can find a detailed description how to control and run Links, including individual menu functions and browser setup.

    The browser is easy to launch. Enter the directory containing the binary file links and type on the command line:

    ./links
    
    If the binary file is in your command path, you can launch Links from any directory. Just type on the command line:
    links
    

    You can, if you wish, include in the command the URL of the page you want to fetch, or a path to an HTML file on the local filesystem.

    Example:

    links www.altavista.com
    
    Links will then open and immediately display the requested page.

    You can enter options between the links command and any URL that you specify. These options control the running of the browser. They are written in the form -switch , where "switch" is the name of the option. The options are separated from the program name and from each other by spaces.

    Some options demand a value or argument, which you must write after the option name and again separated by a space. The following table shows the most commonly used options and their meaning.

    Switch Meaning
    -g The browser will run in graphics mode.
    -mode Sets the graphics driver mode (see below).
    -driver Specifies a graphics system to be used. If you do not use the switch, the graphics system will be autodetected.
    -help Prints out a summary of switches and keyboard control.
    -version Displays the version number of the program.
    If you enter the links command without any options, the browser will open in text mode. You will see text but no images.

    If you are running in a virtual console, rather than an xterm on your graphical desktop, you will need to have the gpm daemon running in order to be able to use the mouse. However the text mode in Links functions perfectly well without the mouse.

    To enter graphics mode you have to use the -g option . Type on the command line:

    links -g
    

    Links will try to autodetect the graphic systems which you have installed on your computer. If it finds one, it will switch into graphics mode. Graphics systems will be searched for in this sequence: pmshell , x , svgalib , atheos . If you want to choose a graphics system manually, use the option -driver with one of the arguments: pmshell , x or svgalib .

    For example:

    links -g -driver svgalib
    

    If you are using the X-Window system and detection fails, you will need to set up the environmental variable DISPLAY to point to your display.

    The -mode option is used to pass parameters to the graphics driver. For SVGAlib systems, it is used to determine screen resolution. For the X-Window system it selects the display.

    X is probably the most common graphical environment in which the Links browser is run. You will need a colour display and minimum colour depth of 4 bits (16 colours).

    Grayscale modes are not supported, and nor are so-called "StaticColor" modes which do not allow the setting up of private colour palettes. If your display has several colour depths, the browser will choose the highest one. If you have a display with only paletted mode, the program will create its own colour palette, which will be set up on activation of the window and unset after deactivation.

    In the X-Window system the -mode option sets the display for the output from Links web browser. The display is written down in the form

    computer address:display number.screen number
    
    In the majority of cases the display number and screen number are zero. If it is a local computer, the computer address is an empty string. If you do not select the display using this option, the environment variable DISPLAY will be read. If it is not set, the browser will open on the display :0.0 .

    Examples, what the command line may look like during running under the X-Window system:

    links -g -mode delta.ether.net:0.0
    links -g -driver x -mode localhost:0.0
    links -g -driver x -mode :0.0
    links -g -mode micron:1.0
    

    In the first example the output of the browser will be displayed on the remote computer delta.ether.net . In the second case you explicitly say that the X-Window graphics driver should be used and the output should be displayed on the computer you run the browser on. The third case is equivalent to the second one. In the last example the output will be displayed on computer micron in local network, on display number 1.

    If you have SVGAlib installed, you can run Links in graphics mode without the system overhead of an X-server.

    In this case you use the -mode option to set the graphics resolution. To list all possible resolutions write:

    links -g -mode help
    

    Graphics resolution is specified in the form:

    (width)x(height)x(colour depth)
    
    where width and height are dimensions of the screen in pixels and colour depth determines the number of colours. Possible colour depths are: 16 , 256 , 32K , 64K , 16M , 16M32 .

    Example of graphics modes:

    1024x768x16M
    800x600x64K
    320x200x16
    1280x1024x32K
    1024x768x16M32
    640x480x256
    

    If you want for example to run Links in graphics resolution 1024x768 and 16 million colours, write:

    links -g -mode 1024x768x16M
    

    If you are using Links under the Linux operating system, you can also run it graphically in the framebuffer. There is a limitation that only systems with linear memory mapping are supported. Another limitation is the mouse driver, which is implemented using the gpm library, in the interests of portability. As the gpm library was created for text mode, and graphics mode has much higher resolution, this would make the mouse too slow. Therefore the mouse pointer doesn't move smoothly but in steps of several pixels. In exceptional cases it is possible that a particular place on the screen will not be possible to click on. In this case you can use the , , , and keys for fine movement control of the mouse pointer.

    This is not a bug in Links, but in the gpm library, which is character oriented. There is no other option for reading the mouse on the framebuffer. If you do not like this solution, please write to the authors of gpm and ask them to add graphics support to gpm .

    If you have administrator rights, it is possible to change the source code of gpm for the mouse pointer to move smoothly, and then recompile gpm . Patch gpm with the patch included with Links, which you find in the same directory as the program; it is named PATCH-gpm-1.20.0-smooth-cursor . The patch has been created for source codes of gpm version 1.20.0. It will probably work for other versions of gpm too.

    Links has the capacity to create so called virtual consoles on graphics systems such as the Linux framebuffer, where new browser windows cannot be created. After launching the browser, it is possible to create up to 10 virtual consoles which correspond to browser windows on a windowing system. You can switch between virtual consoles using the key combinations + , + to + . If you create a new browser window (for example by using the function "New window"), a new virtual console will be allocated with lowest number available (after running the browser you are therefore on virtual console number 1) and the requested page will be displayed on it. If you close this window, the corresponding virtual console will disappear and the remaining consoles will remain as they are — they won't be renumbered as one might expect.

    This technique allows users to view several pages in parallel even on systems where windows can't be created.

    Previous: Running Links in different environments Contents Next: Functions accessible through the menu system

    After launching, the web browser window is displayed. If you entered a URL on the command line, the requested page will be displayed directly. Otherwise you will see a plain gray screen. At the bottom edge of the window a status line is visible, where information about progress of the connection is displayed. The link address is also displayed here, when you point to a link with the cursor, as well as image titles and similar things. In the upper left corner there is a left-pointing arrow that allows you to move back to previous pages.

    Before describing the interface in detail,we will clarify some terms that will later occur in the text:

    mouse buttons:
    The basic mouse has either two or three buttons on it: in this manual they will be referred to as left, right, and middle.

    Some mice have a scroll wheel instead of the middle button (we will talk about scrolling later). This wheel works as a middle button when you press it. When you roll the wheel, you scroll up and down. Mice with two wheels occur too — one instead of the middle button and one instead of the right button. The middle wheel (wheel 1) is used for vertical scrolling and the right wheel (wheel 2) for scrolling in the horizontal direction.

    clicking:
    In Links, this always means a single click with a mouse button. Usually you will be told which button should be clicked; for example "click right button on the OK button" which means placing the cursor over the button with the label "OK" and pressing and releasing the right button. If you are not told which button should be clicked, the left button is meant.

    Warning: in some programs, clicking means double-clicking. In Links, the button always is pressed and released only once. If you press the button twice, it will be treated as two clicks.

    cursor
    This can refer to the mouse pointer in graphical mode or to the rectangular box that covers the current character position in text mode.
    arrow keys / cursor keys:
    The quartet of keys in the central section of the keyboard. These keys are marked with arrows: up, down, left, and right and are used to control the cursor in text mode.
    main menu:
    This is situated on the horizontal bar at the upper edge of the screen, but is hidden until you click on the bar or press the escape key. It provides groups of browser functions ("Setup", "View", "File", and so on). Each main menu entry leads to a pull-down menu containing individual functions.
    URL:
    Abbreviation for "Uniform Resource Locator", which means the address of a document on the network. The basic form of the URL (some parts are not mandatory) is:
    protocol://server-address/path-to-document-on-server
    

    Using URLs, HTTP documents (web pages) can be accessed as well as FTP directories and files on local disks. Examples of URLs:

    http://www.google.com/
    www.praha-mesto.cz
    http://artax.karlin.mff.cuni.cz/~mikulas/links/index.cgi
    ftp://ftp.gnu.org/ /usr/doc/HOWTO/Vim-HOWTO.txt
    

    As is well known, HTML pages can contain separate frames. It is possible to switch between individual frames in text mode by using the key and in graphics mode by clicking inside the frame.

    Scrolling a page is simple too. In graphics mode you can scroll using the scrollbar situated on the right side of the frame. You can also scroll by using the arrow keys. The up arrow moves you up to the previous page and the down arrow to the next page. The and keys also take you to the previous or next page of the document. You can also scroll forward by one page by pressing the space bar. The and keys move you to the beginning or end of document, respectively. If you have a mouse with a wheel, you can scroll vertically in graphics mode by using this wheel. If you have a mouse with two wheels, the first wheel (usually in place of middle button) scrolls vertically and second wheel (usually in place of the right button) scrolls horizontally.

    Even if you do not have a wheel mouse, you can scroll at any time by using the middle button: hold the middle button down and move the mouse as if you wanted to grab and slide the paper page by hand. This method works for shifting in both directions — horizontally and vertically. So if you hold the middle button and move the mouse to the right, the view will being moved towards the left edge of the whole page. With the mouse you therefore move in the opposite direction than with the scrollbar.

    You can also move the page using the right mouse button but only when you do not hit an image, link, form element or similar. If you hit one of these with the right button, a menu of actions appears that can be performed with the image, link, or element.

    In text mode the keys , , , and space work analogously. As the arrow keys are used for movement across links, the page is moved to the left and right by the and keys , and up and down by the and keys (or by + a  + .

    Note: If a page contains several frames, these methods move you within the current frame only.

    Links are followed in graphics mode simply by clicking the link. In text mode, you first have to select the link using the up/down arrows. The currently selected link is highlighted in inverse video. If you want to follow the link, press the right arrow key or the key. Links are shown in blue, unless the page defines a different colour for the links.

    When you click on a link, Links first looks up the address (sends a query to the DNS server). Then it starts establishing a connection with the remote server. After the connection is established, a request for the page is transmitted and Links then waits for the reply. The whole course of the communication is displayed in the status line at the bottom of the screen. As soon as the whole page is downloaded, "OK" will be displayed. If the page has not been completely downloaded, you can terminate the connection by using the "back" function in the File menu, by hitting the key (or, in text mode, the left arrow key), and also by clicking the left arrow in the top left corner.

    Adter loading the page, the status line shows informations about links, images and other elements of page. If you move over a link, the address of the target is displayed (you can easily determine if something is a link by this method). If you move over an image, its title (alt attribute or URL of the image in case it doesn't have an alt) is displayed. After moving over a form element (text area, checkbox, radio button etc.) information about that particular form element is displayed (for example its name, value, address where the form will be sent to, ...).

    If javascript is running on the page, it can also write into the status line. In this case the status line doesn't show the information described above but instead shows the text that javascript set.

    👁 Image

    What a status line at the bottom edge of the screen looks like.

    During downloading, an image not yet decoded is displayed as an empty frame the size of the image (as specified in the HTML code). After downloading and decoding the image, it will be displayed instead of this frame. If an error occurs such that the image cannot be downloaded (the image is damaged or it can't be displayed for another reason) a broken frame will be shown instead of the image. A frame has the dimensions of the image, where these are known. If they are not known, the frame has the basic dimensions 32x32 pixels.

    The upper part of the image shows what a broken image looks like. In the lower part you see the empty frame for an image not yet downloaded.

    👁 Image

    Links only partially supports certain HTML tags, which can occur on a page. As some of these can contain important information, Links displays the following tags as links:

    • EMBED: This tag can insert some additional documents into the page (such as flash images or text). Links can insert only images in obedience to this tag. The image is then displayed as an ordinary image. If a different document type is required to be embedded, a button labelled will be displayed at the corresponding place on the page. If you click on this button, the embedded document will be displayed separately. For example, you can hook up an external flash animation player and, after clicking on the button for a flash animation, the program displaying flash animations will be run. For details on specifying external viewer programs see the association function.
    • OBJECT: This behaves in the same way as EMBED . The difference is that an image cannot be inserted this way; therefore a button labelled will always be created. This button behaves similarly to an button.
    • IFrame: Inserted frame. As Links does not support inserted frames, an link will be displayed instead. After clicking, the inserted frame will appear.
    • Link: This tag serves for creating a link in the document header. At its place (at the top of the page) a link will be displayed. Again it is possible to click on this link to reach the target of the link.

    In text mode you can also encounter or buttons, which are displayed instead of a clickable map image. After clicking on the button a list of links (which are in graphics mode under individual images) is displayed, from which you can choose the link you want to follow.

    On some pages you can encounter a link linking to a different page. "Refresh" is redirection to a different page, which is performed automatically by some browsers. Links does not perform redirection automatically, because it can be very frustrating for the user who wishes to go back to the previous page; after pressing "Go back" she hits the redirect instruction and this will automatically direct her forward again. To avoid this, redirection is displayed as "Refresh" in Links. After clicking the link, redirection to the target page will be performed.

    If some characters occur on a web page which Links doesn't have in its built-in font, a "blotch" character will be displayed instead of them. If there are too many blotches in the page and you think that the page should display correctly, try in "HTML options" menu in "View" to change the value of "Default codepage". It is possible that the server doesn't send information about code page and you just have a different encoding set as default. It is also possible that the server is sending wrong information about the code page of the document. In this case you can tick the entry "Ignore charset info sent by the server" in the same menu.

    Instead of a missing character, a blotch symbol is displayed:

    👁 Image

    If foreground and background colours have luminances which are too similar, then a foreground colour will be selected with as much contrast to the background colour as possible. This function is built into Links to increase the legibility of text on pages that have unsuitable colours which make the text difficult for the user to read.


    Warning:
    On some web pages it can happen that the text colour will not be displayed in the way the authors intended, but rather in such a way that the text is as legible as possible. This is not a bug in the browser; this feature is intentional. If the colours were displayed in the way that the authors intended, the text would be very poorly legible.

    The whole Links program is controlled using interactive menus; control is therefore very easy and intuitive. All functions can be reached from the main menu, and additionally most can be launched by a so-called hot key.

    You can invoke the main menu by pressing the key or by clicking the mouse on the bar along the top edge of the window. You can close the menu by pressing the again or by clicking underneath the bar. You select individual entries in the menu either by a direct mouse click, or by using the cursor keys — in the main menu the left and right arrow keys, and in pull-down menus the up and down arrow keys.

    Activate your chosen function by pressing or the space bar.

    Some menu entries have one character of the name highlighted in inverse video. If you press this letter when in the menu, a direct choice of this entry will be performed, which is usually faster than moving onto the entry with the text cursor or the mouse.

    To the right of some entries a so called hot key is listed. If you press this hot key anywhere in the browser, the corresponding function will be directly called, which is again faster than looking for the function in menu. However, you don't have to remember hot keys — all the available functions can be reached through the menu.

    Links dialogs are designed for functionality, not beauty. Memory and processor cycles are not wasted on pretty 3D effects such as buttons that move when you press them. The dialogs are designed to be equally easy to use with both keyboard and mouse.

    Dialog windows are controlled in a way very similar to menus: up and down arrows select individual fields of the dialog, the spacebar activates the selected field (button, checkbox, etc). You can also of course use the mouse. Dialogs can be cancelled by using the ESC key. The dialog is closed and all changes are forgotten. On the other the key closes the dialogue and all changes will be accepted.

    Dialogs often contain fields for entering text. Before doing so, you must activate the field (by either clicking it with mouse or selecting it using the cursor keys) — a text cursor will then appear in the field. After this you can normally insert text, numbers and so on. The left and right arrow keys move the cursor within the text field. The and keys delete the text. + erases the whole line and puts it into the clipboard (OS/2 only). Keys + insert the clipboard contents (again only on OS/2). + erases text from the cursor to the beginning of the line.

    The up and down arrow keys allow you to browse the history of previously entered values. while the + key combination activates a text autocompletion function. If you want to enter text that you have already entered previously, just a few leading characters can be typed and a previously used continuation will be filled in, or a dialogue is presented if there is more than one possible choice. The up and down arrow keys leave the text field and therefore end the edit.

    All Links dialogs have two buttons at the bottom labeled and

    By clicking on the key you confirm your entries. By clicking on you cancel them.


    Previous: The Links user interface Contents

    Now we are going to show all functions of the browser in detail, as they are listed in the menu.

    In the File menu you will find functions for working with URLs: changing the current URL, history, bookmarks, then functions for downloading documents, system information, an operating system command line and exiting the browser. 👁 Image

    This function loads a new page. It can also be executed by using the hot key . After executing this function a dialog will appear into which you can enter the URL of the required page. After you enter the address, the page will immediately begin to be downloaded. If you press the key with the shift key down, the address of the current page will be automatically inserted into the URL field in the dialog. This is equivalent to reloading the page. The "Go back" function displays the previous page. It can also be executed by using the hot key or by clicking on the back arrow in the upper left corner of the screen (as can be seen in the following picture). If for example you have displayed page "A", then you go to another page (either by clicking a link or by entering a different URL) and then you want to go back to page "A", then you use this function.

    👁 Image

    The "History" function displays a menu with addresses of earlier displayed pages (which means pages to which you can get by the "Go back" function). After selecting a specific address, a page with this address will be displayed. By pressing you close the menu. This function provides a fresh download of the current page from the network. It is used especially when the page on the server changes and you want to display the latest version of the page (for example pages from conferences, which undergo frequent changes, or other periodically renewed pages). It can also be invoked by the key combination + .

    During the first invocation of this function, this page will be requested again from the network. If there is a proxy server between you and the Internet, it can hapen that this proxy replies immediately from its own cache and will not download the document from network. Therefore second and further "Reload" invocations force downloading from the network even with a proxy cache. During second and subsequent "Reload", a "Pragma: no-cache" is actually present in the HTTP request.

    Bookmarks allow you easy storage of a pointer to an interesting page. They are used in the same way as bookmarks in a book.

    The bookmark consist of a name (bookmark label) and a URL. Bookmarks are arranged in directories, which makes navigation easier and more comfortable. After invoking the "Bookmarks" function, a bookmark manager window appears on the screen. The upper part of the window contains a list of bookmarks and directories (or their names). Below this are buttons for managing the bookmarks.

    Within the list in the upper part of the window, the cursor keys, and the , , and   keys move the current selection (indicated by an inverse video bar). You can select an entry in this list as in a menu: use the up and down arrow keys, or click the left mouse button on the entry you want. or move you to the top of the list, or to the bottom.

    Scrolling is performed by holding the middle mouse button and dragging the mouse up and down or by using the scrollbar at the right edge of the window.

    To the left of every entry there is a graphics symbol that indicates whether it is a bookmark, an open directory, or a closed directory. A minus sign in a square means a closed directory, a plus sign in a square means an open directory and a longer horizontal line means a bookmark. Vertical lines show which directory the bookmark belongs to. You can open or close a directory by clicking the directory symbol or moving on to directory and pressing the space bar. Alternatively, the key opens a directory, the key closes it.

    👁 Image

    Now we will describe individual actions that can be performed using the buttons at the bottom of the window. These buttons work with the entry (bookmark or directory) that currently has the cursor bar. We will call this the current entry.

    • Goto: Shows the web page that the bookmark points to. If the cursor bar is over a directory, nothing will be performed.
    • Directory: Creates a new directory. After pressing this button a dialogue will appear into which you enter the name of the new directory. A new directory will be created. If the current entry is an directory, the new directory will be made within this directory. Otherwise it will be created in the same directory as the current entry.
    • Add: Works similarly to the "directory" button, but creates a new bookmark. Again a dialogue will appear into which you enter a name and URL for the bookmark. If you have some page displayed, both these entries will already be filled in with title and URL of this page. After pressing OK a new bookmark will be created below the current entry. As with directories, if the current entry is an open directory, the new bookmark will be placed in it.
    • Delete: Deletes the current entry. If it is a directory, this also deletes all entries within it. Before deletion you will be asked to confirm that you wish to delete the entry.
    • Edit: Invokes a dialogue in which it is possible to change the current entry. For a directory you can change its name, for a bookmark you can change its label and URL. The button confirms the changes, the button cancels them.

    Entries in the list can also be moved. This function is performed by the Move button . First it is necessary to mark the entry you wish to move. An entry can be marked by the or keys (these are toggle keys that mark an unmarked entry and unmark a marked one), or by clicking the right mouse button on the corresponding entry. The marked entry has an asterisk before its name (in text mode) or a little square (in graphics mode). Using the button, you can deselect all entries. When a directory is closed, all entries inside the directory are automatically deselected.

    When you have marked all the entries that you want to move, place the cursor bar over the entry behind which you want to move the selected entries, and click the button . The selected entries will be moved behind the current entry; if the current entry is an open directory, the entries will be placed into that directory. Moved entries will be in the same order as they were before the movement so that the sequence of selected entries will not change. Directories will be moved with their contents.


    Note:
    Only one copy of the bookmark manager can be open at any one time. If you have more than one browser window open and you have the bookmark manager already open in one, then it is not possible to open it again in a different window.

    Bookmarks are stored in the file bookmarks.html in the .links sub-directory in your home directory. The format of the file is compatible with that used in Netscape, therefore it is possible to have common bookmarks for the Links and Netscape browsers. The path and name of the file where bookmarks will be stored can be selected in the "Setup->Miscellaneous Options" menu. In this menu you can also set up encoding of the bookmarks file. If you change the file or encoding of the bookmarks, the changes that you have made in bookmarks, will be automatically stored and a file with new bookmarks will be loaded.

    Changes in bookmarks (for example addition or deletion) are automatically stored at exit of the browser. Therefore it is not necessary to save the bookmarks explicitly with the menu function. After the first run of the browser (when the bookmark file doesn't yet exist), a basic bookmark file will be created for you. This file will contain the Links home page and calibration page.

    This will create a new browser window on systems that allow a window to be created, for example in windowing systems like X-term and similarly. It does not work on text consoles where new windows cannot be created.

    In svgalib and framebuffer graphics environments, instead of opening a new window, the lowest available free virtual console number will be assigned to a newly created virtual console. The requested page will be displayed on this console. You can switch between virtual consoles by using the keys + to + . If you close a console, it will disappear and the remaining consoles will remain as they are. They will not be renumbered.

    Stores the currently displayed page into a file. A dialog for entering the filename will appear after calling this function. The page will be saved under this filename. If the file already exists, it will be overwritten. Works like the previous function, with the difference that you will be first asked for the URL of a page to download, and then for a filename to store the page into. After both have been entered, the page will be downloaded and saved. Closes all unused open background connections. This is useful when you don't want documents that won't be used to be downloaded, for example when a big file is downloaded over a slow line and you cancel the download. Normally the file continues downloading in the background (in case you want it again). This however loads the line. Therefore this function is provided to close the background connection and free up your line. Removes all documents from the cache. This is useful when you want to reformat all pages that are to be displayed. It also diminishes the memory footprint of the browser. Displays information about connections, caches, timers and documents. This function is active only in text mode. It opens a trapdoor to the command line of your operating system. After terminating the shell (usually with the "exit" command, depending on your operating system) you will return to the Links program. You can also invoke this function by using the key. The function closes the current browser window. If you have only one browser window open, it ends the whole program.

    👁 Image

    The View menu contains functions for processing the currently displayed page: searching the document, switching between formatted and unformatted views, information about the document, and HTML settings.

    This function can also be invoked by the hot key . The search function looks for text in the current frame, starting from the top and ending at the bottom. After you call this function, a dialog will be displayed with a text area into which you enter the text to find. Using the up and down arrows you can page through a history of previously search terms. To start the search click the button; by button you cancel the whole search window. Searched text will be emphasized by inverse video and the page will be moved so that the text is displayed on screen.

    During searches, case is usually ignored. This however is not the case with letters that carry accents. Accented letters will be searched for exactly as. written. Therefore don't forget this behaviour during entering the text.

    For explanation we'll show couple of examples:

    1. looking for a word "tree": "Tree" and "TREE" will also be found.
    2. looking for the Czech word "lavi�ka": "Lavi�ka" will also be found. "LAVI�KA" won't be found, because we entered a lower case "�". Word "LAVI�KA" will be found if it occurs in the text.
    3. looking for "�upl�k": Only the word "�upl�k" will be found. Neither "�upl�k" nor "�UPL�K" will be found, because we entered the accented letters "�" and  "�" in lower case.
    The search backwards function works the same as search function with the difference that the text is searched for from the bottom to the top . This function is invoked by the hot key (this is easy to remember - for a forward search the key is used and for a backward search and . This function finds the next occurance of the previously searched text in the current search direction. Therefore if searching forward, it will find the next occurence and with a backward search, it will find the previous occurence. The function can also be invoked by using the hot key. The function shifts the page so that the found text be visible on screen. Similar to "find next", but this function always works in the opposite direction to the previous search. The hot key for this function is . This function switches between formatted and unformatted page display. It can also be invoked by the hot key . If you want to see the HTML source code, press the key. To see the formatted page again, just press this key once more. Displays a window with informations about the server, code page, document size, date and more. Like Document info, but displays HTTP header information instead. This function can also be invoked by the key. It displays the current frame full screen. To display the page in its original form (with all frames) use the function File->go back .

    👁 Image

    In this menu, various options for page display can be set. The menu contains the following entries:

    • Display tables: toggles whether tables will be displayed as tables or just as a dump of their contents.
    • Display frames: toggles the display of frames. If frames are turned off, usually a version without frames is displayed, i.e. the "noframes" section in the original HMTL.
    • Display links to images: if this option is enabled and images are not being displayed (you are in a text mode or you have image display turned off in graphics mode), then a link is shown instead of each image.
    • Move by columns in table: this option is available only in text mode; it determines how links are numbered in tables. If this option is on, table links are numbered vertically, if off, horizontally.
    • Links are numbered: Again available in text mode only. After ticking this option, a number for each link will be displayed.
    • Display images: This setting is available only in graphics mode. It serves to toggle the display of images.
    • Text margin: Sets the space between text and the edge of the screen or browser window. Possible values are 0 to 9, default is 3. The unit of the numbers is not specified.
    • Default codepage: After pressing this button, a menu with possible codepages will appear. Select the codepage for the currently displayed web page. Links is able to negotiate the page encoding with most servers; therefore it isn't usually necessary to set up the codepage manually. Some badly configured servers don't specify the code page and in this case, this default setting will be used.
    • Ignore information about code page: is closely related to the previous setting. This option is used when the page is in a different encoding than the server says. In such cases tick up this field and set up the correct encoding in "Default codepage".
    • User font size: This setting is avilable in graphics mode only. Using this you can enlarge the letters on the page. The letter size is entered in points. It doesn't enlarge the letters in menus — there is a separate option for this under Setup -> Miscellaneous options.
    • Scale all images: Again available only in graphics mode. This allows you to enlarge or shrink pictures and conveniently view fine details which are not visible at normal size, or to fit large pictures onto the screen. Enter value in per cent (100 per cent is original size).

    Warning:
    If you set up an image scaling other than 100% or a font size other than 16 pixels, some pages may display in a strange way (for example "fallen apart"), because they assume a certain size for images and text.
    If you change some HTML option, then don't forget to save it into the configuration file using this function. If you don't save the setting, all changes will be forgotten after leaving the program.

    👁 Image

    The link menu contains actions that can be carried out on the currently selected link — for example download, display image, and follow link. In graphics mode, this menu can also be displayed as a context menu by right-clicking on the link.

    Contains an overview of files that are currently being downloaded in the background. After clicking one of the items, a window with detailed information and the option to interrupt is presented. In the following picture you can see the menu with selection of individual files being downloaded.

    👁 Image

    The following information is displayed in the window displayed for each file:

    • size of the file
    • amount of data already received
    • average speed of download
    • current speed of the download
    • percent of the file size downloaded

    Thus a window with detailed information about a particular file looks like:

    👁 Image

    Clicking the button puts the download into the background again. The button aborts the download. aborts the download and also deletes the partially downloaded file.


    Warning! The browser won't ask you for confirmation when you press these buttons — it will immediately abort. Therefore if you press this button in error, the download will be aborted and you will have to download the file again.

    The Help menu contains helpful information on the program: a list of keyboard functions, an online manual and program licence information. The Keys entry displays a window with a list of hotkeys. After pressing the User's manual entry an online manual will be displayed (this works only if you are connected to the Internet). You can also visit the Links homepage by clicking the Home page . By clicking Calibration you get into the browser calibration procedure, which needs to be performed after first launching the browser. This function also requires you to be connected to the Internet.

    👁 Image


    Previous: Functions accessible through the menu system Contents Next: Examples

    👁 Image

    In this menu you will find all the global settings for the browser, for example language, character set (for text terminal only), network, terminal, cache, and similar. If you change any of these settings, don't forget to click the entry Save options , which saves the change into the configuration file. If you don't save the changes, they will be forgotten when the program closes down, and the old values will be used when the browser is started up next time.

    👁 Image

    This menu allows you to select a language for the user interface. Up and down arrows select language, enter confirms the selection, the key cancels the selection menu.

    This entry is avilable only in text mode. Using this you can adapt the display to your terminal. After clicking this menu you will see a dialogue, where you can select the following properties:
    • frames: This governs how to display frames. Select one of the following possibilities: No frames , VT 100 frames (if your terminal is compatible with VT 100), Linux or OS/2 frames , KOI8-R frames , and FreeBSD frames .
    • Restrict frames in cp850/852: If you select this option, frame characters which are partially single-byte and partially double-byte will not be displayed, because they are not present in the cp850 and cp852 character sets.
    • Use ^[[11m: Means that before the frame character this control sequence always should be sent. Linux usually needs this control sequence.
    • Use a block cursor
    • Use colors: Specify this if you have a color terminal.

    The "Video Settings" entry is available only in graphics mode. After clicking on it, the video setting window will appear. It is possible to set the gamma for your monitor, turn image and text dithering on or off, turn on aspect ratio correction or optimize for LCD displays.

    The dialog contains fields for entering gamma correction value for individual colour channels (red, green, blue) and then user gamma for correction of ambient lighting. A description of correct gamma setting follows.

    👁 Image

    Setting the gamma correction
    First it is necessary for you to set up contrast and brightness correctly for your monitor according to the following instructions:

    1. Set the monitor contrast as low as possible.
    2. Darken the room or shade the edge of the screen with one hand.
    3. Set the brightness as low as possible, then increase it to the point at which the black edge of the screen just starts to brighten.
    4. Now set the contrast according to your preference.

    Now, having correctly set up your monitor, you can set the gamma correction:

    1. Set the user gamma to 1.0
    2. Display the page gamma.html in the browser. You can find this page in the doc directory .
    3. Look at the red field. If the right part is lighter than the left part, reduce the value of the red gamma. If the right part is darker, then increase the value of the red gamma.
    4. Repeat this procedure until both parts look the same.
    5. Do the same for blue and green gamma.
    6. Check the white field. Both parts should be the same brightness. If they are not, then you probably did something wrong; repeat the procedure.
    7. If the white field is displayed correctly, set up the user gamma according to the table below.
    8. Save the settings.

    Table of gamma corrections for various lighting intensities:

    Ambient lighting intensity Illuminance (lux) Gamma
    Projection room01.33
    Darkened room41.22
    Dark room161.11
    Usual illumination for a computer workstation641.00
    Somewhat brighter workplace2560.94
    Brightly lit workplace10240.88

    Warning:
    If the recommended instructions are not carried out, images and letters will be displayed distorted, due to either bad brightness or bad gamma settings. This will show up as incorrect colour tones, parts of the picture appearing too dark or too pale, jagged edges on letters, too dense or too pale colours, or coloured garlands or stripes in fine transitions between colour tones. On devices which perform upsampling or downsampling of the image incorrectly (some LCD monitors and projectors at certain resolutions) , the image will be displayed incorrectly at lower colour depths. If you use Links on the X-Window platform, we recommend turning off the gamma correction performed by the X-Window system, if possible. This produces the finest colour reproduction. If you turn it off, then do so before doing the gamma setting in links.

    The Aspect ratio fields are for aspect ratio correction in graphics modes with non-square pixels. The usual ratio for cathode ray tube monitors is 4:3 (800x600, 1024x768, 640x480 etc.) With these resolutions, the pixels on the screen are square. With other resolutions (e. g. 640x400, 320x200) the pixels are elongated in one direction. So if you try to draw a square on the screen, you will see an oblong. The Aspect ratio option corrects this problem.

    Fill in the field Aspect ratio with the ratio of monitor pixel width divided by monitor pixel height. So if the image is too narrow and tall, insert a number greater than 1, if too wide and low, set a number lower than 1.

    In typical cases the default setting of 1 should be sufficient, because the graphics driver automatically determines the resolution and calculates a correction coefficient according to this, for a screen with 4:3 side ratio. If this is not enough (for example you have an atypical monitor), the coefficient has to be set manually.

    By ticking up the field Aspect correction on you turn on the aspect correction. If the aspect correction is off, the pixels on screen are mapped 1:1 to pixels on the CRT/LCD.

    To summarize: turn on the aspect ration correction, leave the value at 1 and try out with the calibration picture; if the circle is displayed as an ellipse, correct the shape by chaging the value. Increase if the picture is too tall and narrow, decrease if too low and wide.

    Furthemore you can use this menu to set the output device for which the picture should be optimized. Tick up one of the following possibilities:

    • Optimize for CRT --- if you have a monitor with a classical glass cathode ray tube
    • Optimize for LCD (RGB) --- if you are using an LCD monitor with pixel sequence Red, Green, Blue (from left to right).
    • Optimize for LCD (BGR) --- if you are using an LCD monitor or display (for example on a notebook) with pixel sequence Blue, Green, Red (from left to right).

    You can find the pixel sequence for your LCD in the technical manual or you can look with a magnifying glass or try out the options to find the best sharpness for small letters.

    The LCD display correction is necessary because on an LCD display the picture elements are side by side so that the three separate images are shifted by 1/3 pixel. On a CRT this is adjusted so that the images fit exactly over each other.

    👁 Image

    In this dialogue you set parameters for network access.

    HTTP and FTP proxy cache: if your network is behind a proxy server, it is necessary to set the address of your HTTP or FTP proxy server. If you don't know it, ask your network administrator. The address is inserted either as address or address:port . For example:

    proxy.cache.intra
    proxy.cache.intra:10000
    
    If an HTTP proxy cache is configured, all HTTP requests will be set to the configured proxy using the given address and port. Similarly for FTP.

    Furthermore various network connection parameters can be set:

    Max connections:
    Determines the maximum number of open connections (overall).
    Max connections to one host:
    Determines the maximum number of open connections to a single host (server).
    Retries (0-unlimited):
    Number of attempts to reopen a broken connection.
    Receive timeout (sec):
    Time (in seconds) to wait when no more data is coming in, before the connection is deemed dead and the browser tries to reconnect.
    Timeout when unrestartable:
    Elapsed time in seconds with no successful restart attempt before the connection is closed.
    Async DNS lookup:
    Whether aynchronous DNS lookup should be performed. If this option is on, several DNS translations can be performed while downloading data. This speeds up download of files.
    Set time of downloaded files:
    If this is checked, downloaded files will have the time of last modification set to the current time on the server from which they were downloaded.

    The FTP options button invokes a dialog where you can enter a password for anonymous access to FTP servers. Some FTP servers require a password for anonymous access, usually your email address.


    Warning:
    We do not recommend entering your own email address for an anonymous FTP password, because it can be misused by the FTP server operator for sending spam.

    The button HTTP options invokes a dialogue for setting the properties of HTTP connections. In this dialogue you can set:

    • Use HTTP/1.0: Some servers still can't properly communicate with the HTTP/1.1 protocol; therefore it is sometimes necessary to enforce the older 1.0 version.
    • Allow blacklist of buggy servers: If a server claims to support the HTTP/1.1 protocol, but its use of the protocol is faulty, the connection will be closed, the request will be resubmitted in HTTP/1.0 and the address of the server will be remembered so that any subsequent requests will be sent directly in HTTP/1.0
    • Broken redirect 302: If an HTTP server sends a "302 redirect" reply to a POST request, the browser according to the HTTP specification should send a POST request with the same data to the new server. However Netscape and IE browsers violate this specification and, instead of a POST request, they send a GET request. If you check this option, Links will behave like Netscape or IE and will send a GET request. Some badly configured server require this behaviour.
    • No keepalive connection after POST request (some buggy PHP databases need it) This option causes the connection to be closed after sending a POST request. If more communication is necessary with the server, a new connection will be opened. This behaviour is suboptimal and slows down browsing unnecessarily; however some servers (especially PHP databases) require it.

    👁 Image

    The Header options button allows you to set the refer information to one of the following possibilities. HTTP refer means that the browser sends information to the server telling from which page you got to the currently loaded page. However this is not secure, as you may wish to keep this information undisclosed. The following are your options:

    • No referer: The information is not sent at all (default setting). Some servers however require the referer and for these you can select from the options below.
    • Send requested URL as referer: Send the address of the page itself as the referer.
    • Fixed referer: You can fill in your own text into the text field below. This will be sent as the referer if you check this option.
    • Send real referer: Sends the page from which you got to the page being currently loaded. This is the correct behaviour (according to the HTTP specification), but we repeat once more, this is not secure .

    You have the option to enter a text string into the Fake User-Agent field. This text will be sent to the server as user-agent. User-agent is a string giving information about your browser and operating system. By default true information about your operating system and the Links browser is sent. If you insert any text into this field, then this text will be sent instead and the server will never know your real operating system and browser. If you leave the field empty, the true user-agent will be reported.

    👁 Image

    In the "Miscellaneous options" dialog in graphics mode you can set the menu letter size. You can also set the file where bookmarks are stored and character encoding of the bookmarks.

    Menu font size determines how big letters should be in the menu. The size is counted in screen pixels.

    You can set colours for various parts of the menu: foreground , background , scrollbar , scrollbox , and scrollbar frame . All colours should be entered as hexadecimal triplets for the red, green and blue bytes. That is six characters, two for each component, chosen from the characters 0-9 , a-F . For example 00ff00 is bright green, 000000 is black, 444400 is dark yellow, a700a7 is light violet, ffffff is white and so on.

    Bookmarks file is a file into which the bookmarks will be saved (see the section on bookmarks). The default is bookmarks.html in the .links directory in your home directory. This dialog allows you to change the bookmark file, for example when you want to share bookmarks with other browsers. When you are changing the bookmarks file the changes you have already made will be saved into the old file and the new file will be automatically loaded.

    After clicking on Bookmarks encoding you will have an option to select the encoding in which the bookmarks file will be stored. Like changing the filename, a change in the encoding causes the pending changes to be saved into the old file in the old encoding and a new file in new encoding will be loaded.

    If it is not possible to determine keyboard input encoding in graphics mode from the environment variables, this menu contains one more entry. The entry is a button marked Keyboard encoding . After pressing this button you will be presented with a choice of encoding in which your keyboard sends the characters. This setting is different for each graphics driver. For example you can have a different encoding for SVGAlib than for X-Window system. The encoding selection is always related to the graphics driver you are currently using.

    In this dialogue you can set the cache size for document cache (in kilobytes) and number of formatted documents that can be stored in the cache. Maximum number of documents in the cache is 256.

    👁 Image

    In this dialog you can set programs for mail and telnet. They are used for links like "mailto:", "telnet:", and "tn3270:". The dialog contains three text fields: program for mail, program for telnet and program for tn3270. Write commands which should be executed into these fields, the character "\" will be replaced by the address (for mail) or the name of machine and port (for telnet).

    These two functions allow you to request execution of external programs for unknown file types. Each file received over the network has a so-called MIME type. This is a text string consisting of two parts separated by a slash (/). The part before the slash is the so-called main type (text, image, audio etc.). The part after slash defines the file format. For example when the main type is audio, the format could be MP3. In the table below you can find an overview of some widely used MIME types.

    Format Description MIME type Extension
    GIF image format image/gif .gif
    JPG image format image/jpg .jpg
    TIFF image format image/tiff .tiff
    PNG image format image/png .png
    PCX image format image/pcx .pcx
    BMP image format image/bmp .bmp
    AVI video format video/x-msvideo .avi
    MP3 audio format audio/mpeg .mp3
    OGG audio format audio/x-ogg .ogg
    RealAudio audio format audio/x-pn-realaudio .ra
    Postscript format for document transmission application/postscript .ps
    PDF format for document transmission application/pdf .pdf
    DVI format for document transmission application/x-dvi .dvi
    DOC format for document transmission application/x-doc .doc

    The Links browser can display only text and images; however it allows you to choose external programs to be executed for other MIME types, for example for audio files. For this there are two functions. With "associations" you can specify an external program and the MIME types for which this program should be executed. With "extensions" you can assign MIME types to file extensions for cases where the MIME type is not known to Links or cannot be acquired from the server, but can be derived from the filename extension.

    Both associations and extensions are managed using a dialog very similar to the "Bookmark manager" dialog. After invoking the "Associations" or "File extensions" function, a dialog labeled "Associations manager" or "Extension manager" appears.

    👁 Image

    Working with the Associations manager and the Extensions manager is the same. Therefore we first describe the common elements, and then the dialogs for editing and addition, which differ between associations and extensions.

    As in the bookmark manager, there is a list of extensions or associations in the top window. There are Add , Delete , Edit , Move , Unselect all and Close buttons at the bottom. Each extension or association shows a label and a mime-type after a colon which belongs to the association or extension.

    👁 Image

    It is possible to select an entry in the upper part of the window as you do in a menu. The selected entry is highlighted by an inverse video bar. You can move the bar with cursor keys and , , , and keys. Left and right cursor keys select the button (at the bottom of the window), pressing activates the button. Alternatively click on a button to activate it. You can scroll through the list by holding the middle mouse button and moving the mouse up and down. It is also possible to scroll with the scrollbar at the right part of the window.

    Now we will describe individual actions that can be performed using the buttons. The buttons always have effect on the entry (extension or association) which is selected by the cursor. We will call this entry the current entry.

    • Add: Creates a new entry. After pressing this button, you are presented with a dialogue, in which you enter information about the new entry. Pressing creates a new entry right after the current entry. revokes the current edit.
    • Delete: Deletes the current entry. You will be asked first if you really want to delete this entry.
    • Edit: Invokes a dialog in which it is possible to change the current entry. By pressing you confirm the changes, by you cancel them.

    It is also possible to rearrange the entries in the list. This is what the Move button is for. First it is necessary to mark the entries we want to move. An entry can be marked by the key or . These are toggle keys which unmark a marked entry and mark an unmarked one. It is also possible to mark entries by clicking the right mouse button on the entry. A marked entry has an asterisk in front (in text mode) or a square (graphics mode). If you press the Unselect all button, all entries will be unmarked.

    When you have all the entries marked that you want to move, move the cursor bar to the entry behind which you want to move the entries. Then press the Move button. The marked entries will be moved to just after the current entry. The marked entries will be in the same sequence as they were before the move (this means the relative sequence of the marked entries is unchanged).


    Note:
    Both extension and association managers can be opened only once. If you have multiple windows and there is an associations manager (or extensions manage) already open in one window, it is not possible to open the same manager in the other windows. A message will be displayed in that case.

    Warning:
    If you perform any change in associations or extensions you have to save the browser settings. If you don't save them, they will be treated as temporary and will be forgotten when the browser is terminated.

    Associations
    The dialogue for editing and adding new associations looks like this:

    👁 Image

    • Fill the Label field with the name of the association (can be an arbitrary text).
    • Fill the Content Type(s) field with a comma-separate list of MIME types (or just one MIME type. Do not insert spaces next to the commas.
    • Fill the Program field with commandline (including possible parameters) that should be executed on the entered MIME types. The "\" character will be replaced with a filename.
    • Block terminal while program running: Blocks the terminal while the given program is running, i. e. you will be returned into the Links browser only after the program exits.
    • Run on terminal: That means whether the program is allowed to be excuted on a terminal. For example some programs run only on a windowing system and it doesn't make sense to run them on a terminal.
    • Run in X-Window: It has a similar meaning like the previous one with the difference that it's about running in a window of an X-Window system.
    • Ask before opening: If you tick up this field you will be asked on each encounter whether you want to download the file, view, run the external program or it, or cancel.

    Here are example of MIME type settings:

    Label: ZGV
    Content-Type(s): image/gif,image/jpg,image/pcx,image/bmp,image/png
    Program: zgv %
    
    Label: Acrobat
    Content-Type(s): application/pdf,application/x-pdf
    Program: acroread %
    
    Label: MP3
    Content-Type(s): audio/mpeg
    Program: mpg123 -2 -v -b 500 %
    

    Of course you can set more programs for a single MIME type (for example multiple PDF viewers). If you set more program, a dialog will be presented before executing the external program, where you can select which of the programs should be executed.

    File extensions
    This function allows certain file extensions to be bound together with a concrete MIME type. The extension is used in the case when it is not possible to determine the MIME type from a server. The type is then determined from the filename extension. Editation and addition of a new extension invokes a dialogue into which you enter a list of extensions (without the dot) separated by commas, and a MIME type on which these extensions should be mapped. So for example:

    Extension(s): gif
    Type: image/gif
    
    Extension(s): pdf
    Type: application/pdf
    
    Extension(s): dvi
    Type: application/x-dvi
    
    Extension(s): jpg
    Type: image/jpeg
    

    If you are running the browser for the first time, extensions for basic file types (images, graphics formats, documents, music files, animations etc.) will be automatically created.

    Saves the settings into the configuration file. If you change some setting and don't save the settings later, then the change will be forgotten when the browser is exited. Therefore do not forget to save the setting if you change something and want it to be kept for the next execution of the browser.

    prev: Customising Links contents next: Problems and frequently asked questions