aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Console/RemoteConsole.cs
diff options
context:
space:
mode:
authorMelanie2010-06-17 03:03:55 +0100
committerMelanie2010-06-17 03:03:55 +0100
commit544627c79cceb59f4172ddbcef0fcfd992e62003 (patch)
tree4a8e60505ffe93c24c7c35ee0196ebf9b764543f /OpenSim/Framework/Console/RemoteConsole.cs
parent* Support salted and unsalted password hashes in SimianAuthenticationServiceC... (diff)
downloadopensim-SC-544627c79cceb59f4172ddbcef0fcfd992e62003.zip
opensim-SC-544627c79cceb59f4172ddbcef0fcfd992e62003.tar.gz
opensim-SC-544627c79cceb59f4172ddbcef0fcfd992e62003.tar.bz2
opensim-SC-544627c79cceb59f4172ddbcef0fcfd992e62003.tar.xz
Force newly connecting remote consoles to display a prompt
Diffstat (limited to 'OpenSim/Framework/Console/RemoteConsole.cs')
-rw-r--r--OpenSim/Framework/Console/RemoteConsole.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Framework/Console/RemoteConsole.cs b/OpenSim/Framework/Console/RemoteConsole.cs
index a46a6cb..c038aac 100644
--- a/OpenSim/Framework/Console/RemoteConsole.cs
+++ b/OpenSim/Framework/Console/RemoteConsole.cs
@@ -44,6 +44,7 @@ namespace OpenSim.Framework.Console
44 { 44 {
45 public int last; 45 public int last;
46 public long lastLineSeen; 46 public long lastLineSeen;
47 public bool newConnection = true;
47 } 48 }
48 49
49 // A console that uses REST interfaces 50 // A console that uses REST interfaces
@@ -424,6 +425,12 @@ namespace OpenSim.Framework.Console
424 XmlElement rootElement = xmldoc.CreateElement("", "ConsoleSession", 425 XmlElement rootElement = xmldoc.CreateElement("", "ConsoleSession",
425 ""); 426 "");
426 427
428 if (c.newConnection)
429 {
430 c.newConnection = false;
431 Output("+++" + DefaultPrompt);
432 }
433
427 lock (m_Scrollback) 434 lock (m_Scrollback)
428 { 435 {
429 long startLine = m_LineNumber - m_Scrollback.Count; 436 long startLine = m_LineNumber - m_Scrollback.Count;