Add readline and tab completion support for text interface (up/down arrows now werks)