From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Vojt=C4=9Bch_?= =?UTF-8?Q?Bal=C3=A1k?= Newsgroups: gmane.emacs.bugs Subject: bug#62528: 28.2; Emacsclient doesn't use COLORTERM Date: Wed, 29 Mar 2023 17:06:18 +0200 Message-ID: <998d09cc-292e-4c14-a14c-2d1ad0e3ab34@betaapp.fastmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=cab08cb1a0e647cd8ac655fc2077dd4b Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24634"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.9.0-alpha0-238-g746678b8b6-fm-20230329.001-g746678b8 To: 62528@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 29 18:59:35 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phZ94-0006CM-Rv for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Mar 2023 18:59:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phZ8b-0004S2-8y; Wed, 29 Mar 2023 12:59:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phZ8Y-0004Rh-Rl for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2023 12:59:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phZ8Y-00033F-JK for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2023 12:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phZ8Y-00064b-FC for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2023 12:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Vojt=C4=9Bch_?= =?UTF-8?Q?Bal=C3=A1k?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Mar 2023 16:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62528 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168010909323257 (code B ref -1); Wed, 29 Mar 2023 16:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Mar 2023 16:58:13 +0000 Original-Received: from localhost ([127.0.0.1]:54859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phZ7k-000631-B4 for submit@debbugs.gnu.org; Wed, 29 Mar 2023 12:58:13 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:59984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phXO9-0003AY-EA for submit@debbugs.gnu.org; Wed, 29 Mar 2023 11:07:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phXO8-0004Dd-Nu for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2023 11:07:00 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phXO4-00047L-00 for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2023 11:07:00 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5C8695C009C for ; Wed, 29 Mar 2023 11:06:52 -0400 (EDT) Original-Received: from imap45 ([10.202.2.95]) by compute2.internal (MEProxy); Wed, 29 Mar 2023 11:06:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=balak.me; h=cc :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1680102412; x=1680188812; bh=IBHcMDkbajVa/kPD8Hx+ofpq3 pZgRUPbMDkF+byD6Xk=; b=Uq1VEshzOr1t2rWRnD+Bt1fDgcpQ7mU/kZN70+L75 uOOqRij/Xmi4G2tKGa9Y5SquGdrpr+uA87pNx9meKEVhzGbO0USyTdUtPDzzy6K3 wLr8bhxxom9jWvE6h+IRiHRHpG2oYHsSb73EiohDZtxOZmGY1Wmhk8UcyChWvE7v 8JXU+5Sav/93MwUilBGXltD8gWScmAy1v/2d9aTwJmk4QPRwvpinRWgEZAyXKySY TILKYQ7LhkjsJJB4fNXnyaRb8xWvJZzqRsPb2u/bA7Lyr/JXUeF0GTmKOMHPYY89 hwm+PqKOp4oIxgthS7UKK2BJ2gxnUknlrP5kxxFFKzRjg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1680102412; x=1680188812; bh=IBHcMDkbajVa/kPD8Hx+ofpq3pZgRUPbMDk F+byD6Xk=; b=CS2zQ7EzN0IuQxtgr6DV55sLPHGYKaWjxj7QkX6wVdqe+0WrCzC 25vf/3VH6IgjSpsA9s/XX4vHhBgFDZEhP3YNbnS1ZM2i1g30A1/QGDC+OVzFd883 WncczkE+AH7yMJGbCnHN7FF8tVPF026VMAPgvuZcyJ9GcLCFyP9TYxXebNohE3dJ KkPt1ef+JnSQVCKKeWJ7DJ8sa0AMfXes0evFsibdntB+jBWXDRR26kNau3lZho9P iTrAaFisZj7kd7yYeDaLfe5zOcaUbInAd71grvjsk6AZS/J85tI3VYagkbbZtiOa PbA5q+AjVqVxEgesQ0Bw6BFmQ2xZpklZSQg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdehiedgkeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsegrtderre erreejnecuhfhrohhmpeggohhjthmvtghhuceurghljohkuceovhhojhhtvggthhessggr lhgrkhdrmhgvqeenucggtffrrghtthgvrhhnpeeljedtueeukeelhedtuddvkeekleduvd fhgefguedvffdvgedtueehveejhfdvhfenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehvohhjthgvtghhsegsrghlrghkrdhmvg X-ME-Proxy: Feedback-ID: ibb6946bb:Fastmail Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 1AC752720082; Wed, 29 Mar 2023 11:06:52 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Received-SPF: pass client-ip=66.111.4.27; envelope-from=vojtech@balak.me; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 29 Mar 2023 12:58:10 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258864 Archived-At: --cab08cb1a0e647cd8ac655fc2077dd4b Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, When starting Emacs in a terminal emulator with 24 bit color support,=20 I would like it to take advantage of this. According to the FAQ=20 section 5.3, setting the variable COLORTERM to truecolor should=20 result in Emacs using 24 bit colors. But according to my observations,=20 this is not always true.=20 Starting Emacs in these ways does result in it using true color:=20 TERM=3Dxterm-256color COLORTERM=3Dtruecolor emacs -nw=20 TERM=3Dxterm-direct COLORTERM=3D emacs -nw=20 TERM=3Dxterm-direct COLORTERM=3D emacsclient -nw=20 Starting it in these ways does result in it NOT using true color:=20 TERM=3Dxterm-256color COLORTERM=3D emacs -nw=20 TERM=3Dxterm-256color COLORTERM=3D emacsclient -nw=20 TERM=3Dxterm-256color COLORTERM=3Dtruecolor emacsclient -nw=20 The last one is the odd one out. According to my understanding, that should result in 24 bit color being used, but in practice it does not.=20 I verify the color mode by running M-x list-colors-display and seeing if=20 the list of returned colors is longer than 256.=20 Best regards, Vojt=C4=9Bch Bal=C3=A1k In GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, c= airo version 1.17.6)=20 of 2023-01-03 built on 2=20 Windowing system distributor 'The X.Org Foundation', version 11.0.121010= 07=20 System Description: Arch Linux=20 Configured using:=20 'configure --sysconfdir=3D/etc --prefix=3D/usr --libexecdir=3D/usr/lib=20 --localstatedir=3D/var --with-cairo --with-harfbuzz --with-libsystemd=20 --with-modules --with-x-toolkit=3Dgtk3 'CFLAGS=3D-march=3Dx86-64=20 -mtune=3Dgeneric -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3D= 2=20 -Wformat -Werror=3Dformat-security -fstack-clash-protection=20 -fcf-protection -g=20 -ffile-prefix-map=3D/build/emacs/src=3D/usr/src/debug/emacs -flto=3Dauto= '=20 'LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=3Daut= o''=20 Configured features:=20 ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG=20 JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY=20 PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE=20 XIM XPM GTK3 ZLIB=20 Important settings:=20 value of $LANG: en_US.UTF-8=20 locale-coding-system: utf-8-unix=20 Major mode: Dashboard=20 Minor modes in effect:=20 global-tree-sitter-mode: t=20 which-key-mode: t=20 global-flycheck-mode: t=20 company-posframe-mode: t=20 global-company-mode: t=20 company-mode: t=20 global-git-gutter-mode: t=20 global-git-commit-mode: t=20 magit-auto-revert-mode: t=20 projectile-mode: t=20 helm-mode: t=20 helm-minibuffer-history-mode: t=20 shell-dirtrack-mode: t=20 helm--remap-mouse-mode: t=20 async-bytecomp-package-mode: t=20 solaire-global-mode: t=20 doom-modeline-mode: t=20 recentf-mode: t=20 global-evil-collection-unimpaired-mode: t=20 evil-collection-unimpaired-mode: t=20 evil-mode: t=20 evil-local-mode: t=20 global-undo-tree-mode: t=20 undo-tree-mode: t=20 override-global-mode: t=20 tooltip-mode: t=20 global-eldoc-mode: t=20 show-paren-mode: t=20 electric-indent-mode: t=20 mouse-wheel-mode: t=20 menu-bar-mode: t=20 file-name-shadow-mode: t=20 global-font-lock-mode: t=20 font-lock-mode: t=20 blink-cursor-mode: t=20 auto-composition-mode: t=20 auto-encryption-mode: t=20 auto-compression-mode: t=20 buffer-read-only: t=20 column-number-mode: t=20 line-number-mode: t=20 transient-mark-mode: t=20 Load-path shadows:=20 /home/vojta/.config/emacs/elpa/transient-20230315.1520/transient hides /= usr/share/emacs/28.2/lisp/transient=20 Features:=20 (facemenu shadow sort emacsbug sendmail goto-addr evil-collection-view=20 view mule-util misearch multi-isearch image-file image-converter=20 helm-external helm-net skeleton vc-mtn vc-hg vc-bzr vc-src vc-sccs=20 vc-svn vc-cvs vc-rcs bug-reference winner mail-extr tramp-archive=20 tramp-gvfs tramp-cache zeroconf helm-command helm-elisp helm-eval=20 evil-collection-edebug edebug backtrace helm-info evil-collection-vc-git=20 vc-git display-line-numbers rainbow-delimiters flycheck-rust org-appear=20 flyspell ispell mixed-pitch org-indent org-element avl-tree ol-eww=20 evil-collection-eww eww xdg url-queue mm-url ol-rmail ol-mhe ol-irc=20 ol-info ol-gnus nnselect gnus-search eieio-opt evil-collection-speedbar=20 speedbar ezimage dframe gnus-art mm-uu mml2015 mm-view mml-smime smime=20 dig gnus-sum gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud=20 nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range=20 gnus-win evil-collection-gnus gnus nnheader ol-docview=20 evil-collection-doc-view doc-view jka-compr ol-bibtex ol-bbdb ol-w3m=20 ol-doi org-link-doi evil-collection-org org ob ob-tangle ob-ref ob-lob=20 ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete=20 org-list org-faces org-entities org-version ob-emacs-lisp ob-core=20 ob-eval org-table oc-basic bibtex ol org-keys oc org-compat org-macs=20 org-loaddefs evil-collection-calendar cal-menu calendar cal-loaddefs=20 time shr kinsoku svg xml dom evil-collection-lua-mode lua-mode=20 terraform-mode hcl-mode dockerfile-mode evil-collection-sh-script=20 sh-script smie executable haskell-mode haskell-cabal haskell-utils=20 haskell-font-lock haskell-indentation haskell-string=20 haskell-sort-imports haskell-lexeme haskell-align-imports=20 haskell-complete-module haskell-ghc-support evil-collection-flymake=20 flymake-proc flymake warnings dabbrev haskell-customize flycheck-joker=20 evil-collection-cider cider tramp-sh cider-debug cider-browse-ns=20 cider-mode cider-find cider-inspector cider-completion cider-profile=20 cider-eval cider-jar cider-repl-history pulse cider-repl cider-resolve=20 cider-test cider-overlays cider-stacktrace cider-doc cider-browse-spec=20 cider-clojuredocs cider-eldoc cider-client cider-common cider-connection=20 cider-util cider-popup sesman-browser nrepl-client nrepl-dict spinner=20 sesman vc vc-dispatcher clojure-mode align parseedn parseclj-parser=20 parseclj-lex parseclj-alist evil-collection-slime slime=20 evil-collection-apropos apropos evil-collection-outline noutline outline=20 hyperspec ranger hl-line evil-collection-vdiff vdiff hydra lv kubel-evil=20 kubel evil-collection-eshell em-prompt esh-mode eshell esh-cmd esh-ext=20 esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util=20 evil-collection-yaml-mode yaml-mode evil-collection-vterm vterm=20 magit-bookmark evil-collection-bookmark bookmark color=20 evil-collection-term term disp-table ehelp vterm-module term/xterm xterm=20 tree-sitter-langs tree-sitter-langs-build evil-collection-tar-mode=20 tar-mode evil-collection-arc-mode arc-mode archive-mode pp=20 tree-sitter-hl tree-sitter tree-sitter-load tree-sitter-cli tsc tsc-dyn=20 tsc-dyn-get dired-aux tsc-obsolete evil-collection-which-key which-key=20 evil-collection-flycheck flycheck find-func company-posframe posframe=20 company-oddmuse company-keywords company-etags etags fileloop generator=20 evil-collection-xref xref company-gtags company-dabbrev-code=20 company-dabbrev company-files company-clang company-capf company-cmake=20 company-semantic company-template company-bbdb evil-collection-company=20 company git-gutter evil-collection-magit magit-submodule magit-blame=20 magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch=20 magit-clone magit-remote magit-commit magit-sequence magit-notes=20 magit-worktree magit-tag magit-merge magit-branch magit-reset=20 magit-files magit-refs magit-status magit magit-repos magit-apply=20 magit-wip magit-log which-func evil-collection-imenu imenu magit-diff=20 smerge-mode evil-collection-diff-mode diff-mode git-commit=20 evil-collection-log-edit log-edit message rmc puny rfc822 mml mml-sec=20 evil-collection-epa epa derived epg rfc6068 epg-config gnus-util rmail=20 rmail-loaddefs mm-decode mm-bodies mm-encode mailabbrev mail-utils=20 gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert=20 autorevert magit-margin magit-transient magit-process with-editor server=20 magit-mode transient magit-git magit-base evil-collection-magit-section=20 magit-section crm evil-collection-ripgrep ripgrep helm-projectile=20 projectile project lisp-mnt mail-parse rfc2231 rfc2047 rfc2045 mm-util=20 ietf-drums mail-prsvr evil-collection-grep grep evil-collection-compile=20 compile ibuf-ext evil-collection-ibuffer ibuffer ibuffer-loaddefs=20 helm-mode helm-misc evil-collection-helm helm-files=20 evil-collection-image-dired image-dired filenotify tramp tramp-loaddefs=20 trampver tramp-integration files-x tramp-compat shell pcomplete=20 evil-collection-comint comint parse-time iso8601 time-date ls-lisp=20 helm-buffers helm-occur helm-tags helm-locate helm-grep helm-regexp=20 format-spec ansi-color helm-utils helm-help helm-types helm=20 helm-global-bindings helm-easymenu helm-core async-bytecomp helm-source=20 helm-multi-match helm-lib async evil-collection-neotree neotree=20 solaire-mode face-remap doom-modeline doom-modeline-segments=20 doom-modeline-env doom-modeline-core shrink-path rx f f-shortdoc=20 evil-collection-shortdoc shortdoc text-property-search s dash compat=20 compat-29 evil-collection-dashboard dashboard dashboard-widgets recentf=20 tree-widget wid-edit ffap all-the-icons all-the-icons-faces=20 data-material data-weathericons data-octicons data-fileicons=20 data-faicons data-alltheicons evil-collection-unimpaired=20 evil-collection-tabulated-list evil-collection-tab-bar=20 evil-collection-simple evil-collection-replace=20 evil-collection-process-menu evil-collection-package-menu=20 evil-collection-info evil-collection-indent evil-collection-image=20 image-mode evil-collection-dired dired dired-loaddefs exif=20 evil-collection-help evil-collection-elisp-mode evil-collection-eldoc=20 evil-collection-buff-menu evil-collection annalist evil evil-integration=20 evil-maps evil-commands reveal evil-jumps evil-command-window=20 evil-search evil-ex evil-types evil-macros evil-repeat evil-states=20 evil-core advice evil-common thingatpt rect evil-digraphs evil-vars ring=20 edmacro kmacro undo-tree diff queue doom-themes-ext-neotree=20 doom-gruvbox-theme doom-themes doom-themes-base cl-extra help-mode=20 use-package use-package-ensure use-package-delight use-package-diminish=20 use-package-bind-key bind-key easy-mmode use-package-core finder-inf=20 pcase slime-autoloads info package browse-url url url-proxy url-privacy=20 url-expand url-methods url-history url-cookie url-domsuf url-util=20 mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core=20 cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq=20 byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl=20 tooltip eldoc paren electric uniquify ediff-hook vc-hooks=20 lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd=20 tool-bar dnd fontset image regexp-opt fringe tabulated-list replace=20 newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar=20 rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock=20 font-lock syntax font-core term/tty-colors frame minibuffer cl-generic=20 cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao=20 korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech=20 european ethiopic indian cyrillic chinese composite emoji-zwj charscript=20 charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray=20 cl-preloaded nadvice button loaddefs faces cus-face macroexp files=20 window text-properties overlay sha1 md5 base64 format env code-pages=20 mule custom widget hashtable-print-readable backquote threads dbusbind=20 inotify lcms2 dynamic-setting system-font-setting font-render-setting=20 cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)=20 Memory information:=20 ((conses 16 839697 87675)=20 (symbols 48 58194 3)=20 (strings 32 254832 18309)=20 (string-bytes 1 7559626)=20 (vectors 16 118605)=20 (vector-slots 8 1538617 83734)=20 (floats 8 1343 1501)=20 (intervals 56 9681 4159)=20 (buffers 992 29)) --cab08cb1a0e647cd8ac655fc2077dd4b Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hello,

