From 2c1db87b8882709f8bb706e8f3a864c7798f8f51 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 19 Dec 2013 03:24:06 +0100 Subject: 'P' disable cursor when coming back from graphics mode --- src/efi/gummiboot.c | 7 ++++--- 1 file 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); -- cgit v1.2.3