From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.devel Subject: Emacs doesn't use only terminfo database to identify a terminal Date: Sat, 10 Sep 2022 16:11:51 +0600 Message-ID: <87pmg38ro8.fsf@disroot.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29961"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 10 12:29:34 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oWxjy-0007e8-4S for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Sep 2022 12:29:34 +0200 Original-Received: from localhost ([::1]:58144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWxjx-0008PI-5o for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Sep 2022 06:29:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWxhB-00067i-58 for emacs-devel@gnu.org; Sat, 10 Sep 2022 06:26:41 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:54746) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWxh9-0003cv-0T for emacs-devel@gnu.org; Sat, 10 Sep 2022 06:26:40 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 480FB49F7D for ; Sat, 10 Sep 2022 12:26:35 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YjjW9sWuEEMR for ; Sat, 10 Sep 2022 12:26:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1662805594; bh=XSZ1ewHOPC16JAHqNb2wNDeUpYRVyadImwtSFRw1gdI=; h=From:To:Subject:Date; b=kdjxtiX3fTcSUuxVfYT2uptafi6bJaCFr2Eo+bz72OPt7BrW68cdCr2MJLwzi11QC 9kH2mxWie6+dmQhOUVL0Bdq24rb267X2jRYpGjoAOz6Z5XmitJowMtHSNaLdlWtRF5 +rv707WiDLhso1tt6PF3/4E9AWszLZ9QOy8zZK2SeFFZYxOgraV0CbJPTrwgkbBLCn NYqmJcLtpjN1g9maZPz8CV5fv1vxEw8cOdHrocNy4xvG/9a+b8L7mf4auwoKPjasF7 oQUWkHEo/RewDAET1FPzeWr5QtTQXX1TVKNlmOMHjrveZl9Gm9D2EjCtsZ691lHOVr HlZcT6fbvUskg== Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:295116 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Emacs uses something more than just a terminfo database to determine the capabilities of a terminal. For example, if I run Emacs in St, keys like C-, M- work. Then I modified the terminal name by changing the terminfo source file (st-256color -> est-256color). If I run Emacs with the new terminfo database, keys like C-, M- no longer work, although infocmp shows that both (st-256color and est-256color) terminfo databases contain identical capabilities. Now if I rename the terminal name to something like "st-..." (I used "st-foo-bar-baz"), those keys work again. But why? Who is the culprit here, Emacs or ncurses? =2D-=20 Akib Azmain Turja Find me on Mastodon at @akib@hostux.social. This message is signed by me with my GnuPG key. Its fingerprint is: 7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmMcYucACgkQVTX89U2I YWvDAhAAsJ9yWPj+ZKAWoS4SlzRVIifcNsGrHwbWB6n9OPMHP0WrCJraSDWTZ0sq 6LCPtP2PFWVAMsbz7kpXNf+H0q5P/fdOGvxWgI/lWzdf3qiXPTKd0JFxkWVav/8p OzHpzkHqVOgmztP1ghz9/u7ovc7+Ma8HfkpvPYwjy2befdS2GSD42zXRLL1ijygF Z42ElCba5qsd5LiwIsbMDfbuu+oebizkIaoZfATclEAldl1M/Sf69IhmK2NQt8dj UDgNchx6rmrYgOoN7be+UQRGhQfhXuzkTNsx68LMw5CRJ2hEnOcjOWDWdz5jZVTJ zCFzTkn9eMe5JS0Ozrv2mnIUiO3Jy57wRnonRczSdAteM5vebLtUHUyxw7ppsBNl 39sCDFP4wrKQfQ+PEzUrMpWy5WtbuUOI8oaecDj4bbNZMtMYgxp+4S23QWSg/zO+ mzxYTskyFZ94PUttZ/2ICzhYhgIQ70u0Lbuu9QIxkYLJlzrxGq7ARMsq/o5mafIx 0tgxr0g/dx7wlR9ScQ7gcVsEXqfVH6GTReFdnAdQeglvjaZ+pRHdxPwQxoBzK/MU gcvQJHYl/GCuVgJqtZ7XVuOZjhhFLcRLJETB96tc848923We7BVlSIk0nZptoVQw gNFrDL1Koz00qtsNm4IfquE83UQTwdXMsBMA329352iuzKu1AcI= =S2o9 -----END PGP SIGNATURE----- --=-=-=--