Coder Social home page Coder Social logo

Comments (9)

chubin avatar chubin commented on July 16, 2024 4

@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

?

from cheat.sh.

chubin avatar chubin commented on July 16, 2024 2

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

from cheat.sh.

kelunik avatar kelunik commented on July 16, 2024 1

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

from cheat.sh.

chubin avatar chubin commented on July 16, 2024

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

from cheat.sh.

kelunik avatar kelunik commented on July 16, 2024

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

from cheat.sh.

kelunik avatar kelunik commented on July 16, 2024

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

from cheat.sh.

MetroWind avatar MetroWind commented on July 16, 2024

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

from cheat.sh.

athajaerel avatar athajaerel commented on July 16, 2024

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

from cheat.sh.

cameronj86 avatar cameronj86 commented on July 16, 2024

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.

from cheat.sh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.