From 806a552d53c787c0ddea9328a09b0ef124bca26e Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 24 Oct 2024 11:48:05 -0400 Subject: [PATCH] shared/shell: Fix not displaying first prompt Sometimes the prompt is not display when it is just set once (e.g. bluetoothctl when bluetoothd is not running). --- src/shared/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/shell.c b/src/shared/shell.c index a8ad956c7..a8fa87696 100644 --- a/src/shared/shell.c +++ b/src/shared/shell.c @@ -1591,7 +1591,7 @@ void bt_shell_set_prompt(const char *string, const char *color) free(prompt); } - rl_reset_line_state(); + rl_redisplay(); } static bool shell_quit(void *data) -- 2.47.3