From: Stefan <monnier@iro.umontreal.ca>
Cc: Peter Dyballa <Peter_Dyballa@Web.DE>,
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Subject: Coding systems and Terminal.app on Mac OS X
Date: Thu, 24 Mar 2005 12:17:26 -0500 [thread overview]
Message-ID: <m164zhhtci.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <f1fa2c293dc7a2c8cf9272fd9dd4a080@Web.DE> (Peter Dyballa's message of "Wed, 23 Mar 2005 15:22:01 +0100")
> TERM_PROGRAM=Apple_Terminal
> TERM_PROGRAM_VERSION=100.1.4
OK, so I tried my patch and it seems to work: it does set the
terminal-coding-system to utf-8 and letters with accents are then
properly displayed.
Now, the next problem is keyboard input: my meta key doesn't work in
Terminal.app and neither do accented chars. Looking at C-h l I see that the
byte sequence that Emacs receives is odd. E.g. for "M-x" Emacs receives (I
use the "meta-is-bit7" convention):
C-v \342 C-v \211 C-v \210
Assuming the C-v was meant to be some kind of quoting char (as it is in
several Unix tools where it plays the same role as Emacs's C-q), we could
think of it as "\342 \211 \210", which is a valid utf-8 sequence for "≈".
After trying to insert some accented chars, it seems that indeed the input
is a kind of "utf-8 interleaved with C-v" and my meta key sends non-ASCII
chars instead of something like an ESC prefix. Does anybody know what this
C-v stuff is about?
Stefan
PS: Actually, the utf-8 display doesn't work 100% because Terminal.app
displays my \lambda characters as two-columns-chars and Emacs doesn't know
about it, so the display gets confused and every once in a while a bit of
C-l is needed.
next parent reply other threads:[~2005-03-24 17:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <f299b5aff3dd75c085f0a42b55b17a0e@Web.DE>
[not found] ` <jwvk6o1q9cw.fsf-monnier+emacs@gnu.org>
[not found] ` <8e7ecd4be6d2db7520f896189a1b135b@Web.DE>
[not found] ` <jwvoedcobu6.fsf-monnier+emacs@gnu.org>
[not found] ` <f0de7559de8d656a196888e422953ea3@Web.DE>
[not found] ` <m1r7i7rdut.fsf-monnier+emacs@gnu.org>
[not found] ` <79e39130065cf34bca7eb33e35eff18d@Web.DE>
[not found] ` <jwvoedbo6cd.fsf-monnier+emacs@gnu.org>
[not found] ` <9b795a5704f093bfe3dbec55935dc49d@Web.DE>
[not found] ` <wl3bunrtym.wl%mituharu@math.s.chiba-u.ac.jp>
[not found] ` <355667b4edbd0f6e8c22264e0bd9f6b3@Web.DE>
[not found] ` <m1hdj2pmos.fsf-monnier+emacs@gnu.org>
[not found] ` <f1fa2c293dc7a2c8cf9272fd9dd4a080@Web.DE>
2005-03-24 17:17 ` Stefan [this message]
2005-03-24 23:34 ` Coding systems and Terminal.app on Mac OS X Peter Dyballa
2005-03-25 1:17 ` Stefan
2005-03-25 1:42 ` Peter Dyballa
2005-03-25 14:01 ` Stefan Monnier
2005-03-25 14:56 ` Peter Dyballa
2005-03-25 16:00 ` Sébastien Kirche
[not found] ` <m3is3fr2zw.fsf@seneca.benny.turtle-trading.net>
2005-03-25 22:56 ` Peter Dyballa
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m164zhhtci.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=Peter_Dyballa@Web.DE \
--cc=mituharu@math.s.chiba-u.ac.jp \
/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.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).