Fix for colour codes messing up the length of the output.