Comments (9)
@inhere Amazing! Would appreciate if you could also add my repo as reference in the REAMDE.md
.
from color.
I found this from https://www.github.com/chalk/supports-color/tree/master/index.js
// Windows 10 build 10586 is the first Windows release that supports 256 colors.
// Windows 10 build 14931 is the first release that supports 16m/TrueColor
from color.
Please use this instead of hardcore logic 🙏
from color.
Also WSL has true color support.
from color.
Here's how I did it https://github.com/Delta456/box-cli-maker/blob/dev/util.go, see detectTerminalColor
function
from color.
ok, thanks
from color.
Thanks you.
I refer xo/terminfo.detectColorLevelFromEnv
and https://github.com/Delta456/box-cli-maker, rewrite the detect method: detectTermColorLevel()
code please see https://github.com/gookit/color/blob/master/detect_env.go
from color.
Also I believe you could had imported my module and used it instead of making one.
from color.
hi @Delta456
Your module also has some problems, please see my detection code
Lines 31 to 156 in 1459bf6
And my package as the base package, can not rely on your application package in reverse. :)
from color.
Related Issues (20)
- Not support in IDEA inner terminal on Windows 10 HOT 6
- How to use OpBold with RGB colors? HOT 1
- alpine support ? HOT 1
- feature request: provide func(RGBColor) C16() Color HOT 13
- panic when running on windows with multiple go routines HOT 4
- windows Using version v1.3.5 Printing does not display colors properly HOT 4
- colors don't work on windows with git for windows while using vscode HOT 35
- color don't work when using screen HOT 1
- Not all paths return value
- No color after v1.4.0 upgrade HOT 10
- color.Basic2hex returns empty string on background color
- feature: add hsl to and from methods HOT 4
- No color output on Windows 7 HOT 2
- How to use it on the command line HOT 1
- Question: How to escape color tags HOT 3
- `ClearCode` doesn't work as intended on Mac OS
- tag-style color rendering fails if lines contain tag like content HOT 5
- [QUESTION] What is the rgb color code for `color.HiCyan`? HOT 5
- Printf does not color the entire string
- Library makes the program slow
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from color.