diff options
author | Justin Clarke Casey | 2008-08-05 17:28:23 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-08-05 17:28:23 +0000 |
commit | f2c456c23df63e93d2ad7282203b94deac9f79f5 (patch) | |
tree | d6fe25b85e813d75a9de52acba871fb0caf78c92 /OpenSim/Framework/Console/ConsoleBase.cs | |
parent | * refactor: change console base 'component name' to 'default prompt' since th... (diff) | |
download | opensim-SC-f2c456c23df63e93d2ad7282203b94deac9f79f5.zip opensim-SC-f2c456c23df63e93d2ad7282203b94deac9f79f5.tar.gz opensim-SC-f2c456c23df63e93d2ad7282203b94deac9f79f5.tar.bz2 opensim-SC-f2c456c23df63e93d2ad7282203b94deac9f79f5.tar.xz |
* Make currently selected region appear in the region console prompt
* This region is used for single region commands (such as save-xml2)
Diffstat (limited to 'OpenSim/Framework/Console/ConsoleBase.cs')
-rw-r--r-- | OpenSim/Framework/Console/ConsoleBase.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Framework/Console/ConsoleBase.cs b/OpenSim/Framework/Console/ConsoleBase.cs index f5c2bcf..f21127b 100644 --- a/OpenSim/Framework/Console/ConsoleBase.cs +++ b/OpenSim/Framework/Console/ConsoleBase.cs | |||
@@ -46,7 +46,12 @@ namespace OpenSim.Framework.Console | |||
46 | /// <summary> | 46 | /// <summary> |
47 | /// The default prompt text. | 47 | /// The default prompt text. |
48 | /// </summary> | 48 | /// </summary> |
49 | public string m_defaultPrompt; | 49 | public string DefaultPrompt |
50 | { | ||
51 | set { m_defaultPrompt = value + "# "; } | ||
52 | get { return m_defaultPrompt; } | ||
53 | } | ||
54 | protected string m_defaultPrompt; | ||
50 | 55 | ||
51 | /// <summary> | 56 | /// <summary> |
52 | /// Constructor. | 57 | /// Constructor. |
@@ -55,7 +60,7 @@ namespace OpenSim.Framework.Console | |||
55 | /// <param name="cmdparser"></param> | 60 | /// <param name="cmdparser"></param> |
56 | public ConsoleBase(string defaultPrompt, conscmd_callback cmdparser) | 61 | public ConsoleBase(string defaultPrompt, conscmd_callback cmdparser) |
57 | { | 62 | { |
58 | m_defaultPrompt = defaultPrompt + "# "; | 63 | DefaultPrompt = defaultPrompt; |
59 | m_cmdParser = cmdparser; | 64 | m_cmdParser = cmdparser; |
60 | } | 65 | } |
61 | 66 | ||