summaryrefslogtreecommitdiff
path: root/src/termio/Thread.zig
diff options
context:
space:
mode:
authorJeffrey C. Ollie <jeff@ocjtech.us>2024-08-07 00:12:20 -0500
committerJeffrey C. Ollie <jeff@ocjtech.us>2024-08-07 00:12:20 -0500
commitce5e55d4aa87f0bcf2562281b972015bfa5eb01a (patch)
tree2101a00a0c19ccafc6e4bf2b20ec96fb54e0d06a /src/termio/Thread.zig
parent0ec0cc0f9592fe9ba716a1567b887ba52e4b75dc (diff)
Implement the XTWINOPS (CSI t) control sequences that "make sense".
These sequences were implemented: CSI 14 t - report the text area size in pixels CSI 16 t - report the cell size in pixels CSI 18 t - report the text area size in cells CSI 21 t - report the window title These sequences were not implemented because they manuipulate the window state in ways that we do not want. CSI 1 t CSI 2 t CSI 3 ; x ; y t CSI 4 ; height ; width ; t CSI 5 t CSI 6 t CSI 7 t CSI 8 ; height ; width ; t CSI 9 ; 0 t CSI 9 ; 1 t CSI 9 ; 2 t CSI 9 ; 3 t CSI 10 ; 0 t CSI 10 ; 1 t CSI 10 ; 2 t CSI 24 t These sequences were not implemented because they do not make sense in a Wayland context: CSI 11 t CSI 13 t CSI 14 ; 2 t These sequences were not implemented because they provide information about the screen that is unnecessary. CSI 15 t CSI 19 t These sequences were not implemeted because Ghostty does not maintain an icon title for windows. CSI 20 t CSI 22 ; 0 t CSI 22 ; 1 t CSI 23 ; 0 t CSI 23 ; 1 t These sequences were not implemented because of the additional complexity of maintaining a stack of window titles. CSI 22 ; 2 t CSI 23 ; 2 t
Diffstat (limited to 'src/termio/Thread.zig')
-rw-r--r--src/termio/Thread.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/termio/Thread.zig b/src/termio/Thread.zig
index 1dc240827..94650aef6 100644
--- a/src/termio/Thread.zig
+++ b/src/termio/Thread.zig
@@ -267,7 +267,7 @@ fn drainMailbox(
},
.inspector => |v| self.flags.has_inspector = v,
.resize => |v| self.handleResize(cb, v),
- .size_report => try io.sizeReport(data),
+ .size_report => |v| try io.sizeReport(data, v),
.clear_screen => |v| try io.clearScreen(data, v.history),
.scroll_viewport => |v| try io.scrollViewport(v),
.jump_to_prompt => |v| try io.jumpToPrompt(v),