Minor cleanup.
Add delete line escape sequence.
Refactor to get arrow keys working.