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: Does code exist to check if a key sequence is valid for Emacs running in terminal mode? Date: Fri, 12 Jul 2024 08:14:52 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16210"; 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 Fri Jul 12 14:15:57 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 1sSFBt-00044l-15 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 12 Jul 2024 14:15:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sSFB8-0003tq-RX; Fri, 12 Jul 2024 08:15:10 -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 1sSFB6-0003my-9O for help-gnu-emacs@gnu.org; Fri, 12 Jul 2024 08:15:08 -0400 Original-Received: from mail-vk1-xa2c.google.com ([2607:f8b0:4864:20::a2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sSFB4-0000eR-O7 for help-gnu-emacs@gnu.org; Fri, 12 Jul 2024 08:15:07 -0400 Original-Received: by mail-vk1-xa2c.google.com with SMTP id 71dfb90a1353d-4f2fcaa2a3aso674962e0c.0 for ; Fri, 12 Jul 2024 05:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720786504; x=1721391304; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ozsXj3hlNtq/hzohe3YcPtnLlx9Ko7ibnm7/iXpo8XM=; b=QHMMF/TxgYuAE7EX+81cvvq/fw0ia/VKN35/LROredHa+B+A1A0P49qMiIt+s89Hsv rcKCQzZrFqujPHycbmnvqHFx7Du+rGq9VgIyPXHA49RAptqeeVfCHIuf6LfvipmzYLlm sKFc8POl/YH6wfpGHYdUBre1oBU8aw9/mwvq4pnfYPb8ZnR82DMF/peOtTclsvZNF4G/ C0Llk7VjS/UtG55uUfczswUA9gM3RPFJNoF3dwDNWCUiN0mQK3JHaKmzPH4rO2Ypd/I4 6XayXTh7uFa3wXTK8nsMwU93XID9sD/yByg+0g/LS/ab2dUJwvGWpL9kurW8wBRB6Fpj xDmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720786504; x=1721391304; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ozsXj3hlNtq/hzohe3YcPtnLlx9Ko7ibnm7/iXpo8XM=; b=Do9MkQFIgHnhjRor70HyvsVJZNTD/R9J5+fa1S21EcfMZ2DjZzhWLBYXSTLK1UVAbY D1fWeqFAU41uCbXorGqOJSyUAGyg9JW8jYgz8bLtrOLtuWIRXCVdLR8/5ZvjDoTR1ytA 4TWyolwusi4mHKSN6M/bIZ11e+pGndPEVIE8M4stRPvHoZTEt+yazLbSW12klFLcV0oC 7d2ZL9sQHR/NHYaSS35ycZqz/B9xatdFgfVHyih2SIrGQA6A6oFgsStLUk7DTc1FGf/5 FMp+KLPXyTdhkeKLK3FxWOhx7wZ/b65au/vQrFJ37kLed7bJd/UPpgom/t6j+DvD+zgF xtNw== X-Gm-Message-State: AOJu0YyNtUWq+wT9/XbU/hdyx0UACn48Wfv7JMc0DuykeBMlXFHOSv7/ nuFFCOOv9AzUwsLR1TGfYmxDDvpmQ5veYzpRekpNUmBG9TQrx+hnEaCCLMF9x5JItcd0+dCLL3c 8p9j5w2mk7Iw5IC7fPagag+lhbcKM6g== X-Google-Smtp-Source: AGHT+IFrvHNngNKnXmoP/u4folTKJcuma7qOl05XuwaVu4J3QPlA93bw+P7NsPZ4M9tpLJdtDcXSC6VnJwIioVnlkc4= X-Received: by 2002:a05:6122:2026:b0:4ef:630f:d579 with SMTP id 71dfb90a1353d-4f33f29a48bmr13832415e0c.8.1720786503636; Fri, 12 Jul 2024 05:15:03 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::a2c; envelope-from=prouleau001@gmail.com; helo=mail-vk1-xa2c.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:147156 Archived-At: Hi all, Does Emacs already have a predicate function that can be used to check if the specified key sequence is valid for Emacs running in terminal mode? For example, "C-;" is not accessible on Emacs running in terminal mode because this is not an ASCII control character. It's available for Emacs running in graphical environment, but not in terminal mode. Is there something similar already available or one would simply wrap describe-key and catch the error to check? Regards, -- /Pierre