Skip to content

Commit 867e637

Browse files
committed
Set more TermFeatureFlags for WezTerm in parse_xtversion_reply()
These were copied from the `terms[]` entry for "wezterm", but as mentioned in the comment added here, that entry typically isn't used. See also: commit 152ae48
1 parent 152ae48 commit 867e637

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/terminal/query.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,15 @@ static KeyCode parse_xtversion_reply(StringView reply)
321321
return tflag(TFLAG_BS_CTRL_BACKSPACE);
322322
}
323323

324+
// WezTerm sets TERM=xterm-256color by default, so it makes sense
325+
// to set these flags here, in addition to the (typically not used)
326+
// terms[] entry
324327
if (strview_has_prefix(reply, "WezTerm ")) {
325-
return tflag(TFLAG_BS_CTRL_BACKSPACE);
328+
return tflag (
329+
TFLAG_TRUE_COLOR | TFLAG_BACK_COLOR_ERASE | TFLAG_ECMA48_REPEAT
330+
| TFLAG_SET_WINDOW_TITLE | TFLAG_OSC52_COPY | TFLAG_SYNC
331+
| TFLAG_BS_CTRL_BACKSPACE
332+
);
326333
}
327334

328335
if (strview_has_prefix(reply, "tmux ")) {

0 commit comments

Comments
 (0)