From: "Mikael Magnusson" <mikachu@gmail.com>
To: zsh-workers <zsh-workers@sunsite.dk>
Subject: Re: getquery() acts funny with multibyte characters
Date: Thu, 26 Jun 2008 19:01:24 +0200 [thread overview]
Message-ID: <237967ef0806261001l1cb9b51cye4f57e16b835d7c5@mail.gmail.com> (raw)
In-Reply-To: <237967ef0806260245y7e9d8badif35b2fe7892a45b1@mail.gmail.com>
2008/6/26 Mikael Magnusson <mikachu@gmail.com>:
> 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
next prev parent reply other threads:[~2008-06-26 17:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-26 9:45 Mikael Magnusson
2008-06-26 17:01 ` Mikael Magnusson [this message]
2008-06-30 21:46 ` Peter Stephenson
2008-07-01 17:18 ` Mikael Magnusson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=237967ef0806261001l1cb9b51cye4f57e16b835d7c5@mail.gmail.com \
--to=mikachu@gmail.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).