From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#54027: Wishlist: Support full CSI u specification for terminal input Date: Mon, 28 Feb 2022 08:22:05 -0500 Message-ID: References: <8335kg1srp.fsf@gnu.org> <83mtieoxpj.fsf@gnu.org> <831qznnq1i.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21165"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: alexhutcheson@google.com, 54027@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 28 14:25:54 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 1nOg2D-0005BE-2f for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Feb 2022 14:25:53 +0100 Original-Received: from localhost ([::1]:44154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOg2B-0002Nb-Eg for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Feb 2022 08:25:51 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOfzS-0007K6-7D for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2022 08:23:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38382) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOfzR-0007x4-SY for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2022 08:23:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nOfzR-0007pe-MF for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2022 08:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Feb 2022 13:23: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.164605455030067 (code B ref 54027); Mon, 28 Feb 2022 13:23:01 +0000 Original-Received: (at 54027) by debbugs.gnu.org; 28 Feb 2022 13:22:30 +0000 Original-Received: from localhost ([127.0.0.1]:60512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOfyw-0007ot-Cx for submit@debbugs.gnu.org; Mon, 28 Feb 2022 08:22:30 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:47943) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOfyf-0007oL-SZ for 54027@debbugs.gnu.org; Mon, 28 Feb 2022 08:22:29 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 7F1B2100189; Mon, 28 Feb 2022 08:22:08 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 0C299100054; Mon, 28 Feb 2022 08:22:07 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1646054527; bh=FN1uoq72Td3nWL5/TQ+KTHKAExl1C1WlEy7tMf8cUqU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ArZO220PtAzL15uBAsMQcdM0JAJQ8y0CLloX+shJ+BOYPJeMIFebUf126VxK5+BCu a3xtg4lx4dLeMOAWLDC5jQaf/FZ8VQQlOainvKZvbu4tfSaVMWdJMZI5/kxMDYksWR vdmtdMYAIRx9qLazbzflYexI1WKiJg4ZxMl0Kq9wzid/gDAF7V5eOtCSAgz4Y4SwEo 7mblFgz/xT8Qqrj+6m32qMsYae236GedCQ/phma0i/orE4sr+L3Ut0OYMv329CRQA2 IlD7vtLllK1p9k4HjbnosISig0cKDlPE/XURT3FpkDmKDlLQwzFbITVjuabkgwiVAH MjnFUoZx7KGzQ== Original-Received: from pastel (unknown [45.72.208.76]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D4ECF120EEF; Mon, 28 Feb 2022 08:22:06 -0500 (EST) In-Reply-To: <831qznnq1i.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 28 Feb 2022 14:17:45 +0200") 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:227809 Archived-At: Eli Zaretskii [2022-02-28 14:17:45] wrote: >> 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? The patch I posted adds all of them, and that reflects my opinion (tho the patch only bothered to do it for the `ESC [ 27 ...` format). Stefan