| ... | @@ -187,9 +187,21 @@ pub const color = struct { | ... | @@ -187,9 +187,21 @@ pub const color = struct { |
| 187 | return csi.SGR(.{40 + @enumToInt(s)}) ++ m ++ style.ResetBgColor; | 187 | return csi.SGR(.{40 + @enumToInt(s)}) ++ m ++ style.ResetBgColor; |
| 188 | } | 188 | } |
| 189 | | 189 | |
| | 190 | pub fn Bold(comptime m: []const u8) []const u8 { |
| | 191 | return style.Bold ++ m ++ style.ResetIntensity; |
| | 192 | } |
| | 193 | |
| 190 | pub fn Faint(comptime m: []const u8) []const u8 { | 194 | pub fn Faint(comptime m: []const u8) []const u8 { |
| 191 | return style.Faint ++ m ++ style.ResetIntensity; | 195 | return style.Faint ++ m ++ style.ResetIntensity; |
| 192 | } | 196 | } |
| | 197 | |
| | 198 | pub fn Italic(comptime m: []const u8) []const u8 { |
| | 199 | return style.Italic ++ m ++ style.ResetItalic; |
| | 200 | } |
| | 201 | |
| | 202 | pub fn Underline(comptime m: []const u8) []const u8 { |
| | 203 | return style.Underline ++ m ++ style.ResetUnderline; |
| | 204 | } |
| 193 | }; | 205 | }; |
| 194 | | 206 | |
| 195 | // | 207 | // |