Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: getquery() acts funny with multibyte characters
- X-seq: zsh-workers 25251
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: getquery() acts funny with multibyte characters
- Date: Thu, 26 Jun 2008 19:01:24 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=J9iIyekLjozDyXwr6lmYl7EA/4LNJ6XucYN188JSscQ=; b=dseV57Pa4mhfJI9PdVjxEJWSAUhKregWOj+qNnwl47mJmJgEr8l3mlyuOMsPkB4yvG bclN8+5EMkdZcbIZwGQgktH2C677s1CvMz6xYqaCgEJ3StXqnhLv11yqLfGdMkg24rpt NCC8BZeYjJxRZCX2Zm9q8kmu8s0e9KSXdV+4Y=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=KicwoYvdjA0+bKub+0DKuL+pw581cmhEZrfv1DPyNUBdv8cLHA2QePUSLzyfz3dM/G gqmzHuDc+txtybMYuS0nFhnyiw/e2ef7/ACDG7YSmz6BXK+wzSgCibXhoM9lbq25bhes WOUuO2XJzoL28SFGFCZsscBoAIGI9MyALjeVA=
- In-reply-to: <237967ef0806260245y7e9d8badif35b2fe7892a45b1@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <237967ef0806260245y7e9d8badif35b2fe7892a45b1@xxxxxxxxxxxxxx>
2008/6/26 Mikael Magnusson <mikachu@xxxxxxxxx>:
> 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?
The current approach is also racey if you type very quickly (and by
type i mean have 1000 * 'b' in the x clipboard and press the middle
mouse button).
% mpalyer
zsh: correct 'mpalyer' to 'mplayer' [nyae]?
bbbbbbbbbbbbbbbbbbbbbbbzsh: command not found: mpalyer
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author