'P' disable cursor when coming back from graphics mode
authorKay Sievers <kay@yik.fritz.box>
Thu, 19 Dec 2013 02:24:06 +0000 (03:24 +0100)
committerKay Sievers <kay@vrfy.org>
Fri, 20 Dec 2013 20:02:20 +0000 (21:02 +0100)
src/efi/gummiboot.c

index a7a1251..9272ef3 100644 (file)
@@ -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);