ansicolor-dart
ansicolor-dart copied to clipboard
Ability to nest styles
Currently when you try to nest styles it doesn't work because when a pen is done writing it resets all styles, not just its own. Here's one take on an API to do this:
https://github.com/sindresorhus/chalk#api
I know I'm late on responding to these. I like the idea of storing a stack of "complete state" such that:
- down: bold + red + green background
- down: bold + blue background
- up
Would see only having the blue background removed and green background restored at step-3