Implement delete key for local console

user_profiles
Justin Clark-Casey (justincc) 2013-05-09 23:11:37 +01:00
parent 292a6037ad
commit ff0332730d
1 changed files with 15 additions and 0 deletions

View File

@ -420,6 +420,21 @@ namespace OpenSim.Framework.Console
SetCursorLeft(0);
m_cursorYPosition = SetCursorTop(m_cursorYPosition);
if (m_echo)
System.Console.Write("{0}{1} ", prompt, m_commandLine);
else
System.Console.Write("{0}", prompt);
break;
case ConsoleKey.Delete:
if (m_cursorXPosition == m_commandLine.Length)
break;
m_commandLine.Remove(m_cursorXPosition, 1);
SetCursorLeft(0);
m_cursorYPosition = SetCursorTop(m_cursorYPosition);
if (m_echo)
System.Console.Write("{0}{1} ", prompt, m_commandLine);
else