Mosa.Kernel.x86.ConsoleSession.Clear C# (CSharp) Méthode

Clear() public méthode

Clears this instance.
public Clear ( ) : void
Résultat void
        public void Clear()
        {
            GotoTop();

            for (uint r = 0; r < Rows; r++)
            {
                for (uint c = 0; c < Columns; c++)
                {
                    uint address = r * Columns + c;

                    text[address] = (byte)' ';
                    textcolor[address] = BackgroundColor;

                    if (consoleManager != null)
                    {
                        consoleManager.RawWrite(this, r, c, ' ', BackgroundColor);
                    }
                }
            }
        }

Usage Example

Exemple #1
0
        /// <summary>
        /// Main
        /// </summary>
        public static void Main()
        {
            Mosa.Kernel.x86.Kernel.Setup();

            Console = ConsoleManager.Controller.Boot;

            Console.Clear();

            IDT.SetInterruptHandler(ProcessInterrupt);

            Console.Color = Colors.White;
            Console.BackgroundColor = Colors.Green;

            Console.Write(@"                   MOSA OS Version 1.3 - Compiler Version 1.3");
            FillLine();
            Console.Color = Colors.White;
            Console.BackgroundColor = Colors.Black;

            if (SmbiosManager.IsAvailable)
            {
                BiosInformationStructure biosInfo = new BiosInformationStructure();
                CpuStructure cpuInfo = new CpuStructure();

                Console.WriteLine("> Checking BIOS...");
                BulletPoint(); Console.Write("Vendor  "); InBrackets(biosInfo.BiosVendor, Colors.White, Colors.LightBlue); Console.WriteLine();
                BulletPoint(); Console.Write("Version "); InBrackets(biosInfo.BiosVersion, Colors.White, Colors.LightBlue); Console.WriteLine();

                Console.WriteLine("> Checking CPU...");
                BulletPoint(); Console.Write("Vendor  "); InBrackets(cpuInfo.Vendor, Colors.White, Colors.LightBlue); Console.WriteLine();
                BulletPoint(); Console.Write("Version "); InBrackets(cpuInfo.Version, Colors.White, Colors.LightBlue); Console.WriteLine();
            }
            else
            {
                Console.WriteLine("> No SMBIOS available!");
            }

            Console.WriteLine("> Initializing hardware abstraction layer...");
            Setup.Initialize();

            Console.WriteLine("> Adding hardware devices...");
            Setup.Start();

            Console.WriteLine("> System ready");
            Console.WriteLine();
            Console.Goto(24, 0);
            Console.Color = Colors.White;
            Console.BackgroundColor = Colors.Green;
            Console.Write("          Copyright (C) 2008-2014 [Managed Operating System Alliance]");
            FillLine();

            Process();
        }
All Usage Examples Of Mosa.Kernel.x86.ConsoleSession::Clear