-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Does it make sense to support outputting arbitrary colors? #42
Comments
@ldionne yes it is possible but not with the current code. But again not a lot of code will change for its implementation since much of the code is common. Another function which takes hex as args will do but will have to be tested on lots and lots of terminals again. Here is the community-maintained list of terminals for such feature - https://gist.github.com/XVilka/8346728 The problem is not every vt100 family terminal supports such feature, but if there's demand I can work on same. And I'm willing to accept PRs for the same too 😄 |
Thanks for the answer. Don't consider this a feature request; I just wanted to know if it made sense, and if so bring it to your attention because it's an obvious generalization of being able to output predefined colors only. |
I'll work on a separate function under the same namespace and test it on a few machines in next few days. If everything works out, I'll release a newer version of rang with said feature. |
@ldionne So I've tested a prototype that supports both 256 colors and 24 bit truecolor(rgb mode) but the problem that remains is - there is no way to test if a terminal emulator supports it or not. Some of them do, but we still cannot hardcode them with tldr; it works but there is no way to know if certain terminal supports it or not, windows 10 works. |
Would it make sense to allow outputting arbitrary colors specified by a hex color code? I'm not sure whether that can even be implemented (i.e. whether terminals even support it), so this is more a question than a feature request at this point.
The text was updated successfully, but these errors were encountered: