aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/kexecboot/kexecboot-0.4/switch-cursor-off.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/kexecboot/kexecboot-0.4/switch-cursor-off.patch')
-rw-r--r--recipes/kexecboot/kexecboot-0.4/switch-cursor-off.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/kexecboot/kexecboot-0.4/switch-cursor-off.patch b/recipes/kexecboot/kexecboot-0.4/switch-cursor-off.patch
new file mode 100644
index 0000000000..632cc6a01c
--- /dev/null
+++ b/recipes/kexecboot/kexecboot-0.4/switch-cursor-off.patch
@@ -0,0 +1,11 @@
+--- a/kexecboot.c
++++ b/kexecboot.c
+@@ -512,6 +512,9 @@ int main(int argc, char **argv)
+ DPRINTF("FB angle is %d, input device is %s\n", angle, eventif);
+ DPRINTF("Going to fb mode\n");
+
++ /* Switch cursor off. NOTE: works only when master-console is tty */
++ printf("\033[?25l\n");
++
+ if ((fb = fb_new(angle)) == NULL)
+ exit(-1);