Move color functions from runtests.lua into a separate "termfmt" module