mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Change prompt handling in console. No user changes
This commit is contained in:
@@ -576,7 +576,7 @@ namespace OpenSim.Framework.Console
|
||||
|
||||
public void Prompt()
|
||||
{
|
||||
string line = ReadLine(m_defaultPrompt, true, true);
|
||||
string line = ReadLine(m_defaultPrompt + "# ", true, true);
|
||||
|
||||
if (line != String.Empty)
|
||||
{
|
||||
@@ -592,7 +592,7 @@ namespace OpenSim.Framework.Console
|
||||
|
||||
public override string ReadLine(string p, bool isCommand, bool e)
|
||||
{
|
||||
System.Console.Write("{0}", prompt);
|
||||
System.Console.Write("{0}", p);
|
||||
string cmdinput = System.Console.ReadLine();
|
||||
|
||||
if (isCommand)
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace OpenSim.Framework.Console
|
||||
/// </summary>
|
||||
public string DefaultPrompt
|
||||
{
|
||||
set { m_defaultPrompt = value + "# "; }
|
||||
set { m_defaultPrompt = value; }
|
||||
get { return m_defaultPrompt; }
|
||||
}
|
||||
protected string m_defaultPrompt;
|
||||
@@ -123,7 +123,7 @@ namespace OpenSim.Framework.Console
|
||||
|
||||
public virtual string ReadLine(string p, bool isCommand, bool e)
|
||||
{
|
||||
System.Console.Write("{0}", prompt);
|
||||
System.Console.Write("{0}", p);
|
||||
string cmdinput = System.Console.ReadLine();
|
||||
|
||||
return cmdinput;
|
||||
|
||||
@@ -217,6 +217,12 @@ namespace OpenSim.Framework.Console
|
||||
id.AppendChild(xmldoc.CreateTextNode(sessionID.ToString()));
|
||||
|
||||
rootElement.AppendChild(id);
|
||||
|
||||
XmlElement prompt = xmldoc.CreateElement("", "Prompt", "");
|
||||
prompt.AppendChild(xmldoc.CreateTextNode(DefaultPrompt));
|
||||
|
||||
rootElement.AppendChild(prompt);
|
||||
|
||||
rootElement.AppendChild(MainConsole.Instance.Commands.GetXml(xmldoc));
|
||||
|
||||
reply["str_response_string"] = xmldoc.InnerXml;
|
||||
|
||||
Reference in New Issue
Block a user