Monday, March 02, 2020

Re: man to render pure text? (or a pipe in vi macros ?)

hello,

> Try the mandoc manual page, man is just a front-end to it. Both
> man/mandoc support -T option and you can specify ascii/utf8 to get the
> formatted page but it still adds all escape sequences.

indeed, that's why i asked

> The documentation
> says to pipe the output to col -b to suppress them (I think what you did
> with the alternative fmt command).

i felt dumb reading this as i gave a try to the mandoc man. but i just
double checked:

man mandoc|col -b|grep -w col

gives me nothing. can you please tell me what documentation explicitly refers
to col -b? i can probably learn more from it.

regards
marc

No comments:

Post a Comment