2007-04-16 Jeffrey Stedfast <fejj@novell.com>
authorJeffrey Stedfast <fejj@novell.com>
Mon, 16 Apr 2007 22:16:52 +0000 (22:16 -0000)
committerJeffrey Stedfast <fejj@novell.com>
Mon, 16 Apr 2007 22:16:52 +0000 (22:16 -0000)
commit6dfd1f7285858bd18e63f994e2f850456045aca7
tree6944ebbbae0155888c11a7fcee537ef51545823e
parent65fa42ad9cfb5c4c18568fc501506328dd3a3f6c
2007-04-16  Jeffrey Stedfast  <fejj@novell.com>

Fix for bug #80710 (and a bug I introduced in my last fix due to
this code assuming the underlying term echo state was always
false) and other buglets that I noticed.

* TermInfoDriver.cs (ReadLine): Set (term) Echo to false as we do
our own manual echoing which prevents ^H from getting displayed on
the screen when the user hits backspace.
(ReadLine): If the user hits Backspace and builder.Length is 0, DO
NOT echo the backspace back to the console, ever.
(ReadLine): Only echo characters back to the console if echo is
set to true. Seems the Echo ConsoleDriver property is a Mono
extension, and I'm assuming this is the intended behavior? I can't
see what else the Echo property would be useful for...

svn path=/trunk/mcs/; revision=75791
mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/TermInfoDriver.cs