Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@novell.com>2007-05-12 00:14:05 +0400
committerJeffrey Stedfast <fejj@novell.com>2007-05-12 00:14:05 +0400
commit54a48bd9382685873cc92761b9cda8e5448e00a1 (patch)
tree8271b745b978b0f5908edfe62e34994c1545387f
parentcca83223cba56df577e8fad0541b601d17ed4403 (diff)
2007-05-11 Jeffrey Stedfast <fejj@novell.com>
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 svn path=/branches/mono-1-2-4/mcs/; revision=77256
-rw-r--r--mcs/class/corlib/System/ChangeLog9
-rw-r--r--mcs/class/corlib/System/TermInfoDriver.cs5
2 files changed, 14 insertions, 0 deletions
diff --git a/mcs/class/corlib/System/ChangeLog b/mcs/class/corlib/System/ChangeLog
index de980db7520..7ea40e03590 100644
--- a/mcs/class/corlib/System/ChangeLog
+++ b/mcs/class/corlib/System/ChangeLog
@@ -1,3 +1,12 @@
+2007-05-11 Jeffrey Stedfast <fejj@novell.com>
+
+ 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 <fejj@novell.com>
Fixes the last of the bugs listed in bug #77525
diff --git a/mcs/class/corlib/System/TermInfoDriver.cs b/mcs/class/corlib/System/TermInfoDriver.cs
index 56f05518e54..e65a079b5d0 100644
--- a/mcs/class/corlib/System/TermInfoDriver.cs
+++ b/mcs/class/corlib/System/TermInfoDriver.cs
@@ -353,6 +353,9 @@ namespace System {
IncrementX ();
break;
case ConsoleKey.Clear:
+ WriteConsole (clear);
+ cursorLeft = 0;
+ cursorTop = 0;
break;
case ConsoleKey.Enter:
break;
@@ -800,6 +803,8 @@ namespace System {
}
WriteConsole (clear);
+ cursorLeft = 0;
+ cursorTop = 0;
}
public void Beep (int frequency, int duration)