term: indicate support for OSC 52 in Primary DA response

This is an extension agreed upon by modern terminals to indicate that
they support copying to the clipboard with XTerm's OSC 52 sequence.

https://github.com/contour-terminal/vt-extensions/blob/master/clipboard-extension.md
This commit is contained in:
James Holderness authored and Wez Furlong committed 2025-06-22 06:44:36 +01:00
1 parent d6c178f961
commit 58141ad6f2
1 file changed
+1
+1
View File
@@ -1290,6 +1290,7 @@ impl TerminalState {
ident.push_str(";6"); // Selective erase
ident.push_str(";18"); // windowing extensions
ident.push_str(";22"); // ANSI color, vt525
ident.push_str(";52"); // Clipboard access
ident.push('c');
self.writer.write(ident.as_bytes()).ok();