Browse Source

Add support for Suspend.

BDisp 1 year ago
parent
commit
78de7b116a
1 changed files with 10 additions and 0 deletions
  1. 10 0
      Terminal.Gui/ConsoleDrivers/NetDriver.cs

+ 10 - 0
Terminal.Gui/ConsoleDrivers/NetDriver.cs

@@ -1027,6 +1027,16 @@ namespace Terminal.Gui {
 
 		public override void Suspend ()
 		{
+			if (Environment.OSVersion.Platform != PlatformID.Unix) {
+				return;
+			}
+
+			StopReportingMouseMoves ();
+			Console.ResetColor ();
+			Console.Clear ();
+			Platform.Suspend ();
+			Application.Refresh ();
+			StartReportingMouseMoves ();
 		}