Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 517 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 517 Bytes

Ansi Status

Ansi parser written in Swift 3 for constructing NSAttributedStrings. Currently supports 8 & 256 bit colors, italic, strikethrough, underline and bold text.

Usage

import Ansi

let attr = "ABC\\e[3;4;33mDEF\\e[0mGHI".ansified()
attr // => "ABC" + "DEF".italic.underline.yellow + "GHI"
attr.string // => "ABCDEF GHI"

Install

Add pod 'Ansi' to your Podfile and run pod install.