dill: if styled prompt has no style, emit as plain
People using older runtimes might not support the %klr blit. It's not
uncommon for prompts without style to get passed in as %pom though, so
here we catch that case and turn it into a %pro, which gets rendered as
a traditional %lin.
=. see [%lin p.bit]
(done %blit [see [%hop pos] ~])
?: ?=($pom -.bit)
+ ::NOTE treat "styled prompt" without style as plain prompt,
+ :: to allow rendering by older runtimes
+ ::TODO remove me once v0.10.9+ has high/guaranteed adoption
+ ::
+ ?: (levy p.bit (cork head |*(s=stye =(*stye s))))
+ $(bit [%pro (zing (turn p.bit tail))])
=. see [%klr p.bit]
(done %blit [see [%hop pos] ~])
?: ?=($hop -.bit)
