1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Flush console just after printing

This commit is contained in:
aycabta 2019-10-06 00:52:20 +09:00
parent 136116819e
commit a9e9cd2036

View file

@ -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