whirly icon indicating copy to clipboard operation
whirly copied to clipboard

Whirly emits multiple new lines

Open roscom opened this issue 6 years ago • 1 comments
trafficstars

When Whirly.status > a certain length, it emits new lines continuously, whilst displaying the status at the right location.

Colorize is used to add color to the status line content.

The line defined?(Paint) yields "constant" in lib/whirly.rb; so it is defined. But the gem paint is not "required".

Even when required, it makes no difference.

With color sequences in the status value, its hard to know the actual length of the status line.

It looks like one new line is emitted for each refresh of the spinner (at whatever rate that occurs) when the length of the status line exceeds a certain length.

The Whirly config contained in initializers/whily.rb

Whirly.configure spinner: "bars", position: "normal", append_newline: false, remove_after_stop: true, status: 'patience please...'

roscom avatar Oct 27 '19 18:10 roscom

Thank you for reporting this!

janlelis avatar Sep 29 '22 13:09 janlelis