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

Use atty crate to check if within a terminal for piping #25

Open
ismet55555 opened this issue Aug 14, 2023 · 0 comments
Open

Use atty crate to check if within a terminal for piping #25

ismet55555 opened this issue Aug 14, 2023 · 0 comments

Comments

@ismet55555
Copy link
Owner

:: error[E0658]: use of unstable library feature 'is_terminal'
::  --> src/main.rs:3:28
::   |
:: 3 | use std::io::{self, stdin, IsTerminal, Read};
::   |                            ^^^^^^^^^^
::   |
::   = note: see issue #98070 <https://github.com/rust-lang/rust/issues/98070> for more information
::
:: error[E0658]: use of unstable library feature 'is_terminal'
::   --> src/main.rs:32:43
::    |
:: 32 |         let is_stdin_available = !stdin().is_terminal();
::    |                                           ^^^^^^^^^^^
::    |
::    = note: see issue #98070 <https://github.com/rust-lang/rust/issues/98070> for more information
::
:: For more information about this error, try `rustc --explain E0658`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: TODO
Development

No branches or pull requests

1 participant