Closed kaushalmodi closed 6 years ago
Hey,
I'm aware of terminal.styledEcho
, but I couldn't seem to echo
multiple colors in a single line.
Perhaps submit a PR if you can get it to work?
I agree that the procs don't get composable as in your approach, but it's still possible, and IMO the code is more readable.
In summary, you don't have to merge this. But this was a fun exercise :)
I saw your repo, and hey, it looks good to me. Feel free to submit a PR :')
I'm going to reopen this, if someone has a better approach.
Hello,
I see that you are using the ANSI escape codes at low level.
Have you looked at
terminal.styledEcho
? May be having your procs wrappers around styledEcho adds Windows compatibility?