eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 61e8a640b1e5881ccca40b38f14627d878b7ac5c
parent 848897ec172f5617cbc8b261715e7556184042f2
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date:   Wed,  8 Apr 2020 16:14:07 -0700

client: Rewrite workaround for readline

Instead of calling display(""), explicitly use the sequence of
commands to force readline to properly update its internal state
and re-display the prompt.

Diffstat:
Mclient/display.c | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/client/display.c b/client/display.c @@ -534,7 +534,14 @@ void display_enable_cmd_prompt(void) rl_set_prompt(IWD_PROMPT); - display(""); + /* + * The following sequence of rl_* commands forces readline to properly + * update its internal state and re-display the new prompt. + */ + rl_save_prompt(); + rl_redisplay(); + rl_restore_prompt(); + rl_forced_update_display(); } void display_disable_cmd_prompt(void)