예제 #1
0
        void Setup()
        {
            Cols = Math.Max(Options.Cols, MINIMUM_COLS);
            Rows = Math.Max(Options.Rows, MINIMUM_ROWS);

            buffers      = new BufferSet(this);
            input        = new InputHandler(this);
            cursorHidden = false;

            // modes
            applicationKeypad  = false;
            applicationCursor  = false;
            originMode         = false;
            InsertMode         = false;
            Wraparound         = true;
            bracketedPasteMode = false;

            // charset
            charset  = null;
            gcharset = 0;
            gLevel   = 0;

            CurAttr = CharData.DefaultAttr;

            // TODO REST
        }
예제 #2
0
        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();
        }