From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pierre Rouleau Newsgroups: gmane.emacs.help Subject: Re: Does code exist to check if a key sequence is valid for Emacs running in terminal mode? Date: Fri, 12 Jul 2024 11:06:29 -0400 Message-ID: References: <874j8ug4a7.fsf@gmail.com> <86jzhqlkx2.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="33846"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 12 17:07:11 2024 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 1sSHrb-0008bp-1t for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 12 Jul 2024 17:07:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sSHrH-0001kX-FJ; Fri, 12 Jul 2024 11:06:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sSHrA-0001hT-Kr for help-gnu-emacs@gnu.org; Fri, 12 Jul 2024 11:06:44 -0400 Original-Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sSHr8-0000jv-Kx; Fri, 12 Jul 2024 11:06:44 -0400 Original-Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-7035d5eec5aso1001069a34.1; Fri, 12 Jul 2024 08:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720796800; x=1721401600; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=h7LAO/5B1OfH/S8UWzTQqrsD5ygndVAniiV0kJhWmio=; b=XorFwi6Skav6RVO5fF2/74H4tFI62p48RcucbSVFanWi3vm3Y8YBA0w3de+GOF4Pyj qojjXfAum1/zRGnDn6ejSqV2nMazPonWZNFnt0zPm0ja61z+iW9T900LbKu2R94z4bnI ebRbgCFYyuIHJdV1T3UvwMUztDbCpY9fsJ1moZ0u+4kQ3uc4CuUhne+0/XfxXxBni7Sy eU930EFO71HagRfuss/x6qJSkBNVJ+OMu0H3oYm1XITzcBZP3PDqdHxBVxEsHgfWJ3GS VWn7Om4e4bJotbqwKl5gQooAmKS/hB3Oq56L9VNcaqTdK0FosiuYXTMlsjYawJwmY6Fb +rTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720796800; x=1721401600; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=h7LAO/5B1OfH/S8UWzTQqrsD5ygndVAniiV0kJhWmio=; b=Xjf6FpwZzKMMhS9szBuoAtUKgWYz2hfZAqAz5W2QNz9/TgsZ3tfjy4MNjddqFUPsXf VwDw1oUPr5F8TMHWGJJlUH+Lg7zqumoIZMwu1YO/JWkqj+puyDtYQd6owIXsfCCnZKDr y9w2x+jwekzuclahYtcVItHWOXjZ2svcuvWKIySXIzfocVY/luVLv+65d9z/qK9+/+tK scV+D/A3YmAzNbVIoG4Li6mmQfb5apbrAKImAB1jNV02k8CQbhQDvx7jst1K3lhlI0pV Jd57x18OH2KfrZH4dmk89+sqX1SdD0PBmYR1tXGRdjrrXrLZeTD26+iGqIL2r6JQaiLS hw4g== X-Gm-Message-State: AOJu0Yx3NR7fOHPjqObmSDWxAvvltaqu5/p4tyOyNuFPVuccnWK5c7mQ vZjfK7E3Lu0lzPonWnCTsDGqAzGXuSZhSDV58rNHEKH8Rq12vjcum3oodMtoYmHnQ9T2Rm7vMIf 6dUyCaAjqV2XNaYMXT549ykSCxk1yEg== X-Google-Smtp-Source: AGHT+IE7Iu3/pvDVIRGu1R+qWcHvQbCSZnhTDliRqYJNNjkxuH7KSBV80oIYe8z8F2Oc5/p9tWGOwKA4HXuxRcxH2nA= X-Received: by 2002:a05:6358:a11:b0:1aa:ba92:e7be with SMTP id e5c5f4694b2df-1aade12442dmr858902955d.30.1720796799876; Fri, 12 Jul 2024 08:06:39 -0700 (PDT) In-Reply-To: <86jzhqlkx2.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::32c; envelope-from=prouleau001@gmail.com; helo=mail-ot1-x32c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147173 Archived-At: On Fri, Jul 12, 2024 at 10:56=E2=80=AFAM Eli Zaretskii wrote= : > > Date: Fri, 12 Jul 2024 15:07:40 +0200 > > Cc: Pierre Rouleau , > > help-gnu-emacs > > From: > > > > OK, negatively speaking, on a terminal CTRL zeros bit 6 (counting from > LSB, > > starting with 0) to reach the control codes 0..1f (hex). So it only mak= es > > sense with the character codes 40..5f hex (that's '@'..'_'). > > I think you forget about the term/*.el files. It could define some > arbitrary sequence as a valid key. > > Correct. I did not know about that. Thanks /Pierre