diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2016-07-24 08:58:29 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-08-03 07:43:23 +0200 |
commit | eaacdd58766490b2b7d54b640945da478decbeb9 (patch) | |
tree | 875b91fa16ab1aa70414b5d6b17f7f26c4522ab2 /defaultenv/defaultenv-1/bin/init | |
parent | 741642a8622c43533828f722216bfd3d3be9d48a (diff) | |
download | barebox-eaacdd58766490b2b7d54b640945da478decbeb9.tar.gz barebox-eaacdd58766490b2b7d54b640945da478decbeb9.tar.xz |
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>
Diffstat (limited to 'defaultenv/defaultenv-1/bin/init')
-rw-r--r-- | defaultenv/defaultenv-1/bin/init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/defaultenv/defaultenv-1/bin/init b/defaultenv/defaultenv-1/bin/init index 4781b5a963..a55d293f03 100644 --- a/defaultenv/defaultenv-1/bin/init +++ b/defaultenv/defaultenv-1/bin/init @@ -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 |