Hish-0.0.1

Safe HaskellSafe
LanguageHaskell2010

Hish.ANSICode

Synopsis

Documentation

data ANSICode Source

Encoding ANSI-code

Constructors

ESC_Bold 
ESC_Underline 
ESC_Reverse 
ESC_Reset 
ESC_Fg 

Fields

fg :: Int
 
ESC_Bg 

Fields

bg :: Int
 
ESC_Setup 

Fields

body :: (Int, Int, Int)

(foreground, background, other)

esc :: ANSICode Source

alias of mempty

(<>) :: ANSICode -> ANSICode -> ANSICode infixr 6 Source

alias of mappend

applyANSI Source

Arguments

:: String

content

-> ANSICode

ANSI setting

-> String 

apply ANSI setting onto a given string