From: Heinrich Schuchardt Date: Fri, 29 Mar 2024 16:09:22 +0000 (+0100) Subject: cli: always show cursor X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=d2e4b2fa04cfeb71b821f9d0100d886b7f9e166c;p=u-boot.git 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 --- diff --git a/common/cli.c b/common/cli.c index a34938294e..1c33daf114 100644 --- a/common/cli.c +++ b/common/cli.c @@ -11,6 +11,7 @@ #define pr_fmt(fmt) "cli: %s: " fmt, __func__ #include +#include #include #include #include @@ -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"); }