Skip to content

Cannot display two spinners at the same time #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ipeychev opened this issue Jun 3, 2019 · 7 comments
Open

Cannot display two spinners at the same time #116

ipeychev opened this issue Jun 3, 2019 · 7 comments

Comments

@ipeychev
Copy link

ipeychev commented Jun 3, 2019

Hello, I'm using ora 3.4.0 on MacOS Mojave with Terminal Version 2.9.4 (421.1.1).

It seems I cannot create two spinnners in the same time and handle their progress. Here is the code:

const ora = require('ora');

const one = ora('test1').start();
const two = ora('test2').start();

setTimeout(() => {
  one.text = 'test1 in progress';
  two.text = 'test2 in progress';
}, 1000);

setTimeout(() => {
  one.succeed('test1 finished successfully');
  two.succeed('test2 finished successfully');
}, 2000);

And here is the result:

record

I would expect the first spinner to stay there and not to disappear. Is that by purpose or this is an issue?

@a-sierra
Copy link

a-sierra commented Jun 13, 2019

Hi @ipeychev! It seems that ora doesn't support multiple spinners. I was struggling with this same problem last week until I found spinnies, another library that supports multiple spinners and has a very similar API. It would be great if there was any plan to support more than one spinner instance at the time in ora!

@ngocdaothanh
Copy link

You may want to use listr: https://www.npmjs.com/package/listr.

@LaboratorioInternacionalWeb

You can try: https://www.npmjs.com/package/multispinners

@FireController1847
Copy link

FireController1847 commented Sep 8, 2022

Just out of curiosity, is there any discussion regarding if this feature is going to be supported or not?

@cumt-robin
Copy link

I'm also curious about this problem

@dtinth
Copy link

dtinth commented Sep 8, 2024

ended up using https://github.com/listr2/listr2

@drone1
Copy link

drone1 commented Mar 31, 2025

Would also love an answer. This would be quite nice. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants