sgr: add support for legacy double underline

SGR 21 is defined to be a double underline. This behavior is common
among many terminals, notably xterm.

References: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Functions-using-CSI-_-ordered-by-the-final-character_s_
This commit is contained in:
Tim Culverhouse
2024-09-27 22:22:22 -05:00
parent 2c2a765d66
commit 93643d1741

View File

@ -165,6 +165,8 @@ pub const Parser = struct {
9 => return Attribute{ .strikethrough = {} }, 9 => return Attribute{ .strikethrough = {} },
21 => return Attribute{ .underline = .double },
22 => return Attribute{ .reset_bold = {} }, 22 => return Attribute{ .reset_bold = {} },
23 => return Attribute{ .reset_italic = {} }, 23 => return Attribute{ .reset_italic = {} },