printf "%s" "0c$m" > "$NNN_PIPE" generates a bug with the nnn UI: the prompt is displayed while nnn UI is showing, and some lines don’t refresh properly as a consequence.
The same thing happens when using the nnn_cd "$m" 0 command from .nnn-plugin-helper