ruby-changes:56698
From: Nobuyoshi <ko1@a...>
Date: Mon, 29 Jul 2019 23:14:54 +0900 (JST)
Subject: [ruby-changes:56698] Nobuyoshi Nakada: c2428b8bf6 (master): Erase only on tty
https://git.ruby-lang.org/ruby.git/commit/?id=c2428b8bf6 From c2428b8bf6f3646f575c21d0c89192d79130f7cc Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 29 Jul 2019 23:04:04 +0900 Subject: Erase only on tty diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 4e9196e..56b4b12 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -171,8 +171,8 @@ End https://github.com/ruby/ruby/blob/trunk/bootstraptest/runner.rb#L171 end def erase(e = true) - if e and @columns > 0 and !@verbose - "\r#{" "*@columns}\r" + if e and @columns > 0 and @tty and !@verbose + "\e[1K\r" else "" end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/