rainbow: Print text to terminal with colors and effects

[ bsd3, library, system ] [ Propose Tags ]

rainbow helps you print Text chunks to a terminal with colors and effects such as bold, underlining, etc. You pair each Text with a description of how it should appear. Rainbow works with both 8-color and 256-color terminals.

rainbow uses the terminfo package which, in turn, needs the full C library for ncurses installed, including the development headers. Before installing terminfo, you may need to install the ncurses headers (for instance, on Debian systems, install the libncurses5-dev package.)


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.2.0.0, 0.4.0.0, 0.6.0.0, 0.6.0.2, 0.6.0.4, 0.8.0.0, 0.10.0.0, 0.10.2.0, 0.12.0.0, 0.14.0.0, 0.14.0.2, 0.16.0.0, 0.16.2.0, 0.18.0.0, 0.20.0.0, 0.20.0.2, 0.20.0.4, 0.20.0.6, 0.20.2.0, 0.20.4.0, 0.22.0.0, 0.22.0.2, 0.24.0.0, 0.26.0.0, 0.26.0.2, 0.26.0.4, 0.26.0.6, 0.28.0.0, 0.28.0.2, 0.28.0.4, 0.30.0.0, 0.30.0.2, 0.32.0.0, 0.34.0.0, 0.34.2.0, 0.34.2.2
Change log changelog
Dependencies base (>=4.5.0.0 && <4.8.0.0), terminfo (>=0.3.2 && <0.5.0.0), text (>=0.11.2.0 && <1.2.0.0) [details]
License BSD-3-Clause
Copyright Copyright 2013 - 2014 Omari Norman
Author Omari Norman
Maintainer omari@smileystation.com
Category System
Home page http://www.github.com/massysett/rainbow
Bug tracker http://www.github.com/massyett/rainbow/issues
Source repo head: git clone git://github.com/massysett/rainbow.git -b master
Uploaded by OmariNorman at 2014-10-27T15:44:39Z
Distributions LTSHaskell:0.34.2.2, NixOS:0.34.2.2, Stackage:0.34.2.2
Reverse Dependencies 16 direct, 27 indirect [details]
Downloads 25599 total (104 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for rainbow-0.18.0.0

[back to package description]

rainbow

rainbow helps you build colorful output for both 8- and 256-color terminals. It works only on Unix-like operating systems.

rainbow is on Github:

http://www.github.com/massysett/rainbow

and Hackage:

http://hackage.haskell.org/package/rainbow

rainbow is licensed under the BSD license; see the LICENSE file.

Versioning

rainbow releases are numbered in accordance with the Haskell Package Versioning Policy.

rainbow does not set its dependencies in accordance with the Package Versioning Policy, as I do not set upper bounds. rainbow is guaranteed to build with the minimum versions specified in the cabal file. I also include a dependencies.txt file that documents more recent dependencies that are also known to work.

If you find that rainbow does not build due to dependency problems:

  1. please let me know at omari@smileystation.com; 2) feel free to add appropriate upper bounds or patches to the package as appropriate; and 3) feel free to add command-line contraints to your cabal command to get it to build.

Building

If you get the package from Hackage, it is ready to build with cabal install like any other Haskell package.

If you get it from Github, first you will need to create the cabal file. It's built using m4 to avoid redundancies in the file. To build the cabal file, simply invoke make.

Generators package

The source tree also includes a package rainbow-tests which includes several generators that other packages might find useful.