4 ms·
Do you know how to add coloring to the man pages? I have tried: https://gist.github.com/boredzo/06271944983864da495d303638351ca8 https://gist.github.com/boredzo
by davidcollantes 10y ago
Do you know how to add coloring to the man pages? I have tried: https://gist.github.com/boredzo/06271944983864da495d303638351ca8 https://gist.github.com/boredzo/06271944983864da495d30363835... to no avail. I have played with all terminals, with more, with less, nothing affects the results.
- notalaser 10y agoI had no idea you could even get coloured manpages :-). Sorry, I don't know what to say.
- groovy2shoes 10y agoOpenBSD switched to its own version of man(1) a while back (it's called "mandoc", previously "mdocml" [0]). mandoc's own documentation is excellent and, if it supports color at all, it's likely documented in its own manpage (and also probably on its homepage). Note that if you're using the OpenBSD vtty (via wscons(4), at least), the default $TERM is `vt100`, which does not support color (beyond the cyan used to render italic text). I've had some luck setting $TERM to `vt220` to get more colors. In an xterm or something, this shouldn't be an issue. An alternative would be to install some other version of `man` (you'll probably also need `groff` from ports, though some other implementation of troff/nroff might also work). Frankly, though, I haven't seen colorized manpages before, so I'm not sure what else to tell you. [0]: http://mdocml.bsd.lv/ http://mdocml.bsd.lv/