diff options
author | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-27 20:29:23 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-27 20:29:23 +0000 |
commit | ad7782a47e8697ec72a63df9e3914f0fbe7a4b00 (patch) | |
tree | 2b0104f4b0a8f9eb0192e32136bf1facb0e82c1a /ShellPkg | |
parent | 35f26e73cc8b26acbd990ec63e1c2d5f60b1a9e7 (diff) | |
download | edk2-platforms-ad7782a47e8697ec72a63df9e3914f0fbe7a4b00.tar.xz |
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
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Application/Shell/ConsoleLogger.c | 7 |
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);
|