[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does "\024" mean `C-t'? (in bindkey example in man page)

From: Aleksey Tsalolikhin
Subject: Re: Why does "\024" mean `C-t'? (in bindkey example in man page)
Date: Fri, 19 Aug 2016 07:40:33 -0700

Right on, thanks, Micah and Jürgen!

I'm really impressed with the quality of responses on this list.  What a great community!   

Yours fondly,

On Mon, Aug 15, 2016 at 10:44 AM, Micah Cowan <address@hidden> wrote:
Resending; meant to send this to the list, not privately.

On Sun, Aug 14, 2016 at 7:11 AM, Aleksey Tsalolikhin
<address@hidden> wrote:
> Lovely, thank you very much Axel and Pieter!
> Why does pressing ctrl-1 make 1, and pressing ctrl-3 make ^[ ?  Pressing ctrl-8 makes nothing, like Pieter said (you can't shift 042 down by 64).

The basic answer here is that, outside of the ASCII entries from 0x40
- 0x5F, and their lower-case equivalents, and a few pretty ubiquitous
exceptions, there's not a lot of consistency as to which characters
might also generate a character in the control range, and if so, what
character might be generated.

You may find this previous email of mine on the subject of "what does
control do", helpful:

Also note that, outside of the terminal context - in for example an X
Window context, control key combinations really are represented as
"adding" information to the keypress you type. There's no mutation of
the key code there - it's only that way in terminals, for historical


Need CFEngine training?  Email address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]