Skip to content

Commit

Permalink
fix(tui): allow for TUI use when hooked up to tty (#8942)
Browse files Browse the repository at this point in the history
### Description

#8919 accidentally disabled TUI
usage when hooked up to a TTY

### Testing Instructions


Verify that you can now use the TUI if hooked up to TTY:


https://github.com/user-attachments/assets/1ae1d7db-4714-4abe-a1e6-13b4e564d006
  • Loading branch information
chris-olszewski authored Aug 5, 2024
1 parent 1f0ccdd commit 362901c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/turborepo-lib/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ impl ConfigurationOptions {
}

pub fn ui(&self) -> UIMode {
if atty::is(atty::Stream::Stdout) {
// If we aren't hooked up to a TTY, then do not use TUI
if !atty::is(atty::Stream::Stdout) {
return UIMode::Stream;
}

Expand Down

0 comments on commit 362901c

Please sign in to comment.