diff options
| author | Matthew Garrett <mjg@redhat.com> | 2012-10-18 17:43:53 -0400 |
|---|---|---|
| committer | Matthew Garrett <mjg@redhat.com> | 2012-10-18 17:43:53 -0400 |
| commit | 34f0c4abc0a0e43656155be587428639bbf87710 (patch) | |
| tree | 01eb5061349fd61011c1470b782a8a126655cd52 /MokManager.c | |
| parent | 16c512f9b5930da742e4014dbe26d3c895d689c3 (diff) | |
| download | efi-boot-shim-34f0c4abc0a0e43656155be587428639bbf87710.tar.gz efi-boot-shim-34f0c4abc0a0e43656155be587428639bbf87710.zip | |
Clear screen before prompting
We were drawing prompts on top of existing text, which was less than
ideal.
Diffstat (limited to 'MokManager.c')
| -rw-r--r-- | MokManager.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MokManager.c b/MokManager.c index bc62cd08..08e1d363 100644 --- a/MokManager.c +++ b/MokManager.c @@ -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); |
