Reimplemented cmdline interface with readline()