miniplayer
miniplayer copied to clipboard
Reset color data when program exits
Hey again, I noticed that when I have colors set to auto
in the config file, these colors tend to persist and bleed into other TUI apps that are launched from within the same terminal, ie ncmpcpp
-
running
miniplayer
, colors get applied based on artwork: -
running
ncmpcpp
, colors which miniplayer applied persist:
I'm not 100% on this, but I believe ColorThief applies colors via escape sequences, which would probably explain why this happens. I suspect that if there is a way to clear all color values set by miniplayer once the program exits that this would no longer occur. Would sourcing colors from xresources upon exit be a good idea?
What do you think?