From f952820eb6836b8c9a31fa5c55d1931483396125 Mon Sep 17 00:00:00 2001 From: Eder Ruiz Maria Date: Tue, 2 Apr 2013 19:31:24 -0400 Subject: [PATCH] gatttool: Use bluetoothctl behavior when pressing Enter on empty prompt --- attrib/interactive.c | 1 + 1 file changed, 1 insertion(+) diff --git a/attrib/interactive.c b/attrib/interactive.c index 4fd22807c..ecb8b7d75 100644 --- a/attrib/interactive.c +++ b/attrib/interactive.c @@ -930,6 +930,7 @@ int interactive(const gchar *src, const gchar *dst, g_io_add_watch(pchan, events, prompt_read, NULL); rl_attempted_completion_function = commands_completion; + rl_erase_empty_line = 1; rl_callback_handler_install(get_prompt(), parse_line); g_main_loop_run(event_loop); -- 2.47.3