Looks like that wrap issue can be completely handled by the shell:
[[ "$nowrap" && -t 1 ]] \
&& { echoti rmam; print -rl $output; echoti smam } \
|| print -rl $output
Thanks Stephane. Sheesh, sometimes I think I'm asking something that
the shell shouldn't be expected to do, but she never stops impressing.