summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ShellPkg/Application/Shell/ConsoleLogger.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ShellPkg/Application/Shell/ConsoleLogger.c b/ShellPkg/Application/Shell/ConsoleLogger.c
index 01104e6735..1c5ad7def2 100644
--- a/ShellPkg/Application/Shell/ConsoleLogger.c
+++ b/ShellPkg/Application/Shell/ConsoleLogger.c
@@ -258,10 +258,12 @@ UpdateDisplayFromHistory(
CHAR16 *StringSegment;
CHAR16 *StringSegmentEnd;
CHAR16 StringSegmentEndChar;
+ INT32 OrigAttribute;
ASSERT(ConsoleInfo != NULL);
TempCharHolder = CHAR_NULL;
RetVal = EFI_SUCCESS;
+ OrigAttribute = ConsoleInfo->OldConOut->Mode->Attribute;
//
// Disable cursor visibility and move it to the top left corner
@@ -369,6 +371,11 @@ UpdateDisplayFromHistory(
if (EFI_ERROR (Status)) {
RetVal = Status;
}
+ } else {
+ ConsoleInfo->OldConOut->SetAttribute (
+ ConsoleInfo->OldConOut,
+ OrigAttribute
+ );
}
return (RetVal);