Author: fejj
Date: 2007-05-11 16:10:47 -0400 (Fri, 11 May 2007)
New Revision: 77255
Modified:
trunk/mcs/class/corlib/System/ChangeLog
trunk/mcs/class/corlib/System/TermInfoDriver.cs
Log:
2007-05-11 Jeffrey Stedfast <[EMAIL PROTECTED]>
Fixes bug #81540
* TermInfoDriver.cs (WriteSpecialKey): Actually clear the screen
and reset the cursor position to 0,0 when the key is
ConsoleKey.Clear.
(Clear): Reset the cursor position to 0,0
Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog 2007-05-11 20:06:22 UTC (rev
77254)
+++ trunk/mcs/class/corlib/System/ChangeLog 2007-05-11 20:10:47 UTC (rev
77255)
@@ -1,3 +1,12 @@
+2007-05-11 Jeffrey Stedfast <[EMAIL PROTECTED]>
+
+ Fixes bug #81540
+
+ * TermInfoDriver.cs (WriteSpecialKey): Actually clear the screen
+ and reset the cursor position to 0,0 when the key is
+ ConsoleKey.Clear.
+ (Clear): Reset the cursor position to 0,0
+
2007-05-09 Marek Safar <[EMAIL PROTECTED]>
* MulticastDelegate.cs: Fixed operators logic.
@@ -13,7 +22,8 @@
2007-04-27 Zoltan Varga <[EMAIL PROTECTED]>
- * Environment.cs (StackTrace): Avoid skipping a frame to be compatible
with MS.
+ * Environment.cs (StackTrace): Avoid skipping a frame to be
+ compatible with MS.
2007-04-25 Atsushi Enomoto <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/corlib/System/TermInfoDriver.cs
===================================================================
--- trunk/mcs/class/corlib/System/TermInfoDriver.cs 2007-05-11 20:06:22 UTC
(rev 77254)
+++ trunk/mcs/class/corlib/System/TermInfoDriver.cs 2007-05-11 20:10:47 UTC
(rev 77255)
@@ -353,6 +353,9 @@
IncrementX ();
break;
case ConsoleKey.Clear:
+ WriteConsole (clear);
+ cursorLeft = 0;
+ cursorTop = 0;
break;
case ConsoleKey.Enter:
break;
@@ -800,6 +803,8 @@
}
WriteConsole (clear);
+ cursorLeft = 0;
+ cursorTop = 0;
}
public void Beep (int frequency, int duration)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches