pub fn format_ansi_text(
text: &str,
bold: bool,
italic: bool,
underline: bool,
fg_color: Option<&TermColor>,
bg_color: Option<&TermColor>,
) -> StringExpand description
Format text with ANSI styling
This is a convenience function to easily add common ANSI styles
§Arguments
text- The text to formatbold- Whether to make the text bolditalic- Whether to make the text italicunderline- Whether to underline the textfg_color- Optional foreground colorbg_color- Optional background color
§Returns
The formatted text with ANSI codes