dillonkearns/elm-pages/12.3.0

Tui.Attribute

Text decoration attributes for styled terminal output. Used with Tui.Screen.withAttributes to apply a dynamic set of attributes to a Screen, and with Tui.Screen.Advanced.styleAttributes to inspect the attribute list on an existing Style.

import Tui.Attribute as Attr
import Tui.Screen as Screen


Screen.text "Heading"
    |> Screen.withAttributes [ Attr.Bold, Attr.Underline ]

For the common case of applying a single attribute to a Screen, prefer the dedicated builders (Tui.Screen.bold, Tui.Screen.italic, etc.) directly.

= Bold
| Dim
| Italic
| Underline
| Strikethrough
| Inverse

A text decoration attribute.