From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31652 invoked from network); 21 Oct 2022 15:54:40 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Oct 2022 15:54:40 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1666367680; b=FUvmT7GbykWDqHswo4aS6qNne9/J+33cqwbRPYrYqbYBNL0oRQAYKz1ZhjdU4KrUbEmcOPH9Qe j2dJ0UfBTuDS/6WwWGAhp+KuZWLERyeIFdiqUG22a4SRdssseZVIes1Z/hl3Q0OlzWYXWlJR4G xrR+D5P/pt6ftPzV5PO/AiQk0loTcZrdV5Js4DBHaiX5ff6xlYPNJ48uz/Ea+cB5HIOzqtKDXD fwALftaC0yF5jIf9SAIx0gQIKdcfYMimv5/wFK5reR4QfKotXHdBc2XXkRwPftt4gW/AY2CBly Tv9jTQn77bfaJ8fYyGwr5bK6nHdeKZn7zVp9q+zF+YQXuQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f45.google.com) smtp.remote-ip=209.85.208.45; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1666367680; bh=Y80jLXqTfEEhlVVWUfuWbpy0vyMR9q+oTFc6doUqbnU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:References: In-Reply-To:MIME-Version:DKIM-Signature:DKIM-Signature; b=rnYfTYNKmaKaTiSedHHg7bnJmR5SqHI88jZ6qFwKcRmYauq8+NllHB6ySvwMIetv/N0m+HZpa8 comp4idgnE6HH00K70AoQAy3E8BqeucUnC+5Gm/QiIfAt4qSuVWqaoq5WJ4r9dADk5yWwLXToQ 17wxiceiLs34/D4qKkR9VcubJuI56jAVvMLhYFJ6cErL8qirPYbmajl6X0VBe28RnH8PrEP6Rs EUGB2ExQm4ZD6MbLXc8v8cdsv9iSFZmFYDUL+1iWkGMJJnH1Pq0yG7pqgStr5WLkBcrM2PT87R E8sLuQusEO8uLu3+jCFISzLO6PA+FwFjkldndvHRZk9ygg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:References:In-Reply-To:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=r5mpaZ6BXFawYGFtJT2AO5MHYISocB9VI3PBzFlybK4=; b=jitchEk3PJiAuppvhLwYM89YfA 0f42/cJImjw9Q8mn0R83lnm3/NNPiyQ9dHfgyOrBFX9+jKqM3eVfjCRzMf9ZpoDfcibzsgIEI8LUO x64dYHAJyEwQ9QJ7N/8EGNFXjHD/MdOOxxHDOUcvWJHsUdBv0Cy+2wGWt7zqTYDS7DL+BVOGnbLBR mOJNVcLRm8IFq5meZuF/+CCl8+mN/MmY63biEaF60r3eD2w89gVa8e2tSRNx/P3nOxfMdgcMA0zC+ bpjOwE0XfXLA/RYoVYwrGKBTYe04q8rq1BulWvsxbi61BDYiSx0rUxhjdEVAV8sS02UKBq2vu+gvM jmrsUo2Q==; Received: by zero.zsh.org with local id 1oluM3-0007Uc-FT; Fri, 21 Oct 2022 15:54:39 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f45.google.com) smtp.remote-ip=209.85.208.45; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ed1-f45.google.com ([209.85.208.45]:43663) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oluLP-0006mu-Sk; Fri, 21 Oct 2022 15:54:00 +0000 Received: by mail-ed1-f45.google.com with SMTP id q19so7467567edd.10 for ; Fri, 21 Oct 2022 08:53:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=r5mpaZ6BXFawYGFtJT2AO5MHYISocB9VI3PBzFlybK4=; b=I+9r3OtjWD/9o7pS8HcuLjMio1pubQB5Dma4Ge1hF+mD3MmmLWzwq031r9MlYg1ehG 9cw26CCShH7OiEFv1sWEuG0b2+81CLfNUsx1sbvgDnH5pe8WUgfxpB3315sOgURn5ag2 pyv3LUvewOme1eTnbNAT3UKDXxneWz9oujuWeqd0l6nnw0QaJyOtMpLSN5wKfPiUper+ k8srOzYN56IFio2QcnisiXOceKQA96WC4rELzMYp+5z056Osd+q0XhEJfpSTPSvek4O7 vYtOZqTrWVEOJ7XOK/i8bsOOgM/ATbeUASj8rQz7Of4Ef/mVJcOlGLml4myKBEwziraA EJeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=r5mpaZ6BXFawYGFtJT2AO5MHYISocB9VI3PBzFlybK4=; b=YP9U1X63b6Qp8VOgO4UDmISqfZjSinB02cfEBzXYBHcyPZngc+Q3X8ZKQJTXpDfvS5 iV0Uf0G0d3g41ZmmsmcjCDYwZ8agsoPWOB/ujzZeQg9ucwTOZHhP4Ei4z3lUNHsCJYF1 aJU8MYf/DPvhhJr3yMY1DKm/yIVNyPiOduuC1Unb07ZECEn2Kq7glTGZVjxCwNwcdh+T 52f4ImaucoUZnlitD9h4vpQ6Etvv602jwU0h1F+G+o3MI3sLApXAOGEcFvi3lfHPszGw uneViFDaTahwdbMwWulg9ogStchOmCD1i20t8C2pjFBISQLck7S3UA1ZclKyIT3BL7EA DfZw== X-Gm-Message-State: ACrzQf1BixILUcmDvgOcFkMHd0xcRR2z7anNJusS1gDwjbMyglzYyxfu 5NsH2yb3KqYodYKfzTDbsIQd8QjQMsMM+THpnIY= X-Google-Smtp-Source: AMsMyM4scu9QDAUGxgAG1oXUkUk4fhcrqWpW5KcN5QehawlDYhYnN+rh/Ao9/N9twqdYyNlqEcBfiCjRLoNB0uZhrDc= X-Received: by 2002:aa7:c60a:0:b0:458:d707:117 with SMTP id h10-20020aa7c60a000000b00458d7070117mr18119968edq.258.1666367639110; Fri, 21 Oct 2022 08:53:59 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:906:a2d2:b0:78e:11ea:853d with HTTP; Fri, 21 Oct 2022 08:53:58 -0700 (PDT) In-Reply-To: References: From: Mikael Magnusson Date: Fri, 21 Oct 2022 17:53:58 +0200 Message-ID: Subject: Re: control caracters To: Pier Paolo Grassi Cc: Zsh-Users List Content-Type: text/plain; charset="UTF-8" X-Seq: 28251 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On 10/21/22, Pier Paolo Grassi wrote: > Hello, I was wondering if there is a way for the shell to bind capitalized > ctrl-keys to different widgets then the non-capitalized counterpart. it > seems to me that this is not possible from testing and by using ctrl-v that > produces the same output for the capitalized and non-capitalized version of > the same letter. I have the understanding that this can be due to > historical reasons, being that the ctrl version of the keys corresponds to > the first 31 bytes of the ascii standard (NUL to @, SOH to A etc, taken > from man ascii). I would like to understand this better, if someone has a > link to offer with details on the internals of how this works, and why the > shell are (if this assumption holds true) still bound to work with this > constraints. This would be up to the terminal, in urxvt in particular you can do this in your x resources (for each key): URxvt.keysym.C-S-A: \001 but with another output than ^A, I leave that up to your imagination. (note that ctrl-shift-[0-9a-f] in urxvt can also be configured to input characters via iso14755, but this configuration will override that). -- Mikael Magnusson