View previous topic :: View next topic |
Author |
Message |
ManDay Apprentice
Joined: 22 Jan 2008 Posts: 247
|
Posted: Thu Jan 23, 2014 9:27 pm Post subject: man pages in terminal |
|
|
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. |
_________________ <iamben> I think once you get comfortable w/ gentoo, you'll find most other distros to not be good enough |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54317 Location: 56N 3W
|
Posted: Thu Jan 23, 2014 10:10 pm Post subject: |
|
|
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 |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6103 Location: Dallas area
|
Posted: Thu Jan 23, 2014 10:13 pm Post subject: |
|
|
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. |
_________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
ManDay Apprentice
Joined: 22 Jan 2008 Posts: 247
|
Posted: Thu Jan 23, 2014 11:04 pm Post subject: |
|
|
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?) _________________ <iamben> I think once you get comfortable w/ gentoo, you'll find most other distros to not be good enough |
|
Back to top |
|
|
|
|
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
|
|