public void SetVisible(bool state) { isVisible = state; if (targetResolution.Width != width || targetResolution.Height != height) { targetResolution = new TargetResolution(width, height); } if (textDisplay.BufferWidth != columns || textDisplay.BufferWidth != lines) { textDisplay = new TextDisplay(columns, lines); } textDisplay.IsVisible = isVisible; textDisplay.IsTextVisible = isTextVisible; textDisplay.IsBackgroundVisible = isBackgroundVisible; textDisplay.IsCursorVisible = isCursorVisible; }
private readonly TextDisplay display; //< required for scrolling /// <summary> /// Construct the cursor for given terminal /// </summary> public DisplayCursor(TextDisplay display) { this.display = display; }
void Start() { targetResolution = new TargetResolution(width, height); textDisplay = new TextDisplay(columns, lines); textDisplay.WriteLine("Display " + name); }