If you put those codes into your prompt string, it'll enforce them even if programs reset the colours with a "0m" command. Example:
prompt "*e[32;41;>1m<-- Your normal prompt here -->"
Obviously replace "<-- Your normal prompt here -->" with your preferred prompt format.