Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type Attrs = Word32
- blankAttrs :: Attrs
- type Cell = (Char, Attrs)
- cellChar :: Lens' Cell Char
- cellAttrs :: Lens' Cell Attrs
- attrsFg :: Lens' Attrs (Maybe (ColorIntensity, Color))
- attrsBg :: Lens' Attrs (Maybe (ColorIntensity, Color))
- attrsIntensity :: Lens' Attrs ConsoleIntensity
- attrsUnderline :: Lens' Attrs Underlining
- intToColor :: Word32 -> Maybe (ColorIntensity, Color)
- colorToInt :: Maybe (ColorIntensity, Color) -> Word32
- consoleIntensityToInt :: ConsoleIntensity -> Word32
- underliningToInt :: Underlining -> Word32
Documentation
Attrs:
00000000 00000000 000000000000uuii ^^ fg ^^ ^^ bg ^^ ^^^^^^^^^^^^^^^^ ii : ConsoleIntensity (00 = Normal, 01 = Bold, 10 = Faint) uu : Underlining (00 = NoUnderline, 01 = SingleUnderline, 10 = DoubleUnderline)
blankAttrs :: Attrs Source #
intToColor :: Word32 -> Maybe (ColorIntensity, Color) Source #
colorToInt :: Maybe (ColorIntensity, Color) -> Word32 Source #
underliningToInt :: Underlining -> Word32 Source #