Code Monkey home page Code Monkey logo

Comments (6)

vaporup avatar vaporup commented on June 12, 2024 1

I just downloaded the linux binary from Github Releases.
Changing pager via environment didn't work but changing it in the config did.
Thanks for the workaround

from cheat.

chrisallenlane avatar chrisallenlane commented on June 12, 2024

Hi, @vaporup

Thanks for reporting this. A friend reported something similar a few days ago.

Question: how did you install cheat initially? I'm unclear if the issue is with the executable itself, or perhaps with one of the packages.

Regarding solving your problem:

This is probably happening in the newest version of cheat because I changed the default pager from less to more in order to better support Windows out-of-the-box.

You should be able to either export PAGER=less in your shell environment, or simply configure the pager in the cheat configuration file. That should be you back up and running in the short-term.

Thanks for reporting this issue, however. We need the default configuration to work on all platforms, so this is definitely worth fixing.

from cheat.

chrisallenlane avatar chrisallenlane commented on June 12, 2024

OK, great. Thanks for the info. I'll take a look at that this week.

from cheat.

chrisallenlane avatar chrisallenlane commented on June 12, 2024

@vaporup, I'm having a hard time reproducing this. Do you know if the more pager was installed on the box that initially had the problem? What's your output of which more? Thanks.

Disregard. I actually can reproduce this. Sorry for the ping.

from cheat.

chrisallenlane avatar chrisallenlane commented on June 12, 2024

I'm pinning this one and tagging it has help-wanted because I'd like others' eyes on it as well.

from cheat.

chrisallenlane avatar chrisallenlane commented on June 12, 2024

Well, I simply can't make more behave the way I'd hope/expect on Linux systems. I don't know if I'm doing something wrong, or if there's a bug in more, or what.

With that said, the 4.2.6 release works around this problem:
https://github.com/cheat/cheat/releases/tag/4.2.6

I'm simply burying more here when looking for pagers on Linux systems, and I'm no longer setting it as the default pager. With that said, it's possible that user a will still encounter this error if the following conditions are met:

  1. They're using a Linux system
  2. They have not configured a pager
  3. more is available on the PATH
  4. more exhibits the problem described in this ticket (which doesn't happen everywhere)

For the unlucky souls that meet the criteria above and happen to encounter this issue, please just specify a pager in the cheat config file.

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.