mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +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}),
|
||||
|
||||
// Scroll Up (SD)
|
||||
'S' => if (@hasDecl(T, "scrollUp")) try self.handler.scrollUp(
|
||||
switch (action.params.len) {
|
||||
0 => 1,
|
||||
1 => action.params[0],
|
||||
else => {
|
||||
log.warn("invalid scroll up command: {}", .{action});
|
||||
return;
|
||||
|
||||
'S' => switch (action.intermediates.len) {
|
||||
0 => if (@hasDecl(T, "scrollUp")) try self.handler.scrollUp(
|
||||
switch (action.params.len) {
|
||||
0 => 1,
|
||||
1 => action.params[0],
|
||||
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)
|
||||
'T' => if (@hasDecl(T, "scrollDown")) try self.handler.scrollDown(
|
||||
|
Reference in New Issue
Block a user