]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: clear screen has to reset cursor position
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 5 Jul 2018 06:18:00 +0000 (08:18 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 25 Jul 2018 12:59:44 +0000 (14:59 +0200)
After clearing the screen the cursor position is row 0, column 0.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_console.c

index 1d5275345695fe6b0e9d58b89553348c79b0a857..3fd0d2fd516e2438c8c0ede96bd7646f239756e4 100644 (file)
@@ -335,6 +335,8 @@ static efi_status_t EFIAPI efi_cout_clear_screen(
        EFI_ENTRY("%p", this);
 
        printf(ESC"[2J");
+       efi_con_mode.cursor_column = 0;
+       efi_con_mode.cursor_row = 0;
 
        return EFI_EXIT(EFI_SUCCESS);
 }