Mega Code Archive

 
Categories / C# Tutorial / Development
 

Clear a Console

using System; public class MainClass {     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();    } }