mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-07 02:16:34 +00:00
terminal: support 58;5
for setting underline color via 256 palette
Fixes #1013
This commit is contained in:
@@ -515,6 +515,11 @@ pub fn setAttribute(self: *Terminal, attr: sgr.Attribute) !void {
|
||||
};
|
||||
},
|
||||
|
||||
.@"256_underline_color" => |idx| {
|
||||
self.screen.cursor.pen.attrs.underline_color = true;
|
||||
self.screen.cursor.pen.underline_fg = self.color_palette.colors[idx];
|
||||
},
|
||||
|
||||
.reset_underline_color => {
|
||||
self.screen.cursor.pen.attrs.underline_color = false;
|
||||
},
|
||||
|
Reference in New Issue
Block a user