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
Change the spinner while ora is running? #94
Comments
It's not documented, but I think you can set |
That works but it breaks now and then, I assume because of Code: const ora = require('ora');
const spinners = require('cli-spinners');
const spinArray = [];
for (const spinner in spinners) {
spinArray.push(spinners[spinner]);
}
const progress = ora('test').start();
progress.color = 'green';
setInterval(() => {
progress.spinner = spinArray[Math.floor(Math.random() * spinArray.length)];
}, 1000); |
Ok. Thanks for testing. |
We should rename Lines 26 to 30 in bbc82a4
|
@issuehuntfest has funded $40.00 to this issue. See it on IssueHunt |
@IssueHunt has cancelled funding for this issue.(Cancelled amount: $40.00) See it on IssueHunt |
@IssueHunt has funded $40.00 to this issue.
|
@sindresorhus has rewarded $36.00 to @jeetiss. See it on IssueHunt
|
Hi, didn't see an issue for this while searching. Could it be possible to have some way of changing the current spinner while ora is running? From some testing there's no way to do this without having ora enter a newline.
clear()
only removes the spinner and not the text so it persists.The text was updated successfully, but these errors were encountered: