- on :: Color -> Color -> Attr
- fgColor :: Color -> Attr
- bgColor :: Color -> Attr
- style :: Style -> Attr
- mergeAttr :: Attr -> Attr -> Attr
- mergeAttrs :: [Attr] -> Attr
- withWidth :: DisplayRegion -> Word -> DisplayRegion
- withHeight :: DisplayRegion -> Word -> DisplayRegion
- plusWidth :: DisplayRegion -> Word -> DisplayRegion
- plusHeight :: DisplayRegion -> Word -> DisplayRegion
Documentation
on :: Color -> Color -> AttrSource
Infix attribute constructor. Use: foregroundColor on
backgroundColor.
fgColor :: Color -> AttrSource
Foreground-only attribute constructor. Background color and style are defaulted.
bgColor :: Color -> AttrSource
Background-only attribute constructor. Foreground color and style are defaulted.
mergeAttr :: Attr -> Attr -> AttrSource
Merge two attributes. Leftmost attribute takes precedence where it specifies any of the foreground color, background color, or style.
mergeAttrs :: [Attr] -> AttrSource
List fold version of mergeAttr
.
withWidth :: DisplayRegion -> Word -> DisplayRegionSource
Modify the width component of a DisplayRegion
.
withHeight :: DisplayRegion -> Word -> DisplayRegionSource
Modify the height component of a DisplayRegion
.
plusWidth :: DisplayRegion -> Word -> DisplayRegionSource
Modify the width component of a DisplayRegion
.
plusHeight :: DisplayRegion -> Word -> DisplayRegionSource
Modify the height component of a DisplayRegion
.