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

[Feature] pager for --help #3000

Merged
merged 5 commits into from Apr 12, 2020
Merged

[Feature] pager for --help #3000

merged 5 commits into from Apr 12, 2020

Conversation

nobu
Copy link
Member

@nobu nobu commented Apr 3, 2020

Show the help message via pager if running on a tty.
Also, highlights headings in the message.

@simi
Copy link
Contributor

simi commented Apr 5, 2020

👋 This is great addition. I did some initial testing and it works well with more.
asciicast

But I see some shell sequences using less. asciicast

@nobu
Copy link
Member Author

nobu commented Apr 6, 2020

Try PAGER='less -R' or PAGER=less LESS=-R.

@nobu nobu merged commit a07cbac into ruby:master Apr 12, 2020
@nobu nobu deleted the feature/pager-for-help branch April 12, 2020 05:58
@simi
Copy link
Contributor

simi commented Apr 12, 2020

@nobu sorry for late response, but any idea why that is needed? I have tried also different software supporting PAGER env var and it wasn't needed.

@simi
Copy link
Contributor

simi commented Apr 12, 2020

Ahh, ignore my comment @nobu. I have tested that on wrong input (without color sequences). It behaves the same actually. Sorry for confusion!

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