Author: fejj
Date: 2007-05-11 16:14:05 -0400 (Fri, 11 May 2007)
New Revision: 77256

Modified:
   branches/mono-1-2-4/mcs/class/corlib/System/ChangeLog
   branches/mono-1-2-4/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: branches/mono-1-2-4/mcs/class/corlib/System/ChangeLog
===================================================================
--- branches/mono-1-2-4/mcs/class/corlib/System/ChangeLog       2007-05-11 
20:10:47 UTC (rev 77255)
+++ branches/mono-1-2-4/mcs/class/corlib/System/ChangeLog       2007-05-11 
20:14:05 UTC (rev 77256)
@@ -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-04-24  Jeffrey Stedfast  <[EMAIL PROTECTED]>
 
        Fixes the last of the bugs listed in bug #77525

Modified: branches/mono-1-2-4/mcs/class/corlib/System/TermInfoDriver.cs
===================================================================
--- branches/mono-1-2-4/mcs/class/corlib/System/TermInfoDriver.cs       
2007-05-11 20:10:47 UTC (rev 77255)
+++ branches/mono-1-2-4/mcs/class/corlib/System/TermInfoDriver.cs       
2007-05-11 20:14:05 UTC (rev 77256)
@@ -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

Reply via email to