Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
man pages in terminal
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ManDay
Apprentice
Apprentice


Joined: 22 Jan 2008
Posts: 209

PostPosted: Thu Jan 23, 2014 9:27 pm    Post subject: man pages in terminal Reply with quote

Does anyone know why (since forever) manpages are broken wrongly if the terminal is between 66 and 77 characters wide? Example:

Code:
       Pgawk is the profiling version of gawk.  It is identical in
 every  way
       to  gawk,  except  that  programs run more slowly, and it au
tomatically
       produces an execution profile in the file awkprof.out when
done.   See
       the --profile option, below.

       Dgawk  is  an awk debugger. Instead of running the program d
irectly, it
       loads the AWK source code and  then  prompts  for  debugging
  commands.
       Unlike gawk and pgawk, dgawk only processes AWK program sour
ce provided
       with the -f option.  The debugger is documented in GAWK: Eff
ective  AWK
       Programming.

_________________
PDF for documents is misused. Use HTML!
Math markup for HTML5
GCPM for Footnotes
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32163
Location: 56N 3W

PostPosted: Thu Jan 23, 2014 10:10 pm    Post subject: Reply with quote

ManDay,

Real terminals are hardwired to be 80 columns.
man has been around since *NIX was invented, if not before. Its a feature.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2386
Location: Dallas area

PostPosted: Thu Jan 23, 2014 10:13 pm    Post subject: Reply with quote

From the man pages :) about man

Code:
MANWIDTH
              If $MANWIDTH is set, its value is used as the line length for which manual pages should  be  formatted.
              If it is not set, manual pages will be formatted with a line length appropriate to the current terminal
              (using an ioctl(2) if available, the value of $COLUMNS, or falling back to 80 characters if neither  is
              available).   Cat  pages  will  only be saved when the default formatting can be used, that is when the
              terminal line length is between 66 and 80 characters.

_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.15.9-zen, glibc-2.17, gcc-4.7.3-r1, eudev
xorg-server-1.16, openbox w/lxpanel, nouveau, oss4
Back to top
View user's profile Send private message
ManDay
Apprentice
Apprentice


Joined: 22 Jan 2008
Posts: 209

PostPosted: Thu Jan 23, 2014 11:04 pm    Post subject: Reply with quote

NeddySeagoon wrote:
ManDay,

Real terminals are hardwired to be 80 columns.
man has been around since *NIX was invented, if not before. Its a feature.


I fail to see how this relates to the numbers 66 and 77, below and above which everything renders just fine (admitted, above 77 is perhaps just a coincidence due to margin and is technically above 80). Yet, if it works for 65, why does it not work for 67?

Anon: So the correct solution would be what? (And why is it not the default?)
_________________
PDF for documents is misused. Use HTML!
Math markup for HTML5
GCPM for Footnotes
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum