lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] Invoking a lynx script


From: Thomas Dickey
Subject: Re: [Lynx-dev] Invoking a lynx script
Date: Mon, 10 Oct 2011 05:19:34 -0400 (EDT)

On Mon, 10 Oct 2011, Bela Lubkin wrote:

Thomas Dickey wrote:

On Mon, 10 Oct 2011, Bela Lubkin wrote:

You might use that to advantage, e.g. adding "-width 10000" so that
paragraphs are inserted without line breaks (then vim's :set textwidth=
wrapping will work).  Slight bug there: Lynx has a line length limit of
1014 chars (from testing); paragraphs longer than that will have
arbitrary line breaks inserted.

yes - it's a compile-time limit, used in various buffer-sizes as well
as a chunk-size in GridText.c's memory-allocation scheme.

Yes, documented as LINE_MAX in recent man pages.  I've never tried
compiling Lynx with an expanded LINE_MAX: does it work or does it run
into countervailing assumptions elsewhere in the code?  I imagine that

I recall checking in a previous discussion, and found some buffer-sizes
that should be made dependent on that.

setting it to a large value like 1M would bloat the Lynx process (but
nothing like a GUI browser...) and probably slow it down as well...

It probably would be slower, though it might be interesting to massage
the code so that it could use plain malloc/free in GridText.c to see
how much faster the current scheme uses.

For the buffer sizes - there are probably some special cases that would
complicate things.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]