On 11/18/2012 12:03 PM, Thomas Adam wrote:
> Hi,
> 
> On 18 November 2012 18:28, Matthew Monaco <dgbale...@0x01b.net> wrote:
>> Hello,
>>
>> I noticed that binding C-; is not possible, even when commented as C-\; I'd 
>> like
>> to add support for this, but I'm a little unsure as to how tmux handles
>> non-alphanumeric characters.
>>
>> An else if (key == ';') is needed at the block in input-keys.c:173. But since
>> space+alphabet are 0,1,2,... I don't know if a KEYC_SEMICOLON is needed, and
>> where else throughout tmux it needs to be handled.
>>
>> I haven't tried it yet, but are binding all special characters (including
>> digits) below 'A' with a modifier broken, or not supported for a reason?
> 
> You don't need any code changes for this.  Confer:
> 
> tmux bind-key '\;' display-message hello1
> tmux bind-key -n '\;' display-message hello2
> 
> Or in your config:
> 
> bind '\;' display-message boooooo
> 
> Why do you think the code needs to be changed?
> 
> -- Thomas Adam
> 

Hi Thomas,

The issue is not with binding a plain semicolon, it's binding C-;.

In key_string_lookup_string(), for semicolon, key == 59 < KEYC_BASE, and
KEYC_CTRL is set, so now ';' doesn't match any of the conditionals and KEYC_NONE
is returned from the else statement.

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to