When starting Emacs in a terminal emulator with 24 = bit color support,
I would like it to take advantage of = this. According to the FAQ
section 5.3, setting the vari= able COLORTERM to truecolor should
result in Emacs using= 24 bit colors. But according to my observations,
this i= s not always true.

Starting Emacs in the= se ways does result in it using true color:
TERM=3Dxterm= -256color COLORTERM=3Dtruecolor emacs -nw
TERM=3Dxterm-d= irect COLORTERM=3D emacs -nw
TERM=3Dxterm-direct COLORTE= RM=3D emacsclient -nw

Starting it in the= se ways does result in it NOT using true color:
TERM=3Dx= term-256color COLORTERM=3D emacs -nw
TERM=3Dxterm-256col= or COLORTERM=3D emacsclient -nw
TERM=3Dxterm-256color CO= LORTERM=3Dtruecolor emacsclient -nw

The = last one is the odd one out. According to my understanding, that
should result in 24 bit color being used, but in practice it does= not.

I verify the color mode by running= M-x list-colors-display and seeing if
the list of retur= ned colors is longer than 256.

Best rega= rds,
Vojt=C4=9Bch Bal=C3=A1k

= In GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, = cairo version 1.17.6)
of 2023-01-03 built on 2
Windowing system distributor 'The X.Org Foundation', version 11.0= .12101007
System Description: Arch Linux
=
Configured using:
'configure --sysconfd= ir=3D/etc --prefix=3D/usr --libexecdir=3D/usr/lib
--loca= lstatedir=3D/var --with-cairo --with-harfbuzz --with-libsystemd
--with-modules --with-x-toolkit=3Dgtk3 'CFLAGS=3D-march=3Dx86-64=
-mtune=3Dgeneric -O2 -pipe -fno-plt -fexceptions -Wp,-D= _FORTIFY_SOURCE=3D2
-Wformat -Werror=3Dformat-security -= fstack-clash-protection
-fcf-protection -g
-ffile-prefix-map=3D/build/emacs/src=3D/usr/src/debug/emacs -flto=3Da= uto'
'LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,rel= ro,-z,now -flto=3Dauto''

