terminal: know about autorepeat mode

Ignore it because xterm does
This commit is contained in:
Mitchell Hashimoto
2023-11-21 18:48:05 -08:00
parent 34cfe0abab
commit ec3b570b3e
2 changed files with 7 additions and 0 deletions

View File

@ -189,6 +189,7 @@ const entries: []const ModeEntry = &.{
.{ .name = "reverse_colors", .value = 5 },
.{ .name = "origin", .value = 6 },
.{ .name = "wraparound", .value = 7, .default = true },
.{ .name = "autorepeat", .value = 8 },
.{ .name = "mouse_event_x10", .value = 9 },
.{ .name = "cursor_blinking", .value = 12 },
.{ .name = "cursor_visible", .value = 25, .default = true },

View File

@ -1746,6 +1746,12 @@ const StreamHandler = struct {
// And then some modes require additional processing.
switch (mode) {
// Just noting here that autorepeat has no effect on
// the terminal. xterm ignores this mode and so do we.
// We know about just so that we don't log that it is
// an unknown mode.
.autorepeat => {},
// Schedule a render since we changed colors
.reverse_colors => try self.queueRender(),