Documentation

TermColor.Style

TermColor.Style: composable terminal styles #

A style is a sequence of SGR settings. An attribute setting carries either true or false, so it can enable or disable a surrounding attribute; an absent setting means inherit. Settings are applied from left to right, and later settings therefore take precedence for overlapping properties. This is the same small algebra used by ANSI itself.

The text attributes represented by common SGR terminals.

Instances For
    @[instance_reducible]
    Equations
    Equations
    Instances For

      One setting in a style sequence.

      Instances For
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          A composable sequence of terminal settings.

          • settings : List Setting

            Settings applied from left to right.

          Instances For
            Equations
            Instances For
              def TermColor.instDecidableEqStyle.decEq (x✝ x✝¹ : Style) :
              Decidable (x✝ = x✝¹)
              Equations
              Instances For
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For

                  The empty style sequence.

                  Equations
                  Instances For

                    Concatenate style settings. Later settings are applied later by the terminal.

                    Equations
                    Instances For

                      Combine styles, applying the right-hand settings after the left-hand settings.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For

                        A foreground-color setting.

                        Equations
                        Instances For

                          A background-color setting.

                          Equations
                          Instances For