Adding support for readline editing; interrupt handling