Composable terminal colors
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Mahdi Dibaiee 94c854a966 fix: reset before and after 6 years ago
src fix: reset before and after 6 years ago
.gitignore initial commit 6 years ago
LICENSE initial commit 6 years ago
Main.hs add demo 6 years ago
README.md update image link 6 years ago
Setup.hs initial commit 6 years ago
demo.jpg add demo 6 years ago
stack.yaml initial commit 6 years ago
termcolor.cabal fix: reset before and after 6 years ago

README.md

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