Detect support for OSC 52 using the device attributes report. Some

terminals are using this to indicate that they support copying to the
clipboard with XTerm's OSC 52 sequence. From James Holderness in GitHub
issue 4539.
This commit is contained in:
nicm
2025-06-24 10:57:35 +00:00
parent ad3e6ff054
commit d858ad1179

View File

@ -1459,6 +1459,8 @@ tty_keys_device_attributes(struct tty *tty, const char *buf, size_t len,
tty_add_features(features, "margins", ","); tty_add_features(features, "margins", ",");
if (p[i] == 28) if (p[i] == 28)
tty_add_features(features, "rectfill", ","); tty_add_features(features, "rectfill", ",");
if (p[i] == 52)
tty_add_features(features, "clipboard", ",");
} }
break; break;
} }