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: Sun, 27 Feb 2022 21:16:06 +0200 Message-ID: <835yp0nmrt.fsf@gnu.org> References: <8335kg1srp.fsf@gnu.org> <83mtieoxpj.fsf@gnu.org> <837d9gnoig.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4307"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54027@debbugs.gnu.org To: Alex Hutcheson , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 27 20:17:23 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 1nOP2p-0000zO-F4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Feb 2022 20:17:23 +0100 Original-Received: from localhost ([::1]:59908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOP2o-0007RM-7F for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Feb 2022 14:17:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOP2U-0007Oi-UT for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 14:17:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37094) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOP2U-0002sZ-Ld for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 14:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nOP2U-0004xh-HL for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 14:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 19:17:02 +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.164598938919014 (code B ref 54027); Sun, 27 Feb 2022 19:17:02 +0000 Original-Received: (at 54027) by debbugs.gnu.org; 27 Feb 2022 19:16:29 +0000 Original-Received: from localhost ([127.0.0.1]:59217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOP1x-0004wc-2Z for submit@debbugs.gnu.org; Sun, 27 Feb 2022 14:16:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOP1s-0004wN-Qd for 54027@debbugs.gnu.org; Sun, 27 Feb 2022 14:16:27 -0500 Original-Received: from [2001:470:142:3::e] (port=54822 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 1nOP1m-0002go-Tx; Sun, 27 Feb 2022 14:16:18 -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=Rkz1h3DgbZTXPeqjO1dKITbtDRlNiJx9F+ff7e7pRxo=; b=pb22nqj188di JTbTK+XlxKEzlzDs39l0/+eNi+rEubXtq4/AAISJaaMe/RxL6NF5FjINaNnexUp6RR1Kb+cRY1nwm ndgU+sD6vxgptxSRUfnOyR4ooB19ybznaRuT64Wp1mkuCoHX96yf67Z06IMQrclr7z8rAbWU4aQUS ZsGaUZGL82wHhU+vdJKamg9iQjM2VckwLJRPU4pAJyQvy2+i/4rk6K0ZoL5VbMgzx/E7FhVSMIhBq ueomdd+L6Z6keHLpcgfs/W3nWRHYX7BIKBZ0oIFZ8G6Nw9ipA0g03MG/lcEshN9ka4sKY3OahUooE 0CbccojuvD8wm9IlOAZv3w==; Original-Received: from [87.69.77.57] (port=1912 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 1nOP1m-0003jP-Ch; Sun, 27 Feb 2022 14:16:18 -0500 In-Reply-To: (message from Alex Hutcheson on Sun, 27 Feb 2022 13:53:56 -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:227742 Archived-At: > From: Alex Hutcheson > Date: Sun, 27 Feb 2022 13:53:56 -0500 > Cc: 54027@debbugs.gnu.org > > My thinking is that it's very low-cost to support all possible encodings, > even if it's unlikely that a terminal would actually send them. > > Using your example: > \e[65;5u > Would be a valid way to encode C-a according to the spec at > http://www.leonerd.org.uk/hacks/fixterms/ > > Most terminals will not encode it that way, and will instead send ^A, > but it would be nice to support it gracefully if a terminal happens to > send C-a encoded that way. > > In addition, the "just support all inputs encoded this way" approach > seems simpler to understand and maintain than an approach that > distinguishes between key combinations that have an existing > alternative encoding and those that don't. > The entries in the keymap won't be referenced unless Emacs actually > receives matching input, so the cost of having entries for additional > combinations seems fairly minimal. > > Maybe I'm misunderstanding keymap performance or some other > important parameter, though? Let's add Stefan to this discussion. Stefan, any comments or thoughts? > > On Sun, Feb 27, 2022 at 1:38 PM Eli Zaretskii wrote: > > > From: Alex Hutcheson > > Date: Sun, 27 Feb 2022 13:21:20 -0500 > > Cc: 54027@debbugs.gnu.org > > > > We basically need to support the cross-product of: > > modifier combinations x ASCII characters > > No, AFAIU we only need to support keys+modifiers that are not > otherwise supported already. E.g., C-a is already supported, so we > don't need to add it, and similarly many other combinations are > already supported. Or what am I missing? > > -- > Alex Hutcheson > alexhutcheson@google.com