parrot.live
parrot.live copied to clipboard
Color not reset after every frame
The color should be reset after every frame so if you close the connection you can use your terminal normally without a different color.
Spitting out a colors.reset('') after each frame should fix it.
I'm not sure how platform compatible colors.reset(null)
, but I'll try it out and push it up 🚀
Feel free to make a PR though 🙏
colors.reset
is part of the colors library that you are using colors for. In common ANSI speak it should be something like \u001b[0m
.
I've had a play with this and it seems like it doesn't effect my zsh
terminal (it's probably reloading the theme or something after the command finishes), but it does affect bash
and presumably other terminals..
I had a look at resetting the colors after each frame, the only issue is that killing curl
midway through means you can't pipe a final chunk 🤔