Use NO_COLOR to disable OSC 7

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

@ -371,6 +371,7 @@ impl Runner {
last_focus = focus.cloned(); last_focus = focus.cloned();
// OSC 7: Change CWD // OSC 7: Change CWD
if !(*ui::NO_COLOR) {
terminal.backend_mut().write( terminal.backend_mut().write(
format!( format!(
"\x1b]7;file://{}{}\x1b\\", "\x1b]7;file://{}{}\x1b\\",
@ -379,6 +380,7 @@ impl Runner {
.as_bytes(), .as_bytes(),
)?; )?;
} }
}
// UI // UI
terminal.draw(|f| ui::draw(f, &app, &lua))?; terminal.draw(|f| ui::draw(f, &app, &lua))?;

Loading…
Cancel
Save