help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac terminal.app: starting emacs, possibly as sudo


From: Peter Dyballa
Subject: Re: Mac terminal.app: starting emacs, possibly as sudo
Date: Mon, 17 Oct 2011 17:18:46 +0200

Am 17.10.2011 um 15:33 schrieb Perry Smith:

> The other obstacle is at some point, Apple will update the system, install a 
> new emacs, and you will lose your changes.

And this newly installed /usr/bin/emacs might follow down the sym-link…

> I am sure that is slightly customizable but how much, I don't know.

There are two areas: one in the preferences of the Apple Terminal, the other by 
choosing a value for the environment variable TERM – although the latter is 
rather meant for the software running in that terminal to tell it how to make 
sense of the ANSI and non-ANSI Esc sequences produced in that terminal.

> Here is an example: with the GUI emacs, when you hold the control key down 
> and hit an "a", emacs knows that entire sequence of key strokes.

Not exactly. The GUI application will know that some modifier key(s) is/are 
pressed when a key event happens.

> But when emacs is running inside Terminal, Terminal knows and sees the whole 
> key sequence but sends just a Control-A to emacs.

Which is one byte of the hex value 0x1 or octal \001 or decimal 1 (while the 
figure 1 has an ASCII value of 49 [o61, x31]).

--
Greetings

  Pete

Let's face it; we don't want a free market economy either.
                – James Farley, president, Coca-Cola Export Corp., 1959




reply via email to

[Prev in Thread] Current Thread [Next in Thread]