What must be done when stopping the spinner?
- persist
(sym : String)
(msg : Option String)
: CancelAction
Replace the spinner animation with the symbol
sym, optionally changing the message tomsg. - erase : CancelAction
Completely erase the spinner.
- replace
(msg : String)
: CancelAction
Print the given
msgin place of the spinner.
Instances For
- chan : Std.CloseableChannel Msg
- stream : IO.FS.Stream
- cancelAction : IO.Ref CancelAction
Instances For
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
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
- spinner.isCancelled = liftM (IO.hasFinished (Spinner.task✝ spinner))
Instances For
Create a new spinner on stdout that will execute endAction when cancelled.
Equations
- Spinner.new spinner message = Spinner.newInner✝ spinner message none
Instances For
Create a new spinner on the provided stream that will execute endAction when cancelled.
Equations
- Spinner.newOnStream spinner message stream = Spinner.newInner✝ spinner message (some stream)