mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00
terminal: know about autorepeat mode
Ignore it because xterm does
This commit is contained in:
@ -189,6 +189,7 @@ const entries: []const ModeEntry = &.{
|
|||||||
.{ .name = "reverse_colors", .value = 5 },
|
.{ .name = "reverse_colors", .value = 5 },
|
||||||
.{ .name = "origin", .value = 6 },
|
.{ .name = "origin", .value = 6 },
|
||||||
.{ .name = "wraparound", .value = 7, .default = true },
|
.{ .name = "wraparound", .value = 7, .default = true },
|
||||||
|
.{ .name = "autorepeat", .value = 8 },
|
||||||
.{ .name = "mouse_event_x10", .value = 9 },
|
.{ .name = "mouse_event_x10", .value = 9 },
|
||||||
.{ .name = "cursor_blinking", .value = 12 },
|
.{ .name = "cursor_blinking", .value = 12 },
|
||||||
.{ .name = "cursor_visible", .value = 25, .default = true },
|
.{ .name = "cursor_visible", .value = 25, .default = true },
|
||||||
|
@ -1746,6 +1746,12 @@ const StreamHandler = struct {
|
|||||||
|
|
||||||
// And then some modes require additional processing.
|
// And then some modes require additional processing.
|
||||||
switch (mode) {
|
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
|
// Schedule a render since we changed colors
|
||||||
.reverse_colors => try self.queueRender(),
|
.reverse_colors => try self.queueRender(),
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user