/// <summary> /// ANSI sequence to set all text attributes in one sequence. /// </summary> /// <param name="bit">Non-color text attribute</param> /// <param name="fbit">Text color</param> /// <param name="bbit">Background color</param> /// <returns>Formatted ANSI sequence as a string.</returns> public static string RichText(AttributeBit bit, FGColorBit fbit, BGColorBit bbit) => Escape + string.Format("[{0};{1};{2}", bit, fbit, bbit);
/// <summary> /// ANSI sequence to set text to a color. /// </summary> /// <param name="bit">Color to set text to.</param> /// <returns>Formatted ANSI sequence as a string.</returns> public static string Color(FGColorBit bit) => ColorText((int)bit);