Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/currentprocess.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::cell::RefCell;
use std::env;
use std::ffi::OsString;
use std::fmt::Debug;
use std::io;
use std::io::{self, IsTerminal};
use std::panic;
use std::path::PathBuf;
use std::sync::Once;
Expand Down Expand Up @@ -31,8 +31,6 @@ use cwdsource::*;
use filesource::*;
use varsource::*;

use crate::utils::tty::{stderr_isatty, stdout_isatty};

/// An abstraction for the current process.
///
/// This acts as a clonable proxy to the global state provided by some key OS
Expand Down Expand Up @@ -186,8 +184,8 @@ pub struct OSProcess {
impl OSProcess {
pub fn new() -> Self {
OSProcess {
stderr_is_a_tty: stderr_isatty(),
stdout_is_a_tty: stdout_isatty(),
stderr_is_a_tty: io::stderr().is_terminal(),
stdout_is_a_tty: io::stdout().is_terminal(),
}
}
}
Expand Down
1 change: 0 additions & 1 deletion src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
pub(crate) mod notifications;
pub mod raw;
pub(crate) mod toml_utils;
pub(crate) mod tty;
pub(crate) mod units;
#[allow(clippy::module_inception)]
pub mod utils;
Expand Down
37 changes: 0 additions & 37 deletions src/utils/tty.rs

This file was deleted.