Fix a console log crash when color is on the edge.
Merge branch 'console-th'