Re: [dev] lynx?

From: <stanio_AT_cs.tu-berlin.de>
Date: Tue, 28 May 2013 13:48:12 +0200

* markus schnalke 2013-05-28 13:07
> these days, lynx was often mentioned when a text browser was meant.
> Is there really someone (apart from mirabilos) who uses lynx? Don't
> you rather use w3m?

me.

rarely intereactively, though. More with -dump. I do query dictionaries
or similar which happen to have stable structure over time and one can
do things like:

        $ lynx -dump foo.bla | sed -n "/^Your query/,/^Similar words/ p"

Mostly I have this wrapped in a script or shell alias and often invoke
it from within vim.

For interactive browsing in the terminal, I indeed use w3m more often --
it renders often better. But, well not always, especially when menu and
content are not sequential.

compare
        $ w3m -dump -cols 60 \
            "http://odict.leo.org/ende?lang=de&search=suck" \
            | sed -n "/[0-9]\s*Treffer/,/Suchfilter einstellen close/ p"
        
        $ lynx -dump -nonumbers -nolist -nolog
            "http://odict.leo.org/ende?lang=de&search=suck" \
            | sed -n "/[0-9]\s*Treffer/,/Suchfilter einstellen close/ p"

        $ lynx -dump -nonumbers -nolist -nolog
            "http://odict.leo.org/ende?lang=de&search=suck" \
            | sed -n "/[0-9]\s*Treffer/,/Suchfilter einstellen close/ { s/\[_\]\s*//; p}"

In the end, it's a matter of taste, I guess.
--s.
Received on Tue May 28 2013 - 13:48:12 CEST

This archive was generated by hypermail 2.3.0 : Tue May 28 2013 - 14:00:04 CEST