Documentation

ProgressBar.Spinner

inductive CancelAction :

What must be done when stopping the spinner?

Instances For
    structure Spinner :
    Instances For
      def Spinner.setTitle (spinner : Spinner) (title : String) :

      Change the title of the spinner.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Spinner.log (spinner : Spinner) (line : String) :

        Print line as its own persisted line above the spinner, without stopping it (unlike Spinner.cancel .persist, which ends the spinner for good).

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Spinner.logOn (spinner : Spinner) (out : IO.FS.Stream) (line : String) :

          Like Spinner.log, but puts line on out instead of on the stream the animation is drawn on. For output that belongs on another handle — the compiled file going to standard output while the animation runs on standard error — and so must still be sequenced against the animation rather than written past it.

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

            Stops the spinner, erasing the spinner and its message.

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

              Check if a call to Spinner.cancel has already been done or not.

              Equations
              Instances For
                @[reducible, inline]
                abbrev Spinner.new (spinner : SpinnerData) (message : Option String) :

                Create a new spinner on stdout that will execute endAction when cancelled.

                Equations
                Instances For
                  @[reducible, inline]
                  abbrev Spinner.newOnStream (spinner : SpinnerData) (message : Option String) (stream : IO.FS.Stream) :

                  Create a new spinner on the provided stream that will execute endAction when cancelled.

                  Equations
                  Instances For