I wrote a little script to report if a terminal has a dark or light background. https://github.com/rocky/bash-term-background Anyone want to convert this to zsh so zsh users can do the same thing? See https://stackoverflow.com/questions/12644730/error-in-compilation-and-linking-using-cmake-with-gcov for the discussion of what's involved and what works (nd what doesn't.