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
init(color:background:isBold:)Creates a newConsoleStyle.
Instance Properties
backgroundOptional background color. Ifnilbackground is plain.colorOptional text color. Ifnil, text is plain.isBoldIftrue, text is bold.
Type Properties
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype
See Also
Terminal
ConsoleProtocol for powering styled Console I/O.TerminalGeneric console that uses a mixture of Swift and C standard libraries to fulfill protocol requirements.ConsoleColorSupported colors for creating aConsoleStyleforConsoleText.ConsoleClearSupported methods for clearing theConsole.ConsoleTextA collection ofConsoleTextFragments. Represents stylized text that can be outputted to aConsole.ConsoleTextFragment+(_:_:)Appends aConsoleTextto anotherConsoleText.+=(_:_:)Appends aConsoleTextto anotherConsoleTextin-place.StringProtocol