fixing output handling of delete-line and beginning-of-line
Merge pull request #106 from jaredly/ansi-fix

fixing output handling of delete-line and beginning-of-line