[wellylug] Man-page formatting
David Antliff
dave.antliff at paradise.net.nz
Thu Jun 30 21:49:13 NZST 2005
On Thu, 30 Jun 2005, Grant McLean wrote:
> The man command is probably formatting things based on the value in the
> $COLUMNS environment variable.
>
> When you're running bash and you resize the window, bash gets a signal
> and updates $COLUMNS, but ...
>
> If you're in another program in the text window such as man/less/vi, the
> foreground program gets the window change signal and bash doesn't, so
> when you get back to the shell, the value of $COLUMNS won't match the
> window size.
You could play around with this:
The signal is SIGWINCH.
To enable dynamic resizing:
$ shopt -s checkwinsize
Not sure if that will work in a Linux console however since it's not
meant to resize...
Hope this helps... somehow...
--
David.
More information about the wellylug
mailing list