Allow custom setting for the console prompt
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>remove-scene-viewer
parent
4f6915bad5
commit
37583063ee
|
@ -56,6 +56,7 @@ namespace OpenSim
|
||||||
protected bool m_gui = false;
|
protected bool m_gui = false;
|
||||||
protected string m_consoleType = "local";
|
protected string m_consoleType = "local";
|
||||||
protected uint m_consolePort = 0;
|
protected uint m_consolePort = 0;
|
||||||
|
protected string m_custom_prompt;
|
||||||
|
|
||||||
private string m_timedScript = "disabled";
|
private string m_timedScript = "disabled";
|
||||||
private Timer m_scriptTimer;
|
private Timer m_scriptTimer;
|
||||||
|
@ -108,6 +109,7 @@ namespace OpenSim
|
||||||
Util.FireAndForgetMethod = asyncCallMethod;
|
Util.FireAndForgetMethod = asyncCallMethod;
|
||||||
|
|
||||||
stpMaxThreads = startupConfig.GetInt("MaxPoolThreads", 15);
|
stpMaxThreads = startupConfig.GetInt("MaxPoolThreads", 15);
|
||||||
|
m_custom_prompt = startupConfig.GetString("custom_prompt", "Region");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Util.FireAndForgetMethod == FireAndForgetMethod.SmartThreadPool)
|
if (Util.FireAndForgetMethod == FireAndForgetMethod.SmartThreadPool)
|
||||||
|
@ -828,10 +830,9 @@ namespace OpenSim
|
||||||
{
|
{
|
||||||
MainConsole.Instance.Output("Usage: change region <region name>");
|
MainConsole.Instance.Output("Usage: change region <region name>");
|
||||||
}
|
}
|
||||||
|
|
||||||
string regionName = (m_sceneManager.CurrentScene == null ? "root" : m_sceneManager.CurrentScene.RegionInfo.RegionName);
|
string regionName = (m_sceneManager.CurrentScene == null ? "root" : m_sceneManager.CurrentScene.RegionInfo.RegionName);
|
||||||
MainConsole.Instance.Output(String.Format("Currently selected region is {0}", regionName));
|
MainConsole.Instance.Output(String.Format("Currently selected region is {0}", regionName));
|
||||||
m_console.DefaultPrompt = String.Format("Region ({0}) ", regionName);
|
m_console.DefaultPrompt = String.Format("{0} ({1}) ", m_custom_prompt, regionName);
|
||||||
m_console.ConsoleScene = m_sceneManager.CurrentScene;
|
m_console.ConsoleScene = m_sceneManager.CurrentScene;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -230,6 +230,11 @@
|
||||||
;; by scripts have changed.
|
;; by scripts have changed.
|
||||||
; DeleteScriptsOnStartup = true
|
; DeleteScriptsOnStartup = true
|
||||||
|
|
||||||
|
;; Custom prompt
|
||||||
|
;; This value replaces the word "Region" in console prompt
|
||||||
|
;; (usualy "Region (regionName) # "
|
||||||
|
;; Useful only if you have to monitor serveral servers
|
||||||
|
; custom_prompt = "MyServer1"
|
||||||
|
|
||||||
[SMTP]
|
[SMTP]
|
||||||
;; The SMTP server enabled the email module to send email to external
|
;; The SMTP server enabled the email module to send email to external
|
||||||
|
|
Loading…
Reference in New Issue