summaryrefslogtreecommitdiff
path: root/bootstraptest/runner.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-29 23:04:04 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-29 23:05:41 +0900
commitc2428b8bf6f3646f575c21d0c89192d79130f7cc (patch)
tree53fc7716f435380d2d1cb4fccff880885b737d57 /bootstraptest/runner.rb
parente62a60927e5477380db34c381e142bce812232dd (diff)
Erase only on tty
Diffstat (limited to 'bootstraptest/runner.rb')
-rwxr-xr-xbootstraptest/runner.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index 4e9196ef3d..56b4b12230 100755
--- a/bootstraptest/runner.rb
+++ b/bootstraptest/runner.rb
@@ -171,8 +171,8 @@ End
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