Пример #1
0
 public static void WriteLine(AnsiColor color, string message)
 {
     System.Console.WriteLine($"{BoldOn}{color.Code}{message}{BoldOff}{AnsiColor.Black.Code}");
 }
Пример #2
0
 public static string WriteLine2(AnsiColor color, string message)
 {
     return($"{BoldOn}{color.Code}{message}{BoldOff}{AnsiColor.Black.Code}");
 }