Ejemplo n.º 1
0
        public AbstractTerminal(TerminalInitializeInfo info)
        {
            //TerminalEmulatorPlugin.Instance.LaterInitialize();
            _session = info.Session;

            // //_invalidateParam = new InvalidateParam();
            _document = new TerminalDocument(info.InitialWidth, info.InitialHeight);
            //_document.SetOwner(_session.ISession);
            _afterExitLockActions = new List <AfterExitLockDelegate>();

            _decoder      = new ISO2022CharDecoder(this, EncodingProfile.Get(info.Session.TerminalSettings.Encoding));
            _terminalMode = TerminalMode.Normal;
            _logService   = new LogService(info.TerminalParameter, _session.TerminalSettings, _session.TerminalOptions);
            //_promptRecognizer = new PromptRecognizer(this);

            //if (info.Session.TerminalSettings.LogSettings != null)
            //{
            //    _logService.ApplyLogSettings(_session.TerminalSettings.LogSettings, false);
            //}

            //event handlers
            ITerminalSettings ts = info.Session.TerminalSettings;

            ts.ChangeEncoding  += delegate(EncodingType t) { this.Reset(); };
            _document.DebugFlag = ts.DebugFlag;

            _document.LineFeedRule = GetTerminalSettings().LineFeedRule; //(Telnet.LineFeedRule)
            //ToDo: Set Encoding
            //_document.Encoding = Encoding.GetEncoding("iso-2022-jp")
        }
Ejemplo n.º 2
0
        private readonly int[] _xtermSavedCol = new int[2];             // { main, alternate }

        public XTerm(TerminalInitializeInfo info) : base(info)
        {
            _wrapAroundMode              = true;
            _tabStops                    = new bool[GetDocument().TerminalWidth];
            _isAlternateBuffer           = false;
            _savedMode_isAlternateBuffer = false;
            InitTabStops();
        }
Ejemplo n.º 3
0
        //Ú‘±‚ÌŽí—Þ‚É‚æ‚Á‚ăGƒXƒP[ƒvƒV[ƒPƒ“ƒX‚̉ðŽß‚ð•Ï‚¦‚é•”•ª
        //protected bool _homePositionOnCSIJ2;

        public VT100Terminal(TerminalInitializeInfo info) : base(info)
        {
            _insertMode           = false;
            _scrollRegionRelative = false;
            _inverse           = false;
            _bgColorHasbeenSet = false;
            //bool sfu = _terminalSettings is SFUTerminalParam;
            //_homePositionOnCSIJ2 = sfu;
        }
Ejemplo n.º 4
0
        //private IModalCharacterTask _currentCharacterTask;

        public EscapeSequenceTerminal(TerminalInitializeInfo info) : base(info)
        {
            _escapeSequence    = new StringBuilder();
            _processCharResult = ProcessCharResult.Processed;
        }
Ejemplo n.º 5
0
 //XTERM‚ð•\‚ɏo‚³‚È‚¢‚½‚߂̃ƒ\ƒbƒh
 public static AbstractTerminal Create(TerminalInitializeInfo info)
 {
     return(new XTerm(info));
 }