9
0
Fork 0

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 <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Alexander Shiyan 2016-07-24 08:58:29 +03:00 committed by Sascha Hauer
parent 741642a862
commit eaacdd5876
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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