Clear the screen with redraw and other bug fixes.

- Clear the screen with redraw.
- Correct crash for bad regex compiles
- Add ctrl-D for exit.