-
-
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
bat
refuses to page content
#2570
Comments
Not applicable; |
Could this be a duplicate of #2572? (or the other way around) |
I had the same thought - that turned to not be the case, sadly. I've tested the following: |
this is Windows Server 2012, right? (https://www.gaijin.at/en/infos/windows-version-numbers) |
Wow, that slipped past my attention - I didn't notice it at all. I'm on Windows 10 using $ ver
Microsoft Windows [Version 10.0.19044.2965] ...why does |
I've finally managed to track it down. It's... hilarious, to say the least. See BurntSushi/ripgrep#2523... |
The intention is to take advantage of `std::io::IsTerminal` that landed in 1.70.0, both in `bat` and its dependencies (`clap`, `grep-cli`). This will fix #2570 as well - `grep-cli` 0.1.9 has a patch for that. Signed-off-by: mataha <[email protected]>
What steps will reproduce the bug?
bat some-long-test-file.txt --pager more --paging always
What happens?
Contents of the file are dumped to the terminal all at once.
What did you expect to happen instead?
Paging with
more
.How did you install
bat
?Cargo.
bat version and environment
Software version
bat 0.23.0
Operating system
Windows 6.2.9200
Command-line
Environment variables
System Config file
Could not read contents of 'C:\ProgramData\bat\config': System nie może odnaleźć określonej ścieżki. (os error 3).
Config file
Could not read contents of 'C:\Users\Mataha\AppData\Roaming\bat\config': System nie może odnaleźć określonej ścieżki. (os error 3).
Custom assets metadata
Could not read contents of 'C:\Users\Mataha\AppData\Local\bat\metadata.yaml': System nie może odnaleźć określonej ścieżki. (os error 3).
Custom assets
'C:\Users\Mataha\AppData\Local\bat' not found
Compile time information
The text was updated successfully, but these errors were encountered: