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

"Failed to initialize input reader" #5

Open
eth-p opened this issue Mar 28, 2021 · 2 comments
Open

"Failed to initialize input reader" #5

eth-p opened this issue Mar 28, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@eth-p
Copy link
Contributor

eth-p commented Mar 28, 2021

rust-pager doesn't appear to be able to read from stdin on MacOS.

$ ls . | rp
Error: IoError(Custom { kind: Other, error: "Failed to initialize input reader" })

It does work perfectly fine with process substitution, however:

$ rp <(ls .)
[pager contents...]

Build Information

Version: rp 0.1.0
Platform: macOS 10.14.6 (Darwin 18.7.0)
Compiler: rustc 1.49.0 (x86_64-apple-darwin)

@Riey Riey added the bug Something isn't working label Mar 28, 2021
@Riey
Copy link
Owner

Riey commented Mar 28, 2021

It seems upstream bug that can't use tty in macOS
crossterm-rs/crossterm#407
tokio-rs/mio#1377

@eth-p
Copy link
Contributor Author

eth-p commented Mar 28, 2021

Ah, that's a bit of a shame. Hopefully it'll be fixed upstream soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants