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: Make Super key work in console Date: Sat, 20 Feb 2021 23:38:58 +0700 Message-ID: References: <8735y06nap.fsf@zoho.eu> <87tuqg585j.fsf_-_@zoho.eu> <87pn12zbgc.fsf_-_@zoho.eu> <875z2twank.fsf@zoho.eu> <83h7m6zpr5.fsf@gnu.org> 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="9048"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 20 17:39:43 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 1lDVIF-0002Gq-26 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 20 Feb 2021 17:39:43 +0100 Original-Received: from localhost ([::1]:43180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDVIE-00060V-4F for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 20 Feb 2021 11:39:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDVHl-00060G-Rb for help-gnu-emacs@gnu.org; Sat, 20 Feb 2021 11:39:13 -0500 Original-Received: from mail-vs1-xe2c.google.com ([2607:f8b0:4864:20::e2c]:39264) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lDVHj-0004oI-CB; Sat, 20 Feb 2021 11:39:13 -0500 Original-Received: by mail-vs1-xe2c.google.com with SMTP id p123so2325246vsp.6; Sat, 20 Feb 2021 08:39:10 -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 :cc:content-transfer-encoding; bh=aldV0oSWpEGLnjdUqut3shN/5gRFNvEDXMDSj2CQpEA=; b=OPCtiu0t4qwi8WQFokeogEe0tYg0/KyFBbzOX6xrpOwPZ/a+kK0SNN5wNnjsA1GLIi WGsmRfoOIdCGJQWNJzmheDGXg7Az1R/mU94yY9CHy8Q5mBRb9SHCxiG4Izs1LSrSCA+c m8m5qmmiraBMlepDKSdvmZbkZJaUlWPDkkX8WmztCBzGnowHbGgHwXDGDkoAu1tMfPF8 Q6lcRsVybqjgAif0N4SkPDF0s7DkQh32JubyNMeEt0PdjGPsKCePHKm/67GXgyUtcCa4 26hiEl5MMKzwS3/ukJICf6UbE5Cu1keK9tgktL2o8mmetVPg1gEClU5eAi++fFVd36Uq C0/Q== 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:cc:content-transfer-encoding; bh=aldV0oSWpEGLnjdUqut3shN/5gRFNvEDXMDSj2CQpEA=; b=JdZnbd2TM0ECu+r1sy+uKVINrKXVLcF7pHvLaMXCfLebrDqAgfYWFewNbF3HeC16kT GO+Z/+OG9utUpBFxiSgoIR9babVSopqCZygNcPrI5mnUV2yEI01VEZyoYlIJPY9d3SRZ pUNKv3SGibwnlu4mlb3H+wpUJlHdpp2eoCUAWFCk57wQAv8CwTX3QT6EOGyRgCDizsCD wSq60m2b03MpJOoxnMsUIX2ImpRQOxqvKdRTs46EFQKNKPycmb88ABZUu2i/iEB3ih5J hPiDMf3433n8gyqoNXOjIp2XCIoPadtnslV0+EXR4dY6FB8amZ5EmJ3BQD9rK2afWVa6 h6nQ== X-Gm-Message-State: AOAM532DtB08QsXEJkD2s2LiwYCsik4NN90rQpa653CZc8svGQLbdu5R 610aNsfLKkPsQa+0JQrEZfMrdbxtiSfs7Sld5qoqDws30So= X-Google-Smtp-Source: ABdhPJzUxiYpoetqnecDn8M5FcnUBsVyF2dvg8C9mraTM2lTQ5gyiNzjbltjAwBy+gEGtG3k3gWPPyCMH/bl2Oz3Skw= X-Received: by 2002:a67:6146:: with SMTP id v67mr9588673vsb.51.1613839149788; Sat, 20 Feb 2021 08:39:09 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::e2c; envelope-from=yurivkhan@gmail.com; helo=mail-vs1-xe2c.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:128148 Archived-At: On Sat, 20 Feb 2021 at 23:16, Yuri Khan wrote: > > On Sat, 20 Feb 2021 at 23:08, Eli Zaretskii wrote: > > > > > I was surprised to learn that Konsole chose to translate Super+ > > > > into C-x @ s , exactly what Emacs interprets back as S-. > > > > > > Yuck! > > > > Why "Yuck"? This is in no way singular: many terminal emulators > > convert M-SOMETHING into ESC SOMETHING, at least as an option. > > Yuck that, too. In case further explanation is needed: * The fact that terminals encode functional keys, editing keys, Alt+keys as ESC sequences has made it impossible to reliably[1] detect a single Escape key press. * Many terminals of VT-100 descent encode keys as CSI sequences (ESC [ =E2=80=A6), making it impossible to reliably[1] detect a single Alt+[ key combination. * In application keypad mode, terminals also encode arrow keys as SS3 sequences (ESC O =E2=80=A6), making it impossible to reliably[1] detect an Alt+Shift+o. [1]: yes, a 100ms timeout goes a long way, unless you=E2=80=99re working ov= er ssh on a laggy/jerky connection. Other deficiencies of key representations in terminals include: * Ctrl+key combinations are only defined for letter keys and select punctua= tion. * Ctrl+Shift+keys are indistinguishable from Ctrl+keys. * Alt+key combinations are Caps Lock-sensitive. * Tab is indistinguishable from Ctrl+I, Backspace from either Ctrl+H or Ctrl+?, and Enter from either Ctrl+J or Ctrl+M. * There is much uncertainty about whether the sequence called F13 should mean Shift+F1 or Shift+F3.