From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 11 21:10:49 2018 Received: (at submit) by debbugs.gnu.org; 12 Feb 2018 02:10:49 +0000 Received: from localhost ([127.0.0.1]:38779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1el3Zx-0007xH-CX for submit@debbugs.gnu.org; Sun, 11 Feb 2018 21:10:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59219) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1el3Zv-0007x4-FS for submit@debbugs.gnu.org; Sun, 11 Feb 2018 21:10:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1el3Zo-0005Oz-9V for submit@debbugs.gnu.org; Sun, 11 Feb 2018 21:10:42 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43309) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1el3Zo-0005Os-60 for submit@debbugs.gnu.org; Sun, 11 Feb 2018 21:10:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1el3Zm-00055e-IU for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 21:10:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1el3Zi-0005Jo-VW for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 21:10:38 -0500 Received: from omr-m004e.mx.aol.com ([204.29.186.4]:53483) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1el3Zi-0004xo-IR for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 21:10:34 -0500 Received: from mtaout-aac01.mx.aol.com (mtaout-aac01.mx.aol.com [172.27.2.33]) by omr-m004e.mx.aol.com (Outbound Mail Relay) with ESMTP id 82008380004D for ; Sun, 11 Feb 2018 21:10:11 -0500 (EST) Received: from localhost.localdomain (c-73-16-70-190.hsd1.ma.comcast.net [73.16.70.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mtaout-aac01.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 2709338000088 for ; Sun, 11 Feb 2018 21:10:11 -0500 (EST) From: Live System User To: bug-gnu-emacs@gnu.org Subject: 27.0.50; Emacs TERMINFO "xterm-direct" "efaq" example not working Date: Sun, 11 Feb 2018 21:09:40 -0500 Message-ID: <873727rmaj.fsf@aol.com> MIME-Version: 1.0 Content-Type: text/plain x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1518401411; bh=Q4yoGuqZwMpvsOK4IWB53NoHnletoC8Uoi/1UTEX4rk=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=dyW8rFqp2Wp17xdULDwFPkPrzE+iVp1BlZF1EfIU6Aev5VD+pWUtfpLlIvpkwFfKT z6GqjEikMSFaL63Lw8YKz/+AdJ1UsVJvfmw2umTlJ+xi5GpsMPc6lJPDYdCKL6TMyl C7SNYV0YkvOvTQrdAkcRB5Xumts6uXCcMqTDdZfU= x-aol-sid: 3039ac1b02215a80f78345a4 X-AOL-IP: 73.16.70.190 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Hi, The example in the "efaq" Info file gives the following TERM=xterm-direct emacs -nw When I execute this, as stated, I get an Emacs session WITHOUT any colors -- even "M-x list-colors-display" does not show any colors. However, if I change this to the following, I see colors displayed: TERM=xterm-direct2 emacs -nw [Note the "2" in "xterm-drect2"] Here is the definition for the setab/setaf parameters for each: xterm-direct2: # Emacs 26.1 and later support direct color mode in terminals, using a # combination of user-defined capabilities and ncurses-dependent function # calls. We will not include that here. # # Here is a first revision, which (disregarding the reuse of colors 1-7 which # is of interest only to the numerically illiterate), is compatible with other # terminal descriptions written for curses. It relies upon the extended range # for numeric capabilities provided in ncurses 6.1: xterm+direct2|xterm with direct-color indexing, [...] xterm-direct2|xterm with direct-color indexing (old), use=xterm+direct2, use=xterm+titlestack, use=xterm, [...] setab=\E[%?%p1%{8}%<%t4%p1%d%e48\:2\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&%d\:%p1%{255}%&%d%;m, setaf=\E[%?%p1%{8}%<%t3%p1%d%e38\:2\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&%d\:%p1%{255}%&%d%;m, xterm-direct: # That in turn had a problem: in the original patch submitted for KDE konsole # in 2006, the submitter and the developer alike overlooked a "color space # identifier" parameter. This version provides for that parameter: xterm+direct|xterm with direct-color indexing, [...] setab=\E[%?%p1%{8}%<%t4%p1%d%e48\:2\:\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&%d\:%p1%{255}%&%d%;m, setaf=\E[%?%p1%{8}%<%t3%p1%d%e38\:2\:\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&%d\:%p1%{255}%&%d%;m, Between the two ("xterm-direct"and "xerm-direct2"), I see the diffeence in at least "\:2\:\:" and "\:2\:". respectively -- "xterm-direct" has an additioal "\:" So, should Emacs be changed to accommadate the missing parameter ("\:" as in "xterm-direct")?? Or should the information in "efaq" be changed to specify "xterm-direct2"? Or...? Can anyone else confirm that colors are not displayed in Emacs TTY when using TERMINFO's 6.1 definition of "xterm-direct" (setab/setaf)? Thanks. In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.20.10) of 2018-02-11 built on localhost.localdomain Windowing system distributor 'Fedora Project', version 11.0.11803000 System Description: Fedora 24 (Workstation Edition) Recent messages: nnimap read 152k from imap.aim.com nnimap read 160k from imap.aim.com nnimap read 168k from imap.aim.com nnimap read 193k from imap.aim.com [2 times] Fetching headers for nnimap+aol:INBOX...done Scoring...done Sorting threads...done Generating summary...done Auto-saving... mwheel-scroll: Beginning of buffer Configured using: 'configure --disable-dependency-tracking --prefix=/usr --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=yes --with-modules --with-xwidgets 'CFLAGS=-DMAIL_USE_LOCKF -O0 -ggdb3 -pipe -Wall -Werror=format-security -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS XWIDGETS LCMS2 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Summary Minor modes in effect: gnus-desktop-notify-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail qp gnus-ml disp-table cursor-sensor nndraft nnmh nndoc mm-archive timezone url-http url-gw url-cache url-auth url-handlers utf-7 rfc2104 nnfolder cl-extra help-mode network-stream nsm gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-cache gnus-demon nntp gnus-desktop-notify easy-mmode notifications dbus xml epa-file nnreddit mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs url-vars json map gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap cl sieve sieve-mode sieve-manage starttls sasl sasl-anonymous sasl-login sasl-plain nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc parse-time gnus-spec gnus-int gnus-range message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus seq byte-opt gv bytecomp byte-compile cconv wid-edit nnoo nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils kmacro ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init cl-loaddefs cl-lib ediff-util ediff elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 313114 48068) (symbols 48 126137 1) (miscs 40 96 208) (strings 32 120208 5249) (string-bytes 1 3992565) (vectors 16 29211) (vector-slots 8 995291 64426) (floats 8 223 446) (intervals 56 5773 3) (buffers 992 36) (heap 1024 96591 16146)) From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 10:51:32 2018 Received: (at 30429) by debbugs.gnu.org; 12 Feb 2018 15:51:32 +0000 Received: from localhost ([127.0.0.1]:39872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elGOC-0008PU-2S for submit@debbugs.gnu.org; Mon, 12 Feb 2018 10:51:32 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elGOB-0008PI-0D for 30429@debbugs.gnu.org; Mon, 12 Feb 2018 10:51:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elGO1-0003pb-SI for 30429@debbugs.gnu.org; Mon, 12 Feb 2018 10:51:25 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elGO1-0003pP-NH; Mon, 12 Feb 2018 10:51:21 -0500 Received: from [176.228.60.248] (port=2642 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1elGO0-0001St-WC; Mon, 12 Feb 2018 10:51:21 -0500 Date: Mon, 12 Feb 2018 17:51:09 +0200 Message-Id: <83sha6yzo2.fsf@gnu.org> From: Eli Zaretskii To: Live System User , Rami =?iso-8859-1?Q?Ylim=E4ki?= In-reply-to: <873727rmaj.fsf@aol.com> (message from Live System User on Sun, 11 Feb 2018 21:09:40 -0500) Subject: Re: bug#30429: 27.0.50; Emacs TERMINFO "xterm-direct" "efaq" example not working References: <873727rmaj.fsf@aol.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30429 Cc: 30429@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Live System User > Date: Sun, 11 Feb 2018 21:09:40 -0500 > > The example in the "efaq" Info file gives the following > > TERM=xterm-direct emacs -nw > > When I execute this, as stated, I get an Emacs session > WITHOUT any colors -- even "M-x list-colors-display" > does not show any colors. > > However, if I change this to the following, I see colors > displayed: > > TERM=xterm-direct2 emacs -nw > > [Note the "2" in "xterm-drect2"] > > Here is the definition for the setab/setaf parameters for > each: > > > > xterm-direct2: > > # Emacs 26.1 and later support direct color mode in terminals, using a > # combination of user-defined capabilities and ncurses-dependent function > # calls. We will not include that here. > # > # Here is a first revision, which (disregarding the reuse of colors 1-7 which > # is of interest only to the numerically illiterate), is compatible with other > # terminal descriptions written for curses. It relies upon the extended range > # for numeric capabilities provided in ncurses 6.1: > xterm+direct2|xterm with direct-color indexing, > [...] > > xterm-direct2|xterm with direct-color indexing (old), > use=xterm+direct2, use=xterm+titlestack, use=xterm, > [...] > setab=\E[%?%p1%{8}%<%t4%p1%d%e48\:2\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&%d\:%p1%{255}%&%d%;m, > setaf=\E[%?%p1%{8}%<%t3%p1%d%e38\:2\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&%d\:%p1%{255}%&%d%;m, > > > > > > xterm-direct: > > # That in turn had a problem: in the original patch submitted for KDE konsole > # in 2006, the submitter and the developer alike overlooked a "color space > # identifier" parameter. This version provides for that parameter: > xterm+direct|xterm with direct-color indexing, > [...] > setab=\E[%?%p1%{8}%<%t4%p1%d%e48\:2\:\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&%d\:%p1%{255}%&%d%;m, > setaf=\E[%?%p1%{8}%<%t3%p1%d%e38\:2\:\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&%d\:%p1%{255}%&%d%;m, > > > > > > > Between the two ("xterm-direct"and "xerm-direct2"), I see > the diffeence in at least "\:2\:\:" and "\:2\:". > respectively -- "xterm-direct" has an additioal "\:" > > > > > So, should Emacs be changed to accommadate the missing > parameter ("\:" as in "xterm-direct")?? > > Or should the information in "efaq" be changed to specify > "xterm-direct2"? > > Or...? > > Can anyone else confirm that colors are not displayed > in Emacs TTY when using TERMINFO's 6.1 definition of > "xterm-direct" (setab/setaf)? Thanks for reporting this. Rami, could you please take a look? From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 11:38:24 2018 Received: (at 30429) by debbugs.gnu.org; 12 Feb 2018 16:38:24 +0000 Received: from localhost ([127.0.0.1]:39921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elH7Y-000311-Ik for submit@debbugs.gnu.org; Mon, 12 Feb 2018 11:38:24 -0500 Received: from mail-lf0-f42.google.com ([209.85.215.42]:34674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elH7W-00030n-Cd for 30429@debbugs.gnu.org; Mon, 12 Feb 2018 11:38:23 -0500 Received: by mail-lf0-f42.google.com with SMTP id k19so21278864lfj.1 for <30429@debbugs.gnu.org>; Mon, 12 Feb 2018 08:38:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vincit.fi; s=ticniv; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=taOSB/ySRqXITwCauRfCkiycP3nsGXaC7SXfi975sjw=; b=NdMArWNEnCIkdklxim36E4EQABSGDrK+3I60ArNjOwvApAn5iVqygIJUvhfH4OU9Mg G4uT91XDf2kGIJiFwSY0NnWnWl+/+flAJQi3cyZjlG1Glj58la5rYpWqZ/BLSDqbMFyd eHYmqgymrL29/XHS0is122PuCZbw/KHj1VEWc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=taOSB/ySRqXITwCauRfCkiycP3nsGXaC7SXfi975sjw=; b=mvkXmenJDoSt4Fgh4wn0f9v1WtC+/mBHo8wY5zV4XODYLbVDzHIDvR3JHei4uG/8+W pD4lOyx2HUdcCa0Quh24gBnDMCbxNnrsqXAPa57EfHeEGmH+2r4RKSEbSxmU45w+9b9Z 10sQGX8ZxRuO5oZAwH9cIn88t/41wQtWxIMOvKZRbB2OKpe+dC0lfP7Ue9F1PRT+VaxQ BQJ2dp3i/bZU3LkdrinOTytVbHXvu8JZaOsIsUKWqycJkWnSMU9rhEbIZEcJShmfBEhc VhgpuWx3O+6ezJwdFUlmzmVixps/Nfq4KOL9YzlT9ntHtUUc0XN0tjX5LinLtQ8gnfks 2ckQ== X-Gm-Message-State: APf1xPBirkLxvEcivc3GBpkJuJoaap2OmAWtB9RYCGlYtkeVUdWXoZQa 8q80Bm11TVxsiy5qhQ51yQA/iV4cLFI= X-Google-Smtp-Source: AH8x227BndrbYnrSfz0Eh0xfzJYNEb4B61Kkf9fXQMVc/JhctkEtisENmQ3UMxuskCzuVhhD0hhKhA== X-Received: by 10.46.109.18 with SMTP id i18mr7722583ljc.19.1518453496025; Mon, 12 Feb 2018 08:38:16 -0800 (PST) Received: from [10.138.224.161] (gw.vincit.cloud. [195.60.252.249]) by smtp.gmail.com with ESMTPSA id h76sm1680021ljh.77.2018.02.12.08.38.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Feb 2018 08:38:15 -0800 (PST) Subject: Re: bug#30429: 27.0.50; Emacs TERMINFO "xterm-direct" "efaq" example not working To: Live System User References: <873727rmaj.fsf@aol.com> <83sha6yzo2.fsf@gnu.org> From: =?UTF-8?Q?Rami_Ylim=c3=a4ki?= Message-ID: <53be5e03-5c03-a3fc-1605-4c777b2006a4@vincit.fi> Date: Mon, 12 Feb 2018 18:38:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <83sha6yzo2.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30429 Cc: Eli Zaretskii , 30429@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On 12.02.2018 17:51, Eli Zaretskii wrote: >> From: Live System User >> Date: Sun, 11 Feb 2018 21:09:40 -0500 >> >> The example in the "efaq" Info file gives the following >> >> TERM=xterm-direct emacs -nw >> >> When I execute this, as stated, I get an Emacs session >> WITHOUT any colors -- even "M-x list-colors-display" >> does not show any colors. >> >> However, if I change this to the following, I see colors >> displayed: >> >> TERM=xterm-direct2 emacs -nw >> This is expected. Each direct mode TERM specification uses slightly different seta[bf] string to display the colors. For example, currently Gnome Terminal supports xterm-direct2 and iTerm2/XTerm support xterm-direct. It's the user's responsibility to set TERM to something that is supported by their terminal. Emacs happens to be mentioned in the comment for xterm+direct2 in Terminfo source file. However, this is just a coincidence and doesn't mean that Emacs would have any connection with xterm-direct2. The comment simply states that the non-standard set[bf]24 strings supported by Emacs (before Terminfo added the standard capabilities) aren't added to Terminfo as standard capabilities. I chose to use xterm-direct in the FAQ, because Terminfo suggests that seta[bf] strings of xterm-direct are the preferred way to display colors in direct mode. The bug here is that the FAQ could explain this more thoroughly, but there's no bug in software. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 12:49:09 2018 Received: (at 30429) by debbugs.gnu.org; 12 Feb 2018 17:49:09 +0000 Received: from localhost ([127.0.0.1]:39978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elIE0-0004dm-T2 for submit@debbugs.gnu.org; Mon, 12 Feb 2018 12:49:09 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44019) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elIDz-0004dI-Bf for 30429@debbugs.gnu.org; Mon, 12 Feb 2018 12:49:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elIDl-0000sK-De for 30429@debbugs.gnu.org; Mon, 12 Feb 2018 12:49:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elIDk-0000r3-Qj; Mon, 12 Feb 2018 12:48:53 -0500 Received: from [176.228.60.248] (port=2782 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1elIDk-0004vF-5a; Mon, 12 Feb 2018 12:48:52 -0500 Date: Mon, 12 Feb 2018 19:48:41 +0200 Message-Id: <83fu66yu86.fsf@gnu.org> From: Eli Zaretskii To: Rami =?utf-8?Q?Ylim=C3=A4ki?= In-reply-to: <53be5e03-5c03-a3fc-1605-4c777b2006a4@vincit.fi> (message from Rami =?utf-8?Q?Ylim=C3=A4ki?= on Mon, 12 Feb 2018 18:38:14 +0200) Subject: Re: bug#30429: 27.0.50; Emacs TERMINFO "xterm-direct" "efaq" example not working References: <873727rmaj.fsf@aol.com> <83sha6yzo2.fsf@gnu.org> <53be5e03-5c03-a3fc-1605-4c777b2006a4@vincit.fi> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30429 Cc: 30429@debbugs.gnu.org, nyc4bos@aol.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: Eli Zaretskii , 30429@debbugs.gnu.org > From: Rami Ylimäki > Date: Mon, 12 Feb 2018 18:38:14 +0200 > > The bug here is that the FAQ could explain this more thoroughly, but > there's no bug in software. Can you propose a more detailed text for the FAQ? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 14:38:10 2018 Received: (at 30429) by debbugs.gnu.org; 12 Feb 2018 19:38:10 +0000 Received: from localhost ([127.0.0.1]:40046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elJvV-00078j-Oi for submit@debbugs.gnu.org; Mon, 12 Feb 2018 14:38:09 -0500 Received: from mail.kapsi.fi ([91.232.154.25]:33141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elJvS-00078Z-Vg for 30429@debbugs.gnu.org; Mon, 12 Feb 2018 14:38:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Message-Id:Date:Subject:To:From; bh=LOvWg7Bv5vd5Je+OQNuKdQNl0A+3/nyAkZ9FjVsWE/g=; b=ZheMDSGhGeij9aC36wwJkNVDN0y7dlU3I4UH3BH1kTRStlPz3BS1NsPHPN1wvPiIa+PJL8l/mTpRACgSRMrP3aZNAABMkowHJWn+/TaSCvRI162Ba1Qt6YsMlnMCpgeqzJEsGuC1hhpIOr3I8fpvvjNaucfCaGzu7JtrhJd7dyhFP/G4RpC2l9eSLy/rUZrdWLJJIs1ihmFCkIkRqljUm+Zh84w5O0SeW8dFQFKYTD3rGR7YPYT2hvUxQn7FNA72WqKXAzV/2HTFGx3be/pE55K+GkmLoHIgoCZCDLpcWmOvnT7EeBSX0HQRsmOswkPPN0l5FtgZUbHFGJkjMKUFnQ==; Received: from 91-157-45-84.elisa-laajakaista.fi ([91.157.45.84] helo=nopsakone.home) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1elJvR-000893-BP for 30429@debbugs.gnu.org; Mon, 12 Feb 2018 21:38:05 +0200 From: =?UTF-8?q?Rami=20Ylim=C3=A4ki?= To: 30429@debbugs.gnu.org Subject: [PATCH] Improve FAQ about direct mode terminals. Date: Mon, 12 Feb 2018 21:37:54 +0200 Message-Id: <20180212193754.10632-1-rami.ylimaki@vincit.fi> X-Mailer: git-send-email 2.14.1 X-SA-Exim-Connect-IP: 91.157.45.84 X-SA-Exim-Mail-From: rami.ylimaki@vincit.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30429 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) * doc/misc/efaq.texi (Colors on a TTY): Show how to list direct mode TERM definitions. (Bug#30429) --- doc/misc/efaq.texi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi index fef9b1051b..ffd833f832 100644 --- a/doc/misc/efaq.texi +++ b/doc/misc/efaq.texi @@ -1525,6 +1525,19 @@ Colors on a TTY $ TERM=xterm-direct emacs -nw @end example +If your terminal is incompatible with XTerm, you may have to use +another TERM definition. + +@example +$ toe | grep '\-direct' + +konsole-direct konsole with direct-color indexing +vte-direct vte with direct-color indexing +st-direct st with direct-color indexing +xterm-direct2 xterm with direct-color indexing (old) +xterm-direct xterm with direct-color indexing +@end example + Terminals with @samp{RGB} capability treat pixels #000001 - #000007 as indexed colors to maintain backward compatibility with applications that are unaware of direct color mode. Therefore the seven darkest -- 2.14.1 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 13 00:35:35 2018 Received: (at 30429-done) by debbugs.gnu.org; 13 Feb 2018 05:35:35 +0000 Received: from localhost ([127.0.0.1]:40359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elTFf-0003Jb-1h for submit@debbugs.gnu.org; Tue, 13 Feb 2018 00:35:35 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48393) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elTFd-0003JO-NB for 30429-done@debbugs.gnu.org; Tue, 13 Feb 2018 00:35:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elTFV-00005T-Ba for 30429-done@debbugs.gnu.org; Tue, 13 Feb 2018 00:35:28 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elTFV-00005N-7Z; Tue, 13 Feb 2018 00:35:25 -0500 Received: from [176.228.60.248] (port=3401 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1elTFT-0007id-VM; Tue, 13 Feb 2018 00:35:24 -0500 Date: Tue, 13 Feb 2018 07:35:14 +0200 Message-Id: <831shpzc31.fsf@gnu.org> From: Eli Zaretskii To: Rami =?iso-8859-1?Q?Ylim=E4ki?= In-reply-to: <20180212193754.10632-1-rami.ylimaki@vincit.fi> (message from Rami =?iso-8859-1?Q?Ylim=E4ki?= on Mon, 12 Feb 2018 21:37:54 +0200) Subject: Re: bug#30429: [PATCH] Improve FAQ about direct mode terminals. References: <873727rmaj.fsf@aol.com> <20180212193754.10632-1-rami.ylimaki@vincit.fi> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30429-done Cc: 30429-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Rami Ylimäki > Date: Mon, 12 Feb 2018 21:37:54 +0200 > > * doc/misc/efaq.texi (Colors on a TTY): Show how to list direct mode > TERM definitions. (Bug#30429) Thanks, pushed to the master branch. From unknown Mon Jun 23 20:17:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 13 Mar 2018 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator