Browse Source

Fixes #2793. Windows Terminal still show vertical scroll bar using WindowsDriver.

BDisp 2 years ago
parent
commit
834bbc150b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Terminal.Gui/ConsoleDrivers/WindowsDriver.cs

+ 4 - 0
Terminal.Gui/ConsoleDrivers/WindowsDriver.cs

@@ -1436,6 +1436,8 @@ namespace Terminal.Gui {
 				// wipe out the backscroll buffer when the application exits.
 				// wipe out the backscroll buffer when the application exits.
 				Console.Out.Write ("\x1b[?1047h");
 				Console.Out.Write ("\x1b[?1047h");
 
 
+				Console.Out.Write ("\x1b[3J");
+
 				var winSize = WinConsole.GetConsoleOutputWindow (out Point pos);
 				var winSize = WinConsole.GetConsoleOutputWindow (out Point pos);
 				cols = winSize.Width;
 				cols = winSize.Width;
 				rows = winSize.Height;
 				rows = winSize.Height;
@@ -1473,6 +1475,8 @@ namespace Terminal.Gui {
 				Bottom = (short)Rows,
 				Bottom = (short)Rows,
 				Right = (short)Cols
 				Right = (short)Cols
 			};
 			};
+			Console.Out.Write ("\x1b[3J");
+
 			WinConsole.ForceRefreshCursorVisibility ();
 			WinConsole.ForceRefreshCursorVisibility ();
 		}
 		}