Re: Add config option for max paragraph width

Robin Stern <[email protected]>
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
Using COLUMNS=80 doesn't work in atleast one situation. I use tmux in a way that launches multiple panes from a script, and sends keys to the panes to launch a command. Even if I send "COLUMNS=80 lynx" or preset lynx to an alias "COLUMNS=80 lynx", it seems to work only for the first page that is launched by lynx. When I click a link that redirects lynx to another page it occupies the eitire width of the screen for that page. My suspicion is that there is some race condition in COLUMNS=80 being set by user command and that from a WINCH that arrives from the system. Using "stty cols 80" bypasses this problem, but is a pain because unless one writes a wrapper script arround lynx, they can't have lynx just work as expected in all enviornments. IMO all user will benefit if lynx adds a commandline option "-cols=NUMBER" (given "-width=NUMBER" is already taken for dumps). If passed, it will override enviornment variable COLUMNS, and won't be affected by WINCHes to decide the column width.

On Sun, Jul 31, 2022 at 12:02:35PM -0600, [email protected] wrote:
> 	COLUMNS=80 lynx
> 
> or whatever width you prefer.
> 
> russell bell
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.