Line editor for interactive commands