Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 23 |
Nodes: | 6 (0 / 6) |
Uptime: | 40:47:52 |
Calls: | 583 |
Calls today: | 1 |
Files: | 1,138 |
Messages: | 110,394 |
Found this <https://bash-hackers.gabe565.com/> useful-looking site in my >search for info on a topic mentioned in another post. Wasn't useful for >that, but could be helpful for other things.
Found this <https://bash-hackers.gabe565.com/> useful-looking site in my search for info on a topic mentioned in another post. WasnrCOt useful for that, but could be helpful for other things.
On 22.08.2025 08:48, Lawrence DOliveiro wrote:
Found this <https://bash-hackers.gabe565.com/> useful-looking site in my
search for info on a topic mentioned in another post. Wasnt useful for
that, but could be helpful for other things.
I like its intro:
"The main motivation was to provide human-readable documentation [...]"
Indeed. Your post reminded me of something else: There is a schism in the GNU world as to whether the man page or the info documentation is the final word (i.e., the most authoritative).
Bash maintains that the man page is the final word - the info may or may
not be kept up to date. GAWK says the opposite, which I find annoying, because I've found the man page less and less complete (*) as time goes by - and I don't like info (try to avoid it as much as possible).
[...]
In article <108a8i6$1mc70$1@dont-email.me>,
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
On 22.08.2025 08:48, Lawrence DOliveiro wrote:
Found this <https://bash-hackers.gabe565.com/> useful-looking site in my >>> search for info on a topic mentioned in another post. Wasnt useful for
that, but could be helpful for other things.
I like its intro:
"The main motivation was to provide human-readable documentation [...]"
Indeed. Your post reminded me of something else: There is a schism in the GNU world as to whether the man page or the info documentation is the final word (i.e., the most authoritative).
I absolutely share that feeling. - I'm not sure what the right way
would be. I fear it's something else than 'man' or 'info'. Given
that the amount and type of information varies between the various
tools there's maybe a _separation of contents_ necessary; 'man' for
the "essentials" and another document type for details, tutorials,
whatever. (The latter may also be *roff based.[*])
Janis
[*] Or something else; just not 'info', or anything alike, please!
(BTW; hasn't anyone yet created an info2man converter? - There's
nothing more annoying here than to read in a "man page" that this
would be only a stub and that you should refer to an 'info' page.)
[...]
For most GNU tools, the info document is definitive and the man page is secondary (and sometimes is only a brief summary). bash is the only exception that I know of.
[...]
On 22.08.2025 23:46, Keith Thompson wrote:
[...]
For most GNU tools, the info document is definitive and the man page is
secondary (and sometimes is only a brief summary). bash is the only
exception that I know of.
Really? - On my Linux system I get for most system commands thorough
man page information. (And I feel lucky about that situation.)
Janis
[...]
On 23.08.2025 00:06, Janis Papanagnou wrote:
On 22.08.2025 23:46, Keith Thompson wrote:
[...]
For most GNU tools, the info document is definitive and the man page is
secondary (and sometimes is only a brief summary). bash is the only
exception that I know of.
Really? - On my Linux system I get for most system commands thorough
man page information. (And I feel lucky about that situation.)
I have to correct that; on the bottom of some man pages I see a note
"The full documentation for <tool> is maintained as a Texinfo manual."
On 23.08.2025 00:06, Janis Papanagnou wrote:
On 22.08.2025 23:46, Keith Thompson wrote:
[...]
For most GNU tools, the info document is definitive and the man page is
secondary (and sometimes is only a brief summary). bash is the only
exception that I know of.
Really? - On my Linux system I get for most system commands thorough
man page information. (And I feel lucky about that situation.)
I have to correct that; on the bottom of some man pages I see a note
"The full documentation for <tool> is maintained as a Texinfo manual."
On 23.08.2025 00:13, Janis Papanagnou wrote:[...]
I have to correct that; on the bottom of some man pages I see a note
"The full documentation for <tool> is maintained as a Texinfo manual."
Curiously I grep'ed for that phrase in the man pages and got these
results...
$ ksh man-stat /bin
164 13
$ ksh man-stat /usr/bin
3230 60
On left: all the bin-files, right: files with texinfo note in their
man page; i.e. 8% and 2% respectively of files containing texinfo
reference in the man pages of all the commands in /bin and /usr/bin.
(Of course I cannot tell whether there's also uncommented files.)
Yes. I think that for some GNU tools, the info and man documents
contain the same information. For others, the man page is just a brief summary, sometimes generated from "--help" output with "help2man".
On 23.08.2025 00:40, Keith Thompson wrote:
Yes. I think that for some GNU tools, the info and man documents
contain the same information. For others, the man page is just a brief
summary, sometimes generated from "--help" output with "help2man".
I've meanwhile looked also into the size of the man pages...
Number of man pages with number of lines
512 with 1..40 lines
1641 with 41..200 lines
781 with 201..1000 lines
159 with 1001..5000 lines
28 with 5001..20000 lines
That doesn't appear to be just irrelevant information, at least.
On 2025-08-22 at 20:05 ADT, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
On 23.08.2025 00:40, Keith Thompson wrote:
Yes. I think that for some GNU tools, the info and man documents
contain the same information. For others, the man page is just a brief
summary, sometimes generated from "--help" output with "help2man".
I've meanwhile looked also into the size of the man pages...
Number of man pages with number of lines
512 with 1..40 lines
1641 with 41..200 lines
781 with 201..1000 lines
159 with 1001..5000 lines
28 with 5001..20000 lines
That doesn't appear to be just irrelevant information, at least.
Is that 20000 tight?
That is, are there man pages that big, or did your
histogramization (?) arbitrarily pick 20000?
Bash maintains that the man page is the final word - the info may or may
not be kept up to date. GAWK says the opposite, which I find annoying,
I absolutely share that feeling. - I'm not sure what the right way
would be. I fear it's something else than 'man' or 'info'.
Of all the Free Software Foundation/GNU projects, Info is the biggest abomination.
Change my mind.
[Please do not mail me a copy of your followup]
gazelle@shell.xmission.com (Kenny McCormack) spake the secret code ><108afmi$piu7$1@news.xmission.com> thusly:
Bash maintains that the man page is the final word - the info may or may >>not be kept up to date. GAWK says the opposite, which I find annoying,
Of all the Free Software Foundation/GNU projects, Info is the biggest >abomination.
[Please do not mail me a copy of your followup]
gazelle@shell.xmission.com (Kenny McCormack) spake the secret code
<108afmi$piu7$1@news.xmission.com> thusly:
Bash maintains that the man page is the final word - the info may or may >>not be kept up to date. GAWK says the opposite, which I find annoying,
Of all the Free Software Foundation/GNU projects, Info is the biggest abomination.
Change my mind.
[Please do not mail me a copy of your followup]
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> spake the secret code
<108ahql$1oon3$1@dont-email.me> thusly:
I absolutely share that feeling. - I'm not sure what the right way
would be. I fear it's something else than 'man' or 'info'.
Perl showed the way by breaking up the documentation into multiple man
pages describing different aspects of the language, e.g. syntax,
modules, etc. and the main man page guiding into which man page you
should read for further information.
Perl showed the way by breaking up the documentation into multiple man
pages describing different aspects of the language, e.g. syntax,
modules, etc. and the main man page guiding into which man page you
should read for further information.
The original Unix distributions from Bell Labs took a different
approach. The man page was to serve as a concise reference for the command-line arguments, related files and so-on. If the software was
more complex, like yacc, then a user guide was expected to accompany
the program and would live in /usr/doc, not /usr/man. The user guide
was expected to be written with the ms macro package not the man macro package. However, I don't think this actually took hold culturally
anywhere except Bell Labs and the original creators of Unix.
Found an interesting Mandelbrot Set script on this page <https://bash-hackers.gabe565.com/scripting/terminalcodes/> from that selfsame wiki.
It says the ksh version is 10|u faster. I tried running it in bash, and
it flashed up in the blink of an eye.
Strangely, in the past decades, I completely missed the /usr/doc
part of the Unix documentation. (I wonder why...)
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
[...]
Strangely, in the past decades, I completely missed the /usr/doc
part of the Unix documentation. (I wonder why...)
On some systems (Ubuntu in my case), it's /usr/share/doc .
On 26.08.2025 05:48, Keith Thompson wrote:
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
[...]
Strangely, in the past decades, I completely missed the /usr/doc
part of the Unix documentation. (I wonder why...)
On some systems (Ubuntu in my case), it's /usr/share/doc .
Yeah, thanks. - Now I know where they are. :-)
What's still unclear to me is how to read them.
I mean, man xterm will show me the xterm manual.
And below /usr/share/doc/xterm/, for example, I
see xterm.termcap.gz and xterm.terminfo.gz, but
there's (unlike man) no doc(1) command nor does
e.g. man xterm.terminfo work, and man terminfo
will access the man entries (not these docs it
seems).
As I said, I never knew about nor worked with
these /usr/share/doc information; I'm curious.
[...]
You probably won't miss much by ignoring /usr/share/doc .
On 25.08.2025 23:06, Richard wrote:
Perl showed the way by breaking up the documentation into multiple man
pages describing different aspects of the language, e.g. syntax,
modules, etc. and the main man page guiding into which man page you
should read for further information.
This is definitely not what I would be seeking. As other posters
said, in a simple way searching in one document with a standard
structure (like man) would be it. And that document should have
all the essentials.
In article <108ij2o$18u16$2@news.xmission.com>, Richard <> wrote:
Of all the Free Software Foundation/GNU projects, Info is the biggest >>abomination.
I don't disagree. I think info was a failure to launch (*).
On 2025-08-25, Richard <legalize+jeeves@mail.xmission.com> wrote:
Of all the Free Software Foundation/GNU projects, Info is the biggest
abomination.
Change my mind.
AutoConf, AutoMake
Kaz Kylheku <643-408-1753@kylheku.com> writes:
On 2025-08-23, Jim <zsd@jdvb.ca> wrote:
On 2025-08-22 at 20:05 ADT, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
On 23.08.2025 00:40, Keith Thompson wrote:
Yes. I think that for some GNU tools, the info and man documents
contain the same information. For others, the man page is just a brief >>>>> summary, sometimes generated from "--help" output with "help2man".
I've meanwhile looked also into the size of the man pages...
Number of man pages with number of lines
512 with 1..40 lines
1641 with 41..200 lines
781 with 201..1000 lines
159 with 1001..5000 lines
28 with 5001..20000 lines
That doesn't appear to be just irrelevant information, at least.
Is that 20000 tight? That is, are there man pages that big, or did your >>> histogramization (?) arbitrarily pick 20000?
$ man txr | wc
46266 382645 2775327
No, hold it, correction. I have a wide terminal. We have to measure
using the 80 column standard:
$ MANWIDTH=80 man txr | wc
67616 386241 3110809
That's more like it!
I don't have txr on my system, but :
$ MANWIDTH=80 man ffmpeg-all 2>/dev/null | wc
49196 210446 1764012
That omits the troff "cannot break line" and "cannot adjust line"
warnings.
[Please do not mail me a copy of your followup]
gazelle@shell.xmission.com (Kenny McCormack) spake the secret code <108ima1$192n6$1@news.xmission.com> thusly:
In article <108ij2o$18u16$2@news.xmission.com>, Richard <> wrote:
Of all the Free Software Foundation/GNU projects, Info is the biggest
abomination.
I don't disagree. I think info was a failure to launch (*).
FFS, just say you agree instead of being passive aggressive.
On 27.08.2025 18:36, Richard wrote:
[Please do not mail me a copy of your followup]
gazelle@shell.xmission.com (Kenny McCormack) spake the secret code
<108ima1$192n6$1@news.xmission.com> thusly:
In article <108ij2o$18u16$2@news.xmission.com>, Richard <> wrote:
Of all the Free Software Foundation/GNU projects, Info is the biggest
abomination.
I don't disagree. I think info was a failure to launch (*).
FFS, just say you agree instead of being passive aggressive.
Your attitude to tell others how they shall express themselves
indeed provokes and asks for "*active* aggressivity".
Of all the Free Software Foundation/GNU projects, Info is the biggest abomination.
[...]
Of all the Free Software Foundation/GNU projects, Info is the biggest
abomination.
I'm actually interested in *why* you dislike Info. You might think the >reasons are obvious, but they're not obvious to me.
On 26.08.2025 04:04, Lawrence DrCOOliveiro wrote:
Found an interesting Mandelbrot Set script on this page
<https://bash-hackers.gabe565.com/scripting/terminalcodes/> from that
selfsame wiki.
Funny things they do. :-)
It says the ksh version is 10|u faster. I tried running it in bash, and
it flashed up in the blink of an eye.
You have a fast (=contemporary) computer? - Mine is rather old...
ksh (93u+m/1.0.8 2024-01-01):
real 0m00.41s
user 0m00.32s
sys 0m00.04s
bash (4.2.25):
real 0m03.22s
user 0m03.00s
sys 0m00.16s
Or are the newer bash versions meanwhile faster?
Janis
[...]
FWIW, I often use the phrase "I don't disagree" online - rather than the
more straightforward "I agree" - because I'm not really agreeing, [...]
[...] It all goes back to in the early days of Usenet,
when bandwidth actually cost money (cost *someone* money, that is), where
the official ethic was that you needed to be absolutely sure that you
wanted to post - since every time you did so, it cost "the net" "hundreds,
if not thousands of dollars".
Janis Papanagnou wrote:
On 26.08.2025 04:04, Lawrence DrCOOliveiro wrote:
Found an interesting Mandelbrot Set script on this page
<https://bash-hackers.gabe565.com/scripting/terminalcodes/> from that
selfsame wiki.
Funny things they do. :-)
It says the ksh version is 10|u faster. I tried running it in bash, and
it flashed up in the blink of an eye.
You have a fast (=contemporary) computer? - Mine is rather old...
ksh (93u+m/1.0.8 2024-01-01):
real 0m00.41s
user 0m00.32s
sys 0m00.04s
bash (4.2.25):
real 0m03.22s
user 0m03.00s
sys 0m00.16s
Or are the newer bash versions meanwhile faster?
Janis
I suspect a zsh version would be even faster, since `echoti` could be
used, instead of forking for `tput`.
[Please do not mail me a copy of your followup]
gazelle@shell.xmission.com (Kenny McCormack) spake the secret code <108ima1$192n6$1@news.xmission.com> thusly:
In article <108ij2o$18u16$2@news.xmission.com>, Richard <> wrote:
Of all the Free Software Foundation/GNU projects, Info is the biggest >>>abomination.
I don't disagree. I think info was a failure to launch (*).
FFS, just say you agree instead of being passive aggressive.
FFS, just say you agree instead of being passive aggressive.
You don't understand logic, do you? If you can't grasp the concept of
the absence of disagreement not being agreement, then perhaps computer >science is going to be a challenging topic for you, as some basic
concepts will require understanding precisely this distinction...
In article <108p852$17rs2$3@dont-email.me>,
Nuno Silva <nunojsilva@invalid.invalid> wrote:
...
FFS, just say you agree instead of being passive aggressive.
You don't understand logic, do you? If you can't grasp the concept of
the absence of disagreement not being agreement, then perhaps computer
science is going to be a challenging topic for you, as some basic
concepts will require understanding precisely this distinction...
Point of order: There *is* a difference between "I agree" and "I don't disagree" - you cannot simply apply computer science/boolean logic
principles to this and conclude that they mean exactly the same thing.
I explained this all in detail in my previous post on this thread.
But as Janis notes, fine granulatity of meaning is lost on the current generation.
legalize+jeeves@mail.xmission.com (Richard) writes:
[...]
Of all the Free Software Foundation/GNU projects, Info is the biggest
abomination.
I'm actually interested in *why* you dislike Info. You might think the >reasons are obvious, but they're not obvious to me.
Your attitude to tell others how they shall express themselves
indeed provokes and asks for "*active* aggressivity".
We all had a good laugh around here on reading "Richard"'s post.
FWIW, I often use the phrase "I don't disagree" online - rather than the
more straightforward "I agree" - because I'm not really agreeing
But as Janis notes, fine granulatity of meaning is lost on the current >generation.
[Please do not mail me a copy of your followup]
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> spake the secret code ><108ollu$13i08$2@dont-email.me> thusly:
Your attitude to tell others how they shall express themselves
indeed provokes and asks for "*active* aggressivity".
Better honest aggression than passive aggression.
If you want to be argumentative, don't try to hide it behind phoney >politeness.
Keith Thompson <Keith.S.Thompson+u@gmail.com> spake the secret code <87v7m8m3qv.fsf@example.invalid> thusly:
legalize+jeeves@mail.xmission.com (Richard) writes:
[...]
Of all the Free Software Foundation/GNU projects, Info is the biggest
abomination.
I'm actually interested in *why* you dislike Info. You might think the >>reasons are obvious, but they're not obvious to me.
- it forces me into a GNU emacs like viewer in order to find information;
the assumption is that everyone likes the emacs style of interaction
and everyone is familiar with it.
man pages use your existing PAGER
- it subdivides everything into very tiny sections (in all fairness,
this could be an author style guide problem and not something
intrinsic to info per se)
This leads to information being balkanized into tiny sections and
forces you to navigate between them instead of just pressing
SPACEBAR to scroll down in the document or use your PAGER's search
commands for locating text.
- It assumes that those people wishing to view the document as a whole
have access to LaTeX, etc., and are willing to process the document as
such.
man pages are typically preformatted into something your PAGER can
scrub through without the user having to know anything about the man
macro package, *roff processors, etc.
There's probably some more things but those are the ones off the top
of my head.
Basically they made an inferior replacement to an existing mechanism
and as near as I can tell the only reason is a "not invented here"
syndrome because at the time there were no open source implementations
of *roff.
[Please do not mail me a copy of your followup]
gazelle@shell.xmission.com (Kenny McCormack) spake the secret code <108pfh0$1lv85$1@news.xmission.com> thusly:
But as Janis notes, fine granulatity of meaning is lost on the current
generation.
It's just passive aggressive argumentation rather than "fine
granularity".
legalize+jeeves@mail.xmission.com (Richard) writes:
Keith Thompson <Keith.S.Thompson+u@gmail.com> spake the secret code
<87v7m8m3qv.fsf@example.invalid> thusly:
legalize+jeeves@mail.xmission.com (Richard) writes:
[...]
Of all the Free Software Foundation/GNU projects, Info is the biggest
abomination.
I'm actually interested in *why* you dislike Info. You might think the
reasons are obvious, but they're not obvious to me.
- it forces me into a GNU emacs like viewer in order to find information;
the assumption is that everyone likes the emacs style of interaction
and everyone is familiar with it.
man pages use your existing PAGER
Fair enough. info documents are usually viewed from within emacs
(C-x i invokes the "info" function) or from the separate "info" command, which uses emacs-like keybindings by default.
(Of course that's not an issue for those of us who don't mind
emacs-style keybindings. I use vim for editing, but I'm typing
this message in emacs.)
[...]
- it subdivides everything into very tiny sections (in all fairness,
this could be an author style guide problem and not something
intrinsic to info per se)
This leads to information being balkanized into tiny sections and
forces you to navigate between them instead of just pressing
SPACEBAR to scroll down in the document or use your PAGER's search
commands for locating text.
I haven't seen that in the info documents I use most (bash, gcc).
The sections seem to be of a reasonable size, and you can still search
across the entire document -- and if you press spacebar repeatedly, info
will go through (all sections of) the document.
[...]
This leads to information being balkanized into tiny sections andIn INFO when you just press the SPACEBAR, it indeed scrolls down through
forces you to navigate between them instead of just pressing
SPACEBAR to scroll down in the document or use your PAGER's search
commands for locating text.
legalize+jeeves@mail.xmission.com (Richard) writes:
[...]
This leads to information being balkanized into tiny sections andIn INFO when you just press the SPACEBAR, it indeed scrolls down through
forces you to navigate between them instead of just pressing
SPACEBAR to scroll down in the document or use your PAGER's search
commands for locating text.
the whole document and the extremly complicated and obscur command to
search the whole document is C-s. You seem to have a strong opinion on something you're not curious about. Just say you don't care and move
on. And by the way the MAN's pager has also some commands that 99% people will never use.
On 28.08.2025 23:41, Keith Thompson wrote:[...]
(C-x i invokes the "info" function) or from the separate "info" command,
which uses emacs-like keybindings by default.
(Of course that's not an issue for those of us who don't mind
emacs-style keybindings. I use vim for editing, but I'm typing
this message in emacs.)
This is something that really astonishes me. Emacs and Vi(m) are
so fundamentally different that I wonder why you like both sorts
of editing. (I could only explain that if you'd used only subsets
of the powerful editing capabilities of one of these editors. But
speculating here might sound offending and that's not intended.)
Myself I certainly prefer to use one powerful editor (I'm a Vim
user) and if I use other tools I try to configure those that they
also use Vi(m) as underlying editor. For example in shell I set
'set -o vi', and for HTML text-input areas I used an its-all-text
plugin to facilitate that, etc.
I use vim as my main editor, and I'm much more comfortable with it
for editing files. I use emacs mostly because it provides the Gnus newsreader, which I like -- and I'm mostly reading and writing text,
not modifying it. [...]
I use emacs-style keybindings in bash. I think I've tried "set
-o vi", but I found it inconvenient. Perhaps entering and leaving
"insert" mode is less of a burden for editing files and more of a
burden when editing one-line bash commands? Not sure.
Richard listed the things he dislikes about Info *because I asked himI'm glad that you doesn't mind that his "technical" argument are based on his lack of knowledge of how Info works but I don't disagree with him
to*. And it's hardly surprising that someone who dislikes a tools isn't going to have taken the time to learn all its features. BTW, both '/'
and Ctrl-S perform searches in the "info" command, with some subtle differences.
As I said, I never knew about nor worked with
these /usr/share/doc information; I'm curious.
As I said, I never knew about nor worked with
these /usr/share/doc information; I'm curious.
Often, one can find information there which is distributed with the original sources, think about README's and examples. Apart from that, more in-depth documentation can be found there.
That's the case on Debian, at least, with the "more in-depth" documentation often distributed in a package seperate from the package holding the binaries.
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
As I said, I never knew about nor worked with
these /usr/share/doc information; I'm curious.
On 2025-08-28, Bob Vloon <usenet@bananacorp.nl.invalid> wrote:
Often, one can find information there which is distributed with the original >> sources, think about README's and examples. Apart from that, more in-depth >> documentation can be found there.
That's the case on Debian, at least, with the "more in-depth" documentation >> often distributed in a package seperate from the package holding the binaries.
Likewise, on Fedora. Some packages have full manuals there. But ...
1) You never know what is there, or even if there is anything there for
the package you need help with.
2) There is not really a consistent mapping between package names and
folder/file names in /usr/share/doc
3) Even if it not in /usr/share/doc on your system, it may in fact be
available in your repos, but good luck figuring out what the
package is called.
So usually, it it simpler to just Google or ask on the support forum for
the distro.
Ad 2) In Debian, I have to disagree. The package maintainers seem to be doing a nice job here. For example, if I want to know something about INN2, I can refer to /usr/share/doc/inn2 - and that is the name of the package. Most of the time (I'm introducing some uncertainty here - but that's because I'm not familiar with all packages on my system ;) ) I'm able to find the right directory.[...]
[Please do not mail me a copy of your followup]
Keith Thompson <Keith.S.Thompson+u@gmail.com> spake the secret code
<87v7m8m3qv.fsf@example.invalid> thusly:
legalize+jeeves@mail.xmission.com (Richard) writes:
[...]
Of all the Free Software Foundation/GNU projects, Info is the biggest
abomination.
I'm actually interested in *why* you dislike Info. You might think the >>reasons are obvious, but they're not obvious to me.
- it forces me into a GNU emacs like viewer in order to find information;
the assumption is that everyone likes the emacs style of interaction
and everyone is familiar with it.
man pages use your existing PAGER
- it subdivides everything into very tiny sections (in all fairness,
this could be an author style guide problem and not something
intrinsic to info per se)
- It assumes that those people wishing to view the document as a whole
have access to LaTeX, etc., and are willing to process the document as
such.
man pages are typically preformatted into something your PAGER can
scrub through without the user having to know anything about the man
macro package, *roff processors, etc.
legalize+jeeves@mail.xmission.com (Richard) writes:
[...]
This leads to information being balkanized into tiny sections andIn INFO when you just press the SPACEBAR, it indeed scrolls down through
forces you to navigate between them instead of just pressing
SPACEBAR to scroll down in the document or use your PAGER's search
commands for locating text.
the whole document and the extremly complicated and obscur command to
search the whole document is C-s. You seem to have a strong opinion on something you're not curious about. Just say you don't care and move
on. And by the way the MAN's pager has also some commands that 99% people will never use.
[...]
I use something called "mnpgr" I wrote myself, at least on systems where
I have installed it.
mnpgr runs man in such a way that it produces the terminal escape
sequences. It then translates these into a special notation.
Vim is then invoked on the result, along with a syntax definition
for concealing the special notation and highlighting according to it.
mnpgr also remembers your position in every man man page you have
viewed before. If you type "man foo" it jumps to the line number in the
foo man page where you were the last time you viewed foo under the same terminal width that you are using now.
(Just recently I looked for a 'man' tool that invokes vi; thought I'd
have such a beast stored in my environment but didn't find anything.)
On Fri, 29 Aug 2025 12:12:45 -0000 (UTC), Lars Poulsen wrote:
2) There is not really a consistent mapping between package names and
folder/file names in /usr/share/doc
Listing the contents of the package will show where all the files go, including documentation files.
On 30.08.2025 00:57, Kaz Kylheku wrote:
[...]
I use something called "mnpgr" I wrote myself, at least on systems where
I have installed it.
mnpgr runs man in such a way that it produces the terminal escape
sequences. It then translates these into a special notation.
Vim is then invoked on the result, along with a syntax definition
for concealing the special notation and highlighting according to it.
mnpgr also remembers your position in every man man page you have
viewed before. If you type "man foo" it jumps to the line number in the
foo man page where you were the last time you viewed foo under the same
terminal width that you are using now.
Sounds interesting. Is it a standalone tool? Is it publicly available?
(Just recently I looked for a 'man' tool that invokes vi; thought I'd
have such a beast stored in my environment but didn't find anything.)
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
[...]
(Just recently I looked for a 'man' tool that invokes vi; thought I'd
have such a beast stored in my environment but didn't find anything.)
Here's something I just whipped up:
```
#!/bin/sh
tmpfile="$(mktemp)"
man "$@" >"$tmpfile"
vim -R "$tmpfile"
rm "$tmpfile"
When the output of "man" is not a terminal, it discards formatting characters, making the result easier to read.
On 2025-08-30, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
On 30.08.2025 00:57, Kaz Kylheku wrote:
I use something called "mnpgr" I wrote myself, [...]
Sounds interesting. Is it a standalone tool? Is it publicly available?
Yes: https://www.kylheku.com/cgit/mnpgr/about/
The main part of it which does the filtering is writtten in TXR Lisp;
someone who doesn't want that dependency will have to rewrite it
in something else.
[...]
(Just recently I looked for a 'man' tool that invokes vi; thought I'd
have such a beast stored in my environment but didn't find anything.)
It is easy to to badly or so-so (and for some people that would be fine).
One early approach I used was [...]
Actually, wait, I think this was more or less simply just:
man whatever | vim -
vim somehow recognizes the text as a man page, and provides some basic coloring based on structural heuristics or whatever. [...]
[...]
On 30.08.2025 03:35, Kaz Kylheku wrote:
man whatever | vim -
Yeah. Maybe for my poor-man's use that might suffice already.
vim somehow recognizes the text as a man page, and provides some basic
coloring based on structural heuristics or whatever. [...]
Hmm.. - not in my environment. (I have to set the syntax explicitly.)
No biggie, though.
On 30.08.2025 03:35, Kaz Kylheku wrote:
On 2025-08-30, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
On 30.08.2025 00:57, Kaz Kylheku wrote:
I use something called "mnpgr" I wrote myself, [...]
Sounds interesting. Is it a standalone tool? Is it publicly available?
Yes: https://www.kylheku.com/cgit/mnpgr/about/
The main part of it which does the filtering is writtten in TXR Lisp;
Ah, I already suspected so. :-) That's why I was asking. ;-)
someone who doesn't want that dependency will have to rewrite it
in something else.
[...]
(Just recently I looked for a 'man' tool that invokes vi; thought I'd
have such a beast stored in my environment but didn't find anything.)
It is easy to to badly or so-so (and for some people that would be fine).
One early approach I used was [...]
Actually, wait, I think this was more or less simply just:
man whatever | vim -
Yeah. Maybe for my poor-man's use that might suffice already.
vim somehow recognizes the text as a man page, and provides some basic
coloring based on structural heuristics or whatever. [...]
Hmm.. - not in my environment. (I have to set the syntax explicitly.)
No biggie, though.
[...]
Thanks for your thorough elaboration!
Janis
[...]
Aha! The following in my ~/.vimrc is doing that:
:au BufWinEnter * if bufname("%") == "" && getline(3) == "NAME" | set ft=man | endif
If the buffer has no name (e.g. stdin capture), and the third line
is exactly NAME then turn on the "man" syntax highlighting
(which comes with Vim).
[...]
I use a function:
vman ()
{
COLUMNS=$((COLUMNS-5)) /usr/bin/man ${@-man} | col -bpx | iconv -c |
view -c 'set ft=man nomod' -c 'set noeb vb t_vb=' -c 'map q
<Esc>:q!<cr>' -c 'map i <nop>' -
}
which (mostly) works, sometimes having problem with fonts not being available.
On 30.08.2025 14:28, Chris Elvidge wrote:
[...]
I use a function:
vman ()
{
COLUMNS=$((COLUMNS-5)) /usr/bin/man ${@-man} | col -bpx | iconv -c |
view -c 'set ft=man nomod' -c 'set noeb vb t_vb=' -c 'map q
<Esc>:q!<cr>' -c 'map i <nop>' -
}
which (mostly) works, sometimes having problem with fonts not being
available.
Works fine for me. (Though I'll need to look up some of
the settings you used to fully understand it.) - Thanks.
BTW, why did you use multiple '-c' parameters for 'set'?
Janis