Re: [dev] [st] How to make it distinguish Control-p from Control-P?

2018-05-17 Thread Roberto E. Vargas Caballero
I am sorry, but st hasn't super powers, and it cannot do impossible things. Control mask the upper bits of the key (key & 0x1F) while shift clears the 6th bit, so ctrl+shift+p = (p & ~0x20) & 0x1f. As you can see, it is impossible to differentiate between ^p and ^P. Regards,

Re: [dev] [st] How to make it distinguish Control-p from Control-P?

2018-05-17 Thread harry666t
The terminal is still the lowest common denominator in user interfaces. Which is Good, because while it restrains you from doing a few useful things, it also stops everyone else from doing some extremely harmful things. Sadly that also means there's little incentive for fixing the awful stuff

Re: [dev] [st] How to make it distinguish Control-p from Control-P?

2018-05-17 Thread Daniel Vartanov
Thank you everyone your answers, it was really helpful. I do hope Leonerd's approach prevails http://www.leonerd.org.uk/hacks/fixterms/ On 16 May 2018 at 23:09, Amer wrote: >> Is there way to make Contol-sequences case sensitive? > > You can use this patch to support

Re: [dev] [st] How to make it distinguish Control-p from Control-P?

2018-05-16 Thread Martin Tournoij
On Wed, May 16, 2018, at 15:49, Daniel Vartanov wrote: > Currently st does not tell ^p from ^P (any letter goes here, "P" is > here only as an example). > Is there way to make Contol-sequences case sensitive? That's not really how terminals work. Terminals are text driven and communication

[dev] [st] How to make it distinguish Control-p from Control-P?

2018-05-16 Thread Daniel Vartanov
Currently st does not tell ^p from ^P (any letter goes here, "P" is here only as an example). Is there way to make Contol-sequences case sensitive? Just in case it is relevant, I need it to set certain hot keys in tmux. Thanks, Daniel