Switch to editline.
Trap SIGWINCH when using readline.