Multiline strings infinite loop
See original GitHub issueThere’s a weird thing that happens when you use multiline strings with the rainbow animation:
sample:
chalkAnimation.rainbow(`tripping on rainbow road`); // is OK
chalkAnimation.rainbow(`
tripping on rainbow road`); // infinite loop of newlines
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
reading multiple lines of input always runs an infinite loop ...
I'm trying to process multiple lines of input from the console using a Scanner in Java, and it runs in an infinite loop...
Read more >Appendix to Detecting and Escaping Infinite Loops with Jolt
Abstract. Infinite loops make applications unresponsive. Potential prob- lems include lost work or output, denied access to application functional-.
Read more >for loop with multiline data - bash - Unix Stack Exchange
I need to create a script with a loop through a list of items. I want to insert a string in the script....
Read more >ControlStructureSpacingSniff fails on multiline string #2642
Fails (with infinite loop?) when handling a multiline string. /ccel-shared# cli/vendor/bin/phpcs --version PHP_CodeSniffer version 3.5.0 (stable) ...
Read more >Top 4 Types of Statements in Python Infinite Loop - eduCBA
Here we discuss Introduction to Python Infinite Loop and Different types of ... loop can be a single line or even a block...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
All right, with a logo this big I can understand why the performance is bad.
Anyway, if you still want some fancy 🌈 without the animation, I suggest you gradient-string, another project of mine
chalk-animation cannot do it, but you do!
The
\u001b[2J
escape code will clear the screen, and\u001b[0;0H
will put the cursor at 0,0 (optional, will render differently if you remove it).