mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
* refactor: change console base 'component name' to 'default prompt' since that's the only thing it's being used for
This commit is contained in:
@@ -42,11 +42,20 @@ namespace OpenSim.Framework.Console
|
||||
private readonly object m_syncRoot = new object();
|
||||
|
||||
public conscmd_callback m_cmdParser;
|
||||
public string m_componentName;
|
||||
|
||||
/// <summary>
|
||||
/// The default prompt text.
|
||||
/// </summary>
|
||||
public string m_defaultPrompt;
|
||||
|
||||
public ConsoleBase(string componentname, conscmd_callback cmdparser)
|
||||
/// <summary>
|
||||
/// Constructor.
|
||||
/// </summary>
|
||||
/// <param name="defaultPrompt"></param>
|
||||
/// <param name="cmdparser"></param>
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user