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

Re: getquery() acts funny with multibyte characters



2008/6/30 Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>:
> On Thu, 26 Jun 2008 11:45:02 +0200
> "Mikael Magnusson" <mikachu@xxxxxxxxx> wrote:
>> 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?
>
> This might work, if the mailing list ever shows up.

I'm unsure if you were referring to the mail itself or the patch, but in any
case they both (for #2: appear to) work fine. :)

-- 
Mikael Magnusson


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