From 834bbc150be2d96bd70bf0e68f9b9a07c9c50cbc Mon Sep 17 00:00:00 2001 From: BDisp Date: Wed, 9 Aug 2023 01:05:31 +0100 Subject: [PATCH] Fixes #2793. Windows Terminal still show vertical scroll bar using WindowsDriver. --- Terminal.Gui/ConsoleDrivers/WindowsDriver.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Terminal.Gui/ConsoleDrivers/WindowsDriver.cs b/Terminal.Gui/ConsoleDrivers/WindowsDriver.cs index 71bd85a97..8e5526409 100644 --- a/Terminal.Gui/ConsoleDrivers/WindowsDriver.cs +++ b/Terminal.Gui/ConsoleDrivers/WindowsDriver.cs @@ -1436,6 +1436,8 @@ namespace Terminal.Gui { // wipe out the backscroll buffer when the application exits. Console.Out.Write ("\x1b[?1047h"); + Console.Out.Write ("\x1b[3J"); + var winSize = WinConsole.GetConsoleOutputWindow (out Point pos); cols = winSize.Width; rows = winSize.Height; @@ -1473,6 +1475,8 @@ namespace Terminal.Gui { Bottom = (short)Rows, Right = (short)Cols }; + Console.Out.Write ("\x1b[3J"); + WinConsole.ForceRefreshCursorVisibility (); }