From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Rami_Ylim=C3=A4ki?= Newsgroups: gmane.emacs.devel Subject: Re: 24 bit colour on TTYs -- make it customisable? Date: Tue, 21 Feb 2017 01:01:26 +0200 Message-ID: References: <877f4n56sc.fsf@trurl> <83poieq26d.fsf@gnu.org> <874lzo8v1q.fsf@trurl> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113f41ea422a530548fe3e0d X-Trace: blaine.gmane.org 1487631731 32086 195.159.176.226 (20 Feb 2017 23:02:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Feb 2017 23:02:11 +0000 (UTC) Cc: Emacs developers To: Juliusz Chroboczek Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 21 00:02:04 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfwy3-0007hr-2b for ged-emacs-devel@m.gmane.org; Tue, 21 Feb 2017 00:02:03 +0100 Original-Received: from localhost ([::1]:41408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfwy9-0007Im-0Y for ged-emacs-devel@m.gmane.org; Mon, 20 Feb 2017 18:02:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfwxV-0007If-5G for emacs-devel@gnu.org; Mon, 20 Feb 2017 18:01:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfwxU-0007Va-98 for emacs-devel@gnu.org; Mon, 20 Feb 2017 18:01:29 -0500 Original-Received: from mail-qt0-x22a.google.com ([2607:f8b0:400d:c0d::22a]:34624) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cfwxU-0007VI-37 for emacs-devel@gnu.org; Mon, 20 Feb 2017 18:01:28 -0500 Original-Received: by mail-qt0-x22a.google.com with SMTP id n21so31081424qta.1 for ; Mon, 20 Feb 2017 15:01:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vincit.com; s=ticniv; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=D/8mbfsJ2jj5iW9rZQTqd2CUch7Hzi6AOc5t35XP4YE=; b=b4vq2SKdVQA/Pzwgq/3cBCJ0fWoNY5bhqr4CFSR+ETCz0VfzQEb/teNEZiMzfvkO4o nHg04/55wlZDlGopvu5OOwIdAztaNrU59akMX8lvBhGEOwZPcIFw6qqoPJieSzkU3E+S 0XtG2mYBOfhzaMWhQsbtOVzjr8mO8+7/GP0AQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=D/8mbfsJ2jj5iW9rZQTqd2CUch7Hzi6AOc5t35XP4YE=; b=Mlk6/scv101mVT/t5fswvj1Y0Tcy+JiL8RgZ2+X5SodV/ObtXLBVpP5xVEe1W6i4rS NP6deVPmqSB3UnBBfCpvPJSvBUB37MBfatFbvWEd88kyXjfMX7bYXIXWDh15XIk3lHCL tzHOsOU0kowuj7+tyrIiOL13+4k/gRv8yLpNbpLdXs58hgOtofI7K7UiBXRxltOFzbw9 qr3ODCmzuZsVPFfoxfqs8+IVUpk14kKayqTgOWVg9wP06BR20GsUDx0Nb1Dw7FbZzJ2Z 88ime46DA5WL0lPPoDW+AT5ubYcLVVdDctFrZ7+VjcK+6rguLWKGswDAPuSlVBcUm0Zb 3D9w== X-Gm-Message-State: AMke39ljVyq55yUi6UDvNQB3k0h/DJG+HPFthjecJwqCjRWDB+rrA/8GegB+SyGnpaA3YL0MqWMyrtyig0zv0qTn X-Received: by 10.200.38.247 with SMTP id 52mr13157673qtp.55.1487631686963; Mon, 20 Feb 2017 15:01:26 -0800 (PST) Original-Received: by 10.55.158.78 with HTTP; Mon, 20 Feb 2017 15:01:26 -0800 (PST) In-Reply-To: <874lzo8v1q.fsf@trurl> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c0d::22a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212507 Archived-At: --001a113f41ea422a530548fe3e0d Content-Type: text/plain; charset=UTF-8 2017-02-20 22:30 GMT+02:00 Juliusz Chroboczek : > I've only had a quick look at the code, but it's my understanding that > the feature is only enabled if terminfo has non-standard properties > setb24 and setf24. Since it's easier to add a line to .emacs than > compiling a new terminfo, I'd like a way to enable the support without > hacking terminfo. > Using terminfo was the easiest way to implement this feature. I was told earlier that the terminal-parameters alist could be useful for implementing the configuration from elisp, but I never bothered to investigate that option further. I'm definitely getting only 256 colours in a recent Debian testing XTerm. > XTerm approximates 24-bit colors using the palette of 256 color mode. --001a113f41ea422a530548fe3e0d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
2017= -02-20 22:30 GMT+02:00 Juliusz Chroboczek <jch@irif.fr>:
I've only had a quick l= ook at the code, but it's my understanding that
the feature is only enabled if terminfo has non-standard properties
setb24 and setf24.=C2=A0 Since it's easier to add a line to .emacs than=
compiling a new terminfo, I'd like a way to enable the support without<= br> hacking terminfo.

Using terminfo = was the easiest way to implement this feature. I was told earlier that the = terminal-parameters alist could be useful for implementing the configuratio= n from elisp, but I never bothered to investigate that option further.

I'm definitely getting only 256 colours in a recent Debian testing XTer= m.

XTerm approximates 24-bit colors using the p= alette of 256 color mode.
--001a113f41ea422a530548fe3e0d--