Safe Haskell | None |
---|---|
Language | Haskell2010 |
Colours and text attributes.
- data Color
- defFG :: Color
- isBright :: Color -> Bool
- darkCol :: [Color]
- brightCol :: [Color]
- stdCol :: [Color]
- colorToRGB :: Color -> Text
- data Highlight
- data Attr = Attr {}
- defAttr :: Attr
- data AttrChar = AttrChar {}
- newtype AttrCharW32 = AttrCharW32 {}
- attrCharToW32 :: AttrChar -> AttrCharW32
- attrCharFromW32 :: AttrCharW32 -> AttrChar
- fgFromW32 :: AttrCharW32 -> Color
- bgFromW32 :: AttrCharW32 -> Highlight
- charFromW32 :: AttrCharW32 -> Char
- attrFromW32 :: AttrCharW32 -> Attr
- attrEnumFromW32 :: AttrCharW32 -> Int
- spaceAttrW32 :: AttrCharW32
- retAttrW32 :: AttrCharW32
- attrChar2ToW32 :: Color -> Char -> AttrCharW32
- attrChar1ToW32 :: Char -> AttrCharW32
Colours
Colours supported by the major frontends.
colorToRGB :: Color -> Text Source #
Translationg to heavily modified Linux console color RGB values.
Warning: SDL frontend sadly duplicates this code.
Text attributes and the screen
Text attributes: foreground and backgroud colors.
newtype AttrCharW32 Source #
attrCharToW32 :: AttrChar -> AttrCharW32 Source #
fgFromW32 :: AttrCharW32 -> Color Source #
bgFromW32 :: AttrCharW32 -> Highlight Source #
charFromW32 :: AttrCharW32 -> Char Source #
attrFromW32 :: AttrCharW32 -> Attr Source #
attrEnumFromW32 :: AttrCharW32 -> Int Source #
attrChar2ToW32 :: Color -> Char -> AttrCharW32 Source #
attrChar1ToW32 :: Char -> AttrCharW32 Source #