File tree Expand file tree Collapse file tree 3 files changed +3
-43
lines changed Expand file tree Collapse file tree 3 files changed +3
-43
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use std::cell::RefCell;
2
2
use std:: env;
3
3
use std:: ffi:: OsString ;
4
4
use std:: fmt:: Debug ;
5
- use std:: io;
5
+ use std:: io:: { self , IsTerminal } ;
6
6
use std:: panic;
7
7
use std:: path:: PathBuf ;
8
8
use std:: sync:: Once ;
@@ -31,8 +31,6 @@ use cwdsource::*;
31
31
use filesource:: * ;
32
32
use varsource:: * ;
33
33
34
- use crate :: utils:: tty:: { stderr_isatty, stdout_isatty} ;
35
-
36
34
/// An abstraction for the current process.
37
35
///
38
36
/// This acts as a clonable proxy to the global state provided by some key OS
@@ -186,8 +184,8 @@ pub struct OSProcess {
186
184
impl OSProcess {
187
185
pub fn new ( ) -> Self {
188
186
OSProcess {
189
- stderr_is_a_tty : stderr_isatty ( ) ,
190
- stdout_is_a_tty : stdout_isatty ( ) ,
187
+ stderr_is_a_tty : io :: stderr ( ) . is_terminal ( ) ,
188
+ stdout_is_a_tty : io :: stdout ( ) . is_terminal ( ) ,
191
189
}
192
190
}
193
191
}
Original file line number Diff line number Diff line change 2
2
pub ( crate ) mod notifications;
3
3
pub mod raw;
4
4
pub ( crate ) mod toml_utils;
5
- pub ( crate ) mod tty;
6
5
pub ( crate ) mod units;
7
6
#[ allow( clippy:: module_inception) ]
8
7
pub mod utils;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments