Kompx.com or Compmiscellanea.com

ELinks. Configuration

Operating systems : Windows, Linux

Jump to:

ELinks - Text-based or console web browser. Description: features, screenshots, download links.

ELinks. Use - How to use ELinks.


What ELinks can and what can not, i.e. what may be configured depends on several things. The most common are capability of the console it is run on and support of what was chosen during the compilation process of an ELinks browser source code. Under certain operating systems (Windows for instance) it is easier and more reliable to omit some possible features.

The configuration of ELinks 0.12pre2 from Package Database of Zenwalk Linux (originally based on Slackware, still keeping compatibility with its binary packages) is discussed here. It is quite representative in its qualities among other Linux ELinks browser versions for desktop PC computers. User interface of Windows ELinks and that of Linux / some other *nix systems ELinks of comparable versions are the same. If an ELinks package has been compiled without some feature or the console is not capable of something then it just will not be possible to choose the feature in the configuration process; or possible, but it will not work. For example, if this ELinks is compiled without support of 256 colors or your console is not capable of displaying them, then it just will only be possible to choose 16 or "No colors (mono)" in the menu. And the ELinks will work as much well in the rest.

The whole configuration of ELinks may be done through the menu of the browser - there is no need to edit config files. Even if some fine-tuning may require editing of elinks.conf or even source code files - but that is not the issue for average use.

The menu of ELinks is hidden when it is displaying a web page:

[ Image ] : ELinks - 1

To access the menu, press Esc on the keyboard:

[ Image ] : ELinks - 2

Configuration options are in "Setup" group:

[ Image ] : ELinks - 3

1 ) "Language" - set a language of ELinks user interface. It is possible to set it to the system language or to several others. System and terminal emulator / console have to be prepared for this change - corresponding localization / internationalization files installed and configured. Choose a language (English in this example):

[ Image ] : ELinks - 4

To keep it, press Esc again, then Setup, then Save options, then confirm by clicking OK. It is also possible to choose for Do not show anymore, but when OK is used, the path to the config file of ELinks (elinks.conf) is shown - that maybe useful:

[ Image ] : ELinks - 5 [ Image ] : ELinks - 6

This mode of action is used across the whole configuration process of ELinks web browser: Esc - to access the menu, Setup - to access configuration options, browsing through the lists to find the option, hitting the option chosen, then again Esc, Setup, Save options and clicking OK.

Esc --> Setup --> <option> - to select an option.

Esc --> Setup --> Save options --> OK - to confirm it.

2 ) "Character set" - choose what character encoding is to be used when displaying text of web pages. System and terminal emulator / console have to be prepared for some options to work. Try it by experimenting with web document texts in languages other then English. Unicode UTF-8 is used in this example.

Esc --> Setup --> Character set --> Unicode UTF-8 - to select Unicode UTF-8 character encoding.

Esc --> Setup --> Save options --> OK - to confirm it.

3 ) "Terminal options" - several options concerning terminal emulator / console characteristics. Ordinarily, it is enough to make changes in "Color mode" - how many colors are to be used by ELinks browser displaying text in web pages. ELinks can employ up to 256, but in practice it depends on terminal emulator / console capabilities. ELinks web browser and GNOME Terminal used here are capable of 16 colors or "No colors (mono)".

Esc --> Setup --> Terminal options --> 16 colors or "No colors (mono)" in Color mode section - to select how many colors are to be used by ELinks.

Esc --> Setup --> Save options --> OK - to confirm it.

4 ) "Options manager" - it contains all the rest options possible to set. They are quite numerous, many of the options are self-explanatory, so just some of them are discussed:

URI passing - Passing a URI to an external application when running ELinks in a terminal emulator. The most obvious possibilities are another browser and clipboard. There are two options: passing the URI of the web page ELinks is displaying at the moment or passing the URI of a highlighted link in a web page. Since passing a URI to clipboard is the most multipurpose - like URI may be taken from clipboard and put into a browser address bar, so ending up to be opened in another web browser anyway - it is this variant that explained further on.

First, xclip has to be installed. If the system does not have it already, download and install xclip: source code download page or look for xclip in the repository of your Linux distribution.

Esc --> Setup --> Options manager --> Document --> [ press Space bar to open options ] --> URI passing --> Add --> [ Enter a name for the action. Here "Clipboard" is used ] --> OK --> Edit --> [ Enter a value: echo -n %c | xclip -i ] --> OK --> Save --> OK

The process is done by keyboard shortcuts, so now a keystroke sequence must be assigned. Keyboard shortcut may be any combination starting with Shift, Ctrl or Alt. Here Alt-p for passing the URI of the web page ELinks is displaying at the moment and Alt-l for the URI of a link chosen in a web page are used.

For passing the URI of the web page ELinks is displaying at the moment to clipboard ( N.B. "Pass URI of current tab to external command" option may be displayed under the name of "tab-external-command". This is handled by Toggle display ):

Esc --> Setup --> Keybinding manager --> Main mapping --> [ press Space bar to open options ] --> Pass URI of current tab to external command --> Add --> [ Enter a keystroke sequence: Alt-p ] --> OK --> Save --> OK

For passing the URI of a highlighted link in a web page to clipboard ( N.B. "Pass URI of current link to external command" option may be displayed under the name of "link-external-command". This is handled by Toggle display ):

Esc --> Setup --> Keybinding manager --> Main mapping --> [ press Space bar to open options ] --> Pass URI of current link to external command --> Add --> [ Enter a keystroke sequence: Alt-l ] --> OK --> Save --> OK

If there is a need to use more common Ctrl-V shortcut for pasting from clipboard to GUI applications - not clicking mouse wheel or middle mouse button - put "echo -n %c | xclip -i -selection clipboard" instead of "echo -n %c | xclip -i".

