Allow readline to work outside curses mode.

This change improves usability of command mode, since it's now possible to
view the output of previous commands while typing a new one - like any
other shell.