-
Notifications
You must be signed in to change notification settings - Fork 73
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
Support "process.stdout.write" in logging #24
Comments
Hi ! You can replace the text of an animation that has already started. For example, you can add a dot every second like this :
(sorry about formatting, I'm on mobile) |
I found a solution to this. I created a pr for it #25 |
Hi, There is not need to do a PR that changes the whole thing, just use For example, here is what I can achieve with the following code: // server.js
import chalkAnimation from 'chalk-animation';
let seconds = 43;
let left = '06:00:' + seconds;
const rainbow = chalkAnimation.rainbow(left);
setInterval(() => {
seconds = seconds - 1;
left = '06:00:' + seconds;
rainbow.replace(left);
}, 1000); |
hi, i tried what you suggested and it wasn't working. I waited for hours for a working example but you weren't available. |
Yeah sorry I'm usually away from my computer on weekends. Is the last example working for you? |
Hi, i love this project and i wanted to suggest a feature .
i normally use this code to update figures/values on the same line without creating newlines.
just like console.log,but it doesn't create a newline always.
Example is when creating a countdown/timer in the terminal.
and it works perfectly.
But when i add it to the chalk-animation syntax like
i get this error
Is there any way to do this?
Thanks
The text was updated successfully, but these errors were encountered: