mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-06 20:42:10 +00:00
ui: on progress output, also take pager status into account
This commit is contained in:
parent
1b0feb913d
commit
dbe8d3fcdc
1 changed files with 4 additions and 1 deletions
|
@ -188,7 +188,10 @@ impl Ui {
|
|||
/// Whether continuous feedback should be displayed for long-running
|
||||
/// operations
|
||||
pub fn use_progress_indicator(&self) -> bool {
|
||||
self.progress_indicator && io::stdout().is_tty()
|
||||
match &self.output {
|
||||
UiOutput::Terminal { stdout, .. } => self.progress_indicator && stdout.is_tty(),
|
||||
UiOutput::Paged { .. } => false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn write(&mut self, text: &str) -> io::Result<()> {
|
||||
|
|
Loading…
Reference in a new issue