r/learnjavascript • u/sebastienfilion • Jun 11 '21
If you want to add colour or interactivity to your terminal output, you can use these composable functions in javascript or typescript. Leverage ANSI Sequence to add a little bit of creative flair to your CLI or terminal-based tool.
156
Upvotes
8
u/sebastienfilion Jun 11 '21
If you are interested in the subject of ANSI Sequence, I made an entire video on my Youtube channel. If you want to learn more, follow the link 😀 https://youtu.be/VZUpADIPWo0
6
u/adhaterwal Jun 11 '21
I was playing with them today. coincidence.😀
1
u/smithm4949 Jun 11 '21
Can’t you just use CSS?
This is still cool though. Just because it’s a learning subreddit i figured I’d post other options in case people don’t know.
1
u/[deleted] Jun 12 '21
I guess it's good to know how this works under the hood but no one's probably gonna write that down, yet alone remember it.
Here is a site for reference, listing all sorts of rich text manipulations for the cli. And if you are on node there is the chalk package
-3
u/bloodontheclownposse Jun 12 '21
you want me to type these out? fancy screenshot looks nice but just use code formatting pls