Skip to content

Structure

ConsoleStyle

Representation of a style for outputting to a Console in different colors with differing attributes. A few suggested default styles are provided.
struct ConsoleStyle

Topics

Initializers

Instance Properties

  • background
    Optional background color. If nil background is plain.
  • color
    Optional text color. If nil, text is plain.
  • isBold
    If true, text is bold.

Type Properties

  • error
    Red text with no background.
  • info
    Light blue text with no background.
  • plain
    Plain text with no color or background.
  • success
    Green text with no background.
  • warning
    Yellow text with no background.

Relationships

Conforms To

  • Swift.Sendable
  • Swift.SendableMetatype

See Also

Terminal