Mega Code Archive

 
Categories / C# / Development Class
 

Clear console

using System; public class Test{    static void Main(string[] args){       // Change the Console appearance and redisplay.       Console.Title = "Cleared / Colored Console";       Console.ForegroundColor = ConsoleColor.Blue;       Console.BackgroundColor = ConsoleColor.Yellow;       Console.Clear();       Console.WriteLine("Press Enter to change the Console's appearance.");       Console.ReadLine();   } }