Fix resetting ANSI colours when truncating.

Fixes lihaoyi/utest#18
Merge pull request #20 from dwijnand/fix-colour-bleed

Fix resetting ANSI colours when truncating.