Some fixes to 'text' mode:

* Fix weird crash when printf characters appear in a line (I got a fatal
error from glibc "*** %n in writable segment detected ***" when including
a line which incidentally included "%n").
* Don't clobber the status line.
Merge pull request #207 from jugglerchris/master

Some fixes to 'text' mode: