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: Pieter Luteijn
Subject: Re: Why does "\024" mean `C-t'? (in bindkey example in man page)
Date: Sun, 14 Aug 2016 08:37:43 +0200

Hi,

In short, pressing ctrl+{other key} just sends a code that's 64 (dec) lower than then {other key} by itself. So ctrl-@ sends '0' (NUL), ctrl-C sends '3', ctrl-T '20'. To make it easy, no difference is made between upper/lowercase. Look at an ASCII table, as this method is/was meant to send codes from 0-31 (with 32 having its own key, spacebar), and you'll see why some non-letter {other keys} like '[' or ']' work, but others like e.g. '*' (usually) don't. 

Regards,
Pieter

Sent from a mobile, sorry for any typoes...

reply via email to

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