public Terminal(ITerminalDelegate tdel = null, TerminalOptions options = null) { if (options == null) { options = new TerminalOptions(); } if (tdel == null) { tdel = new SimpleTerminalDelegate(); } Options = options; Setup(); tdelegate = tdel; }
public Terminal(ITerminalDelegate terminalDelegate = null, TerminalOptions options = null) { this.terminalDelegate = terminalDelegate ?? new SimpleTerminalDelegate(); controlCodes = new ControlCodes() { Send8bit = false }; titleStack = new List <string> (); iconTitleStack = new List <string> (); input = new InputHandler(this); Options = options ?? new TerminalOptions(); Cols = Math.Max(Options.Cols, MINIMUM_COLS); Rows = Math.Max(Options.Rows, MINIMUM_ROWS); buffers = new BufferSet(this); Setup(); }