title: How to remove char '*' from Console Window? Command Console.Write("\b"); didn't work
body: <p>This is contain from method, which writes hidden letters. When I hit a backspace, I need somehow to delete char * from console.  </p>
  
  <pre><code>    private static string Password()
      {
          bool enter=true;
          string pass="";
          do
          {
  
              char letter = Console.ReadKey(true).KeyChar;
              if (letter == (char)13)
              { enter = false; }
              else if (letter == (char)8 &amp;&amp; pass.Length &gt;= 1)
              {
                  pass = pass.Remove(pass.Length - 1);
                  Console.Write("\b");
              }
              else
              {
                  pass += letter;
                  Console.Write("*");
              }
          } while (enter);
          Console.WriteLine();
          return pass;
      }
  </code></pre>
  
  <p>I searched for an answer but the command Console.Write("\b"); but it doesn't seem to work correctly.</p>