Class to control a console(Command-Line)