Composable terminal colors
Go to file
2017-03-30 15:46:04 +04:30
src initial commit 2017-03-30 15:40:17 +04:30
.gitignore initial commit 2017-03-30 15:40:17 +04:30
demo.jpg add demo 2017-03-30 15:45:17 +04:30
LICENSE initial commit 2017-03-30 15:40:17 +04:30
Main.hs add demo 2017-03-30 15:45:17 +04:30
README.md update image link 2017-03-30 15:46:04 +04:30
Setup.hs initial commit 2017-03-30 15:40:17 +04:30
stack.yaml initial commit 2017-03-30 15:40:17 +04:30
termcolor.cabal initial commit 2017-03-30 15:40:17 +04:30

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