diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-10 21:51:57 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-10 21:51:57 +0300 |
| commit | 425c86179791cd32e2d4ce0ae7f269940b4b0663 (patch) | |
| tree | e52c4383a6d69216cbe2a32638bf90841d7e2189 /vendor/libghostty-vt/src/terminfo/ghostty.zig | |
| parent | 90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff) | |
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/src/terminfo/ghostty.zig')
| -rw-r--r-- | vendor/libghostty-vt/src/terminfo/ghostty.zig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/libghostty-vt/src/terminfo/ghostty.zig b/vendor/libghostty-vt/src/terminfo/ghostty.zig index 5788170e..ea64ffcf 100644 --- a/vendor/libghostty-vt/src/terminfo/ghostty.zig +++ b/vendor/libghostty-vt/src/terminfo/ghostty.zig @@ -106,6 +106,10 @@ pub const ghostty: Source = .{ // Curly, dashed, etc underlines .{ .name = "Smulx", .value = .{ .string = "\\E[4:%p1%dm" } }, + // Overline + .{ .name = "Smol", .value = .{ .string = "\\E[53m" } }, + .{ .name = "Rmol", .value = .{ .string = "\\E[55m" } }, + // Colored underlines .{ .name = "Setulc", .value = .{ .string = "\\E[58:2::%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%d%;m" } }, @@ -388,6 +392,15 @@ pub const ghostty: Source = .{ }, }; +/// A content-derived version of the encoded terminfo source. +pub const version = version: { + @setEvalBranchQuota(100_000); + var hashing: std.Io.Writer.Hashing(std.hash.Wyhash) = + .initHasher(.init(0), &.{}); + ghostty.encode(&hashing.writer) catch unreachable; + break :version std.fmt.comptimePrint("{x}", .{hashing.hasher.final()}); +}; + test "encode" { // Encode var buf: [1024 * 16]u8 = undefined; |
