From ad7782a47e8697ec72a63df9e3914f0fbe7a4b00 Mon Sep 17 00:00:00 2001 From: jcarsey Date: Mon, 27 Jun 2011 20:29:23 +0000 Subject: [PATCH] maintain output attributes. signed-off-by: jcarsey reviewed-by: lgrosenb git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11898 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Application/Shell/ConsoleLogger.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.39.2