[Konsole-devel] [Bug 153666] konsole should set MANWIDTH for man pages

Robert Knight robertknight at gmail.com
Sat Dec 8 15:40:22 UTC 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=153666         




------- Additional Comments From robertknight gmail com  2007-12-08 16:40 -------
> Man page formatting expects 80 column width screens.  
> Other widths can be given by setting the environment variable MANWIDTH.  

Shell programs can query the size of the terminal window in lines and columns using the ioctl() system call with the TIOCGWINSZ request code.  Unlike relying on environment variables, this information updates without having to restart the program, although man does not appear to reformat if the window size changes.  The shell also sets $LINES and $COLUMNS variables.  

I presume man uses one of these since it produces output of the correct width on my display, if MANWIDTH is not set.  If MANWIDTH is set then it acts as an over-ride, and the man page will be formatted to MANWIDTH columns regardless of the window size.



More information about the konsole-devel mailing list