ANSI escape codes for manipulating the terminal.
Port of ansi-escapes from sindresorhus to Swift.
You can install swift-ansi-escapes using the Swift Package Manager. To add it to your Xcode project, go to File > Swift Packages > Add Package Dependency and enter the URL of this repository.
You can also add it to a standalone Swift package by adding it to your
Package.swift file:
let package = Package(
name: "MyPackage",
dependencies: [
.package(url: "https://github.com/ikelax/swift-ansi-escapes.git", from: "0.1.0")
],
targets: [
.target(
name: "MyPackage",
dependencies: ["AnsiEscapes"])
]
)I will add documentation in a future PR.
swift-ansi-escapes is available under the MIT license. See the [LICENSE] file for more info.