public TerminalController(ITerminalBoxProvider terminalBoxProvider) { mainWindow = terminalBoxProvider; mainWindow.GetTextBox().PreviewKeyDown += (sender, e) => { HandleInput(e); }; historyCommand = new HistoryCommand(); cmdReader = new CmdReader(); cmdReader.Register(this); terminalContentMgr = new TerminalContentMgr(this); tabHandler = new TabHandler(this); }
public TabHandler(TerminalContentMgr terminal) { this.terminal = terminal; }