mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00
termio: send VT220 device attributes on request, add secondary
This commit is contained in:
@ -514,7 +514,7 @@ pub fn Stream(comptime Handler: type) type {
|
|||||||
switch (action.params.len) {
|
switch (action.params.len) {
|
||||||
1 => @enumFromInt(action.params[0]),
|
1 => @enumFromInt(action.params[0]),
|
||||||
else => {
|
else => {
|
||||||
log.warn("invalid erase characters command: {}", .{action});
|
log.warn("invalid device status report command: {}", .{action});
|
||||||
return;
|
return;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1297,9 +1297,17 @@ const StreamHandler = struct {
|
|||||||
) !void {
|
) !void {
|
||||||
_ = params;
|
_ = params;
|
||||||
|
|
||||||
|
// For the below, we quack as a VT220. We don't quack as
|
||||||
|
// a 420 because we don't support DCS sequences.
|
||||||
switch (req) {
|
switch (req) {
|
||||||
// VT220
|
.primary => self.messageWriter(.{
|
||||||
.primary => self.messageWriter(.{ .write_stable = "\x1B[?62;c" }),
|
.write_stable = "\x1B[?62;22c",
|
||||||
|
}),
|
||||||
|
|
||||||
|
.secondary => self.messageWriter(.{
|
||||||
|
.write_stable = "\x1B[>1;10;0c",
|
||||||
|
}),
|
||||||
|
|
||||||
else => log.warn("unimplemented device attributes req: {}", .{req}),
|
else => log.warn("unimplemented device attributes req: {}", .{req}),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user