CharacterStyle

public struct CharacterStyle : OptionSet, Hashable

This option set describes the character style for a cell, this includes information about the font to use as well as decorations on the text

  • Declaration

    Swift

    public let rawValue: UInt8
  • Constructs a character attribute from a raw value.

    Declaration

    Swift

    public init(rawValue: UInt8)
  • Constructs the CharacterStyle from a CharData.attribute that encodes the foreground, background and flags

    Declaration

    Swift

    public init(attribute: Int32)
  • Empty style

    Declaration

    Swift

    public static let none: CharacterStyle
  • Use a bold font

    Declaration

    Swift

    public static let bold: CharacterStyle
  • Underline the currentlin line

    Declaration

    Swift

    public static let underline: CharacterStyle
  • The text should blink

    Declaration

    Swift

    public static let blink: CharacterStyle
  • The text should be inverted (background and foreground are swapped)

    Declaration

    Swift

    public static let inverse: CharacterStyle
  • The text should be replaced with white space - there is a debate as to what to do about it when copy/pasting code as different terminal emulators have taken conflicting takes, so your UI driver might have to choose

    Declaration

    Swift

    public static let invisible: CharacterStyle
  • dim

    Font should be rendered more lightly, implementation specific

    Declaration

    Swift

    public static let dim: CharacterStyle
  • Use italic fonts

    Declaration

    Swift

    public static let italic: CharacterStyle
  • Cross out the text

    Declaration

    Swift

    public static let crossedOut: CharacterStyle