title: Why does my console application have command history?
body: <p>I have written a console application, which is essentially a Console.ReadLine()-Loop. When the application is waiting for input, pressing the up arrow key iterates through all previous lines of input. My application does not contain any code for this feature. What part of Windows provides this? How can I disable it?</p>
  
  <p>I can only image that it's either a feature of the console subsystem or implemented in Console.ReadLine().</p>
  
  <p>Here is some sample code that exhibits the described behavior:</p>
  
  <pre><code>namespace ConsoleApplication
  {
      class Program
      {
          static void Main(string[] args)
          {
              string input;
              do
              {
                  input = System.Console.ReadLine();
              } while (input != "exit");
          }
      }
  }
  </code></pre>
  
  <p>I would like to disable the history feature for now, and re-implement it later using my own code. The current behavior is too limited.</p>