From edc38768ffc86b566e51c895aa09f394a6d95c5a Mon Sep 17 00:00:00 2001 From: Jakub Pawlowski 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). Signed-off-by: Jakub Pawlowski Signed-off-by: Joachim Nilsson --- 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)