Force newly connecting remote consoles to display a prompt

This commit is contained in:
Melanie
2010-06-17 03:03:55 +01:00
parent 6c0a372346
commit 544627c79c

View File

@@ -44,6 +44,7 @@ namespace OpenSim.Framework.Console
{
public int last;
public long lastLineSeen;
public bool newConnection = true;
}
// A console that uses REST interfaces
@@ -424,6 +425,12 @@ namespace OpenSim.Framework.Console
XmlElement rootElement = xmldoc.CreateElement("", "ConsoleSession",
"");
if (c.newConnection)
{
c.newConnection = false;
Output("+++" + DefaultPrompt);
}
lock (m_Scrollback)
{
long startLine = m_LineNumber - m_Scrollback.Count;