-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Scroll for terminal supporting it #246
Comments
@sharkdp: I tweaked the bash function provided by @achalddave to use RS instead of RF, and was able to get this to work on a Mac using the default Terminal app. Hopefully this helps |
Instead of wrapping |
Hi folks, Thanks! |
@mike-mosher The only thing with your script is that you always wrap the content into less, where bat has some nice detections about how to render (for example try Here is a working micro-tutorial (for macOS at least):
And this is working nicely Edit: @sharkdp maybe adding a well-written version of my guide to the README would be a good call, as many of us don't know what PAGER means, especially how it's related to having your terminal support the mouse in it. You may close the issue if you want |
@gjuchault solution works for me, but its not perfect because it shows the end of file. |
@gjuchault Thanks! I would propose the following modification:
@mladenp It shows the beginning of the file for me. And scrolling also doesn't work for you? |
@gjuchault @sharkdp Thanks for the updated process. However, your suggestions don't work. I'm using Mac OS and Terminal.app with Bash. To get it to work, you need to substitute |
@mike-mosher |
What does creating a shell script give you over just setting |
The problem with using the |
I hope that things are now well explained in this README section: https://github.com/sharkdp/bat#using-a-different-pager |
Hello,
Using iTerm2 "AlternateMouseScroll", I can scroll in
less
instead of using arrow keys.Do you think that would work with bat ?
Thanks :)
The text was updated successfully, but these errors were encountered: