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:
parent
136116819e
commit
a9e9cd2036
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue