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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
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.
Add the following to your Cartfile:
ub "jdhealy/PrettyColors"
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.
PrettyColors is released under the MIT license. See LICENSE.md for details.