Simple command line editor with history