Configured feat= ures:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GS= ETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSYSTEMD LIBXM= L2 M17N_FLT MODULES NOTIFY INOTIFY
PDUMPER PNG RSVG SECC= OMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE
XIM = XPM GTK3 ZLIB

Important settings:
value of $LANG: en_US.UTF-8
locale-coding-syst= em: utf-8-unix

Major mode: Dashboard

Minor modes in effect:
glob= al-tree-sitter-mode: t
which-key-mode: t
= global-flycheck-mode: t
company-posframe-mode: t
global-company-mode: t
company-mode: t
global-git-gutter-mode: t
global-git-commit-mod= e: t
magit-auto-revert-mode: t
projectil= e-mode: t
helm-mode: t
helm-minibuffer-h= istory-mode: t
shell-dirtrack-mode: t
he= lm--remap-mouse-mode: t
async-bytecomp-package-mode: t <= br>
solaire-global-mode: t
doom-modeline-mode= : t
recentf-mode: t
global-evil-collecti= on-unimpaired-mode: t
evil-collection-unimpaired-mode: t=
evil-mode: t
evil-local-mode: t
global-undo-tree-mode: t
undo-tree-mode: t
=
override-global-mode: t
tooltip-mode: t
=
global-eldoc-mode: t
show-paren-mode: t
=
electric-indent-mode: t
mouse-wheel-mode: t =
menu-bar-mode: t
file-name-shadow-mode: = t
global-font-lock-mode: t
font-lock-mod= e: t
blink-cursor-mode: t
auto-compositi= on-mode: t
auto-encryption-mode: t
auto-= compression-mode: t
buffer-read-only: t
= column-number-mode: t
line-number-mode: t
transient-mark-mode: t

