-
Notifications
You must be signed in to change notification settings - Fork 285
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
Changed STDIN to /dev/tty #407
Conversation
I tried this branch on macOS 10.15.4.
Which is the sam IoError I got on macOS on crossterm 0.17 but not on 0.17.1 |
After the merge, I am still getting the same IoError. |
@japert yup I can confirm it’s still throwing the error on macOs |
Its unfortunate I cant test on mac os. It is right that in 0.17 there was a bug with the TTY. I reverted that bug with https://github.com/crossterm-rs/crossterm/pull/405/files, however this Pr introduces the same problem again. For some reason, on mac os, we cant use the TTY for input reading. It throws an error if we are opening the file. |
This because of tokio-rs/mio#1377. |
Amazing! That could be the issue. Thanks for linking. |
Going to open a new PR to follow up on #735 |
for anyone trying to get stdin working with crossterm, but having a hard time, I made an example repo on how to do it: |
No description provided.