예제 #1
0
        /// <summary>
        /// Kernel Panic
        /// </summary>
        public static void Panic()
        {
            AConsole.Clear();
            AConsole.Fill(ConsoleColor.Red);
            AConsole.CursorTop = 2;
            AConsole.WriteLineEx("KERNEL PANIC", ConsoleColor.White, ConsoleColor.Red, true);
            AConsole.WriteLine("\n");
            string message = "CRITICAL KERNEL EXCEPTION\nPLEASE CONTACT YOUR SOFTWARE MANUFACTURER";

            AConsole.WriteLineEx(message, ConsoleColor.White, ConsoleColor.Red, true);
            // Enter an infinite loop
            while (true)
            {
            }
        }
예제 #2
0
 private static void DrawOOPS()
 {
     AConsole.Fill(ConsoleColor.Blue);
     string[] arrOOPS = new string[] {
         "======  ======  =====  =====  =",
         "=    =  =    =  =   =  =      =",
         "=    =  =    =  =====  =====  =",
         "=    =  =    =  =          =   ",
         "======  ======  =      =====  ="
     };
     AConsole.CursorTop = 2;
     foreach (string str in arrOOPS)
     {
         AConsole.CursorLeft = 2;
         AConsole.WriteLineEx(str, ConsoleColor.White, ConsoleColor.Blue);
     }
 }