Generic line-oriented command interpreter.
