TerminalViewDelegate