mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
Massive tab and trailing space cleanup
This commit is contained in:
@@ -51,7 +51,7 @@ namespace OpenSim.Framework.Console
|
||||
private const string LOGLEVEL_NONE = "(none)";
|
||||
|
||||
// Used to extract categories for colourization.
|
||||
private Regex m_categoryRegex
|
||||
private Regex m_categoryRegex
|
||||
= new Regex(
|
||||
@"^(?<Front>.*?)\[(?<Category>[^\]]+)\]:?(?<End>.*)", RegexOptions.Singleline | RegexOptions.Compiled);
|
||||
|
||||
@@ -167,15 +167,15 @@ namespace OpenSim.Framework.Console
|
||||
{
|
||||
System.Console.CursorLeft = 0;
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
int bufferWidth = System.Console.BufferWidth;
|
||||
|
||||
|
||||
// On Mono 2.4.2.3 (and possibly above), the buffer value is sometimes erroneously zero (Mantis 4657)
|
||||
if (bufferWidth > 0 && left >= bufferWidth)
|
||||
System.Console.CursorLeft = bufferWidth - 1;
|
||||
}
|
||||
|
||||
|
||||
if (top < 0)
|
||||
{
|
||||
top = 0;
|
||||
@@ -183,7 +183,7 @@ namespace OpenSim.Framework.Console
|
||||
else
|
||||
{
|
||||
int bufferHeight = System.Console.BufferHeight;
|
||||
|
||||
|
||||
// On Mono 2.4.2.3 (and possibly above), the buffer value is sometimes erroneously zero (Mantis 4657)
|
||||
if (bufferHeight > 0 && top >= bufferHeight)
|
||||
top = bufferHeight - 1;
|
||||
@@ -216,14 +216,14 @@ namespace OpenSim.Framework.Console
|
||||
{
|
||||
System.Console.CursorTop = 0;
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
int bufferHeight = System.Console.BufferHeight;
|
||||
// On Mono 2.4.2.3 (and possibly above), the buffer value is sometimes erroneously zero (Mantis 4657)
|
||||
if (bufferHeight > 0 && top >= bufferHeight)
|
||||
System.Console.CursorTop = bufferHeight - 1;
|
||||
}
|
||||
|
||||
|
||||
if (left < 0)
|
||||
{
|
||||
left = 0;
|
||||
@@ -339,7 +339,7 @@ namespace OpenSim.Framework.Console
|
||||
string outText = text;
|
||||
|
||||
if (level != LOGLEVEL_NONE)
|
||||
{
|
||||
{
|
||||
MatchCollection matches = m_categoryRegex.Matches(text);
|
||||
|
||||
if (matches.Count == 1)
|
||||
@@ -364,7 +364,7 @@ namespace OpenSim.Framework.Console
|
||||
WriteColorText(ConsoleColor.Yellow, outText);
|
||||
else
|
||||
System.Console.Write(outText);
|
||||
|
||||
|
||||
System.Console.WriteLine();
|
||||
}
|
||||
|
||||
@@ -551,7 +551,7 @@ namespace OpenSim.Framework.Console
|
||||
}
|
||||
|
||||
string commandLine = m_commandLine.ToString();
|
||||
|
||||
|
||||
if (isCommand)
|
||||
{
|
||||
string[] cmd = Commands.Resolve(Parser.Parse(commandLine));
|
||||
@@ -573,7 +573,7 @@ namespace OpenSim.Framework.Console
|
||||
// If we're not echoing to screen (e.g. a password) then we probably don't want it in history
|
||||
if (m_echo && commandLine != "")
|
||||
AddToHistory(commandLine);
|
||||
|
||||
|
||||
return commandLine;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user