Extended Protocol
StringProtocol
extension StringProtocol
Topics
Instance Methods
consoleStylized(_:)Wraps a string in the ANSI codes indicated by theConsoleStylespecification.consoleStylized(color:background:isBold:)Wraps a string in the ANSI codes indicated by the style specification.consoleText(_:)Converts thisStringtoConsoleText.consoleText(color:background:isBold:)Converts thisStringtoConsoleText.
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.ConsoleStyleRepresentation of a style for outputting to a Console in different colors with differing attributes. A few suggested default styles are provided.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.