[Feature] pager for --help - Ruby 3#6902
Conversation
6b41467 to
5ed3a28
Compare
|
@edipofederle Do you know if they do anything when on windows? |
This is my next thing to do, not sure now. Looking at the original PR, I cannot see anything related to it. |
5a075bc to
2f3b214
Compare
|
@enebo could you help me with the CI errors? I cannot figure out the problem. I basically remove all new code (in past builds) but it still fails. Any help will be appreciated. thanks |
|
@edipofederle Neither of those errors are from your changes. So I wouldn't worry about them (and we are working on addressing one of them today). Can you point to where in C ruby these changes are inspired from? |
Hi, from this PR: ruby/ruby#3000 |
enebo
left a comment
There was a problem hiding this comment.
I believe whereever we have code for popen may work to use this code for piping our input to whatever PAGER we execute.
e7dadac to
8614660
Compare
44f932a to
5f30c75
Compare
|
@enebo we can go ahead with this or need to wait for fixes on master? |
5f30c75 to
d7a7b27
Compare
|
Thanks @edipofederle! |
|
Link to #6878. |
Show the help message via pager if running on a tty. Feature #3000
Also, highlights headings and options in the message.
demo: https://asciinema.org/a/PXZO3Kvy8F0kxSfL7A9RkWSQV