all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs, true color and iterm2
@ 2013-09-09 17:54 Bois Francois-Xavier
  2013-09-09 19:56 ` Eli Zaretskii
  2013-09-10 10:56 ` Richard Stallman
  0 siblings, 2 replies; 12+ messages in thread
From: Bois Francois-Xavier @ 2013-09-09 17:54 UTC (permalink / raw)
  To: emacs-devel

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

Dear emacsians

iterm2, a widely used open source terminal on OSX, is working on offering
compatibility with true color (3-byte color mode).

It can be a great feature for emacs users working on terminals.

An interesting discussion about the best way to "code" the colors is taking
place on https://code.google.com/p/iterm2/issues/detail?id=218.

Could a core emacs developer give them some feedbacks ? (does emacs
requires a special encoding ?)

Thank you in advance

fxbois

[-- Attachment #2: Type: text/html, Size: 742 bytes --]

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

* Re: emacs, true color and iterm2
  2013-09-09 17:54 emacs, true color and iterm2 Bois Francois-Xavier
@ 2013-09-09 19:56 ` Eli Zaretskii
  2013-09-09 23:12   ` Stefan Monnier
  2013-09-10 10:56 ` Richard Stallman
  1 sibling, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2013-09-09 19:56 UTC (permalink / raw)
  To: Bois Francois-Xavier; +Cc: emacs-devel

> From: Bois Francois-Xavier <fxbois@gmail.com>
> Date: Mon, 9 Sep 2013 19:54:26 +0200
> 
> iterm2, a widely used open source terminal on OSX, is working on offering
> compatibility with true color (3-byte color mode).
> 
> It can be a great feature for emacs users working on terminals.
> 
> An interesting discussion about the best way to "code" the colors is taking
> place on https://code.google.com/p/iterm2/issues/detail?id=218.
> 
> Could a core emacs developer give them some feedbacks ? (does emacs
> requires a special encoding ?)

What Emacs needs can be seen from its support of xterm-256, see
xterm.el in the Emacs distribution.  In a nutshell, someone should
write a function that registers all the supported colors as
xterm-register-default-colors does.



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

* Re: emacs, true color and iterm2
  2013-09-09 19:56 ` Eli Zaretskii
@ 2013-09-09 23:12   ` Stefan Monnier
  2013-09-10  2:07     ` Stefan Monnier
  2013-09-10  2:49     ` Eli Zaretskii
  0 siblings, 2 replies; 12+ messages in thread
From: Stefan Monnier @ 2013-09-09 23:12 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Bois Francois-Xavier, emacs-devel

>> iterm2, a widely used open source terminal on OSX, is working on offering
>> compatibility with true color (3-byte color mode).
>> It can be a great feature for emacs users working on terminals.
>> An interesting discussion about the best way to "code" the colors is taking
>> place on https://code.google.com/p/iterm2/issues/detail?id=218.
>> Could a core emacs developer give them some feedbacks ? (does emacs
>> requires a special encoding ?)

> What Emacs needs can be seen from its support of xterm-256, see
> xterm.el in the Emacs distribution.  In a nutshell, someone should
> write a function that registers all the supported colors as
> xterm-register-default-colors does.

Tho, obviously, for 2bit color support, we won't will want to have
support for tty colors without going through some approximation table.


        Stefan



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

* Re: emacs, true color and iterm2
  2013-09-09 23:12   ` Stefan Monnier
@ 2013-09-10  2:07     ` Stefan Monnier
  2013-09-10  2:51       ` Eli Zaretskii
  2013-09-10  2:49     ` Eli Zaretskii
  1 sibling, 1 reply; 12+ messages in thread
From: Stefan Monnier @ 2013-09-10  2:07 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Bois Francois-Xavier, emacs-devel

> Tho, obviously, for 2bit color support, we won't will want to have
                      ^                      ^^^^^
                      24                     [delete]

> support for tty colors without going through some approximation table.


        Stefan



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

* Re: emacs, true color and iterm2
  2013-09-09 23:12   ` Stefan Monnier
  2013-09-10  2:07     ` Stefan Monnier
@ 2013-09-10  2:49     ` Eli Zaretskii
  1 sibling, 0 replies; 12+ messages in thread
From: Eli Zaretskii @ 2013-09-10  2:49 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: fxbois, emacs-devel

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Date: Mon, 09 Sep 2013 19:12:30 -0400
> Cc: Bois Francois-Xavier <fxbois@gmail.com>, emacs-devel@gnu.org
> 
> Tho, obviously, for 2bit color support, we won't will want to have
> support for tty colors without going through some approximation table.

The approximation table is already built-in, unless I completely
misunderstand what you mean.



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

* Re: emacs, true color and iterm2
  2013-09-10  2:07     ` Stefan Monnier
@ 2013-09-10  2:51       ` Eli Zaretskii
  2013-09-10 14:57         ` Stefan Monnier
  0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2013-09-10  2:51 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: fxbois, emacs-devel

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Bois Francois-Xavier <fxbois@gmail.com>,  emacs-devel@gnu.org
> Date: Mon, 09 Sep 2013 22:07:00 -0400
> 
> > Tho, obviously, for 2bit color support, we won't will want to have
>                       ^                      ^^^^^
>                       24                     [delete]
> 
> > support for tty colors without going through some approximation table.

Now I completely misunderstand what you mean by that, and why.



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

* Re: emacs, true color and iterm2
  2013-09-09 17:54 emacs, true color and iterm2 Bois Francois-Xavier
  2013-09-09 19:56 ` Eli Zaretskii
@ 2013-09-10 10:56 ` Richard Stallman
  2013-09-10 11:26   ` Bois Francois-Xavier
  1 sibling, 1 reply; 12+ messages in thread
From: Richard Stallman @ 2013-09-10 10:56 UTC (permalink / raw)
  To: Bois Francois-Xavier; +Cc: emacs-devel

        [ To any NSA and FBI agents reading my email: please consider
        [ whether defending the US Constitution against all enemies,
        [ foreign or domestic, requires you to follow Snowden's example.

    iterm2, a widely used open source terminal on OSX,

Is it free software, or not?  That makes a difference to how we
should respond:

    Could a core emacs developer give them some feedbacks ? (does emacs
    requires a special encoding ?)

If it is free software, we should help; if not, we shouldn't.

"Open source" is not equivalent to free software.  Most open source
programs are free, but there are some exceptions.  From the
information available, we cannot tell whether this program is free or
proprietary.

See http://www.gnu.org/philosophy/open-source-misses-the-point.html
for more explanation of the difference between free software and open
source.  See also http://thebaffler.com/past/the_meme_hustler for
Evgeny Morozov's article on the same point.

-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org  www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
  Use Ekiga or an ordinary phone call.




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

* Re: emacs, true color and iterm2
  2013-09-10 10:56 ` Richard Stallman
@ 2013-09-10 11:26   ` Bois Francois-Xavier
  2013-09-10 14:43     ` Andreas Schwab
  2013-09-10 20:36     ` Richard Stallman
  0 siblings, 2 replies; 12+ messages in thread
From: Bois Francois-Xavier @ 2013-09-10 11:26 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

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

This page tells that the licence is GNU PL2
https://code.google.com/p/iterm2/

The sources are available here
https://github.com/gnachman/iTerm2


On Tue, Sep 10, 2013 at 12:56 PM, Richard Stallman <rms@gnu.org> wrote:

>         [ To any NSA and FBI agents reading my email: please consider
>         [ whether defending the US Constitution against all enemies,
>         [ foreign or domestic, requires you to follow Snowden's example.
>
>     iterm2, a widely used open source terminal on OSX,
>
> Is it free software, or not?  That makes a difference to how we
> should respond:
>
>     Could a core emacs developer give them some feedbacks ? (does emacs
>     requires a special encoding ?)
>
> If it is free software, we should help; if not, we shouldn't.
>
> "Open source" is not equivalent to free software.  Most open source
> programs are free, but there are some exceptions.  From the
> information available, we cannot tell whether this program is free or
> proprietary.
>
> See http://www.gnu.org/philosophy/open-source-misses-the-point.html
> for more explanation of the difference between free software and open
> source.  See also http://thebaffler.com/past/the_meme_hustler for
> Evgeny Morozov's article on the same point.
>
> --
> Dr Richard Stallman
> President, Free Software Foundation
> 51 Franklin St
> Boston MA 02110
> USA
> www.fsf.org  www.gnu.org
> Skype: No way! That's nonfree (freedom-denying) software.
>   Use Ekiga or an ordinary phone call.
>
>

[-- Attachment #2: Type: text/html, Size: 2456 bytes --]

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

* Re: emacs, true color and iterm2
  2013-09-10 11:26   ` Bois Francois-Xavier
@ 2013-09-10 14:43     ` Andreas Schwab
  2013-09-10 20:36     ` Richard Stallman
  1 sibling, 0 replies; 12+ messages in thread
From: Andreas Schwab @ 2013-09-10 14:43 UTC (permalink / raw)
  To: Bois Francois-Xavier; +Cc: rms, emacs-devel

Bois Francois-Xavier <fxbois@gmail.com> writes:

> This page tells that the licence is GNU PL2

FWIW, the license is called GNU GPL (where the G stands for General).

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



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

* Re: emacs, true color and iterm2
  2013-09-10  2:51       ` Eli Zaretskii
@ 2013-09-10 14:57         ` Stefan Monnier
  2013-09-10 15:15           ` Eli Zaretskii
  0 siblings, 1 reply; 12+ messages in thread
From: Stefan Monnier @ 2013-09-10 14:57 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: fxbois, emacs-devel

>> > Tho, obviously, for 2bit color support, we won't will want to have
>> ^                      ^^^^^
>> 24                     [delete]
>> 
>> > support for tty colors without going through some approximation table.
> Now I completely misunderstand what you mean by that, and why.

AFAIK, currently, color support in a tty goes through an approximation
step which choose the closest color number to use among the N colors
supported by the tty.

We'll want to skip this step if the terminal supports 24bit colors,
since the table would be both huge (16M entries) and useless.


        Stefan



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

* Re: emacs, true color and iterm2
  2013-09-10 14:57         ` Stefan Monnier
@ 2013-09-10 15:15           ` Eli Zaretskii
  0 siblings, 0 replies; 12+ messages in thread
From: Eli Zaretskii @ 2013-09-10 15:15 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: fxbois, emacs-devel

> From: Stefan Monnier <monnier@IRO.UMontreal.CA>
> Cc: fxbois@gmail.com, emacs-devel@gnu.org
> Date: Tue, 10 Sep 2013 10:57:31 -0400
> 
> >> > Tho, obviously, for 2bit color support, we won't will want to have
> >> ^                      ^^^^^
> >> 24                     [delete]
> >> 
> >> > support for tty colors without going through some approximation table.
> > Now I completely misunderstand what you mean by that, and why.
> 
> AFAIK, currently, color support in a tty goes through an approximation
> step which choose the closest color number to use among the N colors
> supported by the tty.

Only as fallback.  An exact match is tried first, and if it exists, it
is always used.

> We'll want to skip this step if the terminal supports 24bit colors,
> since the table would be both huge (16M entries) and useless.

You already assume that Someone(TM) will generate such a huge table.
But that's not guaranteed, and if I were the person to do the job, I'd
only make a list for the 256 standard colors.

In any case, the alist of supported colors is used not only for
approximating colors, but also for mapping color names and RGB values
to integer numbers that need to be sent to the terminal driver.  This
same alist is used to find the exact match, if it exists.  So you need
such an alist anyway, unless you want to invent a completely different
API for talking to a TTY.



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

* Re: emacs, true color and iterm2
  2013-09-10 11:26   ` Bois Francois-Xavier
  2013-09-10 14:43     ` Andreas Schwab
@ 2013-09-10 20:36     ` Richard Stallman
  1 sibling, 0 replies; 12+ messages in thread
From: Richard Stallman @ 2013-09-10 20:36 UTC (permalink / raw)
  To: Bois Francois-Xavier; +Cc: emacs-devel

        [ To any NSA and FBI agents reading my email: please consider
        [ whether defending the US Constitution against all enemies,
        [ foreign or domestic, requires you to follow Snowden's example.

    This page tells that the licence is GNU PL2
    https://code.google.com/p/iterm2/

That means it is free software.

Most open source programs are free software,
but there are exceptions, so we can't take it for granted.

-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org  www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
  Use Ekiga or an ordinary phone call.




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

end of thread, other threads:[~2013-09-10 20:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-09 17:54 emacs, true color and iterm2 Bois Francois-Xavier
2013-09-09 19:56 ` Eli Zaretskii
2013-09-09 23:12   ` Stefan Monnier
2013-09-10  2:07     ` Stefan Monnier
2013-09-10  2:51       ` Eli Zaretskii
2013-09-10 14:57         ` Stefan Monnier
2013-09-10 15:15           ` Eli Zaretskii
2013-09-10  2:49     ` Eli Zaretskii
2013-09-10 10:56 ` Richard Stallman
2013-09-10 11:26   ` Bois Francois-Xavier
2013-09-10 14:43     ` Andreas Schwab
2013-09-10 20:36     ` Richard Stallman

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.