sindresorhus / ora

Elegant terminal spinner
MIT License
9.08k stars 269 forks source link

Blinking on Windows #160

Closed ffMathy closed 3 years ago

ffMathy commented 3 years ago

While spinning, the whole text (including the spinner itself) blinks on Windows.

Tested in cmd.

sindresorhus commented 3 years ago

That's just cmd being slow. Not much we can do about that. I would recommend switching to Windows Terminal.

ffMathy commented 3 years ago

How does Docker do it then when showing its progress bar and pulling images?

It doesn't blink at all. Neither does webpack etc.

cossssmin commented 3 years ago

It blinks for me in both Windows Terminal and in Git Bash.

altano commented 3 years ago

I am seeing blinking in Windows Terminal as well, when SSHed into my Ubuntu server:

https://user-images.githubusercontent.com/1009/130723893-b95933fd-e3ef-48fc-ab91-36d289f250a4.mp4

WakerCN commented 1 year ago

did anyone resolve blink in windows terminal? blink

const ora = require('ora');
const spinners = require('cli-spinners');

const spinner = ora({
  text: 'loading ...'
});

spinner.spinner = spinners.timeTravel;

spinner.start();