浏览代码

Fixes #931. Fixed the limit 25 lines issue. (#1254)

* Fixes #931. Fixed the limit 25 lines issue.

* Added some comments in the code that explain this.
BDisp 4 年之前
父节点
当前提交
993a255477
共有 1 个文件被更改,包括 8 次插入4 次删除
  1. 8 4
      Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs

+ 8 - 4
Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs

@@ -91,11 +91,15 @@ namespace Terminal.Gui {
 			SetCursorVisibility (CursorVisibility.Default);
 			SetCursorVisibility (CursorVisibility.Default);
 
 
 			Curses.endwin ();
 			Curses.endwin ();
+
+			// I'm commenting this because was used in a trying to fix the Linux hanging and forgot to exclude it.
 			// Clear and reset entire screen.
 			// Clear and reset entire screen.
-			Console.Out.Write ("\x1b[2J");
-			Console.Out.Flush ();
-			Console.Out.Write ("\x1b[1;25r");
-			Console.Out.Flush ();
+			//Console.Out.Write ("\x1b[2J");
+			//Console.Out.Flush ();
+
+			// Reports current cursor line and column.
+			//Console.Out.Write ("\x1b[1;25r");
+			//Console.Out.Flush ();
 
 
 			//Set cursor key to cursor.
 			//Set cursor key to cursor.
 			Console.Out.Write("\x1b[?1l");
 			Console.Out.Write("\x1b[?1l");