terminal: update parser to use new color parser and stream handler

This commit is contained in:
Mitchell Hashimoto
2025-09-11 12:09:52 -07:00
parent 67b7a5f267
commit 3afc8019d5
7 changed files with 367 additions and 492 deletions

View File

@@ -1565,7 +1565,11 @@ pub fn Stream(comptime Handler: type) type {
.color_operation => |v| {
if (@hasDecl(T, "handleColorOperation")) {
try self.handler.handleColorOperation(v.source, &v.operations, v.terminator);
try self.handler.handleColorOperation(
v.op,
&v.requests,
v.terminator,
);
return;
} else log.warn("unimplemented OSC callback: {}", .{cmd});
},