diff --git a/util/helper-cairo.hh b/util/helper-cairo.hh index 5fbaf9e41..6df92e560 100644 --- a/util/helper-cairo.hh +++ b/util/helper-cairo.hh @@ -410,6 +410,12 @@ helper_cairo_create_context (double w, double h, extension = "png"; protocol = image_protocol_t::ITERM2; } + else if ((name = getenv ("TERM_PROGRAM")) != nullptr && + 0 == g_ascii_strcasecmp (name, "WezTerm")) + { + extension = "png"; + protocol = image_protocol_t::ITERM2; + } else if ((name = getenv ("TERM")) != nullptr && 0 == g_ascii_strcasecmp (name, "xterm-kitty")) {