From 32486dcaf5d3845e8d2fb12c654cc5a2038a59f0 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 5 Aug 2008 17:06:35 +0000 Subject: * refactor: change console base 'component name' to 'default prompt' since that's the only thing it's being used for --- OpenSim/Framework/Console/ConsoleBase.cs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'OpenSim/Framework/Console') 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 private readonly object m_syncRoot = new object(); public conscmd_callback m_cmdParser; - public string m_componentName; + + /// + /// The default prompt text. + /// + public string m_defaultPrompt; - public ConsoleBase(string componentname, conscmd_callback cmdparser) + /// + /// Constructor. + /// + /// + /// + public ConsoleBase(string defaultPrompt, conscmd_callback cmdparser) { - m_componentName = componentname; + m_defaultPrompt = defaultPrompt + "# "; m_cmdParser = cmdparser; } @@ -362,7 +371,7 @@ namespace OpenSim.Framework.Console public void Prompt() { - string tempstr = CmdPrompt(m_componentName + "# "); + string tempstr = CmdPrompt(m_defaultPrompt); RunCommand(tempstr); } -- cgit v1.1