Add test for issue 25
Fix destructive reset marker handling (issue 25)
Fix ANSI code decoding (issue 25)
Merge pull request #28 from hartwork/issue_25

Fix issue 25