Reset tty after divine-size
use save/restore in prompt rather than ramming to the left
flush before exit in echo [xxx: this needs to happen on exit]