diff mbox series

[BlueZ] shared/shell: add proper line clean to bt_shell_printf

Message ID 20250117180611.14869-1-hitechshell@mail.ru
State New
Headers show
Series [BlueZ] shared/shell: add proper line clean to bt_shell_printf | expand

Commit Message

Denis Burkov Jan. 17, 2025, 6:06 p.m. UTC
---
 src/shared/shell.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/src/shared/shell.c b/src/shared/shell.c
index aa6c16c8c..837152525 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -719,6 +719,7 @@  void bt_shell_printf(const char *fmt, ...)
 		saved_line = rl_copy_text(0, rl_end);
 		if (!data.saved_prompt)
 			rl_save_prompt();
+		rl_clear_visible_line();
 		rl_reset_line_state();
 	}