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: Mon, 28 Feb 2022 14:17:45 +0200 Message-ID: <831qznnq1i.fsf@gnu.org> References: <8335kg1srp.fsf@gnu.org> <83mtieoxpj.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24463"; mail-complaints-to="usenet@ciao.gmane.io" Cc: alexhutcheson@google.com, 54027@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 28 13:19:17 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 1nOezk-0006EU-Lt for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Feb 2022 13:19:16 +0100 Original-Received: from localhost ([::1]:43982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOezi-000102-Gv for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Feb 2022 07:19:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOezW-0000xN-8l for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2022 07:19:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38215) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOezV-0008Km-Ve for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2022 07:19:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nOezV-0001bs-Pr for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2022 07:19: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: Mon, 28 Feb 2022 12:19: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.16460506876106 (code B ref 54027); Mon, 28 Feb 2022 12:19:01 +0000 Original-Received: (at 54027) by debbugs.gnu.org; 28 Feb 2022 12:18:07 +0000 Original-Received: from localhost ([127.0.0.1]:60338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOeyd-0001aQ-EV for submit@debbugs.gnu.org; Mon, 28 Feb 2022 07:18:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOeyc-0001a0-AM for 54027@debbugs.gnu.org; Mon, 28 Feb 2022 07:18:06 -0500 Original-Received: from [2001:470:142:3::e] (port=38256 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 1nOeyV-00083c-3k; Mon, 28 Feb 2022 07:17:59 -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=7vvFcVgh96/huCsZrjqJ+VYH1By6WDfSLHHmZ8YXsG0=; b=UqINHUQbQFoA oSLNv3ndvqsjOGCE1AX+6ghRijFDVQ2msdxmA/QWrW50IViYiMpYoOj0vrmme+1OLOjcP4Yfil78v wLJlW1PzItcI7F/La0sqTg8F+xBS9r2QS0u+RbuPIfEWxNxYIzQebTT7hWcj7cmxUF93xjJv1q2Bs m71zr512Kn2lsCBsb+C7vlD7RlJp3v9CJ/s8Ey7SGT2S2wRfTntjLUVHumqrhzJ3AEjIywPr6LRR4 KMrW11D2douAoEt7iZi96vYL5ccmwy1SSSfQ7r0XUWK5Fpc3hM8SBuQK4CxvmiW3CwFfX4d2KHf5B ELVkdqPkMmfI050xKDueHA==; Original-Received: from [87.69.77.57] (port=1351 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 1nOeyS-0004xB-9n; Mon, 28 Feb 2022 07:17:57 -0500 In-Reply-To: (message from Stefan Monnier on Sun, 27 Feb 2022 22:49:58 -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:227789 Archived-At: > From: Stefan Monnier > Cc: Eli Zaretskii , 54027@debbugs.gnu.org > Date: Sun, 27 Feb 2022 22:49:58 -0500 > > Alex Hutcheson [2022-02-27 13:21:20] wrote: > >> I think just adding the missing combinations is a better way forward. > > I think we're in agreement here, I was just suggesting how to add > > the combinations to xterm.el without introducing a lot of boilerplate > > code. > > Actually, for `ESC [ 27 ...` the better option is to bind `ESC [ 27` to > a function that reads the subsequent parameters so it will handle *all* > cases in one go, as in the barely tested patch below. > > For `ESC [ ... u` it's a bit more tricky because it doesn't have such > a "clean" prefix (it's distinguished by the final `u` instead), so we'd > have to rework a lot of the rest of the `ESC [` bindings. > Maybe not a bad idea, tho. Thanks, but what is your opinion about which of the combinations we need to add?