Пример #1
0
 // Writers //
 // Wrapper for Console.WriteLine()
 public static void WriteLine(string str, string fore = "", string back = "")
 {
     Console.Write(fore.Replace(" ", "38") + back.Replace(" ", "48") + str);
     Pym.SoftReset();
     Console.WriteLine();
 }
Пример #2
0
        }                                                                                      // Writes in Yellow

        public static void Pass(string str)
        {
            WriteLine(str, Colors.Green); Pym.SoftReset();
        }                                                                                     // Writes in Green
Пример #3
0
 // Status Writes
 public static void Error(string str)
 {
     WriteLine(str, Colors.Red); Pym.SoftReset();
 }                                                                                    // Writes in Red
Пример #4
0
        }                                                                                    // Writes in Red

        public static void Warn(string str)
        {
            WriteLine(str, Colors.Yellow); Pym.SoftReset();
        }                                                                                      // Writes in Yellow
Пример #5
0
 // Underline //
 // Writes underscore with color support and a newline
 public static void WriteLineUnderscore(string str, string fore = "", string back = "")
 {
     Console.Write("\x1b[4m" + fore.Replace(" ", "38") + back.Replace(" ", "48") + str + "\x1b[24m");
     Pym.SoftReset();
     Console.WriteLine();
 }