fix reprinting prompts with invisible chars

the diff printing logic makes a lot of assumptions that sometimes break
in the presence of prompts with invisible chars. Because it's hard to
see how to fix this without substantially rewriting the associated code,
just skip the diff print logic and fully reprint the prompt if it has
invisible chars for now
add ansi/non-unicode mode strs to example code