Load-path shado= ws:
/home/vojta/.config/emacs/elpa/transient-20230315.15= 20/transient hides /usr/share/emacs/28.2/lisp/transient
=
Features:
(facemenu shadow sort emacsbug= sendmail goto-addr evil-collection-view
view mule-util = misearch multi-isearch image-file image-converter
helm-e= xternal helm-net skeleton vc-mtn vc-hg vc-bzr vc-src vc-sccs
<= div> vc-svn vc-cvs vc-rcs bug-reference winner mail-extr tramp-archive <= br>
tramp-gvfs tramp-cache zeroconf helm-command helm-elisp h= elm-eval
evil-collection-edebug edebug backtrace helm-in= fo evil-collection-vc-git
vc-git display-line-numbers ra= inbow-delimiters flycheck-rust org-appear
flyspell ispel= l mixed-pitch org-indent org-element avl-tree ol-eww
evi= l-collection-eww eww xdg url-queue mm-url ol-rmail ol-mhe ol-irc
ol-info ol-gnus nnselect gnus-search eieio-opt evil-collection-= speedbar
speedbar ezimage dframe gnus-art mm-uu mml2015 = mm-view mml-smime smime
dig gnus-sum gnus-group gnus-und= o gnus-start gnus-dbus dbus gnus-cloud
nnimap nnmail mai= l-source utf7 netrc nnoo gnus-spec gnus-int gnus-range
g= nus-win evil-collection-gnus gnus nnheader ol-docview
ev= il-collection-doc-view doc-view jka-compr ol-bibtex ol-bbdb ol-w3m
<= /div>
ol-doi org-link-doi evil-collection-org org ob ob-tangle ob-r= ef ob-lob
ob-table ob-exp org-macro org-footnote org-src= ob-comint org-pcomplete
org-list org-faces org-entities= org-version ob-emacs-lisp ob-core
ob-eval org-table oc-= basic bibtex ol org-keys oc org-compat org-macs
org-load= defs evil-collection-calendar cal-menu calendar cal-loaddefs
<= div> time shr kinsoku svg xml dom evil-collection-lua-mode lua-mode
=
terraform-mode hcl-mode dockerfile-mode evil-collection-sh-s= cript
sh-script smie executable haskell-mode haskell-cab= al haskell-utils
haskell-font-lock haskell-indentation h= askell-string
haskell-sort-imports haskell-lexeme haskel= l-align-imports
haskell-complete-module haskell-ghc-supp= ort evil-collection-flymake
flymake-proc flymake warning= s dabbrev haskell-customize flycheck-joker
evil-collecti= on-cider cider tramp-sh cider-debug cider-browse-ns
cide= r-mode cider-find cider-inspector cider-completion cider-profile
cider-eval cider-jar cider-repl-history pulse cider-repl cider-= resolve
cider-test cider-overlays cider-stacktrace cider= -doc cider-browse-spec
cider-clojuredocs cider-eldoc cid= er-client cider-common cider-connection
cider-util cider= -popup sesman-browser nrepl-client nrepl-dict spinner
se= sman vc vc-dispatcher clojure-mode align parseedn parseclj-parser
parseclj-lex parseclj-alist evil-collection-slime slime
evil-collection-apropos apropos evil-collection-outline noutli= ne outline
hyperspec ranger hl-line evil-collection-vdif= f vdiff hydra lv kubel-evil
kubel evil-collection-eshell= em-prompt esh-mode eshell esh-cmd esh-ext
esh-opt esh-p= roc esh-io esh-arg esh-module esh-groups esh-util
evil-c= ollection-yaml-mode yaml-mode evil-collection-vterm vterm
magit-bookmark evil-collection-bookmark bookmark color
= evil-collection-term term disp-table ehelp vterm-module term/xterm xter= m
tree-sitter-langs tree-sitter-langs-build evil-collect= ion-tar-mode
tar-mode evil-collection-arc-mode arc-mode = archive-mode pp
tree-sitter-hl tree-sitter tree-sitter-l= oad tree-sitter-cli tsc tsc-dyn
tsc-dyn-get dired-aux ts= c-obsolete evil-collection-which-key which-key
evil-coll= ection-flycheck flycheck find-func company-posframe posframe
<= div> company-oddmuse company-keywords company-etags etags fileloop gener= ator
evil-collection-xref xref company-gtags company-dab= brev-code
company-dabbrev company-files company-clang co= mpany-capf company-cmake
company-semantic company-templa= te company-bbdb evil-collection-company
company git-gutt= er evil-collection-magit magit-submodule magit-blame
mag= it-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch
magit-clone magit-remote magit-commit magit-sequence magit-= notes
magit-worktree magit-tag magit-merge magit-branch = magit-reset
magit-files magit-refs magit-status magit ma= git-repos magit-apply
magit-wip magit-log which-func evi= l-collection-imenu imenu magit-diff
smerge-mode evil-col= lection-diff-mode diff-mode git-commit
evil-collection-l= og-edit log-edit message rmc puny rfc822 mml mml-sec
evi= l-collection-epa epa derived epg rfc6068 epg-config gnus-util rmail
=
rmail-loaddefs mm-decode mm-bodies mm-encode mailabbrev mail= -utils
gmm-utils mailheader pcvs-util add-log magit-core= magit-autorevert
autorevert magit-margin magit-transien= t magit-process with-editor server
magit-mode transient = magit-git magit-base evil-collection-magit-section
magit= -section crm evil-collection-ripgrep ripgrep helm-projectile
<= div> projectile project lisp-mnt mail-parse rfc2231 rfc2047 rfc2045 mm-u= til
ietf-drums mail-prsvr evil-collection-grep grep evil= -collection-compile
compile ibuf-ext evil-collection-ibu= ffer ibuffer ibuffer-loaddefs
helm-mode helm-misc evil-c= ollection-helm helm-files
evil-collection-image-dired im= age-dired filenotify tramp tramp-loaddefs
trampver tramp= -integration files-x tramp-compat shell pcomplete
evil-c= ollection-comint comint parse-time iso8601 time-date ls-lisp
<= div> helm-buffers helm-occur helm-tags helm-locate helm-grep helm-regexp=
format-spec ansi-color helm-utils helm-help helm-types = helm
helm-global-bindings helm-easymenu helm-core async-= bytecomp helm-source
helm-multi-match helm-lib async evi= l-collection-neotree neotree
solaire-mode face-remap doo= m-modeline doom-modeline-segments
doom-modeline-env doom= -modeline-core shrink-path rx f f-shortdoc
evil-collecti= on-shortdoc shortdoc text-property-search s dash compat
= compat-29 evil-collection-dashboard dashboard dashboard-widgets recentf =
tree-widget wid-edit ffap all-the-icons all-the-icons-fa= ces
data-material data-weathericons data-octicons data-f= ileicons
data-faicons data-alltheicons evil-collection-u= nimpaired
evil-collection-tabulated-list evil-collection= -tab-bar
evil-collection-simple evil-collection-replace =
evil-collection-process-menu evil-collection-package-men= u
evil-collection-info evil-collection-indent evil-colle= ction-image
image-mode evil-collection-dired dired dired= -loaddefs exif
evil-collection-help evil-collection-elis= p-mode evil-collection-eldoc
evil-collection-buff-menu e= vil-collection annalist evil evil-integration
evil-maps = evil-commands reveal evil-jumps evil-command-window
evil= -search evil-ex evil-types evil-macros evil-repeat evil-states
evil-core advice evil-common thingatpt rect evil-digraphs evil-va= rs ring
edmacro kmacro undo-tree diff queue doom-themes-= ext-neotree
doom-gruvbox-theme doom-themes doom-themes-b= ase cl-extra help-mode
use-package use-package-ensure us= e-package-delight use-package-diminish
use-package-bind-= key bind-key easy-mmode use-package-core finder-inf
pcas= e slime-autoloads info package browse-url url url-proxy url-privacy
=
url-expand url-methods url-history url-cookie url-domsuf url= -util
mailcap url-handlers url-parse auth-source cl-seq = eieio eieio-core
cl-macs eieio-loaddefs password-cache j= son subr-x map url-vars seq
byte-opt gv bytecomp byte-co= mpile cconv cl-loaddefs cl-lib iso-transl
tooltip eldoc = paren electric uniquify ediff-hook vc-hooks
lisp-float-t= ype elisp-mode mwheel term/x-win x-win term/common-win x-dnd
<= div> tool-bar dnd fontset image regexp-opt fringe tabulated-list replace=
newcomment text-mode lisp-mode prog-mode register page = tab-bar menu-bar
rfn-eshadow isearch easymenu timer sele= ct scroll-bar mouse jit-lock
font-lock syntax font-core = term/tty-colors frame minibuffer cl-generic
cham georgia= n utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech =
european ethiopic indian cyrillic chinese composite emoj= i-zwj charscript
charprop case-table epa-hook jka-cmpr-h= ook help simple abbrev obarray
cl-preloaded nadvice butt= on loaddefs faces cus-face macroexp files
window text-pr= operties overlay sha1 md5 base64 format env code-pages
m= ule custom widget hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-ren= der-setting
cairo move-toolbar gtk x-toolkit x multi-tty= make-network-process emacs)

Memory info= rmation:
((conses 16 839697 87675)
(symb= ols 48 58194 3)
(strings 32 254832 18309)
(string-bytes 1 7559626)
(vectors 16 118605)
(vector-slots 8 1538617 83734)
(floats 8 1343 150= 1)
(intervals 56 9681 4159)
(buffers 992= 29))
--cab08cb1a0e647cd8ac655fc2077dd4b--