mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:33:27 +00:00
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:
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user