Skip to content

Cannot display two spinners at the same time #116

@ipeychev

Description

@ipeychev

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions