From 9bbb3b6d9a7265d003c38f31cd7d91fe95f4ff8d Mon Sep 17 00:00:00 2001 From: vit9696 Date: Sat, 11 Jan 2020 20:23:53 +0300 Subject: [PATCH] OcBootManagementLib: Clear screen after using picker This may be helpful for firmwares without console output scroll ability to see more lines of the bootloader. --- Library/OcBootManagementLib/OcBootManagementLib.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Library/OcBootManagementLib/OcBootManagementLib.c b/Library/OcBootManagementLib/OcBootManagementLib.c index feeeddb2..4e0e848b 100644 --- a/Library/OcBootManagementLib/OcBootManagementLib.c +++ b/Library/OcBootManagementLib/OcBootManagementLib.c @@ -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,