title: How do I change the full background color of the console window in C#?
body: <p>In C#, the console has properties that can be used to change the background color of the console, and the foreground (text) color of the console.</p>
  
  <pre><code>Console.BackgroundColor // the background color
  Console.ForegroundColor // the foreground/text color
  </code></pre>
  
  <p>The issue is that background color applies only where text is written, not to free space.</p>
  
  <pre><code>Console.BackgroundColor = ConsoleColor.White; // background color is white
  Console.ForegroundColor = ConsoleColor.Blue;  // text color is blue
  </code></pre>
  
  <p>Now, with the above code, it does indeed turn the text blue, but it only turns the background of the text white, instead of the entire console window's background.</p>
  
  <p>Here's an example of what I mean:
  <img src="https://i.stack.imgur.com/LGC6i.png" alt="The background only covers the background of the text, not of the entire console window"></p>
  
  <p>As you can see, the white background only displays behind the text, and does not change the color of the entire console window.</p>
  
  <p>How do I change the color of the entire console window?</p>