// 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(); }
} // Writes in Yellow public static void Pass(string str) { WriteLine(str, Colors.Green); Pym.SoftReset(); } // Writes in Green
// Status Writes public static void Error(string str) { WriteLine(str, Colors.Red); Pym.SoftReset(); } // Writes in Red
} // Writes in Red public static void Warn(string str) { WriteLine(str, Colors.Yellow); Pym.SoftReset(); } // Writes in Yellow
// 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(); }