Skip to content

Structure

ConsoleText

A collection of ConsoleTextFragments. Represents stylized text that can be outputted to a Console.
struct ConsoleText

Overview

let text: ConsoleText = "Hello, " + "world".consoleText(color: .green)

See output(_:newLine:) for more information.

Topics

Initializers

Instance Properties

Instance Methods

Subscripts

Type Properties

  • newLine
    \n character with plain styling.

Default Implementations

Relationships

Conforms To

  • Swift.BidirectionalCollection
  • Swift.Collection
  • Swift.Copyable
  • Swift.CustomStringConvertible
  • Swift.Escapable
  • Swift.ExpressibleByArrayLiteral
  • Swift.ExpressibleByExtendedGraphemeClusterLiteral
  • Swift.ExpressibleByStringInterpolation
  • Swift.ExpressibleByStringLiteral
  • Swift.ExpressibleByUnicodeScalarLiteral
  • Swift.RandomAccessCollection
  • Swift.Sendable
  • Swift.SendableMetatype
  • Swift.Sequence

See Also

Terminal