From 767a78020ad9c53c392e6b58d538ca76494d9624 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 26 Sep 2023 22:08:52 -0700 Subject: [PATCH] terminfo: add a few more missing entries from tmux(1) --- src/terminfo/ghostty.zig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/terminfo/ghostty.zig b/src/terminfo/ghostty.zig index c1d599fec..f8ffe8f27 100644 --- a/src/terminfo/ghostty.zig +++ b/src/terminfo/ghostty.zig @@ -57,6 +57,9 @@ pub const ghostty: Source = .{ // newline ignored after 80 cols (???) .{ .name = "xenl", .value = .{ .boolean = {} } }, + // Terminal supports default colors + .{ .name = "AX", .value = .{ .boolean = {} } }, + // Tmux "truecolor" mode. Other programs also use this to detect // if the terminal supports "truecolor". This means that the terminal // can display 24-bit RGB colors. @@ -65,6 +68,9 @@ pub const ghostty: Source = .{ // Colored underlines. https://sw.kovidgoyal.net/kitty/underlines/ .{ .name = "Su", .value = .{ .boolean = {} } }, + // Terminal supports a number of xterm extensions + .{ .name = "XT", .value = .{ .boolean = {} } }, + // Full keyboard support using Kitty's keyboard protocol: // https://sw.kovidgoyal.net/kitty/keyboard-protocol/ .{ .name = "fullkbd", .value = .{ .boolean = {} } }, @@ -107,6 +113,9 @@ pub const ghostty: Source = .{ // OSC 52 Clipboard .{ .name = "Ms", .value = .{ .string = "\\E]52;%p1%s;%p2%s\\007" } }, + // Synchronized output + .{ .name = "Sync", .value = .{ .string = "\\E[?2026%?%p1%{1}%-%tl%eh" } }, + // These are all capabilities that should be pretty straightforward // and map to input sequences. .{ .name = "bel", .value = .{ .string = "^G" } },