Implement delete key for local console
parent
292a6037ad
commit
ff0332730d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue