zsh-workers
 help / color / mirror / code / Atom feed
* getquery() acts funny with multibyte characters
@ 2008-06-26  9:45 Mikael Magnusson
  2008-06-26 17:01 ` Mikael Magnusson
  2008-06-30 21:46 ` Peter Stephenson
  0 siblings, 2 replies; 4+ messages in thread
From: Mikael Magnusson @ 2008-06-26  9:45 UTC (permalink / raw)
  To: zsh-workers

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-07-01 17:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-26  9:45 getquery() acts funny with multibyte characters Mikael Magnusson
2008-06-26 17:01 ` Mikael Magnusson
2008-06-30 21:46 ` Peter Stephenson
2008-07-01 17:18   ` Mikael Magnusson

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).