Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b434a680 authored by Matthew Garrett's avatar Matthew Garrett Committed by H. Peter Anvin
Browse files

vgacon: Add support for setting the default cursor state



Pass the vga cursor state to the vt layer, ensuring that we don't hide
the cursor when the bootloader has deliberately disabled it.

Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
LKML-Reference: <1258142222-16092-3-git-send-email-mjg@redhat.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent f6c06b68
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -586,7 +586,10 @@ static void vgacon_init(struct vc_data *c, int init)
	if (!vgacon_uni_pagedir[0] && p)
		con_set_default_unimap(c);

	hide_boot_cursor(screen_info.flags & VIDEO_FLAGS_NOCURSOR);
	/* Only set the default if the user didn't deliberately override it */
	if (global_cursor_default == -1)
		global_cursor_default =
			!(screen_info.flags & VIDEO_FLAGS_NOCURSOR);
}

static void vgacon_deinit(struct vc_data *c)