OcBootManagementLib: Clear screen after using picker

This may be helpful for firmwares without console output scroll
ability to see more lines of the bootloader.
This commit is contained in:
vit9696 2020-01-11 20:23:53 +03:00
parent b204218612
commit 9bbb3b6d9a

View File

@ -433,6 +433,13 @@ OcRunSimpleBootPicker (
DEBUG ((DEBUG_INFO, "OCB: Setting default - %r\n", Status));
}
//
// Clear screen before loading the entry.
//
if (Context->PickerCommand == OcPickerShowPicker) {
gST->ConOut->ClearScreen (gST->ConOut);
}
Status = OcLoadBootEntry (
AppleBootPolicy,
Context,