Skip to content
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

Please don’t color the text by default… #5

Open
MetroWind opened this issue May 26, 2017 · 10 comments
Open

Please don’t color the text by default… #5

MetroWind opened this issue May 26, 2017 · 10 comments

Comments

@MetroWind
Copy link

  • People have their own preference for text color, please don’t force it…
  • I know ?T exists, but to use it I have to quote the URI, which is annoying.
  • The color chosen here could be unfriendly to light theme users.
@kelunik
Copy link

kelunik commented Jul 3, 2018

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.

image

@chubin
Copy link
Owner

chubin commented Jul 3, 2018

@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?

@kelunik
Copy link

kelunik commented Jul 3, 2018

@chubin Sounds good to me, but doesn't help users of light themes who want colors but not the current ones (like me).

@chubin
Copy link
Owner

chubin commented Jul 3, 2018

@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

?

@kelunik
Copy link

kelunik commented Jul 4, 2018

@chubin No, I didn't know that, yet. Maybe it just needs a default theme that works on light and dark?

@MetroWind
Copy link
Author

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”.

@chubin
Copy link
Owner

chubin commented Jul 8, 2018

@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).

@chubin chubin mentioned this issue Aug 12, 2018
9 tasks
@athajaerel
Copy link

Is there a way to get a light background on the website? I find it very hard to read with the dark background.

@cameronj86
Copy link

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.

@oir
Copy link

oir commented Sep 23, 2024

+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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants