@@ -966,54 +966,54 @@ pub fn _eprint(args: fmt::Arguments<'_>) {
966
966
#[ cfg( test) ]
967
967
pub use realstd:: io:: { _eprint, _print} ;
968
968
969
- /// Trait to determine if stdio stream (Stdin, Stdout, Stderr) is a tty.
970
- #[ unstable( feature = "is_atty " , issue = "80937" ) ]
971
- pub trait IsAtty {
972
- /// returns true if implemented stream is a tty.
973
- fn is_atty ( ) -> bool ;
969
+ /// Trait to determine if stdio stream (Stdin, Stdout, Stderr) is a terminal/ tty.
970
+ #[ unstable( feature = "is_terminal " , issue = "80937" ) ]
971
+ pub trait IsTerminal {
972
+ /// returns true if stdio stream (Stdin, Stdout, Stderr) is a terminal/ tty.
973
+ fn is_terminal ( ) -> bool ;
974
974
}
975
975
976
- #[ unstable( feature = "is_atty " , issue = "80937" ) ]
976
+ #[ unstable( feature = "is_terminal " , issue = "80937" ) ]
977
977
cfg_if:: cfg_if! {
978
978
if #[ cfg( any( unix, windows, hermit) ) ] {
979
- #[ unstable( feature = "is_atty " , issue = "80937" ) ]
980
- impl IsAtty for Stdin {
981
- fn is_atty ( ) -> bool {
982
- stdio:: Stdin :: is_atty ( )
979
+ #[ unstable( feature = "is_terminal " , issue = "80937" ) ]
980
+ impl IsTerminal for Stdin {
981
+ fn is_terminal ( ) -> bool {
982
+ stdio:: Stdin :: is_terminal ( )
983
983
}
984
984
}
985
985
986
- #[ unstable( feature = "is_atty " , issue = "80937" ) ]
987
- impl IsAtty for Stdout {
988
- fn is_atty ( ) -> bool {
989
- stdio:: Stdout :: is_atty ( )
986
+ #[ unstable( feature = "is_terminal " , issue = "80937" ) ]
987
+ impl IsTerminal for Stdout {
988
+ fn is_terminal ( ) -> bool {
989
+ stdio:: Stdout :: is_terminal ( )
990
990
}
991
991
}
992
992
993
- #[ unstable( feature = "is_atty " , issue = "80937" ) ]
994
- impl IsAtty for Stderr {
995
- fn is_atty ( ) -> bool {
996
- stdio:: Stderr :: is_atty ( )
993
+ #[ unstable( feature = "is_terminal " , issue = "80937" ) ]
994
+ impl IsTerminal for Stderr {
995
+ fn is_terminal ( ) -> bool {
996
+ stdio:: Stderr :: is_terminal ( )
997
997
}
998
998
}
999
999
} else {
1000
- #[ unstable( feature = "is_atty " , issue = "80937" ) ]
1001
- impl IsAtty for Stdin {
1002
- fn is_atty ( ) -> bool {
1000
+ #[ unstable( feature = "is_terminal " , issue = "80937" ) ]
1001
+ impl IsTerminal for Stdin {
1002
+ fn is_terminal ( ) -> bool {
1003
1003
false
1004
1004
}
1005
1005
}
1006
1006
1007
- #[ unstable( feature = "is_atty " , issue = "80937" ) ]
1008
- impl IsAtty for Stdout {
1009
- fn is_atty ( ) -> bool {
1007
+ #[ unstable( feature = "is_terminal " , issue = "80937" ) ]
1008
+ impl IsTerminal for Stdout {
1009
+ fn is_terminal ( ) -> bool {
1010
1010
false
1011
1011
}
1012
1012
}
1013
1013
1014
- #[ unstable( feature = "is_atty " , issue = "80937" ) ]
1015
- impl IsAtty for Stderr {
1016
- fn is_atty ( ) -> bool {
1014
+ #[ unstable( feature = "is_terminal " , issue = "80937" ) ]
1015
+ impl IsTerminal for Stderr {
1016
+ fn is_terminal ( ) -> bool {
1017
1017
false
1018
1018
}
1019
1019
}
0 commit comments