aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-server/src
diff options
context:
space:
mode:
authorMichael Hoang <10492681+Enzime@users.noreply.github.com>2026-04-07 11:19:23 +0200
committerGitHub <noreply@github.com>2026-04-07 11:19:23 +0200
commitb8057186b581d1c1c25d6e21214d354a3e7b5843 (patch)
tree6e28b9209bc5885c1fc1e018e441f323ba34de83 /zellij-server/src
parentFix pty race when opening new panes (#5010) (diff)
downloadsl0ppij-b8057186b581d1c1c25d6e21214d354a3e7b5843.tar.gz
sl0ppij-b8057186b581d1c1c25d6e21214d354a3e7b5843.tar.xz
sl0ppij-b8057186b581d1c1c25d6e21214d354a3e7b5843.zip
feat(zellij-server): report OSC 52 clipboard support over DA1 (#4545)
As Zellij always handles OSC 52 from inner programs and then forwards it appropriately (`copy_command`, `copy_clipboard`), I think it makes sense to unconditionally report OSC 52 support. Co-authored-by: Michael Hoang <enzime@users.noreply.github.com>
Diffstat (limited to 'zellij-server/src')
-rw-r--r--zellij-server/src/panes/grid.rs4
-rw-r--r--zellij-server/src/panes/unit/snapshots/zellij_server__panes__grid__grid_tests__terminal_reports.snap3
2 files changed, 4 insertions, 3 deletions
diff --git a/zellij-server/src/panes/grid.rs b/zellij-server/src/panes/grid.rs
index ddb462cd..2a93ea99 100644
--- a/zellij-server/src/panes/grid.rs
+++ b/zellij-server/src/panes/grid.rs
@@ -4136,8 +4136,8 @@ impl Perform for Grid {
// https://vt100.net/docs/vt510-rm/DA1.html
match intermediates.get(0) {
None | Some(0) => {
- // primary device attributes - VT220 with sixel
- let terminal_capabilities = "\u{1b}[?62;4c";
+ // primary device attributes - VT220 with sixel and OSC 52 clipboard
+ let terminal_capabilities = "\u{1b}[?62;4;52c";
self.pending_messages_to_pty
.push(terminal_capabilities.as_bytes().to_vec());
},
diff --git a/zellij-server/src/panes/unit/snapshots/zellij_server__panes__grid__grid_tests__terminal_reports.snap b/zellij-server/src/panes/unit/snapshots/zellij_server__panes__grid__grid_tests__terminal_reports.snap
index 7b555da7..287852a8 100644
--- a/zellij-server/src/panes/unit/snapshots/zellij_server__panes__grid__grid_tests__terminal_reports.snap
+++ b/zellij-server/src/panes/unit/snapshots/zellij_server__panes__grid__grid_tests__terminal_reports.snap
@@ -1,5 +1,6 @@
---
source: zellij-server/src/panes/./unit/grid_tests.rs
+assertion_line: 1016
expression: "format!(\"{:?}\", grid.pending_messages_to_pty)"
---
-[[27, 91, 63, 54, 50, 59, 52, 99], [27, 91, 56, 59, 53, 49, 59, 57, 55, 116], [27, 91, 63, 54, 99], [27, 91, 48, 110], [27, 91, 49, 59, 49, 82]]
+[[27, 91, 63, 54, 50, 59, 52, 59, 53, 50, 99], [27, 91, 56, 59, 53, 49, 59, 57, 55, 116], [27, 91, 63, 54, 99], [27, 91, 48, 110], [27, 91, 49, 59, 49, 82]]