Add Kitty feature detection and sixel to WezTerm.

This commit is contained in:
nicm
2026-10-12 12:26:46 +00:00
committed by tmux update bot
parent 7fe3e928dd
commit 4d2e4e52e8
2 changed files with 16 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: tty-features.c,v 1.46 2026/09/24 08:16:13 nicm Exp $ */
/* $OpenBSD: tty-features.c,v 1.47 2026/10/12 12:26:46 nicm Exp $ */
/*
* Copyright (c) 2020 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -628,6 +628,7 @@ tty_default_features(struct client *c, const char *name, u_int version)
"focus,"
"hyperlinks,"
"margins,"
"sixel,"
"usstyle"
},
{ .name = "ghostty",
@@ -644,6 +645,17 @@ tty_default_features(struct client *c, const char *name, u_int version)
"usstyle,"
"progressbar"
},
{ .name = "kitty",
.features = TTY_FEATURES_BASE_MODERN_XTERM ","
"ccolour,"
"cstyle,"
"extkeys,"
"focus,"
"hyperlinks,"
"osc7,"
"sync,"
"usstyle"
},
{ .name = "Rio",
.features = TTY_FEATURES_BASE_MODERN_XTERM ","
"ccolour,"

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: tty-keys.c,v 1.216 2026/10/06 17:49:45 nicm Exp $ */
/* $OpenBSD: tty-keys.c,v 1.217 2026/10/12 12:26:46 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1675,6 +1675,8 @@ tty_keys_extended_device_attributes(struct tty *tty, const char *buf,
tty_default_features(c, "mintty", 0);
else if (strncmp(tmp, "foot(", 5) == 0)
tty_default_features(c, "foot", 0);
else if (strncmp(tmp, "kitty(", 6) == 0)
tty_default_features(c, "kitty", 0);
else if (strncmp(tmp, "WezTerm ", 7) == 0)
tty_default_features(c, "WezTerm", 0);
else if (strncmp(tmp, "ghostty ", 8) == 0)