Specifically, on OSX, in zsh.
I'd like it when say...
The background color is a darkish-yellow and the foreground is a charcoal gray/black. In this way I'm sure I'm looking at a man page and not some output.
I've tried to echo some escape codes before the command...
echo -e "\e[31m\e[43m"; man man
But I didn't get the desired effect, the background color "sort of" changed, but I get the impression man itself is producing escape codes that are canceling out mine.
I also tried digging around in the man.conf groff and grotty configuration but I didn't find anything, but that doesn't mean it isn't there.
I also thought maybe I could create a custom tty or something and export that but it's not clear to me how that would work either.