From a9e9cd20369ea110333deb2ef7c23b5ed7d09773 Mon Sep 17 00:00:00 2001 From: aycabta Date: Sun, 6 Oct 2019 00:52:20 +0900 Subject: [PATCH] Flush console just after printing --- lib/reline/line_editor.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index fdeedfc81c..4bf280fcec 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -305,6 +305,7 @@ class Reline::LineEditor @menu_info.list.each do |item| Reline::IOGate.move_cursor_column(0) @output.print item + @output.flush scroll_down(1) end scroll_down(@highest_in_all - 1) @@ -540,6 +541,7 @@ class Reline::LineEditor next end @output.print line + @output.flush if @first_prompt @first_prompt = false @pre_input_hook&.call