[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC-2] Add tty True Color support.
From: |
Eli Zaretskii |
Subject: |
Re: [RFC-2] Add tty True Color support. |
Date: |
Thu, 17 Oct 2013 19:56:49 +0300 |
> From: Rüdiger Sonderfeld <address@hidden>
> Cc: address@hidden
> Date: Thu, 17 Oct 2013 00:39:23 +0200
>
> > I might be missing something, but it looks like you didn't make any
> > changes aimed at having display-color-cells report the correct number
> > of colors for this type of terminal. If that is true, please add some
> > code to fix that, otherwise various parts in Emacs might behave
> > incorrectly; for starters, defface's that define colors based on how
> > many colors are available will use the wrong colors.
>
> I changed `tty-display-color-cells' to return the correct number. See the
> updated patch below.
Thanks.
> Do you have any suggestion how to do the terminal detection? So far Thomas
> Dickey seems to be reluctant to add support to terminfo. Maybe there could
> be a lisp function to detect it, which could be easily adjusted by the user.
> But then again `init_tty' can be called very early in the start up process.
Can you do something similar to what terminal-init-xterm does for
xterm?