Enable OSC 0 when running in WezTerm

This commit is contained in:
Jean Mertz 2021-07-06 22:13:18 +02:00 committed by Fabian Homborg
parent be74c281b6
commit 2575145682

View file

@ -487,7 +487,8 @@ static bool initialize_curses_using_fallback(const char *term) {
/// terminal title if the underlying terminal does so, but will print garbage on terminals that
/// don't. Since we can't see the underlying terminal below screen there is no way to fix this.
static const wchar_t *const title_terms[] = {L"xterm", L"screen", L"tmux",
L"nxterm", L"rxvt", L"alacritty"};
L"nxterm", L"rxvt", L"alacritty",
L"wezterm"};
static bool does_term_support_setting_title(const environment_t &vars) {
const auto term_var = vars.get(L"TERM");
if (term_var.missing_or_empty()) return false;