Replace the console for all OpenSim apps with a new console featuring command

line editing, context sensitive help (press ? at any time), command line
history, a new plugin command system and new appender features thet let you
type while the console is scrolling. Seamlessly integrates the ICommander
interfaces.
This commit is contained in:
Melanie Thielker
2009-02-07 12:25:39 +00:00
parent 4d4402158e
commit 54c6a920ba
23 changed files with 1499 additions and 1063 deletions

View File

@@ -34,6 +34,7 @@ using log4net.Config;
using Nini.Config;
using OpenSim.Framework;
using OpenSim.Framework.Console;
using OpenSim.Region.Framework.Scenes;
namespace OpenSim
{
@@ -46,6 +47,8 @@ namespace OpenSim
public static bool m_saveCrashDumps = false;
public static string m_crashDir = "crashes";
protected static OpenSimBase m_sim = null;
//could move our main function into OpenSimMain and kill this class
public static void Main(string[] args)
{
@@ -93,18 +96,18 @@ namespace OpenSim
if (background)
{
OpenSimBase sim = new OpenSimBackground(configSource);
sim.Startup();
m_sim = new OpenSimBackground(configSource);
m_sim.Startup();
}
else
{
OpenSimBase sim = null;
m_sim = null;
if (hgrid)
sim = new HGOpenSimNode(configSource);
m_sim = new HGOpenSimNode(configSource);
else
sim = new OpenSim(configSource);
m_sim = new OpenSim(configSource);
sim.Startup();
m_sim.Startup();
while (true)
{