mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-10 15:23:35 +00:00
terminal: many more conversions
This commit is contained in:
@@ -270,6 +270,8 @@ pub const StreamHandler = struct {
|
||||
.protected_mode_off => self.terminal.setProtectedMode(.off),
|
||||
.protected_mode_iso => self.terminal.setProtectedMode(.iso),
|
||||
.protected_mode_dec => self.terminal.setProtectedMode(.dec),
|
||||
.mouse_shift_capture => self.terminal.flags.mouse_shift_capture = if (value) .true else .false,
|
||||
.size_report => self.sendSizeReport(value),
|
||||
.xtversion => try self.reportXtversion(),
|
||||
.kitty_keyboard_query => try self.queryKittyKeyboard(),
|
||||
.kitty_keyboard_push => {
|
||||
@@ -296,6 +298,11 @@ pub const StreamHandler = struct {
|
||||
.end_of_input => try self.endOfInput(),
|
||||
.end_hyperlink => try self.endHyperlink(),
|
||||
.decaln => try self.decaln(),
|
||||
|
||||
// Unimplemented
|
||||
.title_push,
|
||||
.title_pop,
|
||||
=> {},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -692,10 +699,6 @@ pub const StreamHandler = struct {
|
||||
}
|
||||
}
|
||||
|
||||
pub inline fn setMouseShiftCapture(self: *StreamHandler, v: bool) !void {
|
||||
self.terminal.flags.mouse_shift_capture = if (v) .true else .false;
|
||||
}
|
||||
|
||||
pub inline fn setAttribute(self: *StreamHandler, attr: terminal.Attribute) !void {
|
||||
switch (attr) {
|
||||
.unknown => |unk| log.warn("unimplemented or unknown SGR attribute: {any}", .{unk}),
|
||||
|
||||
Reference in New Issue
Block a user