Comments (3)
As with #20, I don't think these decisions should be up to yansi
.
Ensuring people call enable_windows_ascii and disable color when it fails ---color=<always|auto|never>.
I do think we should automate this, however. I've opened #25.
from yansi.
To be clear, I wouldn't put this directly in yansi
but a yansi-detect
or clap-yansi
crate. People can opt-in as they wish, depending on the crate, calling the initialization, and filtering their color palettes accordingly but having a default policy to get people up and running on best practices is a big ergonomic win and developing the two together is also a big help for users.
from yansi.
I'm happy to support any efforts technically, but I have no opinion on which standard/policy users should follow.
from yansi.
Related Issues (20)
- Purple? Magenta? HOT 1
- Automatic disabling when stdout/stderr is not a terminal. HOT 1
- Docify crate HOT 3
- Bright colors? HOT 6
- Implement standard traits for Style HOT 3
- Update docs to call out `Default` constructor for Style HOT 2
- API to constrain a `Style` from truecolor to basic colors HOT 3
- const-fn the API HOT 2
- Global enable/disable encourages the wrong behavior HOT 4
- Add hyperlink style support HOT 6
- Gracefully initialize/auto-detect behind the scenes? HOT 3
- Add a feature flag to automate Windows coloring HOT 6
- Version 1.0? HOT 2
- Used parking_lot version is quite old HOT 5
- Cannot build/compile from source HOT 1
- Impl `{Upper,Lower}Hex` for `Paint` HOT 1
- The method `clear` in trait `Paint` causes a conflict with `Vec::clear` HOT 4
- FR: Implement `AsRef<str>` for `Painted<&str>`
- Allow conditions to accept closures HOT 2
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 yansi.