#6407·tokio

Missing `IsTerminal::is_terminal` for files and stdin

Author: ventaquilCreated Mar 16, 2024Updated Sep 21, 2026
LabelsA-tokioM-ioM-processC-feature-request

Is your feature request related to a problem? Please describe.

As far as I see (correct me if I'm wrong) I don't see any IsTerminal::is_terminal alternative known from std lib.

None of tokio::fs::File nor tokio::io::Stdin doesn't have any IsTerminal implementation.

Are there plans to change it soon?

Describe the solution you'd like

I am not familiar with async world but maybe those structs should just impl std::io::IsTerminal?