Kompx.com or Compmiscellanea.com

ELinks. Use

Operating systems : Windows, Linux

Jump to:

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

ELinks. Configuration - How to configure ELinks.


Once started, ELinks allows a user to do almost all it is capable of by means of its menu. So it is only how to start ELinks and how to do several other things as an example that is explained here.

1 ) Starting ELinks - ELinks may be run under a GUI environment (X Windows, MS Windows, etc) or some command-line interface. In the first case a terminal emulator / console must be opened before ELinks is to be started: xterm, rxvt, Win32 console and others:

ELinks ( Linux )

- To start ELinks, enter command:

elinks

- To start ELinks opening a web document from Internet:

elinks Web address of a web document

- To start ELinks accessing hard disk to browse local folders:

elinks file:///

or:

elinks /

- To start ELinks opening a local folder:

elinks file:///home/user1/

or:

elinks /home/user1/

- To start ELinks opening a local file:

elinks file:///home/user1/document1.htm

or:

elinks /home/user1/document1.htm

ELinks ( Windows )

- To start ELinks, enter command:

elinks

- To start ELinks opening a web document from Internet:

elinks Web address of a web document

- To start ELinks accessing hard disk to browse local folders:

elinks file:///

- To start ELinks opening a local folder:

elinks file://c/home/user1/

- To start ELinks opening a local file:

elinks file://c/home/user1/document1.htm

2 ) To access the menu of ELinks:

Press Esc on keyboard

3 ) Opening a web document in ELinks already running:

Press g on keyboard or Esc --> File --> Go to URL --> [ Enter a web address ] --> Enter

4 ) Going back:

Left arrow of Arrow keys on keyboard or Esc --> File --> Go back

5 ) Opening a link in a new tab in background:

Shift - t or Esc --> Link --> Open in new tab in background

6 ) Going to the next tab:

Shift - > or Esc --> View --> Next tab

7 ) Closing a tab:

Press c on keyboard or Esc --> View --> Close tab

8 ) Passing a URI to an external application when running ELinks in a terminal emulator. There are many applications it is possible to pass a URI to, here it is about passing a URI to clipboard. Setting up this option is explained here:

To pass the URI of the web page ELinks is displaying at the moment to clipboard:

Alt - p

To pass the URI of a highlighted link in a page to clipboard:

Alt - l

9 ) Editing textarea of forms in an external editor. If ELinks is compiled with external editor support, one or another text editor present in the operating system may be used to handle text in textarea of forms, both in GUI and command-line environment. Setting up this option is explained here. To edit text in textarea of a form:

Move cursor to textarea of the form, press Enter on keyboard to start editing. Ctrl - t to open the external editor set during the configuration process. Enter / edit text in the editor opened. Then:

If it is a GUI editor:

Hit Save in its menu or use a keyboard shortcut, like Ctrl - S to save the text prepared. Close the editor's window - the text entered / edited and saved in the external editor gets to the textarea of the form, ready to be sent.

If it is a text-mode editor, vi or vim for instance:

Esc to exit insert mode, then : [colon] to start entering a command, wq, then Enter to save and quit. The text entered / edited and saved in the external editor gets to the textarea of the form, ready to be sent. If it is not vi or vim, the procedure is still the same, just use the corresponding commands of the editor.


Aliosque subditos et thema

 

CSS horizontal and vertical centering - 2

 

Centering the content of a web page in the viewable area of a browser by means of CSS. A box to contain the whole content of the page is CSS centered horizontally and vertically: [ Open demo page ] HTML / XHTML. Code: <!DOCTYPE html> <html> <head> <title>CSS horizontal and vertical centering - 2</title> <link rel="stylesheet" type="text/css" href="css.css" /> </head> <body> <div class="spacer">&nbsp;</div> <div class="wrapper"> <div class="pagecontent">&nbsp;</div> </div> </body> </html> CSS. Code: html {height: 100%; margin: 0px;} body height: 100%; margin: 0px;} .spacer {position: relative; top: 0px; left: 0px; height: 50%; width: 100px; float: left; margin: 0px 0px -250px 0px; background: #999;} .wrapper {position: relative; top: 0px; left: 0px; height: 500px; width: 100%; clear: both; background: #a3ddc4;} .pagecontent {position: relative; top: 0px; left: 0px; height: 500px; width: 800px; margin: 0 auto; background: #ff6f6f;} The .pagecontent box is for the page content. It must be of a fixed height and width in units like px's or em's - not in percents. Height and width may be larger than web browser viewable area, but here the more practical case is discussed - when the height and width of .pagecontent are smaller than those of the web browser viewable area. The .pagecontent box is horizontally centered by its "margin: 0 auto". .Wrapper creates a space where .pagecontent is centered horizontally. .Wrapper's width is 100% for centering at various web browser viewable area sizes. The height has to be equal to the one of .pagecontent. .Spacer centers .wrapper with .pagecontent in it vertically inside browser viewable area. Its width may be any. The height is 50% - that places the top edge of .pagecontent vertically in the middle of the browser viewable area. The bottom margin of .spacer equal to half the .pagecontent height centers .pagecontent and its contents vertically in the web browser viewable area of a current height. This method is reliable in all major modern web browsers. It also works in older browsers like Internet Explorer 6 or earlier versions of Maxthon. But the height of box for page content has to be assigned explicitly and if it is changed - the size of .spacer bottom margin must be changed accordingly as well. There is another way of CSS horizontal and vertical centering, with CSS code easier to maintain, even if not suitable for older web browsers: CSS horizontal and vertical centering - 1. [ 1 ] As well as Netscape 7.2+, Mozilla 1.5+. [ 2 ] As well as Netscape 7.2+, Mozilla 1.5+.

Extract tar.gz

 

Extracting tar.gz files in Linux, command line: tar zxvf file.tar.gz - z : filter the archive through gzip [ 1 ] - x : extract files from an archive - v : list the files processed - f : use archive file The command extracts the contents of a compressed archive to the current directory. Tar creates an archive of one or several files. Then gzip is used to compress it. Or both processes are made at once by tar only, with corresponding options employed. The duality of nature - archived and compressed after - is reflected in the extension of the file ("tar.gz") and requires two procedures to be performed while extracting: decompressing and unpacking. Hence both z (decompress it) and x (unpack it) in the command. [ 1 ] Sources for the option letters description: tar(1) - Linux man page and LinuxCommand.org