aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-03-29 17:09:22 +0100
committerTom Rini <trini@konsulko.com>2024-04-12 08:53:31 -0600
commitd2e4b2fa04cfeb71b821f9d0100d886b7f9e166c (patch)
treee7355f346119bef2234b0ce86b15b3323c5d7eff /common
parentac0cd5267f1ba6a3cb1daf42b9c6230037cb0414 (diff)
downloadu-boot-d2e4b2fa04cfeb71b821f9d0100d886b7f9e166c.zip
u-boot-d2e4b2fa04cfeb71b821f9d0100d886b7f9e166c.tar.gz
u-boot-d2e4b2fa04cfeb71b821f9d0100d886b7f9e166c.tar.bz2
cli: always show cursor
We may enter the command line interface in a state where on the remote console the cursor is not shown. Send an escape sequence to enable it. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'common')
-rw-r--r--common/cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/cli.c b/common/cli.c
index a349382..1c33daf 100644
--- a/common/cli.c
+++ b/common/cli.c
@@ -11,6 +11,7 @@
#define pr_fmt(fmt) "cli: %s: " fmt, __func__
#include <common.h>
+#include <ansi.h>
#include <bootstage.h>
#include <cli.h>
#include <cli_hush.h>
@@ -336,4 +337,7 @@ void cli_init(void)
#if defined(CONFIG_HUSH_INIT_VAR)
hush_init_var();
#endif
+
+ if (CONFIG_IS_ENABLED(VIDEO_ANSI))
+ printf(ANSI_CURSOR_SHOW "\n");
}