def hold
import ezx@1.11.0.0/src/share/spin.bend as Spinimport Base
import ezx@1.11.0.0/src/share/say.bend as Say
43# the line, then the mark when a terminal will show it moving. A pipe gets
44# the line and nothing else.
45def hold(+msg: String) -> IO(Say.Spin):
46 do IO<Say.Spin>:
47 +tty : String <- dev()
48 hold.at(String.is_empty(tty), tty, msg)