mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 09:16:11 +03:00
terminal: ignore CSI S with intermediates
This commit is contained in:
@ -300,16 +300,24 @@ pub fn Stream(comptime Handler: type) type {
|
|||||||
) else log.warn("unimplemented CSI callback: {}", .{action}),
|
) else log.warn("unimplemented CSI callback: {}", .{action}),
|
||||||
|
|
||||||
// Scroll Up (SD)
|
// Scroll Up (SD)
|
||||||
'S' => if (@hasDecl(T, "scrollUp")) try self.handler.scrollUp(
|
|
||||||
switch (action.params.len) {
|
'S' => switch (action.intermediates.len) {
|
||||||
0 => 1,
|
0 => if (@hasDecl(T, "scrollUp")) try self.handler.scrollUp(
|
||||||
1 => action.params[0],
|
switch (action.params.len) {
|
||||||
else => {
|
0 => 1,
|
||||||
log.warn("invalid scroll up command: {}", .{action});
|
1 => action.params[0],
|
||||||
return;
|
else => {
|
||||||
|
log.warn("invalid scroll up command: {}", .{action});
|
||||||
|
return;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
) else log.warn("unimplemented CSI callback: {}", .{action}),
|
||||||
) else log.warn("unimplemented CSI callback: {}", .{action}),
|
|
||||||
|
else => log.warn(
|
||||||
|
"ignoring unimplemented CSI S with intermediates: {s}",
|
||||||
|
.{action.intermediates},
|
||||||
|
),
|
||||||
|
},
|
||||||
|
|
||||||
// Scroll Down (SD)
|
// Scroll Down (SD)
|
||||||
'T' => if (@hasDecl(T, "scrollDown")) try self.handler.scrollDown(
|
'T' => if (@hasDecl(T, "scrollDown")) try self.handler.scrollDown(
|
||||||
|
Reference in New Issue
Block a user