The termcolor package

[Tags:gpl, library, program]

Composable terminal colors


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.2.0.0
Dependencies base (>=4.7 && <5), cli (>=0.1.2 && <1), termcolor [details]
License GPL-3
Copyright 2017 Mahdi Dibaiee
Author Mahdi Dibaiee
Maintainer mahdi@theread.me
Category Web
Home page https://github.com/mdibaiee/termcolor#readme
Source repository head: git clone https://github.com/mdibaiee/termcolor
Uploaded Thu Mar 30 12:23:47 UTC 2017 by mdibaiee
Distributions LTSHaskell:0.2.0.0, NixOS:0.2.0.0, Stackage:0.2.0.0, Tumbleweed:0.2.0.0
Downloads 68 total (68 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2017-03-30 [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for termcolor

Readme for termcolor-0.2.0.0

termcolor

Composable terminal colors for Haskell.

import Text.Termcolor
import Text.Termcolor.Style
import qualified Text.Termcolor.Foreground as F
import qualified Text.Termcolor.Background as B

main = putStrLn . format . underline . bold . (light . B.cyan) . (F.red) $ read "Hello World!"

demo output