defaultenv: Unblank cursor at startup
PATCH 1/1 defaultenv: Unblank cursor at startup
In some cases, the user program can disable the cursor, for example, Qt4 library do this, so the cursor remains invisible after the restart.
The patch adds a command to activate the cursor,
by sending DECTECM command to the terminal.
Signed-off-by Alexander Shiyan <[email protected]>
--- defaultenv/defaultenv-1/bin/init | 2 +- defaultenv/defaultenv-2-base/bin/init | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
defaultenv/defaultenv-1/bin/init +1 -1
@@ -22,10 +22,10 @@ if [ -f /env/bin/init_board ]; then . /env/bin/init_board fi +echo -e "\e[?25h" if [ -f /env/bin/boot_board ]; then . /env/bin/boot_board elif [ -n $autoboot_timeout ]; then - echo echo -n "Hit any key to stop autoboot: " timeout -a $autoboot_timeout if [ $? != 0 ]; then
defaultenv/defaultenv-2-base/bin/init +1 -0
@@ -32,6 +32,7 @@ magicvar -a global.allow_color "Allow color on the console (boolean)" timeout -s -a -v key 0 autoboot="$?" +echo -e -n "\e[?25h" if [ "${key}" = "q" ]; then exit fi
Signature · 7 lines
2.7.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 11 lines · Alexander Shiyan
In some cases, the user program can disable the cursor, for example, Qt4 library do this, so the cursor remains invisible after the restart.
The patch adds a command to activate the cursor,
by sending DECTECM command to the terminal.Signed-off-by Alexander Shiyan <[email protected]>--- defaultenv/defaultenv-1/bin/init | 2 +- defaultenv/defaultenv-2-base/bin/init | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
Applied, thanks
Sascha
Quoted 38 lines
defaultenv/defaultenv-1/bin/init +1
-1@@ -22,10 +22,10 @@ if [ -f /env/bin/init_board ]; then . /env/bin/init_board fi +echo -e "\e[?25h" if [ -f /env/bin/boot_board ]; then . /env/bin/boot_board elif [ -n $autoboot_timeout ]; then - echo echo -n "Hit any key to stop autoboot: " timeout -a $autoboot_timeout if [ $? != 0 ]; thendefaultenv/defaultenv-2-base/bin/init +1
-0@@ -32,6 +32,7 @@ magicvar -a global.allow_color "Allow color on the console (boolean)" timeout -s -a -v key 0 autoboot="$?" +echo -e -n "\e[?25h" if [ "${key}" = "q" ]; then exit fiSignature · 7 lines
2.7.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox