[Mono-bugs] [Bug 79319][Nor] New - Console.SetCursorPosition doesn't sets the cursor to a remembered position

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Sep 7 17:11:24 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by knocte at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=79319

--- shadow/79319	2006-09-07 17:11:24.000000000 -0400
+++ shadow/79319.tmp.18996	2006-09-07 17:11:24.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 79319
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: SUSE Linux 10.1
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: knocte at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Console.SetCursorPosition doesn't sets the cursor to a remembered position
+
+namespace mano
+{
+	class MainClass
+	{
+		public static void Main(string[] args)
+		{
+			Console.WriteLine("__MONO BUG TESTCASE__");
+			Console.Write("String to be changed: ");
+			int iLeft = Console.CursorLeft;
+			int iTop = Console.CursorTop;
+			Console.WriteLine("FIRST_VALUE");
+			Console.WriteLine("Now, after pressing any key, the String will change");
+			Console.ReadLine();
+			Console.SetCursorPosition(iLeft, iTop);
+			Console.WriteLine("SECOND_VALUE");
+		}
+	}
+} 
+
+
+Expected results (results from MS.NET):
+The string "FIRST_VALUE" is overwritten by the string "SECOND_VALUE".
+
+Actual results (on Mono, with Linux):
+- SECOND_VALUE is written two lines down (if using a terminal: CTRL+ALT+F1)
+- Very strange results when using GnomeTerminal, Konsole or XTerm.


More information about the mono-bugs mailing list