Class
Terminal
Generic console that uses a mixture of Swift and C standard libraries to fulfill protocol requirements.
final class Terminal
Topics
Initializers
Instance Properties
var size: (width: Int, height: Int)SeeConsolevar userInfo: [AnySendableHashable : any Sendable]SeeConsole
Instance Methods
Relationships
Conforms To
ConsoleSwift.SendableSwift.SendableMetatype
See Also
Terminal
protocol ConsoleProtocol for powering styled Console I/O.enum ConsoleColorSupported colors for creating aConsoleStyleforConsoleText.struct ConsoleStyleRepresentation of a style for outputting to a Console in different colors with differing attributes. A few suggested default styles are provided.enum ConsoleClearSupported methods for clearing theConsole.struct ConsoleTextA collection ofConsoleTextFragments. Represents stylized text that can be outputted to aConsole.struct ConsoleTextFragmentfunc + (ConsoleText, ConsoleText) -> ConsoleTextAppends aConsoleTextto anotherConsoleText.func += (inout ConsoleText, ConsoleText)Appends aConsoleTextto anotherConsoleTextin-place.extension StringProtocol