Commits

Anonymous committed 62ec451 Draft

Fixed bugs with the obfuscation during entry. Now the energy doesn't show anything as you type, backsapce works and the display is always correct.

  • Participants
  • Parent commits 0aac858

Comments (0)

Files changed (1)

                 {
                     password = password.Substring(0, password.Length - 1);
                     if (Console.CursorLeft > 0)
-                        Console.SetCursorPosition(Console.CursorLeft - 1, Console.CursorTop);
+                        Console.SetCursorPosition(0, Console.CursorTop);
                     Console.Write(" ");
+                    Console.SetCursorPosition(0, Console.CursorTop);
                 }
                 else
                 {
                     password += key.KeyChar;
                     if (Console.CursorLeft > 0)
-                        Console.SetCursorPosition(Console.CursorLeft - 1, Console.CursorTop);
-                    Console.Write("*");
+                        Console.SetCursorPosition(0, Console.CursorTop);
+                    Console.Write(" ");
+                    Console.SetCursorPosition(0, Console.CursorTop);
                 }
             } while (true);
         }