From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie 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:09:53 +0000 Message-ID: References: <20220506000102.GA10144@prl-debianold-64.jexium-island.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6346"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bug-ncurses@gnu.org, emacs-devel@gnu.org To: Thomas Dickey Original-X-From: bug-ncurses-bounces+gnu-bug-ncurses=m.gmane-mx.org@gnu.org Sun May 08 14:11:27 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 1nnfl0-0001OK-Os for gnu-bug-ncurses@m.gmane-mx.org; Sun, 08 May 2022 14:11:26 +0200 Original-Received: from localhost ([::1]:38998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnfkz-0008Ip-Df for gnu-bug-ncurses@m.gmane-mx.org; Sun, 08 May 2022 08:11:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnfjk-00079V-Hh for bug-ncurses@gnu.org; Sun, 08 May 2022 08:10:08 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:42055 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.90_1) (envelope-from ) id 1nnfji-0006wl-B4 for bug-ncurses@gnu.org; Sun, 08 May 2022 08:10:08 -0400 Original-Received: (qmail 32938 invoked by uid 3782); 8 May 2022 12:09:54 -0000 Original-Received: from acm.muc.de (p2e5d5151.dip0.t-ipconnect.de [46.93.81.81]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 08 May 2022 14:09:53 +0200 Original-Received: (qmail 5793 invoked by uid 1000); 8 May 2022 12:09:53 -0000 Content-Disposition: inline In-Reply-To: <20220506000102.GA10144@prl-debianold-64.jexium-island.net> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.1; envelope-from=acm@muc.de; helo=mail.muc.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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:8553 gmane.emacs.devel:289475 Archived-At: Hello again, Thomas. 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! > > I'm writing as a member of the Emacs development team. > > In the recent change from ncurses-6.2 to ncurses-6.3, the following > > change was make in the linux console terminfo: > > --- 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=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, > > ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\n, > > initc=\E]P%p1%x%p2%{255}%*%{1000}%/%02x%p3%{255}%*%{1000}%/%02x%p4%{255}%*%{1000}%/%02x, > > - kb2=\E[G, kbs=^?, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, > > + kb2=\E[G, kbs=^?, kcbt=\E^I, kcub1=\E[D, kcud1=\E[B, > > kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\E[[A, > > kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, > > kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, > > We now have kcbt=\E^I. > 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. > Tracing changes to default keyboard configuration in Linux isn't > as "simple" as control-sequences, but see below (it's "kbd"). > 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). > Just to check: > Debian, Fedora, Mageia, OpenSUSE do this (send \E^I) > Arch, Slackware don't do this (I get just ^I) > I have a few others that I could check, but (CentOS and Scientific Linux) > those are either obsolete or derived from the ones that I listed. Just to say that fixing Emacs to work with kcbt=\E^I wasn't actually very difficult at all, and I've committed a patch to the Emacs repository with this fix. 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. 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. [ .... ] > I suppose you could tell Emacs to ignore kcbt (termcap kB) for Linux. This is in effect what has been done. > non-Emacs users probably would like to use the key. Yes. ;-( Thank you very much for your time, and the additional background information, over the last few days. > -- > Thomas E. Dickey > https://invisible-island.net > ftp://ftp.invisible-island.net -- Alan Mackenzie (Nuremberg, Germany).