* Make currently selected region appear in the region console prompt

* This region is used for single region commands (such as save-xml2)
This commit is contained in:
Justin Clarke Casey
2008-08-05 17:28:23 +00:00
parent 32486dcaf5
commit f2c456c23d
3 changed files with 13 additions and 8 deletions

View File

@@ -46,7 +46,12 @@ namespace OpenSim.Framework.Console
/// <summary>
/// The default prompt text.
/// </summary>
public string m_defaultPrompt;
public string DefaultPrompt
{
set { m_defaultPrompt = value + "# "; }
get { return m_defaultPrompt; }
}
protected string m_defaultPrompt;
/// <summary>
/// Constructor.
@@ -55,7 +60,7 @@ namespace OpenSim.Framework.Console
/// <param name="cmdparser"></param>
public ConsoleBase(string defaultPrompt, conscmd_callback cmdparser)
{
m_defaultPrompt = defaultPrompt + "# ";
DefaultPrompt = defaultPrompt;
m_cmdParser = cmdparser;
}