title: console.write("\r") not displaying elements in same line on server
body: <p>I am trying to print the count of directories in a loop and want to have the output displayed in the same line but with the value changes. I used the below code which works fine in my local system, but when I run same code on the windows server 2012 R2 this displays in separate line for each directory.</p>
  
  <pre><code>Console.Write("\r[ {0} Directories scan complete ] [ {1} files scan complete ] [ Percentage completed {2}% ]", directoryCount.ToString(), fileCount.ToString(), percentage.ToString());
  </code></pre>
  
  <p><strong>Local machine output:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/Rav2e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Rav2e.png" alt="enter image description here"></a></p>
  
  <p><strong>Server output:</strong></p>
  
  <pre><code>[ 1 Directories complete ] [ 10 files scan complete ] [ Percentage completed 1% ]
  [ 2 Directories complete ] [ 26 files scan complete ] [ Percentage completed 2% ]
  [ 3 Directories complete ] [ 39 files scan complete ] [ Percentage completed 3% ]
  </code></pre>
  
  <p>Please suggest what I am doing wrong here?</p>