diff options
author | Melanie | 2010-06-17 03:03:55 +0100 |
---|---|---|
committer | Melanie | 2010-06-17 03:03:55 +0100 |
commit | 544627c79cceb59f4172ddbcef0fcfd992e62003 (patch) | |
tree | 4a8e60505ffe93c24c7c35ee0196ebf9b764543f /OpenSim/Framework | |
parent | * Support salted and unsalted password hashes in SimianAuthenticationServiceC... (diff) | |
download | opensim-SC_OLD-544627c79cceb59f4172ddbcef0fcfd992e62003.zip opensim-SC_OLD-544627c79cceb59f4172ddbcef0fcfd992e62003.tar.gz opensim-SC_OLD-544627c79cceb59f4172ddbcef0fcfd992e62003.tar.bz2 opensim-SC_OLD-544627c79cceb59f4172ddbcef0fcfd992e62003.tar.xz |
Force newly connecting remote consoles to display a prompt
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Console/RemoteConsole.cs | 7 |
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; |