diff options
author | Justin Clarke Casey | 2008-08-05 17:06:35 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-08-05 17:06:35 +0000 |
commit | 32486dcaf5d3845e8d2fb12c654cc5a2038a59f0 (patch) | |
tree | 24143cdc913054ab5ba3570124cf147bb59ded18 /OpenSim/Framework/Console | |
parent | * refactor: change method name (diff) | |
download | opensim-SC-32486dcaf5d3845e8d2fb12c654cc5a2038a59f0.zip opensim-SC-32486dcaf5d3845e8d2fb12c654cc5a2038a59f0.tar.gz opensim-SC-32486dcaf5d3845e8d2fb12c654cc5a2038a59f0.tar.bz2 opensim-SC-32486dcaf5d3845e8d2fb12c654cc5a2038a59f0.tar.xz |
* refactor: change console base 'component name' to 'default prompt' since that's the only thing it's being used for
Diffstat (limited to 'OpenSim/Framework/Console')
-rw-r--r-- | OpenSim/Framework/Console/ConsoleBase.cs | 17 |
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 | ||