aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Console/ConsoleBase.cs17
1 files changed, 13 insertions, 4 deletions
diff --git a/OpenSim/Framework/Console/ConsoleBase.cs b/OpenSim/Framework/Console/ConsoleBase.cs
index 70b3d3c..f5c2bcf 100644
--- a/OpenSim/Framework/Console/ConsoleBase.cs
+++ b/OpenSim/Framework/Console/ConsoleBase.cs
@@ -42,11 +42,20 @@ namespace OpenSim.Framework.Console
42 private readonly object m_syncRoot = new object(); 42 private readonly object m_syncRoot = new object();
43 43
44 public conscmd_callback m_cmdParser; 44 public conscmd_callback m_cmdParser;
45 public string m_componentName; 45
46 /// <summary>
47 /// The default prompt text.
48 /// </summary>
49 public string m_defaultPrompt;
46 50
47 public ConsoleBase(string componentname, conscmd_callback cmdparser) 51 /// <summary>
52 /// Constructor.
53 /// </summary>
54 /// <param name="defaultPrompt"></param>
55 /// <param name="cmdparser"></param>
56 public ConsoleBase(string defaultPrompt, conscmd_callback cmdparser)
48 { 57 {
49 m_componentName = componentname; 58 m_defaultPrompt = defaultPrompt + "# ";
50 m_cmdParser = cmdparser; 59 m_cmdParser = cmdparser;
51 } 60 }
52 61
@@ -362,7 +371,7 @@ namespace OpenSim.Framework.Console
362 371
363 public void Prompt() 372 public void Prompt()
364 { 373 {
365 string tempstr = CmdPrompt(m_componentName + "# "); 374 string tempstr = CmdPrompt(m_defaultPrompt);
366 RunCommand(tempstr); 375 RunCommand(tempstr);
367 } 376 }
368 377