From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54027: Wishlist: Support full CSI u specification for terminal input Date: Sat, 26 Feb 2022 10:10:00 +0200 Message-ID: <83mtieoxpj.fsf@gnu.org> References: <8335kg1srp.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5332"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54027@debbugs.gnu.org To: Alex Hutcheson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 26 09:11:26 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1nNsAn-0001By-NR for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Feb 2022 09:11:25 +0100 Original-Received: from localhost ([::1]:33426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNsAm-0006aX-3v for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Feb 2022 03:11:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNsAQ-0006ZT-3s for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 03:11:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60331) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNsAP-00076N-Rm for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 03:11:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nNsAP-0003SQ-NC for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 03:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Feb 2022 08:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54027 X-GNU-PR-Package: emacs Original-Received: via spool by 54027-submit@debbugs.gnu.org id=B54027.164586302413224 (code B ref 54027); Sat, 26 Feb 2022 08:11:01 +0000 Original-Received: (at 54027) by debbugs.gnu.org; 26 Feb 2022 08:10:24 +0000 Original-Received: from localhost ([127.0.0.1]:54223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNs9n-0003RE-MV for submit@debbugs.gnu.org; Sat, 26 Feb 2022 03:10:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNs9l-0003Qk-FE for 54027@debbugs.gnu.org; Sat, 26 Feb 2022 03:10:22 -0500 Original-Received: from [2001:470:142:3::e] (port=45094 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNs9g-0006v6-88; Sat, 26 Feb 2022 03:10:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ML75nSUdKAfUZALST+PGXzoIY9ocj72zKPHkVXUxHO4=; b=MPIkD6BkTZe5 4NMjgoT7cMauXd/J9mVk9uFy6jvdAJgyWp8mRttPRJIsKWeQ7kFCp4UO+goFGpkjfqy0vNtSDhAxn pS6SaLOGWsEFA8N3oZ8gjVhsBmjU3S8Yb1RBdZJ2ubsxeOTNaviRHk8WN7UIKMqk5SAOj9hCxgjvl gUQjNPSRtEXFxBoFsaVjy9WSSoJkxrwzyLgTchxblML3z8NhTvzDXxtLD+BPVMXptl7SfzAutURnI O0hYlAlcqclf/Vcx4fw+MxeGjD6nMsS32D6Co1Qh1Ozm9+AhEjQxB/BKUaNCGWYCi0dm8WHNLoL+D voA1+J/P/IwVavC8TgjcvA==; Original-Received: from [87.69.77.57] (port=2294 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNs9f-0006sd-MB; Sat, 26 Feb 2022 03:10:16 -0500 In-Reply-To: (message from Alex Hutcheson on Tue, 22 Feb 2022 20:07:40 -0500) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:227668 Archived-At: > From: Alex Hutcheson > Date: Tue, 22 Feb 2022 20:07:40 -0500 > Cc: 54027@debbugs.gnu.org > > - A detailed overview of the issue from the maintainer of xterm. > This covers both the original "CSI 27" encoding and the newer > "CSI u" encoding: https://invisible-island.net/xterm/modified-keys.html > - A much briefer summary: https://github.com/microsoft/terminal/issues/8719#issuecomment-826528702 > - The xterm man page (see "formatOtherKeys"): https://invisible-island.net/xterm/manpage/xterm.html > > I also realized that this has actually been discussed in the past, > and Emacs actually added support for many CSI u sequences to > xterm.el: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=13839 > > I think the only remaining work is to extend that support to cover > all reasonable combinations of modifiers and keys, which is what > the code snippet in the StackExchange answer attempts to do. Right, but I'd rather the additional keys followed the same format as in the above-mentioned patch by Stefan, posted in bug#13839, because that is what we have in xterm.el nowadays. > We're currently hard-coding the possible combinations of > modifiers and keys that we support: > https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/term/xterm.el#n464 > An alternative approach would be to replace that hard-coded list > with a programatically-generated list that includes every combination > of modifiers and keys. I'm not sure I understand how you can programmatically generate a list of keys: wouldn't it still involve a manually-maintained list at some level? I think just adding the missing combinations is a better way forward. Thanks.