External Editor - If ELinks is compiled with external editor support, it is possible to use an external editor for handling textarea of forms more conveniently. A GUI editor also may be used when in a X environment:

Esc --> Setup --> Options manager --> Document --> [ press Space bar to open options ] --> Browsing --> [ press Space bar to open options ] --> Forms --> [ press Space bar to open options ] --> External editor --> Edit --> [ Enter a value: geany ] --> OK --> Save --> OK

If value of "External editor" is left blank, ELinks will use the value of the $EDITOR variable of the environment. If $EDITOR is not set or empty, then it will fall to vi editor.

Default download directory - Setting the directory ELinks saves files to. May be any, for instance a common directory for all downloads and savings. Or home directory of the user, so that it is faster to add a required folder to it in the "Download" dialogue box:

Esc --> Setup --> Options manager --> Document --> [ press Space bar to open options ] --> Downloading --> [ press Space bar to open options ] --> Default download directory --> Edit --> [ Enter a value: /home/user1 ] --> OK --> Save --> OK

Set original time - Setting or not the timestamp of the downloaded / saved file to be the same as when the file was on the server it is downloaded / saved from. "1" for setting, "0" - for not:

Esc --> Setup --> Options manager --> Document --> [ press Space bar to open options ] --> Downloading --> [ press Space bar to open options ] --> Set original time --> Edit --> [ Enter a value: 1 ] --> OK --> Save --> OK

Prevent overwriting - When ELinks saves / downloads a file which happens to be the same as there already is, it can overwrite it without notice, ask what to do or automatically add a certain suffix to it: ".[number]". ELinks adds the ".[number]" not to the name of a file, but rather to its extension, like a.rar downloaded second time to the same folder with a.rar there becomes a.rar.1. The value of "0" is for files to be silently overwritten, "1" for the suffix of ".[number]" to be added. And "2" for "ask the user" for what to do - the options will be either to "Save under the alternative name" (adds the aforementioned suffix of ".[number]") or "Overwrite the original file" or "Resume download of the original file":

Esc --> Setup --> Options manager --> Document --> [ press Space bar to open options ] --> Downloading --> [ press Space bar to open options ] --> Prevent overwriting --> Edit --> [ Enter a value: 2 ] --> OK --> Save --> OK

Notify download completion by bell - Since ELinks can download files in background, with the download dialogue box hidden out of sight it may be convenient to be informed when download is complete. If notification by beeper is selected, there are two options: get audio notification when the way of "Background with notify" in the download dialogue is chosen or always get audio notification:

Esc --> Setup --> Options manager --> Document --> [ press Space bar to open options ] --> Downloading --> [ press Space bar to open options ] --> Notify download completion by bell --> Edit --> [ Enter a value: 2 ] --> OK --> Save --> OK

Clock - Displaying a digital clock in the status bar of ELinks. The value of "1" is to enable:

Esc --> Setup --> Options manager --> User interface --> [ press Space bar to open options ] --> Clock --> [ press Space bar to open options ] --> Enable --> Edit --> [ Enter a value: 1 ] --> OK --> Save --> OK

It is also possible to set the format of the digital clock. See strftime docs for details.


Aliosque subditos et thema

 

CSS centering floated elements

 

Centering an inline block containing several inline elements. The block is centered horizontally - [ Open demo page ]. Sometimes there is a need to have a centered group of floated elements, which is to serve as a title or a pagination box. Since this group of floated elements is going to be used as a title for content blocks of various dimensions or pagination box may grow or shrink in its size, then the width of the group of floated elements is to vary unpredictably as well. So a method of centering based on using a certain known width of the box is not going to work. And as an extra to the task there is a desirable condition: the title or pagination box has to be centered once and for all at the time of the box creation, so that this group of floated elements may be reused without any extra work over it: just place the complex where you need it and put the text or / and images you want to inside it - the group is centered anyway. This problem can be solved by several methods using several technologies: CSS, CSS + JavaScript, CSS + HTML (<table></table> tags system). The CSS centering floated elements is the most simple and reliable. So, here a pure CSS centering of floated elements is discussed. CSS centering floated elements: 1. First, a more simple case, css centering of a title box consisting of floated elements: images and text: HTML / XHTML. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>CSS centering floated elements: 1</title> <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" /> <link rel="stylesheet" type="text/css" href="css.css" /> </head> <body> <div class="box"> <span class="title-box"> <img src="snowflake.gif" width="37" height="34" alt="" class="title-imgs" /> <span class="title-text">CSS centering floated elements</span> <img src="snowflake.gif" width="37" height="34" alt="" class="title-imgs" /> </span> </div> </body> </html> CSS.

CSS centering absolutely positioned elements

 

CSS horizontal centering of an absolutely positioned element. Example: HTML / XHTML. Code: <div class="example"> <img src="image.jpg" alt="Image" /> </div> CSS. Code: .example {position: relative; left: 0px; top: 0px; height: 90px; width: 100%; float: left; padding: 10px; border: 1px #ccc solid; background: #fafafa; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box;} .example img {position: absolute; left: 0px; right: 0px; margin: 0px auto; width: 68px;} An absolutely positioned img is centered in the example. But this method of horizontal centering also works with other both inline and block absolutely positioned elements. The width of an absolutely positioned element may also be in percent or other units. CSS properties of a container (here it is .example), holding an element to be centered, may vary. The element's centering is achieved by styles applied to the element itself: .example img {position: absolute; left: 0px; right: 0px; margin: 0px auto;}. [ 1 ] As well as Netscape 8.01+, Mozilla 1.5+. [ 2 ] As well as Netscape 8.01+, Mozilla 1.5+.