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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=80710 --- shadow/80710 2007-02-02 22:30:23.000000000 -0500 +++ shadow/80710.tmp.12788 2007-02-02 22:30:24.000000000 -0500 @@ -0,0 +1,52 @@ +Bug#: 80710 +Product: Mono: Class Libraries +Version: 1.2 +OS: GNU/Linux [Other] +OS Details: FC5 64bit +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: System +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Console.Readline does not interpret backspace + +Description of Problem: +Console.Realine() will read one line of user input. In Windows, backspace +can be used to delete mistyped characters. In Mono, this appears to work on +the screen, but the wrong data is returned. + +Steps to reproduce the problem: + //On linux, backspace is either sent as ctrl-h (0x08) or ctrl-? (0x7f). + //It depends on the terminal. + System.Console.WriteLine("Type in: a<ctrl-h>b c<ctrl-?>d"); + string line = System.Console.ReadLine(); + System.Console.WriteLine("The line is: {0}", line); + System.Console.WriteLine("In hexadecimal the line is:"); + for (int i = 0; i < line.Length; i++) + { + if (i != 0 && i % 16 == 0) + System.Console.WriteLine(); + System.Console.Write(" {0,4:X}", (int)line[i]); + } + System.Console.WriteLine(); + +Actual Results: [EMAIL PROTECTED] ~]# mono ReadLine.exe +Type in: a<ctrl-h>b c<ctrl-?>d +b d +The line is: b cd +In hexadecimal the line is: + 61 8 62 20 63 0 64 [EMAIL PROTECTED] ~]# + +Expected Results: +The text output should read "b d". The hexadecimal output should be 62 20 64. + +How often does this happen? +Always _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
