Exemplo n.º 1
0
        public XtermTerminal(IStreamNotifier streamNotifier)
            : base(streamNotifier)
        {
            foreach (var key in Enum.GetValues(typeof(XtermDecMode)).Cast <XtermDecMode>())
            {
                privateModes.Add(key, false);
            }
            privateModes[XtermDecMode.ShowCursor]      = true;
            privateModes[XtermDecMode.UseNormalScreen] = true;
            privateModes[XtermDecMode.Wraparound]      = true;

            parser = new XtermStreamParser(streamNotifier);
            parser.SequenceReceived += Parser_SequenceReceived;
        }
Exemplo n.º 2
0
        private bool disposedValue = false;         // To detect redundant calls

        protected new virtual void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            if (!disposedValue)
            {
                if (disposing)
                {
                    parser.Dispose();
                }

                parser = null;

                disposedValue = true;
            }
        }
Exemplo n.º 3
0
        protected new virtual void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            if (!disposedValue)
            {
                if (disposing)
                {
                    parser.Dispose();
                }

                parser = null;

                disposedValue = true;
            }
        }
Exemplo n.º 4
0
        public XtermTerminal(IStreamNotifier streamNotifier)
            : base(streamNotifier)
        {
            foreach (var key in Enum.GetValues(typeof(XtermDecMode)).Cast<XtermDecMode>())
                privateModes.Add(key, false);
            privateModes[XtermDecMode.ShowCursor] = true;
            privateModes[XtermDecMode.UseNormalScreen] = true;
            privateModes[XtermDecMode.Wraparound] = true;

            parser = new XtermStreamParser(streamNotifier);
            parser.SequenceReceived += Parser_SequenceReceived;
        }