We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dc00859 + 3754646 commit 773bb29Copy full SHA for 773bb29
lib/rdoc/stats/normal.rb
@@ -42,7 +42,7 @@ def print_file files_so_far, filename
42
if $stdout.tty?
43
# Clean the line with whitespaces so that leftover output from the
44
# previous line doesn't show up.
45
- $stdout.print("\r" + (" " * @last_width) + ("\b" * @last_width) + "\r") if @last_width && @last_width > 0
+ $stdout.print("\r\e[K") if @last_width && @last_width > 0
46
@last_width = line.size
47
$stdout.print("#{line}\r")
48
else
0 commit comments