Clear a Console : Console window settings : Development C# Examples


C# Examples » Development » Console window settings »

 

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




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Console window settings