From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan 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 15:37:45 +0700 Message-ID: References: <87y2ftroma.fsf@zoho.eu> <87y2fs2wyu.fsf@robertthorpeconsulting.com> <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: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17719"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 14 09:38:20 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 1lBCv6-0004Y5-HY for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 09:38:20 +0100 Original-Received: from localhost ([::1]:40236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBCv5-000428-Ji for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 03:38:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBCum-00040a-08 for help-gnu-emacs@gnu.org; Sun, 14 Feb 2021 03:38:00 -0500 Original-Received: from mail-vs1-xe2a.google.com ([2607:f8b0:4864:20::e2a]:39868) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBCuk-0003Zm-0E for help-gnu-emacs@gnu.org; Sun, 14 Feb 2021 03:37:59 -0500 Original-Received: by mail-vs1-xe2a.google.com with SMTP id d24so1865341vso.6 for ; Sun, 14 Feb 2021 00:37:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=rYcw3qUkI97VZ1kpNIpuaApFWV2Jrzks38eaqLWRwdI=; b=e8XxPSkP7aal+e3SSJlbi6D6ase/Uc/5SGzLUIcBY39HmuGoz5QDMSHBA2c4sCPKE6 BFrKsU8F+AspyPj0PNSYH3b2ph+PY4ahg6Skv0NLiSDNHzmiaooJPPny+J+MvysFMysd cjkx36Xj1va5O2mWal/HPFU4gWN8OI8Rp4/bX1HdK5GjHFwxBqfgoqGzc+oUQA994y94 bT6dd7FHiywv/LrWd17pVDeZitlvLSdpC9LLMbbseFOHoqep6lB+1hyTywNN7WgfwUTR LBLOux06WV03G5rXKFhl0pS/as6mLXlH9St5+E9LNEH3RuDzMGOG3jUYSDqZSZWseOSM oTEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=rYcw3qUkI97VZ1kpNIpuaApFWV2Jrzks38eaqLWRwdI=; b=irHEjQZWjd6a36KXAYG54sxXdHUzan+ZMzU1ZUe+T5gP49yhI6CiAlsZ6+RyLgTWrO ihaoiPA4L7egpRsixQr6i49hGIusxRFGeX2MNcgurZIF1gkZN3jwFtytJBf4Kg7n8rO1 p46r7qvLXcG0TLXXYQU9tVV25rlKv0m4j4aiYM2FeknmEJWG/PNSokvgkZkjiuQ5c1ZK 7BEHqXOY658eoO2iO7KXBJIYYdsdab0gCL/NsjafuK/4B3sJIvgRfFWHZeUNa0N7TYuA N8V7e9nW2Q1blxChBTdukUilr9ZsY77/SnUeQspoNhS5dFo0tz9hG4t6oMZPMxamIlSE K8EA== X-Gm-Message-State: AOAM531vviEfBreOO+Ox85zosOmjQHrm2aDMBOMbY5lvF9EQpvjxqaP+ xiIl66zMUj1ZKka9KVoRW/qdQ3BA3SILjVOHVF/Z3RCi6EE= X-Google-Smtp-Source: ABdhPJzmEM0pkVSpXd6tiFQQPkIcNd1uwMxST/TQKP+OwSIKdbE++AIiZbW0lsbQ9GmCaYIcwbk/O2c5sTs+morfGEg= X-Received: by 2002:a67:7d54:: with SMTP id y81mr6018216vsc.42.1613291876407; Sun, 14 Feb 2021 00:37:56 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::e2a; envelope-from=yurivkhan@gmail.com; helo=mail-vs1-xe2a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:128008 Archived-At: 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 =E2=80=9Csmall=E2=80=9D issue =E2=80=94 you will need to create = a terminal-specific initialization file [3] in Emacs that defines an =E2=80=98input-decode-map= =E2=80=99 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 =E2=80=98input-decode-map=E2=80=99 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*. Maybe there are other ways to ignore key release sequences. I have not been able to devote enough time into discovering them. If you succeed in setting up Emacs with Kitty=E2=80=99s advanced key protoc= ol, I=E2=80=99d be very interested.