lib/bolt/outputter/rainbow.rb in bolt-2.40.1 vs lib/bolt/outputter/rainbow.rb in bolt-2.40.2
- old
+ new
@@ -61,10 +61,10 @@
string
end
end
def start_spin
- return unless @spin
+ return unless @spin && @stream.isatty
@spin = true
@spin_thread = Thread.new do
loop do
@stream.print(colorize(:rainbow, @pinwheel.rotate!.first + "\b"))
sleep(0.1)