From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: console key tutorial, revised (was: Re: Make Super key work in console - was Re: math (was: Re: not good proposal: "C-z " reserved for users)) Date: Sun, 14 Feb 2021 12:36:40 +0300 Message-ID: References: <8735y06nap.fsf@zoho.eu> <87tuqg585j.fsf_-_@zoho.eu> <87tuqguh3c.fsf@zoho.eu> <87ft1ztty9.fsf_-_@zoho.eu> <87sg5z5fut.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37933"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: help-gnu-emacs To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 14 10:41:50 2021 Return-path: Envelope-to: geh-help-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 1lBDuX-0009lY-0h for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 10:41:49 +0100 Original-Received: from localhost ([::1]:55256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBDuW-0006zE-16 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 04:41:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBDtx-0006yu-TR for help-gnu-emacs@gnu.org; Sun, 14 Feb 2021 04:41:13 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:37797) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBDtw-0003eY-Ag for help-gnu-emacs@gnu.org; Sun, 14 Feb 2021 04:41:13 -0500 Original-Received: from localhost ([::ffff:197.157.0.47]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000001E078.000000006028F035.00006AF1; Sun, 14 Feb 2021 02:41:09 -0700 Mail-Followup-To: Yuri Khan , help-gnu-emacs Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SORBS_WEB=1.5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128013 Archived-At: * Yuri Khan [2021-02-14 11:38]: > On Sun, 14 Feb 2021 at 15:06, Jean Louis wrote: > > > It means you do not know a solution, I will assume so. We need it. It > > could liberate thousands of possible key combinations before the > > keyboard dies on desktop. Rush. > > For X, please see Kitty [1]. It is a terminal emulator that implements > an alternative key encoding scheme [2] which allows to represent all > modifier keys, all modifier+key combinations, even key releases. > > [1]: https://sw.kovidgoyal.net/kitty/ > [2]: https://sw.kovidgoyal.net/kitty/keyboard-protocol.html > > There is a “small” issue — you will need to create a terminal-specific > initialization file [3] in Emacs that defines an ‘input-decode-map’ > that will translate Kitty escape sequences to Emacs representation, > and you will need to invent a way to ignore key release sequences. > > [3]: (info "(elisp) Terminal-Specific") > > Last time I tried that, I set up ‘input-decode-map’ so that it > translates each key release sequence to an empty key sequence. But, > due to the way prefix key prompting works in Emacs, it clears the echo > area each time a key is released. Which pretty much kills every status > message Emacs might produce in response to a key *press*. In `konsole' terminal emulator the Super key just works. Terminal emulators are under X, they are not console. I do not see much of problem in setting Super for some terminal emulators, but that is not a point for Emacs being compatible both on console and X. I would like that we find way for Super key to works equally in console, that means without X, on tty, and over SSH, equally as it runs inside of the X. That would liberate many new keys which would be harmonized between the GUI and console Emacs version. Jean