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
<atsaloli.t...@gmail.com> 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
> screen-users@gnu.org
> https://lists.gnu.org/mailman/listinfo/screen-users
>

_______________________________________________
screen-users mailing list
screen-users@gnu.org
https://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to