From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Dickey Newsgroups: gmane.comp.lib.ncurses.bugs,gmane.emacs.devel Subject: Re: Emacs difficulties in linux console with ncurses-6.3 caused by kcbt=\E^I. Date: Sun, 8 May 2022 12:05:14 -0400 Message-ID: <20220508160514.GB6515@prl-debianold-64.jexium-island.net> References: <20220506000102.GA10144@prl-debianold-64.jexium-island.net> Reply-To: dickey@his.com Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1SQmhf2mF2YjsYvc" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23433"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Thomas Dickey , bug-ncurses@gnu.org, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: bug-ncurses-bounces+gnu-bug-ncurses=m.gmane-mx.org@gnu.org Sun May 08 18:05:53 2022 Return-path: Envelope-to: gnu-bug-ncurses@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 1nnjPt-0005tT-7d for gnu-bug-ncurses@m.gmane-mx.org; Sun, 08 May 2022 18:05:53 +0200 Original-Received: from localhost ([::1]:38526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnjPs-0003Ao-4d for gnu-bug-ncurses@m.gmane-mx.org; Sun, 08 May 2022 12:05:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnjPM-00039V-Jr for bug-ncurses@gnu.org; Sun, 08 May 2022 12:05:23 -0400 Original-Received: from smtp-1a.his.com ([216.194.196.25]:46944) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnjPJ-0001vt-Rh for bug-ncurses@gnu.org; Sun, 08 May 2022 12:05:20 -0400 Original-Received: from cuda201.his.com (cuda201.his.com [216.194.196.22]) by smtp-1a.his.com (Postfix) with ESMTPS id 97B2314D for ; Sun, 8 May 2022 12:05:16 -0400 (EDT) X-ASG-Debug-ID: 1652025915-061c414f6d72840001-IDp6Hi Original-Received: from smtp-nf-202.his.com (smtp-nf-202.his.com [216.194.196.20]) by cuda201.his.com with ESMTP id ERUKl3mKRRxUIwZf; Sun, 08 May 2022 12:05:15 -0400 (EDT) X-Barracuda-Envelope-From: tom@invisible-island.net X-Barracuda-RBL-Trusted-Forwarder: 216.194.196.20 Original-Received: from zproxy101.his.com (zproxy101.his.com [18.218.2.49]) by smtp-nf-202.his.com (Postfix) with ESMTPS id 9A0D56085A; Sun, 8 May 2022 12:05:15 -0400 (EDT) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by zproxy101.his.com (Postfix) with ESMTP id 7412C17829B; Sun, 8 May 2022 12:05:15 -0400 (EDT) X-Barracuda-RBL-IP: 18.218.2.49 X-Barracuda-Effective-Source-IP: zproxy101.his.com[18.218.2.49] X-Barracuda-Apparent-Source-IP: 18.218.2.49 Original-Received: from zproxy101.his.com ([127.0.0.1]) by localhost (zproxy101.his.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id rNq0uOO5AlRU; Sun, 8 May 2022 12:05:15 -0400 (EDT) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by zproxy101.his.com (Postfix) with ESMTP id 587D4178364; Sun, 8 May 2022 12:05:15 -0400 (EDT) X-Virus-Scanned: amavisd-new at zproxy101.his.com Original-Received: from zproxy101.his.com ([127.0.0.1]) by localhost (zproxy101.his.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id DmI5JyPSeZBO; Sun, 8 May 2022 12:05:15 -0400 (EDT) Original-Received: from prl-debianold-64.jexium-island.net (static-71-246-219-82.washdc.fios.verizon.net [71.246.219.82]) by zproxy101.his.com (Postfix) with ESMTPSA id 3EF4F17829B; Sun, 8 May 2022 12:05:15 -0400 (EDT) Original-Received: from tom by prl-debianold-64.jexium-island.net with local (Exim 4.92) (envelope-from ) id 1nnjPG-0001oB-VJ; Sun, 08 May 2022 12:05:14 -0400 X-ASG-Orig-Subj: Re: Emacs difficulties in linux console with ncurses-6.3 caused by kcbt=\E^I. Content-Disposition: inline In-Reply-To: X-Barracuda-Connect: smtp-nf-202.his.com[216.194.196.20] X-Barracuda-Start-Time: 1652025915 X-Barracuda-URL: https://spam.his.com:443/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Virus-Scanned: by bsmtpd at his.com X-Barracuda-Scan-Msg-Size: 3120 X-Barracuda-Spam-Score: 0.20 X-Barracuda-Spam-Status: No, SCORE=0.20 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=6.0 tests=PR0N_SUBJECT X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.97871 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.20 PR0N_SUBJECT Subject has letters around special characters (pr0n) Received-SPF: pass client-ip=216.194.196.25; envelope-from=btv1==1277541a9b7==tom@invisible-island.net; helo=smtp-1a.his.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: bug-ncurses@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Bug reports for ncurses, the GNU implementation of curses" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-ncurses-bounces+gnu-bug-ncurses=m.gmane-mx.org@gnu.org Original-Sender: "Bug-ncurses" Xref: news.gmane.io gmane.comp.lib.ncurses.bugs:8554 gmane.emacs.devel:289488 Archived-At: --1SQmhf2mF2YjsYvc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 08, 2022 at 12:09:53PM +0000, Alan Mackenzie wrote: > Hello again, Thomas. >=20 > On Thu, May 05, 2022 at 20:01:02 -0400, Thomas Dickey wrote: > > On Thu, May 05, 2022 at 06:18:00PM +0000, Alan Mackenzie wrote: > > > Hello, ncurses! >=20 > > > I'm writing as a member of the Emacs development team. >=20 > > > In the recent change from ncurses-6.2 to ncurses-6.3, the following > > > change was make in the linux console terminfo: >=20 > > > --- Infocmp-linux-6.2 2022-05-04 20:16:01.609557894 +0000 > > > +++ infocmp-linux-6.3 2022-05-04 20:09:02.046581014 +0000 > > > @@ -14,7 +14,7 @@ > > > home=3D\E[H, hpa=3D\E[%i%p1%dG, ht=3D^I, hts=3D\EH, ich=3D\E[= %p1%d@, > > > ich1=3D\E[@, il=3D\E[%p1%dL, il1=3D\E[L, ind=3D\n, > > > initc=3D\E]P%p1%x%p2%{255}%*%{1000}%/%02x%p3%{255}%*%{1000}%/= %02x%p4%{255}%*%{1000}%/%02x, > > > - kb2=3D\E[G, kbs=3D^?, kcbt=3D\E[Z, kcub1=3D\E[D, kcud1=3D\E[B, > > > + kb2=3D\E[G, kbs=3D^?, kcbt=3D\E^I, kcub1=3D\E[D, kcud1=3D\E[B, > > > kcuf1=3D\E[C, kcuu1=3D\E[A, kdch1=3D\E[3~, kend=3D\E[4~, kf1= =3D\E[[A, > > > kf10=3D\E[21~, kf11=3D\E[23~, kf12=3D\E[24~, kf13=3D\E[25~, > > > kf14=3D\E[26~, kf15=3D\E[28~, kf16=3D\E[29~, kf17=3D\E[31~, >=20 > > > We now have kcbt=3D\E^I. >=20 > > A bug report got me to verify this, and > > shift-tab on the console appeared to send that sequence, > > so I documented it in the terminal description. >=20 > > Tracing changes to default keyboard configuration in Linux isn't > > as "simple" as control-sequences, but see below (it's "kbd"). >=20 > > I don't see any that send \E[Z. Having the terminal description > > list a key definition that no one uses isn't very useful. > > (I'll allow for some keyboard differences -- who has a "clear" key? -- > > but shift-tab has been used for a long time). >=20 > > Just to check: > > Debian, Fedora, Mageia, OpenSUSE do this (send \E^I) > > Arch, Slackware don't do this (I get just ^I) >=20 > > I have a few others that I could check, but (CentOS and Scientific Linu= x) > > those are either obsolete or derived from the ones that I listed. >=20 > Just to say that fixing Emacs to work with kcbt=3D\E^I wasn't actually ve= ry > difficult at all, and I've committed a patch to the Emacs repository with > this fix. >=20 > I think it's a shame that there has been this confusion between > TAB and TAB over the decades. This has made things difficult > for applications like Emacs, which use both of these. >=20 > So my position now is that I no longer have a view on what the best > setting for kcbt in the linux console terminfo entry is. >=20 > [ .... ] >=20 > > I suppose you could tell Emacs to ignore kcbt (termcap kB) for Linux. >=20 > This is in effect what has been done. sounds good - no better solution came to mind =20 > > non-Emacs users probably would like to use the key. >=20 > Yes. ;-( >=20 > Thank you very much for your time, and the additional background > information, over the last few days. no problem (report bugs) --=20 Thomas E. Dickey https://invisible-island.net ftp://ftp.invisible-island.net --1SQmhf2mF2YjsYvc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmJ36jcACgkQzCr0RyFn vgN63wv+OpbyNKhRT2XysQD3JTxSexAe+H5PaCDfhffyrxxXoUDua3SgBEs0wVHZ w1Pfc7Zu1LbSKR1FzKjUHLi5D5wSPRKGgEqadj9dqan4bUZsbzYIp4l93ZBTEj1p XrIQdF198JMrEvLxfSK4t9OIXeQwXL0M8UZAKeRV8Als5Z6jkalKBC3iWQnGERw/ +rh5C7eJZTgQsb+a0BLWTMFU2GZN+vd/HEdQlb+6GiGjbFSBNanglHwzoZyLAhsz oRxde4DZIzo9L9/nnJ8RFTYaa14bJ8/4Fr9BHwZyZiE/efvfMj6dJZ0G/91ddIvb iDJ0iqjizCQPxm9aJzgkxh5xoGWM+aHOsiqAfsiwsLlYnzHpHtW2cd+lMfpyEbgM X92UJSP+V+TCM65I6WupTzc9mg6e9I0/MDKA7mFGp68dHtynjor3ZSWwq3hq4JBE dNmTjoe2PXjUGQi8AY3snKKawzVPoljJ71HY9Nfc97BZzYFrcKGEUSE8aST0kYgl h+C87kF5 =zNSh -----END PGP SIGNATURE----- --1SQmhf2mF2YjsYvc--