using System; using System.Diagnostics.CodeAnalysis; namespace Spectre.Console { /// /// Represents text decoration. /// /// /// Support for text decorations is up to the terminal. /// [Flags] [SuppressMessage("Naming", "CA1714:Flags enums should have plural names")] public enum Decoration { /// /// No text decoration. /// None = 0, /// /// Bold text. /// Not supported in every environment. /// Bold = 1 << 0, /// /// Dim or faint text. /// Not supported in every environment. /// Dim = 1 << 1, /// /// Italic text. /// Not supported in every environment. /// Italic = 1 << 2, /// /// Underlined text. /// Not supported in every environment. /// Underline = 1 << 3, /// /// Swaps the foreground and background colors. /// Not supported in every environment. /// Invert = 1 << 4, /// /// Hides the text. /// Not supported in every environment. /// Conceal = 1 << 5, /// /// Makes text blink. /// Normally less than 150 blinks per minute. /// Not supported in every environment. /// SlowBlink = 1 << 6, /// /// Makes text blink. /// Normally more than 150 blinks per minute. /// Not supported in every environment. /// RapidBlink = 1 << 7, /// /// Shows text with a horizontal line through the center. /// Not supported in every environment. /// Strikethrough = 1 << 8, } }