I want to be able to use the terminal to see rgb coloring for just one "swatch" character (■) as this is pretty convenient. I also like the dark themes (In my case I use Dark+ theme). The problem is that I can't see the true color of the swatch because the dark theme overrides it.
In Python terminal print('\x1b[38;2;0;0;0m■\x1b[0m') and in zsh terminal echo '\x1b[38;2;0;0;0m■\x1b[0m' using black coloring (rgb (0,0,0)) both result in a medium gray: 
But if I change the theme (in this case Light+ theme)or just go to zsh directly the character prints as black (as expected):
How can I get this one character (■) to print without the color theme over riding it (and hopefully, not permanently altering the color theme) regardless of the rgb values I pass? Ideally, I'd want a solution that can work temporarily (on the fly, print, back to set theme) from Python (not sure if this is possible; I do have code cli installed) without over riding the settings permanently. Though, for other future searchers, it may be instructive to see how to permanantly override the color theme for just one character.
from Override Theme Coloring for Just One Character (in VS Code using Python)


No comments:
Post a Comment