News for hackers. Stuff that matters.
Re:OpenBSD 6.0: why and how by davidcollantes on Thursday September 01, 2016 @11:04AM (#12405787)
Do you know how to add coloring to the man pages? I have tried: https://gist.github.com/boredzo/06271944983864da495d30363835... to no avail. I have played with all terminals, with more, with less, nothing affects the results.
Re:OpenBSD 6.0: why and how by groovy2shoes on Friday September 02, 2016 @03:19AM (#12411457)
OpenBSD 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/

Re:OpenBSD 6.0: why and how by notalaser on Thursday September 01, 2016 @11:07AM (#12405817)
I had no idea you could even get coloured manpages :-). Sorry, I don't know what to say.