Linux.com

Lynx as a serious tool

Posted by: Administrator on February 01, 2005 01:58 AM
I find lynx to be an indisposable tool for doing some web development [somewhat mitigated by LiveHTTPHeaders, but it's still very useful on any machines that don't have that]
<TT>lynx -mime_headers http://icculus.org/~chunky/</TT>
And it shows you all the http headers being sent down to you [plus source].
<TT>lynx -dump http://icculus.org/~chunky/</TT>
Show a pre-rendered-to-text version of a webpage.

Lynx also has vi keybindings if you so choose [don't forget to also use the -tla option<nobr> <wbr></nobr>:-)]. My entire desktop is based on vi keybindings, and it's nice for a browser to do the same.

I use mutt, and in my<nobr> <wbr></nobr>.mailcap I have this:
<TT>text/html;<nobr> <wbr></nobr>/usr/bin/lynx -dump -force_html '%s';copiousoutput;description=HTML;nametemplate=<nobr>%<wbr></nobr> s.html
text/html;<nobr> <wbr></nobr>/usr/bin/lynx -force_html '%s';needsterminal;description=HTML;nametemplate=<nobr>%<wbr></nobr> s.html</TT>
Which lets mutt automatically render html. Then put this in your<nobr> <wbr></nobr>.muttrc:
<TT>alternative_order text/plain text/html
auto_view text/html</TT>
And all those irritating people-who-only-send-html problems go away.

Gary (-;

#

Return to CLI Magic: Lynx