Behave a bit more like GNU Readline