mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
terminal: implement DECID (ESC Z)
This commit is contained in:
@ -1102,6 +1102,11 @@ pub fn Stream(comptime Handler: type) type {
|
|||||||
},
|
},
|
||||||
} else log.warn("unimplemented invokeCharset: {}", .{action}),
|
} else log.warn("unimplemented invokeCharset: {}", .{action}),
|
||||||
|
|
||||||
|
// DECID
|
||||||
|
'Z' => if (@hasDecl(T, "deviceAttributes")) {
|
||||||
|
try self.handler.deviceAttributes(.primary, &.{});
|
||||||
|
} else log.warn("unimplemented ESC callback: {}", .{action}),
|
||||||
|
|
||||||
// RIS - Full Reset
|
// RIS - Full Reset
|
||||||
'c' => if (@hasDecl(T, "fullReset")) switch (action.intermediates.len) {
|
'c' => if (@hasDecl(T, "fullReset")) switch (action.intermediates.len) {
|
||||||
0 => try self.handler.fullReset(),
|
0 => try self.handler.fullReset(),
|
||||||
|
Reference in New Issue
Block a user