String
extension String
-
A string transformation for applying (or not) ANSI terminal styling.
Declaration
Swift
fileprivate typealias ANSIStyle = @Sendable (String) -> String -
Returns
selfwith the given set of styles applied.Declaration
Swift
fileprivate func styled(_ rendition: ANSISGR...) -> String -
The identity transformation.
Declaration
Swift
fileprivate static let unstyled: ANSIStyle
View on GitHub