zsh-users
 help / color / mirror / code / Atom feed
* control caracters
@ 2022-10-21 14:57 Pier Paolo Grassi
  2022-10-21 15:02 ` Eric Cook
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Pier Paolo Grassi @ 2022-10-21 14:57 UTC (permalink / raw)
  To: Zsh-Users List

[-- Attachment #1: Type: text/plain, Size: 785 bytes --]

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.

thanks in advance!

Pier Paolo Grassi

[-- Attachment #2: Type: text/html, Size: 1052 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: control caracters
  2022-10-21 14:57 control caracters Pier Paolo Grassi
@ 2022-10-21 15:02 ` Eric Cook
  2022-10-21 15:06 ` Matthew Martin
  2022-10-21 15:53 ` Mikael Magnusson
  2 siblings, 0 replies; 4+ messages in thread
From: Eric Cook @ 2022-10-21 15:02 UTC (permalink / raw)
  To: zsh-users

On 10/21/22 10:57, 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.

If the terminal is able to send a unique escape sequence for them yes, usually they don't though.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: control caracters
  2022-10-21 14:57 control caracters Pier Paolo Grassi
  2022-10-21 15:02 ` Eric Cook
@ 2022-10-21 15:06 ` Matthew Martin
  2022-10-21 15:53 ` Mikael Magnusson
  2 siblings, 0 replies; 4+ messages in thread
From: Matthew Martin @ 2022-10-21 15:06 UTC (permalink / raw)
  To: zsh-users

On Fri, Oct 21, 2022 at 04:57:56PM +0200, 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.

https://www.leonerd.org.uk/hacks/fixterms/ may be of interest


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: control caracters
  2022-10-21 14:57 control caracters Pier Paolo Grassi
  2022-10-21 15:02 ` Eric Cook
  2022-10-21 15:06 ` Matthew Martin
@ 2022-10-21 15:53 ` Mikael Magnusson
  2 siblings, 0 replies; 4+ messages in thread
From: Mikael Magnusson @ 2022-10-21 15:53 UTC (permalink / raw)
  To: Pier Paolo Grassi; +Cc: Zsh-Users List

On 10/21/22, Pier Paolo Grassi <pierpaolog@gmail.com> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-10-21 15:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-21 14:57 control caracters Pier Paolo Grassi
2022-10-21 15:02 ` Eric Cook
2022-10-21 15:06 ` Matthew Martin
2022-10-21 15:53 ` Mikael Magnusson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).