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
Add support for no-colors and no-emoticons output #546
Comments
I second this. |
Interesting. There is an open issue for raw output with |
Regarding the What I'm asking for with Thus my proposal for |
Sounds good.
|
we don't need syntax highlighting at this moment. So no need for that. (Also we currently are not able to report the row and column number of a bad URL, so previewing the lines around the bad URL is not feasible.) |
Sorry, I rather wanted to point out the automatic environment detection through the |
Use TERM to decide whether to use color is not reliable because it can be set wrong. But if we assume it's set correctly as in most cases, we still need terminfo to determine whether it supports colors. See https://docs.rs/terminfo/latest/terminfo/capability/index.html (Also note that termcap doesn't work for this purpose, because it doesn't include color capability.) But then if we do want to use terminfo, is that a bit overkill? Detecting pipe is a good idea but counterintuitive it may not be what you want. Take Emacs as an example, it often takes the output of an external program not from pipe, but from a temporary file. Also it can display escape sequence so for example cargo-process (an Emacs plugin for cargo) just keeps the colors from cargo. So I believe we should not turn off color automatically when there's a pipe. |
This is somewhat related to #271, but not quite.
Instead of outputting JSON, it would be nice to have the current output (including progress), but without colors and without emojis / emoticons.
For example, on
rxvt-unicode
withJetBrains Mono NL
font, the emoticons can't be displayed (basically I get an empty rectangle), and if the user has custom background / foreground fonts, the output oflychee
can be hard to see (in my case I happen to use a reddish background, and thus all the errors practically blend into the background).Thus, perhaps a
--nocolor
(and perhaps also respecting https://no-color.org/) option should disable the usage of emojis / emoticons and the usage of custom colors.Also, perhaps to improve compatibility, the progress bar can be rendered with ASCII characters like
[====>---]
.The text was updated successfully, but these errors were encountered: