implement faint colors (SGR 2)

This commit is contained in:
Mitchell Hashimoto
2022-08-26 11:13:34 -07:00
parent 65df657b4e
commit dc6fc5c1c3
3 changed files with 15 additions and 3 deletions

View File

@@ -21,6 +21,9 @@ pub const Attribute = union(enum) {
/// Bold the text.
bold: void,
/// Faint/dim text.
faint: void,
/// Underline the text
underline: void,
@@ -88,6 +91,8 @@ pub const Parser = struct {
1 => return Attribute{ .bold = {} },
2 => return Attribute{ .faint = {} },
4 => return Attribute{ .underline = {} },
5 => return Attribute{ .blink = {} },