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

Loading…
Cancel
Save