|
|
@@ -100,8 +100,6 @@ internal partial class WindowsOutput : OutputBase, IConsoleOutput
|
|
|
private readonly nint _outputHandle;
|
|
|
private nint _screenBuffer;
|
|
|
private readonly bool _isVirtualTerminal;
|
|
|
- private readonly ConsoleColor _foreground;
|
|
|
- private readonly ConsoleColor _background;
|
|
|
|
|
|
public WindowsOutput ()
|
|
|
{
|
|
|
@@ -119,16 +117,8 @@ internal partial class WindowsOutput : OutputBase, IConsoleOutput
|
|
|
|
|
|
if (_isVirtualTerminal)
|
|
|
{
|
|
|
- if (Environment.GetEnvironmentVariable ("VSAPPIDNAME") is null)
|
|
|
- {
|
|
|
- //Enable alternative screen buffer.
|
|
|
- Console.Out.Write (EscSeqUtils.CSI_SaveCursorAndActivateAltBufferNoBackscroll);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- _foreground = Console.ForegroundColor;
|
|
|
- _background = Console.BackgroundColor;
|
|
|
- }
|
|
|
+ //Enable alternative screen buffer.
|
|
|
+ Console.Out.Write (EscSeqUtils.CSI_SaveCursorAndActivateAltBufferNoBackscroll);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
@@ -512,18 +502,8 @@ internal partial class WindowsOutput : OutputBase, IConsoleOutput
|
|
|
|
|
|
if (_isVirtualTerminal)
|
|
|
{
|
|
|
- if (Environment.GetEnvironmentVariable ("VSAPPIDNAME") is null)
|
|
|
- {
|
|
|
- //Disable alternative screen buffer.
|
|
|
- Console.Out.Write (EscSeqUtils.CSI_RestoreCursorAndRestoreAltBufferWithBackscroll);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- // Simulate restoring the color and clearing the screen.
|
|
|
- Console.ForegroundColor = _foreground;
|
|
|
- Console.BackgroundColor = _background;
|
|
|
- Console.Clear ();
|
|
|
- }
|
|
|
+ //Disable alternative screen buffer.
|
|
|
+ Console.Out.Write (EscSeqUtils.CSI_RestoreCursorAndRestoreAltBufferWithBackscroll);
|
|
|
}
|
|
|
else
|
|
|
{
|