terminal: setprotectedmode

This commit is contained in:
Mitchell Hashimoto
2025-10-23 20:27:52 -07:00
parent 25eee9379d
commit c1e57dd330
2 changed files with 43 additions and 34 deletions

View File

@@ -256,6 +256,9 @@ pub const StreamHandler = struct {
.request_mode => try self.requestMode(value.mode),
.request_mode_unknown => try self.requestModeUnknown(value.mode, value.ansi),
.modify_key_format => try self.setModifyKeyFormat(value),
.protected_mode_off => self.terminal.setProtectedMode(.off),
.protected_mode_iso => self.terminal.setProtectedMode(.iso),
.protected_mode_dec => self.terminal.setProtectedMode(.dec),
}
}
@@ -804,10 +807,6 @@ pub const StreamHandler = struct {
}
}
pub inline fn setProtectedMode(self: *StreamHandler, mode: terminal.ProtectedMode) !void {
self.terminal.setProtectedMode(mode);
}
pub inline fn decaln(self: *StreamHandler) !void {
try self.terminal.decaln();
}