From 0d6b0b53ff3a6ef2592c18b2d1c519d0ccfcbc15 Mon Sep 17 00:00:00 2001 From: Tigger Kindel Date: Fri, 21 Jul 2023 08:15:22 -0600 Subject: [PATCH] Removed clear scfreeen esc seq --- Terminal.Gui/ConsoleDrivers/WindowsDriver.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Terminal.Gui/ConsoleDrivers/WindowsDriver.cs b/Terminal.Gui/ConsoleDrivers/WindowsDriver.cs index 152b401b7..aaf964c56 100644 --- a/Terminal.Gui/ConsoleDrivers/WindowsDriver.cs +++ b/Terminal.Gui/ConsoleDrivers/WindowsDriver.cs @@ -1476,19 +1476,6 @@ namespace Terminal.Gui { Right = (short)Cols }; WinConsole.ForceRefreshCursorVisibility (); - - // ANSI ESC "[xJ" Clears part of the screen. - // If n is 0 (or missing), clear from cursor to end of screen. - // If n is 1, clear from cursor to beginning of the screen. - // If n is 2, clear entire screen (and moves cursor to upper left on DOS ANSI.SYS). - // If n is 3, clear entire screen and delete all lines saved in the scrollback buffer - // DO NOT USE 3J - even with the alternate screen buffer, it clears the entire scrollback buffer - if (EnableConsoleScrolling) { - // This destroys the back-buffer. But it only happens if the app is resized - Console.Out.Write ("\x1b[3J"); - } else { - Console.Out.Write ("\x1b[0J"); - } } public override void UpdateOffScreen ()