mirror of https://github.com/acidanthera/audk.git
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:
parent
35f26e73cc
commit
ad7782a47e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue