We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1354a38 commit b38732fCopy full SHA for b38732f
library/std/src/io/stdio.rs
@@ -1055,9 +1055,14 @@ pub trait IsTerminal: crate::sealed::Sealed {
1055
/// `false`. This will also return `false` if an unexpected error occurred, such as from
1056
/// passing an invalid file descriptor.
1057
///
1058
+ /// # Platform-specific behavior
1059
+ ///
1060
/// On Windows, in addition to detecting consoles, this currently uses some heuristics to
1061
/// detect older msys/cygwin/mingw pseudo-terminals based on device name: devices with names
1062
/// starting with `msys-` or `cygwin-` and ending in `-pty` will be considered terminals.
1063
+ /// Note that this [may change in the future][changes].
1064
1065
+ /// [changes]: io#platform-specific-behavior
1066
fn is_terminal(&self) -> bool;
1067
}
1068
0 commit comments