示例#1
0
 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;
 }
示例#2
0
 private readonly TextDisplay display; //< required for scrolling
 /// <summary>
 /// Construct the cursor for given terminal
 /// </summary>
 public DisplayCursor(TextDisplay display)
 {
     this.display = display;
 }
示例#3
0
 void Start()
 {
     targetResolution = new TargetResolution(width, height);
     textDisplay      = new TextDisplay(columns, lines);
     textDisplay.WriteLine("Display " + name);
 }