示例#1
0
        public AnsiWriter(Document ansiDocument, SurfaceEditor editor)
        {
            _ansiDoc = ansiDocument;
            _editor = editor;
            _cursor = new Cursor(editor);
            _cursor.UseStringParser = false;
            _cursor.DisableWordBreak = true;

            CharactersPerSecond = 800;

            _bytes = ansiDocument.AnsiBytes;
            _ansiState = new State();

            _ansiCodeBuilder = new StringBuilder(5);
            _ansiStringBuilder = new StringBuilder(40);

            BlinkEffect = new Blink() { BlinkSpeed = 0.35f };
        }
示例#2
0
 public Console(CellSurface cellData)
     : base(cellData, new SpriteBatch(Engine.Device))
 {
     _virtualCursor = new Cursor(this);
 }
示例#3
0
        private void AfterDeserialized(StreamingContext context)
        {
            _virtualCursor = new Cursor(this);

            _virtualCursor.Position = _virtualCursorPosition;
        }
示例#4
0
 public Console(int width, int height)
     : base(new CellSurface(width, height), new SpriteBatch(Engine.Device))
 {
     _virtualCursor = new Cursor(this);
 }