Add a function to write a message with a color and automatically add the reset character at the end