all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>, emacs-devel@gnu.org
Subject: Re: Coding systems and Terminal.app on Mac OS X
Date: Fri, 25 Mar 2005 00:34:55 +0100	[thread overview]
Message-ID: <76bf85cfe204136f51ff3b4119616af5@Web.DE> (raw)
In-Reply-To: <m164zhhtci.fsf-monnier+emacs@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2280 bytes --]

Hello!

Terminal.app is a complicated application and clearly not finished 
(with ls in Terminal I can't see UTF-8 file names correctly, only 
a??o??u????U??O??A?????, doing it in Emacs' shell I see 
a\314?o\314?u\314?\303?U\314?O\314?A\314?\342?\254 and in dired as the 
correct string äöüßÜÖÄ€ as in Finder too).

Maybe we should try to adjust our settings. I have in Terminal's 
«Window Preferences»

	in *Emulation* set
Option+Click to position cursor in command line
(non-ASCII -> Esc is not active/checked)

	in *Monitor* set
Lucida Sans Typewriter Regular (a font from the Java Runtime 
Environment)
anti-aliasing
Copy&Paste with moving/dragging
UTF-8 encoding

	in *Keyboard* /not/ set
alt/Option/⌥ as Meta//Command/⌘


Am 24.03.2005 um 18:17 schrieb Stefan:

>> TERM_PROGRAM=Apple_Terminal
>> TERM_PROGRAM_VERSION=100.1.4
>
> Now, the next problem is keyboard input: my meta key doesn't work in
> Terminal.app

That is true for GNU Emacs as X11 client, running in xterm, or running 
in Terminal. Only Carbon Emacs understand Cmd-x/Apple-x/⌘-x as M-x.

>  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?

I actually don't know what Terminal or Apple or both are trying with 
this and what it's good for (maybe it's necessary for vi/vim), but with 
the above mentioned settings I can directly input with my German 
keyboard these seven umlauts and some more with Character Palette 
utility and Emacs itself writes the month of March as "März" as I set 
it in calendar-month-name-array and in calendar-month-abbrev-array:


[-- Attachment #2: pastedGraphic3.tiff --]
[-- Type: image/tiff, Size: 23802 bytes --]

[-- Attachment #3: Type: text/plain, Size: 1597 bytes --]



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

Again this comes from your settings. And there is another problem: 
since Terminal or xterm have only one font available you could miss 
some characters from this. The HELLO buffer shows in Terminal twice 
this:

	Greek (ελληνικά)                Γειά σας

because they're Lucida Sans Typewriter -- and it shows some extra 
scripts that GNU Emacs puts there: Amharic, Braille, Georgian, Lao, 
Tibetan, Tigrina, half Japanese. Hebrew, Thai, and Cyrillic are in the 
font too and visible, but not Arabic! It's right-to-left as Hebrew. (In 
xterm it looks worse: many hollow boxes and even more U+FEFF, a black 
square on one edge with a white question mark as in my screenshot.)

If you can't find the Character Palette, here is way to make it 
available: in System Preferences go to Locale (the UN flag), choose 
Keyboard Menu and click there 'Keyboard Menu in Menubar' plus choose 
from the window with the flags those keyboard layouts that you might 
like to use *and* Character Palette, Keyboard Layout. Now you can 
choose from the Menubar the 'Canadian Flag' menu which will have the 
Character Palette. Cmd-clicking you can drag/position a menu in the 
Menubar.

Have you tried to correct on Terminal's command line mis-spellings? 
C-d, C-t, C-w, Esc-BS ... work.

--
Greetings

   Pete

[-- Attachment #4: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

  reply	other threads:[~2005-03-24 23:34 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                         ` Coding systems and Terminal.app on Mac OS X Stefan
2005-03-24 23:34                           ` Peter Dyballa [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=76bf85cfe204136f51ff3b4119616af5@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=emacs-devel@gnu.org \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.