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
This commit is contained in:
jcarsey 2011-06-27 20:29:23 +00:00
parent 35f26e73cc
commit ad7782a47e
1 changed files with 7 additions and 0 deletions

View File

@ -258,10 +258,12 @@ UpdateDisplayFromHistory(
CHAR16 *StringSegment; CHAR16 *StringSegment;
CHAR16 *StringSegmentEnd; CHAR16 *StringSegmentEnd;
CHAR16 StringSegmentEndChar; CHAR16 StringSegmentEndChar;
INT32 OrigAttribute;
ASSERT(ConsoleInfo != NULL); ASSERT(ConsoleInfo != NULL);
TempCharHolder = CHAR_NULL; TempCharHolder = CHAR_NULL;
RetVal = EFI_SUCCESS; RetVal = EFI_SUCCESS;
OrigAttribute = ConsoleInfo->OldConOut->Mode->Attribute;
// //
// Disable cursor visibility and move it to the top left corner // Disable cursor visibility and move it to the top left corner
@ -369,6 +371,11 @@ UpdateDisplayFromHistory(
if (EFI_ERROR (Status)) { if (EFI_ERROR (Status)) {
RetVal = Status; RetVal = Status;
} }
} else {
ConsoleInfo->OldConOut->SetAttribute (
ConsoleInfo->OldConOut,
OrigAttribute
);
} }
return (RetVal); return (RetVal);