Use NO_COLOR to disable OSC 7

pull/485/head
Arijit Basu 2 years ago committed by Arijit Basu
parent d35a4c58cb
commit 61d3b1635e

@ -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

Loading…
Cancel
Save