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 }; }
public Console(CellSurface cellData) : base(cellData, new SpriteBatch(Engine.Device)) { _virtualCursor = new Cursor(this); }
private void AfterDeserialized(StreamingContext context) { _virtualCursor = new Cursor(this); _virtualCursor.Position = _virtualCursorPosition; }
public Console(int width, int height) : base(new CellSurface(width, height), new SpriteBatch(Engine.Device)) { _virtualCursor = new Cursor(this); }