diff --git a/OpenSim/ConsoleClient/ConsoleClient.cs b/OpenSim/ConsoleClient/ConsoleClient.cs index 0d4f3cfc37..1e5f0b7261 100644 --- a/OpenSim/ConsoleClient/ConsoleClient.cs +++ b/OpenSim/ConsoleClient/ConsoleClient.cs @@ -163,12 +163,25 @@ namespace OpenSim.ConsoleClient return; } + List lines = new List(); + foreach (XmlNode part in rootNodeL[0].ChildNodes) { if (part.Name != "Line") continue; - string[] parts = part.InnerText.Split(new char[] {':'}, 3); + lines.Add(part.InnerText); + } + + // Cut down scrollback to 100 lines (4 screens) + // for the command line client + // + while (lines.Count > 100) + lines.RemoveAt(0); + + foreach (string l in lines) + { + string[] parts = l.Split(new char[] {':'}, 3); if (parts.Length != 3) continue;