From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30308: [PATCH v2] Support standard Terminfo direct mode terminals. Date: Sat, 10 Feb 2018 13:33:39 +0200 Message-ID: <83a7wh2i5o.fsf@gnu.org> References: <20180131094308.24946-1-rami.ylimaki@vincit.fi> <20180201094133.11024-1-rami.ylimaki@vincit.fi> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1518262399 8394 195.159.176.226 (10 Feb 2018 11:33:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Feb 2018 11:33:19 +0000 (UTC) Cc: 30308-done@debbugs.gnu.org To: Rami =?UTF-8?Q?Ylim=C3=A4ki?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 10 12:33:14 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ekTP4-0001el-Pu for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Feb 2018 12:33:10 +0100 Original-Received: from localhost ([::1]:57690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekTR6-0003Xt-8C for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Feb 2018 06:35:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekTQy-0003TX-Ch for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 06:35:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekTQt-0002fd-OB for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 06:35:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56476) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ekTQt-0002ez-L3 for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 06:35:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ekTQt-0006K8-Dr for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 06:35:03 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Feb 2018 11:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 30308 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 30308@debbugs.gnu.org, eliz@gnu.org, rami.ylimaki@vincit.fi Original-Received: via spool by 30308-done@debbugs.gnu.org id=D30308.151826244824235 (code D ref 30308); Sat, 10 Feb 2018 11:35:02 +0000 Original-Received: (at 30308-done) by debbugs.gnu.org; 10 Feb 2018 11:34:08 +0000 Original-Received: from localhost ([127.0.0.1]:36139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekTPz-0006Ip-OJ for submit@debbugs.gnu.org; Sat, 10 Feb 2018 06:34:07 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekTPx-0006IK-4F for 30308-done@debbugs.gnu.org; Sat, 10 Feb 2018 06:34:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekTPp-0000No-FP for 30308-done@debbugs.gnu.org; Sat, 10 Feb 2018 06:34:00 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekTPp-0000NZ-CN; Sat, 10 Feb 2018 06:33:57 -0500 Original-Received: from [176.228.60.248] (port=3529 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ekTPo-0000WG-7R; Sat, 10 Feb 2018 06:33:56 -0500 In-reply-to: <20180201094133.11024-1-rami.ylimaki@vincit.fi> (message from Rami =?UTF-8?Q?Ylim=C3=A4ki?= on Thu, 1 Feb 2018 11:41:33 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143088 Archived-At: > From: Rami Ylimäki > Date: Thu, 1 Feb 2018 11:41:33 +0200 > > Latest Terminfo introduces terminal definitions that support direct > color mode. The "Co"/"colors" capability is set to 0x1000000 on these > terminals and Emacs is already compatible with them. > > However, if used Terminfo library hasn't been compiled with 32-bit > value support, "Co"/"colors" is truncated to 0x7fff. In this case > direct color mode support can be detected from the "RGB" capability > flag. > > There are some minor problems if the color count isn't corrected from > 0x7fff. First eight standard colors defined in xterm-standard-colors > are shown correctly. However, their RGB values match the terminal > settings, not the RGB values defined in xterm-standard-colors. Bright > versions of these colors are shown incorrectly. They are interpreted > as pixels #000008 - #000015, which are very dark shades of blue. > > * src/term.c (init_tty): Force terminal color count to 0x1000000 if > "RGB" capability is present. > * src/tparam.h: Define prototype for tigetflag. > > * doc/misc/efaq.texi (Colors on a TTY): Add information about direct > mode terminals supported by Terminfo. Thanks, pushed to the master branch.