diff --git a/src/runner.rs b/src/runner.rs index e7f66f1..57c78b2 100644 --- a/src/runner.rs +++ b/src/runner.rs @@ -371,13 +371,15 @@ impl Runner { last_focus = focus.cloned(); // OSC 7: Change CWD - terminal.backend_mut().write( - format!( - "\x1b]7;file://{}{}\x1b\\", - &app.hostname, &app.pwd - ) - .as_bytes(), - )?; + if !(*ui::NO_COLOR) { + terminal.backend_mut().write( + format!( + "\x1b]7;file://{}{}\x1b\\", + &app.hostname, &app.pwd + ) + .as_bytes(), + )?; + } } // UI