title: C#: Resetting the console color pallet after user has modified it
body: <p>I'm working on creating an ASCII interface for a school project but I've run into a bit of an issue.</p>
  
  <p><a href="http://imgur.com/R1xOP" rel="nofollow">Output &amp; properties window for CMD |Screenshot|</a></p>
  
  <p>I originally modified the colours to be a bit easier on the eyes and be more aesthetically pleasing just because I tend to used that ol' cmd.exe a fair bit, but looks like it's come back to mess with me. Soft darkish blue with canary yellow text, looked alright. Apparently Console.ConsoleColor takes all of its colours from the colours I modified in the cmd.exe properties window. NO GOOD! I don't see why the two are separate :/</p>
  
  <p>Anyone out there know a way to override this pallet? I'm hoping for something that would like me set the RGB in the code but if there's a way to access the System.Drawing.Color pallet that would be kickass!</p>
  
  <p>I'm pretty new at programming here so I would very much appreciate a well explained answer, I'm not picky however :P</p>
  
  <p>Here's the code that created the output above:</p>
  
  <pre><code>//show a title
          Console.Title = "Contact Book";
  
          //set up the console window all nice like   
          Console.SetWindowSize(80, 50);
  
          Console.SetBufferSize(80, 50);
  
          //my attempt to reset the colors :( does not work
          Console.ResetColor();
  
          Console.BackgroundColor = ConsoleColor.Black;
  
          Console.ForegroundColor = ConsoleColor.White;
  
          Console.Clear();
  
          //write some stuff... :/
          Console.WriteLine("{0} {1}", Console.LargestWindowWidth, Console.LargestWindowHeight);
  
          Console.WriteLine("11111111112222222222333333333344444444445555555555666666666667777777777888888888889999999999900000000000");
  
          for (int i = 2; i != 10; i++)
          {
              Console.WriteLine("{0}", i);
          }
  </code></pre>
  
  <p>PS: Would have embedded the image but this is my first time on stackoverflow.com so I have no rep :)</p>