@@ -966,54 +966,54 @@ pub fn _eprint(args: fmt::Arguments<'_>) {
966966#[ cfg( test) ]
967967pub use realstd:: io:: { _eprint, _print} ;
968968
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 ;
974974}
975975
976- #[ unstable( feature = "is_atty " , issue = "80937" ) ]
976+ #[ unstable( feature = "is_terminal " , issue = "80937" ) ]
977977cfg_if:: cfg_if! {
978978 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 ( )
983983 }
984984 }
985985
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 ( )
990990 }
991991 }
992992
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 ( )
997997 }
998998 }
999999 } 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 {
10031003 false
10041004 }
10051005 }
10061006
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 {
10101010 false
10111011 }
10121012 }
10131013
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 {
10171017 false
10181018 }
10191019 }
0 commit comments