Hi,

attached is a patch to hide the VT cursor before displaying SHR splash.

Don't know about you, but that cursor destroying the splash bitmap annoys me. :)

There are of course other ways to do it (i.e. "tput civis") that might be more closs-platform/terminal, but I couldn't make it work in that init script. But that's probably not an issue, as we're always running on linux term.

Regards,

zub
diff --git a/shr-splash/shr-splash.sh b/shr-splash/shr-splash.sh
index d17482d..490b345 100644
--- a/shr-splash/shr-splash.sh
+++ b/shr-splash/shr-splash.sh
@@ -1,6 +1,9 @@
 #!/bin/sh
 case "$1" in
     start)
+       # Hide cursor
+       echo -n -e "\033[?25l" > /dev/tty0
+
        if [ -f /usr/share/shr-splash/theme/boot.fb ]; then
          (cat /usr/share/shr-splash/theme/boot.fb > /dev/fb0) &
        else
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to