Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

getquery() acts funny with multibyte characters



If you misspell a command or run rm * (there are probably other cases
too) you get a prompt that asks you for y/n or whatever is applicable.
If you write a multibyte character at this prompt, zsh will erase a
character of the prompt for every extra byte in the character, ie
entering å (U+E5) erases one character and entering は (U+306F) erases
two. It seems to happen with unsetopt multibyte too.

The function seems to emit "\b \b" to erase what you wrote if it isn't
a valid response, which seems a bit strange. Wouldn't it be more sane
to turn off echoing and simply print the valid response instead?

-- 
Mikael Magnusson


Messages sorted by: Reverse Date, Date, Thread, Author