zsh-workers
 help / color / mirror / code / Atom feed
From: Danek Duvall <duvall@comfychair.org>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: PATCH: multibyte FAQ
Date: Sun, 18 Dec 2005 11:38:25 -0800	[thread overview]
Message-ID: <20051218193825.GG21510@lorien.comfychair.org> (raw)
In-Reply-To: <1051216171324.ZM10570@candle.brasslantern.com>

On Fri, Dec 16, 2005 at 05:13:24PM +0000, Bart Schaefer wrote:

> No, not really.  The set of multibyte characters depends on the current
> locale setting, and there are potentially thousands of them, most of
> which will be broken by "bindkey -m".

Oh, of course.  I was thinking only of UTF-8 again.

> } In xterm at least, you can control whether the meta key sets the
> } eighth bit or sends an escape character depending on the values of the
> } eightBitInput and metaSendsEscape resources.
> 
> That doesn't have the desired effect for me, because eightBitInput has
> to be false, which AFAICT means you can't send multibyte characters
> either.  Am I doing something wrong, or is my xterm version too old?

Not sure, as I haven't actually tried it, and I don't have any non-ascii
keys on my keyboard to try it anyway, but from my reading of the xterm man
page (version 205), it might be the case that it can distinguish between
eight-bit characters and key combinations M-<x> (the description in
metaSendsEscape isn't clear, IMHO), and so setting both eightBitInput and
metaSendsEscape to true would allow eight-bit characters to be sent cleanly
to the terminal, and when you type M-<x>, xterm sends ESC-<x>.

You probably also need to set "utf8: true" or "locale: true" or "locale:
utf8" for multibyte character sets to work properly.

I'm sure Thomas could set the record straight here.

Danek


  reply	other threads:[~2005-12-18 19:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-14 18:31 Peter Stephenson
2005-12-14 18:41 ` Peter Stephenson
2005-12-15 14:42   ` Peter Stephenson
2005-12-14 19:25 ` [22076] " Danek Duvall
2005-12-14 21:09   ` Peter Stephenson
2005-12-16  9:39     ` Danek Duvall
2005-12-16 17:13       ` Bart Schaefer
2005-12-18 19:38         ` Danek Duvall [this message]
2005-12-18 21:10           ` Bart Schaefer
2005-12-18 14:14 ` PATCH: multibyte FAQ (MacOS X) Jun T.
2005-12-18 15:26   ` Andrey Borzenkov
2005-12-19  9:08     ` Jun T.
2005-12-18 19:41   ` Peter Stephenson
2005-12-21 16:15     ` Peter Stephenson

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=20051218193825.GG21510@lorien.comfychair.org \
    --to=duvall@comfychair.org \
    --cc=schaefer@brasslantern.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).