define TerminalInterface