screen-users
[Top][All Lists]
Advanced

[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: Jürgen Weigert
Subject: Re: Why does "\024" mean `C-t'? (in bindkey example in man page)
Date: Sun, 14 Aug 2016 17:31:38 +0200

Control-T or ^T  is Decimal 20,  Hex 14,  Octal 024

In the ancient keyboard logic the control key clears the 5th and the 6th bit,
while the shift key would clear the 5th bit only.

So let's start with the lower case 't'=116 and subtract 2⁵+2⁶ = 32+64
= 96 resulting in 20. (All decimal math).


cheers, JW

On Sat, Aug 13, 2016 at 2:41 PM, Aleksey Tsalolikhin
<address@hidden> wrote:
> Hello,
>
> The GNU screen man page states:
>
>     bindkey "\024" mapdefault
>
>      This keybinding makes `C-t' an escape character for keybindings.
>
> My 'ascii' man page shows that octal 024 is Device Control 4:
>
>        Oct   Dec   Hex   Char
>        024   20    14    DC4 (device control 4)
>
> And that "T" is octal 124:
>
>        Oct   Dec   Hex   Char
>        124   84    54     T
>
> I tried binding something to \024 and when I press Control-T I get that
> something.
>
> Why is \024 control-T rather than \124, please?
>
> Best,
> Aleksey
>
> _______________________________________________
> screen-users mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/screen-users
>



reply via email to

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