usmanyunusov / nanospinner

🌀 The simplest and tiniest terminal spinner for Node.js
https://npm.im/nanospinner
ISC License
181 stars 14 forks source link

Can't show 2 spinners at the same time #20

Open Olyno opened 2 years ago

Olyno commented 2 years ago

Hi 👋🏻

I'm trying to setup 2 spinners at the same time, but it looks like i can't. My code:

import { createSpinner } from 'nanospinner';

const a = createSpinner('Spinner A').start();
const b = createSpinner('Spinner B').start();
setTimeout(() => {
  a.success();
  b.success();
  process.exit(0);
}, 3000);

Result:

Record_select-area_20220426144326

usmanyunusov commented 2 years ago

@Olyno, running two spinners at the same time does not work.

Olyno commented 2 years ago

I understand that, but wouldn't it be possible to correct/improve that so that you can display several spinners at the same time. I had created the issue for this purpose