/// <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 non-color attribute. /// </summary> /// <param name="bit">Text attribute to apply.</param> /// <returns>Formatted ANSI sequence as a string.</returns> public static string RichText(AttributeBit bit) => ColorText((int)bit);