fix printing chr colour codes