Documentation

TermColor.Terminal.Runtime

TermColor.Terminal.Runtime #

The smallest useful application runtime: typed resize/tick/input events, renderer injection, and terminal cleanup scoped with finally. Applications may use the lower-level pieces when they need a custom scheduler or background-job protocol.

A renderer owns its retained output state and terminal writes.

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def TermColor.Terminal.withTerminal {α : Type} (action : IO α) :
        IO α

        Scope cursor and alternate-screen state. Both controls restore on failure.

        Equations
        Instances For
          Equations
          Instances For
            Equations
            Instances For
              Instances For
                Equations
                Instances For
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            Instances For
                              def TermColor.Terminal.run {Model State : Type} (renderer : Renderer State) (config : LoopConfig Model) :

                              Run a small model/view loop with injectable renderer and guaranteed terminal cleanup.

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