[前][次][番号順一覧][スレッド一覧]

ruby-changes:58144

From: aycabta <ko1@a...>
Date: Mon, 7 Oct 2019 14:16:12 +0900 (JST)
Subject: [ruby-changes:58144] a9e9cd2036 (master): Flush console just after printing

https://git.ruby-lang.org/ruby.git/commit/?id=a9e9cd2036

From a9e9cd20369ea110333deb2ef7c23b5ed7d09773 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Sun, 6 Oct 2019 00:52:20 +0900
Subject: Flush console just after printing


diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index fdeedfc..4bf280f 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -305,6 +305,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L305
       @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 https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L541
         next
       end
       @output.print line
+      @output.flush
       if @first_prompt
         @first_prompt = false
         @pre_input_hook&.call
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]