mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Mono doesn't like fanciness
This commit is contained in:
@@ -36,12 +36,18 @@ namespace SabreTools.Helper
|
|||||||
mid = "|" + mid.PadLeft(((77 - mid.Length) / 2) + mid.Length).PadRight(77) + "|";
|
mid = "|" + mid.PadLeft(((77 - mid.Length) / 2) + mid.Length).PadRight(77) + "|";
|
||||||
|
|
||||||
// Set the console to ready state
|
// Set the console to ready state
|
||||||
|
ConsoleColor formertext = ConsoleColor.White;
|
||||||
|
ConsoleColor formerback = ConsoleColor.Black;
|
||||||
|
if (!MonoEnvironment)
|
||||||
|
{
|
||||||
Console.SetBufferSize(Console.BufferWidth, 999);
|
Console.SetBufferSize(Console.BufferWidth, 999);
|
||||||
Console.Title = "SabreTools-" + name + " " + Build.Version;
|
formertext = Console.ForegroundColor;
|
||||||
ConsoleColor formertext = Console.ForegroundColor;
|
formerback = Console.BackgroundColor;
|
||||||
ConsoleColor formerback = Console.BackgroundColor;
|
|
||||||
Console.ForegroundColor = ConsoleColor.Yellow;
|
Console.ForegroundColor = ConsoleColor.Yellow;
|
||||||
Console.BackgroundColor = ConsoleColor.Blue;
|
Console.BackgroundColor = ConsoleColor.Blue;
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.Title = "SabreTools-" + name + " " + Build.Version;
|
||||||
|
|
||||||
// Output the header
|
// Output the header
|
||||||
Console.WriteLine(border);
|
Console.WriteLine(border);
|
||||||
@@ -50,9 +56,12 @@ namespace SabreTools.Helper
|
|||||||
Console.WriteLine();
|
Console.WriteLine();
|
||||||
|
|
||||||
// Return the console to the original text and background colors
|
// Return the console to the original text and background colors
|
||||||
|
if (!MonoEnvironment)
|
||||||
|
{
|
||||||
Console.ForegroundColor = formertext;
|
Console.ForegroundColor = formertext;
|
||||||
Console.BackgroundColor = formerback;
|
Console.BackgroundColor = formerback;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Show the help dialog for a given class
|
/// Show the help dialog for a given class
|
||||||
|
|||||||
Reference in New Issue
Block a user