support ansi.
Merge pull request #6 from stephenplusplus/master

Add ANSI support - fixes #5