Shift Out/Shift In (invoke charset into GL)

This commit is contained in:
Mitchell Hashimoto
2022-08-27 10:08:01 -07:00
parent 7626f194e9
commit bee82d58dc
5 changed files with 60 additions and 3 deletions

View File

@@ -1552,7 +1552,8 @@ pub fn deviceAttributes(
_ = params;
switch (req) {
.primary => self.queueWrite("\x1B[?6c") catch |err|
// VT220
.primary => self.queueWrite("\x1B[?62;c") catch |err|
log.warn("error queueing device attr response: {}", .{err}),
else => log.warn("unimplemented device attributes req: {}", .{req}),
}
@@ -1640,3 +1641,12 @@ pub fn configureCharset(
) !void {
self.terminal.configureCharset(slot, set);
}
pub fn invokeCharset(
self: *Window,
active: terminal.CharsetActiveSlot,
slot: terminal.CharsetSlot,
single: bool,
) !void {
self.terminal.invokeCharset(active, slot, single);
}