From eaacdd58766490b2b7d54b640945da478decbeb9 Mon Sep 17 00:00:00 2001 From: Alexander Shiyan Date: Sun, 24 Jul 2016 08:58:29 +0300 Subject: 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 Signed-off-by: Sascha Hauer --- defaultenv/defaultenv-1/bin/init | 2 +- defaultenv/defaultenv-2-base/bin/init | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'defaultenv') 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 diff --git a/defaultenv/defaultenv-2-base/bin/init b/defaultenv/defaultenv-2-base/bin/init index 37ee3651ba..7af3c7d95c 100644 --- a/defaultenv/defaultenv-2-base/bin/init +++ b/defaultenv/defaultenv-2-base/bin/init @@ -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 -- cgit v1.2.3