Carthage/PrettyColors

Name: PrettyColors

Owner: Carthage

Description: Styles and colors text in the Terminal with ANSI escape codes. Conforms to ECMA Standard 48.

Created: 2015-03-21 01:43:36.0

Updated: 2015-04-26 11:28:30.0

Pushed: 2015-03-21 01:45:14.0

Homepage: null

Size: 128

Language: Swift

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

PrettyColors

Carthage Compatibility CocoaPods Version License Platform

Description

PrettyColors is a Swift library for styling and coloring text in the Terminal. The library outputs ANSI escape codes and conforms to ECMA Standard 48.

Example
rt PrettyColors

redText: String = Color.Wrap(foreground: .Red).wrap("A red piece of text.")
tln(redText)

r.Wrap(foreground: .Yellow, style: .Bold)
r.Wrap(foreground: .Green, background: .Black, style: .Bold, .Underlined)

-bit (256) color support
r.Wrap(foreground: 114)
r.Wrap(foreground: 114, style: .Bold)

More examples can be found in the tests.

Installation
Carthage

Add the following to your Cartfile:

ub "jdhealy/PrettyColors"
CocoaPods

Add the following to your Podfile:

'PrettyColors', :git => 'https://github.com/jdhealy/PrettyColors'

You will also need to make sure you're opting into using frameworks:

frameworks!

Then run pod install with CocoaPods 0.36 or newer.

Inspiration
License

PrettyColors is released under the MIT license. See LICENSE.md for details.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.