From ed23f2f1d0c96834cc0e2bf2dd02e92fec86c2d7 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 9 Oct 2023 09:43:28 -0700 Subject: [PATCH] terminal: implement DECID (ESC Z) --- src/terminal/stream.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/terminal/stream.zig b/src/terminal/stream.zig index ecc599a98..cf7f16ab5 100644 --- a/src/terminal/stream.zig +++ b/src/terminal/stream.zig @@ -1102,6 +1102,11 @@ pub fn Stream(comptime Handler: type) type { }, } 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 'c' => if (@hasDecl(T, "fullReset")) switch (action.intermediates.len) { 0 => try self.handler.fullReset(),