public ScriptingHostRawUserInterface(ApplicationSettings settings)
 {
     Output          = new OutputBuffer();
     backgroundColor = settings.BackgroundColor;
     foregroundColor = settings.ForegroundColor;
     cursorPosition  = new Coordinates(0, 0);
     windowPosition  = new Coordinates(0, 0);
     cursorSize      = 1;
     bufferSize      = new Size(settings.HostWidth, Int32.MaxValue);
     windowSize      = bufferSize;
 }
Exemplo n.º 2
0
 public new void AddRange(IEnumerable <OutputLine> collection)
 {
     if (SilenceOutput)
     {
         if (SilencedOutput == null)
         {
             SilencedOutput = new OutputBuffer();
         }
         SilencedOutput.AddRange(collection);
     }
     else
     {
         lock (this)
         {
             base.AddRange(collection);
         }
     }
 }