Move colour handling to value_to_char