https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bf2f5a70a53860de0808d…
commit bf2f5a70a53860de0808d83a4540c7e97520c92f
Author:     Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sat Oct 8 08:47:22 2022 +0900
Commit:     Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Sat Oct 8 08:47:22 2022 +0900
    [USETUP] Clear underlined text correctly
    CORE-18446, CORE-5052
---
 base/setup/usetup/consup.c | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/base/setup/usetup/consup.c b/base/setup/usetup/consup.c
index 4aa952ce2a3..22feebd7c79 100644
--- a/base/setup/usetup/consup.c
+++ b/base/setup/usetup/consup.c
@@ -815,6 +815,11 @@ CONSOLE_ClearStyledText(
     {
         CONSOLE_ClearStatusTextX(coPos.X, Length);
     }
+    else if (Flags & TEXT_STYLE_UNDERLINE)
+    {
+        CONSOLE_ClearTextXY(coPos.X, coPos.Y, Length);
+        CONSOLE_ClearTextXY(coPos.X, coPos.Y + 1, Length);
+    }
     else /* TEXT_TYPE_REGULAR (Default) */
     {
         CONSOLE_ClearTextXY(coPos.X, coPos.Y, Length);