Coder Social home page Coder Social logo

Comments (13)

chrisallenlane avatar chrisallenlane commented on June 14, 2024

I noticed this as well last night.

What pager are you using? I noticed that if I'm using less it works fine. Otherwise, I get an error if I have no pager configured. Is that what you're seeing as well?

Thanks for your help once more 🙂

from cheat.

chrisallenlane avatar chrisallenlane commented on June 14, 2024

This is being caused by the code that underlines the cheatsheet titles.

Now that I'm looking at this with fresh eyes, I don't like the underlining anyway. It adds too much visual noise to the results. I'm just going to rip it out.

from cheat.

chrisallenlane avatar chrisallenlane commented on June 14, 2024

@vaporup, this should be resolved in the 4.2.7 release:

https://github.com/cheat/cheat/releases/tag/4.2.7

Please let me know if that works for you. Thanks.

from cheat.

chrisallenlane avatar chrisallenlane commented on June 14, 2024

Oh, and one note about this one:

cheat -c ls

-c is short for --colorize, so it's always going to produce colorized output no matter what. That first example thus is expected behavior.

The cheat -s ls example was a bug, however, and should now be resolved with the newest release.

from cheat.

vaporup avatar vaporup commented on June 14, 2024

Well,
I still get ANSI sequences with -c but no colors

from cheat.

chrisallenlane avatar chrisallenlane commented on June 14, 2024

@vaporup, oh, I see. I (partially) misunderstood the nature of the problem.

Yeah, it looks like if I disable the pager, I also get ANSI codes without colors. I'll take a second look at this. Thanks.

from cheat.

chrisallenlane avatar chrisallenlane commented on June 14, 2024

@vaporup, please try 4.3.0 and see if that solves the problem for you:

https://github.com/cheat/cheat/releases/tag/4.3.0

Note that cheat handles pagers somewhat differently now. It only reads pager configs from the config file, and no longer searches for pagers during runtime.

I don't think you were using a pager anyway (and you were thus able to identify this problem), but if you were, you may need to modify your config file.

Thanks again.

from cheat.

vaporup avatar vaporup commented on June 14, 2024

The Escape sequences are gone but I don't get colored output using -c

from cheat.

chrisallenlane avatar chrisallenlane commented on June 14, 2024

@vaporup, please paste the contents of your cheat config file in this thread so I can take a look. Thanks.

from cheat.

vaporup avatar vaporup commented on June 14, 2024

I always delete ~/.config/cheat when testing a new release, so it is the default config which is created on first run

from cheat.

chrisallenlane avatar chrisallenlane commented on June 14, 2024

Thanks again, @vaporup

I was able to reproduce the problem. Please try the 4.3.1 release:
https://github.com/cheat/cheat/releases/tag/4.3.1

As far as I can tell, this finally solves the problem. I'll optimistically close this ticket, but please let me know if this is still broken for you. Thanks.

from cheat.

vaporup avatar vaporup commented on June 14, 2024

Looks good now :-)

from cheat.

chrisallenlane avatar chrisallenlane commented on June 14, 2024

Great to hear. Thanks, @vaporup 👍

from cheat.

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.