mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
CSI ? W
This commit is contained in:
@ -317,7 +317,15 @@ pub fn Stream(comptime Handler: type) type {
|
|||||||
) else log.warn("unimplemented CSI callback: {}", .{action}),
|
) else log.warn("unimplemented CSI callback: {}", .{action}),
|
||||||
|
|
||||||
// Cursor Tabulation Control
|
// Cursor Tabulation Control
|
||||||
'W' => switch (action.params.len) {
|
'W' => {
|
||||||
|
switch (action.params.len) {
|
||||||
|
0 => if (action.intermediates.len == 1 and action.intermediates[0] == '?') {
|
||||||
|
if (@hasDecl(T, "tabClear"))
|
||||||
|
try self.handler.tabClear(.all)
|
||||||
|
else
|
||||||
|
log.warn("unimplemented tab clear callback: {}", .{action});
|
||||||
|
},
|
||||||
|
|
||||||
1 => switch (action.params[0]) {
|
1 => switch (action.params[0]) {
|
||||||
0 => if (@hasDecl(T, "tabSet"))
|
0 => if (@hasDecl(T, "tabSet"))
|
||||||
try self.handler.tabSet()
|
try self.handler.tabSet()
|
||||||
@ -334,17 +342,15 @@ pub fn Stream(comptime Handler: type) type {
|
|||||||
else
|
else
|
||||||
log.warn("unimplemented tab clear callback: {}", .{action}),
|
log.warn("unimplemented tab clear callback: {}", .{action}),
|
||||||
|
|
||||||
else => {
|
else => {},
|
||||||
log.warn("invalid cursor tabulation control: {}", .{action});
|
|
||||||
return;
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
else => {
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
log.warn("invalid cursor tabulation control: {}", .{action});
|
log.warn("invalid cursor tabulation control: {}", .{action});
|
||||||
return;
|
return;
|
||||||
},
|
},
|
||||||
},
|
|
||||||
|
|
||||||
// Erase Characters (ECH)
|
// Erase Characters (ECH)
|
||||||
'X' => if (@hasDecl(T, "eraseChars")) try self.handler.eraseChars(
|
'X' => if (@hasDecl(T, "eraseChars")) try self.handler.eraseChars(
|
||||||
|
Reference in New Issue
Block a user