Open MetroWind opened 7 years ago
I think colors should be used by default, but it should use the "standard" colors, not the extended color codes. The "standard" colors are adjustable, so they're readable on light themes, but the current colors lack contrast there.
@MetroWind @kelunik
What do you think about this idea: what if we use some special domain name where the text only version: something like "t.cheat.sh" or "t.cht.sh"? In this case we could just access plain text cheat sheets without appending anything to the URL?
@chubin Sounds good to me, but doesn't help users of light themes who want colors but not the current ones (like me).
@kelunik I use pygmentize that just generates this output. Probably we need some form of colors normalization
By the way, do you know that we have various color schemes? Have you tried:
curl cht.sh/:styles-demo
?
@chubin No, I didn't know that, yet. Maybe it just needs a default theme that works on light and dark?
what if we use some special domain name where the text only version
@chubin That would work for me.
As to @kelunik’s point, I think it would be better if the “main text” part can be uncolored by default, so the terminal would just use the normal text color for those. The “special text” can use the standard colors, and they should look good on all cases (as long as the users takes care of their terminal settings…). Although it could be hard to judge what counts as “main text”.
@MetroWind As a temporary workaround I would suggest you using the cht.sh client (cht.sh), which has its configuration file, where you can specify query options, so that you always will get answers without ANSI-sequences. It has many other advantages, and can be used in scripts or wherever you want so gad as curl (the only disadvantage is that you have to install it first, though it is not a big problem because it is a simple bash script).
Is there a way to get a light background on the website? I find it very hard to read with the dark background.
Depending on the background, the default style is not ideal for colorblind users but I finally figured out how to change the style after all these months and hundreds of commands lol.
+1 for using only the standard 16 color ANSI codes and maybe attributes such as "bright" or "dim" in the default case, so that the display naturally adapts to the color theme being used by the terminal, be it light or dark.
?T
exists, but to use it I have to quote the URI, which is annoying.