Clear screen before prompting

We were drawing prompts on top of existing text, which was less than
ideal.
This commit is contained in:
Matthew Garrett 2012-10-18 17:43:53 -04:00
parent 16c512f9b5
commit 34f0c4abc0

View File

@ -708,6 +708,8 @@ static INTN mok_sb_prompt (void *MokSB, void *data2, void *data3) {
return -1;
}
uefi_call_wrapper(ST->ConOut->ClearScreen, 1, ST->ConOut);
while (fail_count < 3) {
Print(L"Enter Secure Boot passphrase: ");
get_line(&length, password, SB_PASSWORD_LEN, 0);
@ -797,6 +799,8 @@ static INTN mok_pw_prompt (void *MokPW, void *data2, void *data3) {
LibDeleteVariable(L"MokPW", &shim_lock_guid);
uefi_call_wrapper(ST->ConOut->ClearScreen, 1, ST->ConOut);
while (fail_count < 3) {
Print(L"Confirm MOK passphrase: ");
get_line(&length, password, PASSWORD_MAX, 0);
@ -1453,6 +1457,8 @@ static BOOLEAN verify_pw(void)
if (attributes & EFI_VARIABLE_RUNTIME_ACCESS)
return TRUE;
uefi_call_wrapper(ST->ConOut->ClearScreen, 1, ST->ConOut);
while (fail_count < 3) {
Print(L"Enter MOK password: ");
get_line(&length, password, PASSWORD_MAX, 0);