diff options
Diffstat (limited to 'runtime/colors.rs')
-rw-r--r-- | runtime/colors.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/colors.rs b/runtime/colors.rs index 8d915b571..8790eccd1 100644 --- a/runtime/colors.rs +++ b/runtime/colors.rs @@ -108,6 +108,13 @@ pub fn cyan<S: AsRef<str>>(s: S) -> impl fmt::Display { style_spec.set_fg(Some(Cyan)); style(s, style_spec) } + +pub fn cyan_with_underline<S: AsRef<str>>(s: S) -> impl fmt::Display { + let mut style_spec = ColorSpec::new(); + style_spec.set_fg(Some(Cyan)).set_underline(true); + style(s, style_spec) +} + pub fn cyan_bold<S: AsRef<str>>(s: S) -> impl fmt::Display { let mut style_spec = ColorSpec::new(); style_spec.set_fg(Some(Cyan)).set_bold(true); |