diff options
author | Kay Sievers <kay@yik.fritz.box> | 2013-12-19 03:24:06 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-12-20 21:02:20 +0100 |
commit | 2c1db87b8882709f8bb706e8f3a864c7798f8f51 (patch) | |
tree | 73801a0883260d9658e23aab106b6b78bcdc5baa /src | |
parent | c5cbf79c05e0047d3f75e2c5b021064979b1674c (diff) |
'P' disable cursor when coming back from graphics mode
Diffstat (limited to 'src')
-rw-r--r-- | src/efi/gummiboot.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/efi/gummiboot.c b/src/efi/gummiboot.c index a7a1251..9272ef3 100644 --- a/src/efi/gummiboot.c +++ b/src/efi/gummiboot.c @@ -375,6 +375,9 @@ static VOID print_status(Config *config, EFI_FILE *root_dir, CHAR16 *loaded_imag UINTN size; EFI_STATUS err; + uefi_call_wrapper(ST->ConOut->SetAttribute, 2, ST->ConOut, EFI_LIGHTGRAY|EFI_BACKGROUND_BLACK); + uefi_call_wrapper(ST->ConOut->ClearScreen, 1, ST->ConOut); + err = EFI_NOT_FOUND; if (config->splash) err = graphics_splash(root_dir, config->splash); @@ -383,11 +386,9 @@ static VOID print_status(Config *config, EFI_FILE *root_dir, CHAR16 *loaded_imag if (!EFI_ERROR(err)) { console_key_read(&key, TRUE); graphics_mode(FALSE); + uefi_call_wrapper(ST->ConOut->EnableCursor, 2, ST->ConOut, FALSE); } - uefi_call_wrapper(ST->ConOut->SetAttribute, 2, ST->ConOut, EFI_LIGHTGRAY|EFI_BACKGROUND_BLACK); - uefi_call_wrapper(ST->ConOut->ClearScreen, 1, ST->ConOut); - Print(L"gummiboot version: " VERSION "\n"); Print(L"loaded image: %s\n", loaded_image_path); Print(L"UEFI version: %d.%02d\n", ST->Hdr.Revision >> 16, ST->Hdr.Revision & 0xffff); |