mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:30:02 +08:00
Force newly connecting remote consoles to display a prompt
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user