Attribute

public struct Attribute : Equatable, Hashable

Attribute contains the foreground and background color information for the invidual cells, as well as the character style of the cell (bold, underline, inverse) that the character should be drawn as.

  • The various ways in which the color was expressed

    See more

    Declaration

    Swift

    public enum Color : Equatable, Hashable
  • The empty attribute is configured to be use the defaultColor for the foreground, and the defaultInvertedColor for the background and an emptu style

    Declaration

    Swift

    public static let empty: Attribute
  • fg

    Foreground and background colors

    Declaration

    Swift

    public private(set) var fg: Color { get }
  • bg

    Declaration

    Swift

    public private(set) var bg: Color { get }
  • Undocumented

    Declaration

    Swift

    public private(set) var style: CharacterStyle { get }
  • Declaration

    Swift

    public static func == (lhs: Attribute, rhs: Attribute) -> Bool