From d7ebad1c4b4a1f5f0ecd865d357803e84652b7a8 Mon Sep 17 00:00:00 2001 From: jakubpawlo Date: Thu, 28 Jan 2016 12:16:17 -0500 Subject: [PATCH] add tty_flush to rl_forced_update_display Forcing update should flush, otherwise weird stuff happen when writing to console asynchronously (cursor is moved, text is not displayed). --- src/editline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editline.c b/src/editline.c index e9e1e67..3ee7aa8 100644 --- a/src/editline.c +++ b/src/editline.c @@ -1170,6 +1170,7 @@ void rl_clear_message(void) void rl_forced_update_display() { redisplay(); + tty_flush(); } char *readline(const char *prompt)