Clear console : Console : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Console »

 

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();
  }
}



           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Console