Skip to content

Commit

Permalink
fix(terminal): mode 2026 feature detection response (zellij-org#3884)
Browse files Browse the repository at this point in the history
The response to the 2026 mode query was missing a `?` character.

The response should be of the format `CSI ? 2026 ; N $ y` where N can
be any value in the range 0-4 inclusive.

References:

https://gist.github.com/christianparpart/d8a62cc1ab659194337d73e399004036
https://vt100.net/docs/vt510-rm/DECRPM.html
  • Loading branch information
darrenburns authored and imsnif committed Dec 31, 2024
1 parent ccf7f11 commit c67d909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zellij-server/src/panes/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2837,7 +2837,7 @@ impl Perform for Grid {
for param in params_iter.map(|param| param[0]) {
match param {
2026 => {
let response = "\u{1b}[2026;2$y";
let response = "\u{1b}[?2026;2$y";
self.pending_messages_to_pty
.push(response.as_bytes().to_vec());
},
Expand Down

0 comments on commit c67d909

Please sign in to comment.