public TerminalBase(IStreamNotifier streamNotifier) { Stream = streamNotifier.Stream; writer = new BinaryWriter(streamNotifier.Stream, Encoding.UTF8, true); currentBuffer = screenBuffer; AutoWrapMode = true; }
public void ChangeToScreen(bool alternate) { if (alternate) { currentBuffer = altScreenBuffer; foreach (var line in currentBuffer.Lines) { line.DeleteCharacters(0, line.Length); } } else { currentBuffer = screenBuffer; } ScreenChanged?.Invoke(this, EventArgs.Empty); }
public void ChangeToScreen(bool alternate) { if (alternate) { currentBuffer = altScreenBuffer; foreach (var line in currentBuffer.Lines) { line.DeleteCharacters(0, line.Length); } } else currentBuffer = screenBuffer; ScreenChanged?.Invoke(this, EventArgs.Empty); }
public TerminalBase(IStreamNotifier streamNotifier) { Stream = streamNotifier.Stream; writer = new BinaryWriter(streamNotifier.Stream, Encoding.UTF8, true); currentBuffer = screenBuffer; AutoWrapMode = true; }