aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Console/LocalConsole.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-05-09 23:11:37 +0100
committerJustin Clark-Casey (justincc)2013-05-09 23:11:37 +0100
commitff0332730d54cf23c53795a9e6bac0262b6c86c3 (patch)
tree64affac36962e9ebdcee4444ccd847ead0d954db /OpenSim/Framework/Console/LocalConsole.cs
parentminor: Remove unnecessary code that was generating warning in TestXInventoryD... (diff)
downloadopensim-SC-ff0332730d54cf23c53795a9e6bac0262b6c86c3.zip
opensim-SC-ff0332730d54cf23c53795a9e6bac0262b6c86c3.tar.gz
opensim-SC-ff0332730d54cf23c53795a9e6bac0262b6c86c3.tar.bz2
opensim-SC-ff0332730d54cf23c53795a9e6bac0262b6c86c3.tar.xz
Implement delete key for local console
Diffstat (limited to 'OpenSim/Framework/Console/LocalConsole.cs')
-rw-r--r--OpenSim/Framework/Console/LocalConsole.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Framework/Console/LocalConsole.cs b/OpenSim/Framework/Console/LocalConsole.cs
index d41481f..a967db6 100644
--- a/OpenSim/Framework/Console/LocalConsole.cs
+++ b/OpenSim/Framework/Console/LocalConsole.cs
@@ -426,6 +426,21 @@ namespace OpenSim.Framework.Console
426 System.Console.Write("{0}", prompt); 426 System.Console.Write("{0}", prompt);
427 427
428 break; 428 break;
429 case ConsoleKey.Delete:
430 if (m_cursorXPosition == m_commandLine.Length)
431 break;
432
433 m_commandLine.Remove(m_cursorXPosition, 1);
434
435 SetCursorLeft(0);
436 m_cursorYPosition = SetCursorTop(m_cursorYPosition);
437
438 if (m_echo)
439 System.Console.Write("{0}{1} ", prompt, m_commandLine);
440 else
441 System.Console.Write("{0}", prompt);
442
443 break;
429 case ConsoleKey.End: 444 case ConsoleKey.End:
430 m_cursorXPosition = m_commandLine.Length; 445 m_cursorXPosition = m_commandLine.Length;
431 break; 446 break;