This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new Linux.com!

Linux.com

Feature: Internet & WWW

Browsing the Web the old-fashioned way

By Federico Kereki on April 24, 2008 (9:00:00 AM)

Share    Print    Comments   

Are you in the mood for some '90s-style Web browsing with no graphic elements? Or, more realistically, do you work with a Linux console and often need to check something on the Web? If so, get acquainted with text-based Web browsers such as w3m, Lynx, and the similarly named Links.

While browsing the Web without a mouse, graphics, fancy fonts, JavaScript, and Java can be sorely restrictive, it can also be quite speedy. If you're a fan of function keys and special commands, you'll be pleased to learn that these browsers provide plenty of shortcuts for every taste. After you gain experience, you'll be able to navigate around with just a few key taps.

All the programs are similar, so once you master one, you can become accustomed to the others quickly. They can usually render tables appropriately, but they're often unable to display frames or other text-positioning mechanisms the way the original HTML designer intended. For example, a page with several frames will display the text vertically, one frame's worth after another.

Lynx, the old warrior

Lynx, which has been around since 1992, is one of the oldest Web tools still in use. (As a frame of reference, Tim Berners-Lee finished the first version of the first browser ever on Christmas day, 1990, so we're really talking about the origins of the Internet here.) Lynx is still in development, with version 2.8.7 in the works. You'll likely find it in all modern distributions. If you use Smart, simply type in smart install lynx to install it.

Type lynx URL to open a page. Keying lynx without any further parameters takes you to the Help screen, where you can move around by using the cursor keys. Take a look at the Lynx User Guide and keystroke commands to view the many available commands. Use h to get to the help screen, and m to go back to the site you were visiting.

You can use the o key to configure Lynx (although you should probably keep the values as they are), the arrow keys to jump from one link to another, the Page Up and Down keys to scroll up and down, and the Enter key to follow a link and make a jump.

w3m, a Japanese browser

w3m, which stands for WWW-wo-Miru, meaning "see the Web" in Japanese, has been around since 1999. The current version is 0.5.2, from May 2007, and it is distributed under the MIT License. You can also use w3m as a GNU Emacs module to check Web pages while you're editing a file. Since it was developed by non-English speakers, w3m is well suited for languages other than English.

w3m boasts a long list of options: press o to check it. Pressing ? takes you to a full help page, and the left arrow key returns you to the page you were viewing. (Check the user manual for all keys.)

w3m's display is somewhat more compact than Lynx's, allowing you to see more text per screen. You can even configure w3m to let you use the mouse for easier navigation.

According to the author, "As w3m's virtues are its small size and rendering speed, adding more features might lose these advantages." However, bug fixing goes on.

Links and its family

Links is a fast text browser that has spawned several other projects, including ELinks and Hacked Links. Links is available under the GNU General Public License (GPL), and its current version is 0.98, with a prerelease 0.99 version also available. Aside from its speed, it offers distinctive features such as the ability to download several files at the same time. It also includes FTP, SSL, and some JavaScript support, though with some distributions, you might have to compile Links on your own to get it. Also, be warned that sites that use JavaScript heavily, such as Gmail's, might not work.

Opening a Web page in Links is simple: type links URL. To get help or to access other functions, press the Escape key; a top-line horizontal menu will appear. Links uses pull-down and pop-up menus a lot, making it easier to work with. You don't have to memorize any keys in order to use Links (although several key commands make your browsing faster) -- just remember the Escape key.

Conclusion

After using graphical browsers such as Firefox, Opera, Safari, or even Internet Explorer, going back to a text browser seems quaint. However, any time you're working in a text-only console and need to check some reference or Google something, you'll appreciate have a text Web browser to work with.

Federico Kereki is an Uruguayan systems engineer with more than 20 years' experience developing systems, doing consulting work, and teaching at universities.

Share    Print    Comments   

Comments

on Browsing the Web the old-fashioned way

Note: Comments are owned by the poster. We are not responsible for their content.

Browsing the Web the old-fashioned way

Posted by: Anonymous [ip: 139.184.134.27] on April 24, 2008 09:40 AM
Is there a website providing a directory of text browser friendly sites anywhere? Searching has been fruitless so far.

#

Browsing the Web the old-fashioned way

Posted by: Vassil Dichev on April 24, 2008 10:40 AM
Elinks even has tabs (!), and links2 has SVGA/X support. All of these browsers are a mandatory part of space-starved distributions or devices.

#

Browsing the Web the old-fashioned way

Posted by: Anonymous [ip: 82.244.102.52] on April 24, 2008 11:26 AM
also, depending on compile-time options, links has a -g switch allowing you to use it graphically (thus showing images, fonts and so on), either under X or with a framebuffer console.

besides, w3m has the function of a pager and can easily replace more and less.

#

Browsing the Web the old-fashioned way

Posted by: toronto on April 25, 2008 02:18 AM
I've used w3w in the past to try and <a href="http://www.myspeedyinternet.com" target="_blank">speed</a> through some <a href="http://www.blue2005.com" target="_blank">resource</a> sites.
[Modified by: toronto on May 10, 2008 04:23 AM]

#

Browsing the Web the old-fashioned way

Posted by: Anonymous [ip: 137.229.74.206] on April 25, 2008 02:40 AM
Go really classic and surf the web on a commodore 128

#

Browsing the Web the old-fashioned way

Posted by: Anonymous [ip: 85.118.6.100] on April 25, 2008 11:30 AM
"As a frame of reference, Tim Berners-Lee finished the first version of the first browser ever on Christmas day, 1990, so we're really talking about the origins of the Internet here."

Shouldn't that read "the origins of the web". The Internet had been around for quite a while before then (gopher, ftp, mail, etc).

#

Re: Browsing the Web the old-fashioned way

Posted by: Anonymous [ip: 24.248.89.66] on April 25, 2008 04:26 PM
Actually gopher was invented after the web. Lynx also is a gopher client.

#

Browsing the Web the old-fashioned way

Posted by: Anonymous [ip: 24.248.89.66] on April 25, 2008 04:18 PM
Fedora doesn't have lynx, only elinks. My favorite version of links is from Twibright Labs links. It has a graphical mode which is really nice to use instead of dillo. One of the powerful uses of links is being able to pull content off a webpage.

http://links.twibright.com/

#

Re: Browsing the Web the old-fashioned way

Posted by: Anonymous [ip: 64.201.43.134] on April 25, 2008 06:01 PM
> Fedora doesn't have lynx...

Not true. Fedora does have lynx.

#

Browsing the Web the old-fashioned way

Posted by: Anonymous [ip: 69.207.238.206] on April 27, 2008 06:46 PM
Text based browsers are a great for testing layout/page presenation. A properly formatted HTML document will display nicely in a text mode browser, just as in a UI. Not sure if they may be used for reading spoken text but that would be very cool.

#

Lynx rocks

Posted by: Anonymous [ip: 69.109.91.205] on April 28, 2008 11:12 PM
Lynx is still the best way to interactively surf the web on a dumb terminal...

http://blog.spectrox.com/2008/03/text_to_the_future.html

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya