Fix resetting ANSI colours when truncating.

Fixes lihaoyi/utest#18