示例#1
0
 /// <summary>
 /// Produce ASCII art text. Use a range of FIGlet fonts easily set via enum list.
 /// </summary>
 /// <param name="font">FIGlet Font enum</param>
 public static void WriteAsciiArt(FigFontEnum font, ConsoleColor consoleColor, string text)
 {
     WriteAsciiArt(font, ColourHelper.ConsoleColorToColor(consoleColor), text);
 }
示例#2
0
 /// <summary>
 /// Write text in a colour as of a ConsoleColor (limited range of colours)
 /// </summary>
 public static void WriteColouredText(ConsoleColor consoleColor, string text)
 {
     WriteColouredText(ColourHelper.ConsoleColorToColor(consoleColor), text);
 }
示例#3
0
 /// <summary>
 /// Set the console background colour. Typically you have to clear the console to replace the whole window however if you already have text
 /// on the console this will clear as well. You're best off calling SetBackgroundColour(color, true) at the start of your application.
 /// Colour as of a ConsoleColor (limited range of colours)
 /// </summary>
 /// <param name="clearConsole"></param>
 public static void SetBackgroundColour(ConsoleColor consoleColor, bool clearConsole = false)
 {
     SetBackgroundColour(ColourHelper.ConsoleColorToColor(consoleColor), clearConsole);
 }