Bläddra i källkod

2010-01-07 Zoltan Varga <[email protected]>

	* TermInfoDriver.cs (GetCursorPosition): Avoid waiting 1 sec here.

svn path=/trunk/mcs/; revision=149161
Zoltan Varga 16 år sedan
förälder
incheckning
5fe5dd10bf
2 ändrade filer med 5 tillägg och 1 borttagningar
  1. 4 0
      mcs/class/corlib/System/ChangeLog
  2. 1 1
      mcs/class/corlib/System/TermInfoDriver.cs

+ 4 - 0
mcs/class/corlib/System/ChangeLog

@@ -1,3 +1,7 @@
+2010-01-07  Zoltan Varga  <[email protected]>
+
+	* TermInfoDriver.cs (GetCursorPosition): Avoid waiting 1 sec here.
+
 2010-01-03  Zoltan Varga  <[email protected]>
 
 	* Array.cs: Fix ArrayReadOnlyList.CopyTo. Fixes #564095.

+ 1 - 1
mcs/class/corlib/System/TermInfoDriver.cs

@@ -478,7 +478,7 @@ namespace System {
 			int b;
 
 			// First, get any data in the input buffer.  Merely reduces the likelyhood of getting an error
-			int inqueue = ConsoleDriver.InternalKeyAvailable (1000);
+			int inqueue = ConsoleDriver.InternalKeyAvailable (0);
 			while (inqueue-- > 0){
 				b = stdin.Read ();
 				AddToBuffer (b);