Latest 2.0.0
Homepage https://github.com/oleander/Ansi
License MIT
Platforms osx 10.11
Dependencies FootlessParser, Hue, BonMot
Authors

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.

Latest podspec

{
    "name": "Ansi",
    "version": "2.0.0",
    "summary": "Ansi parser written in Swift 3 for constructing NSAttributedStrings.",
    "description": "Ansi parser written in Swift 3 for constructing NSAttributedStrings. Currently supports 8 & 256 bit colors, italic, strikethrough, underline and bold text.",
    "homepage": "https://github.com/oleander/Ansi",
    "license": "MIT",
    "authors": {
        "Linus Oleander": "[email protected]"
    },
    "platforms": {
        "osx": "10.11"
    },
    "source": {
        "git": "https://github.com/oleander/Ansi.git",
        "tag": "2.0.0"
    },
    "source_files": "Source/**/*.swift",
    "dependencies": {
        "FootlessParser": [],
        "Hue": [],
        "BonMot": []
    },
    "pushed_with_swift_version": "3.1"
}

Pin It on Pinterest

Share This