* [PATCH] defaultenv: Unblank cursor at startup
@ 2016-07-24 5:58 Alexander Shiyan
2016-08-03 5:43 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Shiyan @ 2016-07-24 5:58 UTC (permalink / raw)
To: barebox
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>
---
defaultenv/defaultenv-1/bin/init | 2 +-
defaultenv/defaultenv-2-base/bin/init | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/defaultenv/defaultenv-1/bin/init b/defaultenv/defaultenv-1/bin/init
index 4781b5a..a55d293 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 37ee365..7af3c7d 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
--
2.7.3
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] defaultenv: Unblank cursor at startup
2016-07-24 5:58 [PATCH] defaultenv: Unblank cursor at startup Alexander Shiyan
@ 2016-08-03 5:43 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2016-08-03 5:43 UTC (permalink / raw)
To: Alexander Shiyan; +Cc: barebox
On Sun, Jul 24, 2016 at 08:58:29AM +0300, Alexander Shiyan wrote:
> 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>
> ---
> defaultenv/defaultenv-1/bin/init | 2 +-
> defaultenv/defaultenv-2-base/bin/init | 1 +
> 2 files changed, 2 insertions(+), 1 deletion(-)
Applied, thanks
Sascha
>
> diff --git a/defaultenv/defaultenv-1/bin/init b/defaultenv/defaultenv-1/bin/init
> index 4781b5a..a55d293 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 37ee365..7af3c7d 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
> --
> 2.7.3
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-03 5:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-24 5:58 [PATCH] defaultenv: Unblank cursor at startup Alexander Shiyan
2016-08-03 5:43 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox