-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Man page paging no longer works #2563
Comments
Could this be a duplicate of #2572? (or the other way around) |
UpdateAfter some more research I found a solution by using I'm also having an issue with bat not being able to correctly handle man pages. The paging functionality does work but it seems as if the color functionality does not fully work. Might have something to do with ANSI escape codes. I've looked into some other issues with the man pager functionality and this seems to come the closest to my issue. I think it might be possible this functionality was also broken in the recent updated. Here is my manpager env variable:
Here is the output of
|
I reproduce the latter issue and confirm that setting |
Commit 57cc0d8 breaks paging in
man
output. Before that change, theMANPAGER
recipe resulted in nice colored and pagedman
output; after that, the paging is gone.Adding
--paging=always
toMANPAGER
serves as a workaround, but I'm assuming this is an inadvertent change because it's not mentioned in the changelog and the man recipe has not been updated with this.I tried updating
is-terminal
to 0.4.7, but it had no effect on this.What steps will reproduce the bug?
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
man man
What happens?
The entire man page scrolls through to the end.
What did you expect to happen instead?
Paged output.
How did you install
bat
?Built from git.
bat version and environment
--diagnostic
does not play well with theMANPAGER
setup, but here's the rawbat --diagnostic
output.Software version
bat 0.23.0 (e828d78)
Operating system
Linux 5.15.0-67-generic
Command-line
Environment variables
System Config file
Could not read contents of '/etc/bat/config': No such file or directory (os error 2).
Config file
Custom assets metadata
Could not read contents of '/home/scop/.cache/bat/metadata.yaml': No such file or directory (os error 2).
Custom assets
'/home/scop/.cache/bat' not found
Compile time information
Less version
The text was updated successfully, but these errors were encountered: