terminal: eraseDisplay should allow kitty erase through

Fixes #1994
This commit is contained in:
Mitchell Hashimoto
2024-08-03 14:05:28 -07:00
parent 288a1fe549
commit c554b607b7

View File

@ -499,10 +499,7 @@ pub fn Stream(comptime Handler: type) type {
const mode_: ?csi.EraseDisplay = switch (input.params.len) { const mode_: ?csi.EraseDisplay = switch (input.params.len) {
0 => .below, 0 => .below,
1 => if (input.params[0] <= 3) 1 => std.meta.intToEnum(csi.EraseDisplay, input.params[0]) catch null,
std.meta.intToEnum(csi.EraseDisplay, input.params[0]) catch null
else
null,
else => null, else => null,
}; };