You can use different foreground and background colors in terminal using ColorChalks module.
A tool for printing colored strings in the terminal