From 861558ee80b445a2fff15f75c3358d0632c877cc Mon Sep 17 00:00:00 2001 From: Leonmmcoset Date: Mon, 2 Feb 2026 20:53:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=86=E7=A0=81=E5=A1=AB?= =?UTF-8?q?=E5=86=99=E6=A1=86=E6=97=A0=E6=B3=95=E9=80=80=E6=A0=BC=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UserSystem.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/UserSystem.cs b/UserSystem.cs index 623f17b..91b8df3 100644 --- a/UserSystem.cs +++ b/UserSystem.cs @@ -581,6 +581,14 @@ namespace CMLeonOS if (password.Length > 0) { password = password.Substring(0, password.Length - 1); + int cursorLeft = Console.CursorLeft; + int cursorTop = Console.CursorTop; + if (cursorLeft > 0) + { + Console.SetCursorPosition(cursorLeft - 1, cursorTop); + Console.Write(" "); + Console.SetCursorPosition(cursorLeft - 1, cursorTop); + } } } else