authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-07-24 00:20:04 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-07-24 00:20:04 -07:00
log8ffadb65efdb424c6fe07a804107a775d55ebfe5
tree09701ab51f0f3343d1e12857bb77fcc26e516bdb
parent1f896246af65d2a4389a30a99af137049ce65204

add `color.Faint` helper function


1 files changed, 4 insertions(+), 0 deletions(-)

src/lib.zig+4
...@@ -186,6 +186,10 @@ pub const color = struct {...@@ -186,6 +186,10 @@ pub const color = struct {
186 pub fn Bg(s: Color, comptime m: []const u8) []const u8 {186 pub fn Bg(s: Color, comptime m: []const u8) []const u8 {
187 return csi.SGR(.{40 + @enumToInt(s)}) ++ m ++ style.ResetBgColor;187 return csi.SGR(.{40 + @enumToInt(s)}) ++ m ++ style.ResetBgColor;
188 }188 }
189
190 pub fn Faint(comptime m: []const u8) []const u8 {
191 return style.Faint ++ m ++ style.ResetIntensity;
192 }
189};193};
190194
191//195//