Chalk animation is not properly working for WSL
Parth909 opened this issue · 3 comments
Parth909 commented
This is the piece of code
const sleep = (ms = 2000) => new Promise((r) => setTimeout(r, ms));
async function coolRainbowAnimation() {
const rainbowTitle = chalkAnimation.rainbow("This is one cool animation ?\n");
await sleep();
rainbowTitle.stop();
}
await coolRainbow();
The above text is supposed to be animated instead it is being printed to the console multiple times 👇
brandon6190 commented
I was having that very same problem, then I removed the \n for a new line, and it worked as expected. I don't know why the \n is causing this problem.
bokub commented
Thank you @brandon6190 !
Parth909 commented
Thanks @brandon6190