From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Live System User Newsgroups: gmane.emacs.bugs Subject: bug#30429: 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1518401374 19069 195.159.176.226 (12 Feb 2018 02:09:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Feb 2018 02:09:34 +0000 (UTC) To: 30429@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 12 03:09:30 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 1el3YN-0003aE-OI for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Feb 2018 03:09:12 +0100 Original-Received: from localhost ([::1]:54824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1el3aP-0005Fh-Gh for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Feb 2018 21:11:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1el3aE-0005EU-Ao for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 21:11:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1el3aA-0005lg-Lo for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 21:11:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59115) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1el3aA-0005lR-HO for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 21:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1el3aA-0007xj-95 for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 21:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Live System User Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Feb 2018 02:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30429 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151840144930587 (code B ref -1); Mon, 12 Feb 2018 02:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Feb 2018 02:10:49 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-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:143185 Archived-At: 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))