Hi Thanks but I was thinking about this a bit more and I think it is better to translate the keys that come in with extended keys, so C-S-X is converted to C-S-x. I had originally worried about different keyboard layouts but I don't think many people will be affected and I will worry about that if they complain, so I'm going to change it to do that later on, which should mean this is unnecessary.
On Wed, Apr 07, 2021 at 01:32:23PM +0100, Stuart Henderson wrote: > On 2021/04/07 01:30, Nicholas Marriott wrote: > > CVSROOT: /cvs > > Module name: src > > Changes by: [email protected] 2021/04/07 01:30:02 > > > > Modified files: > > usr.bin/tmux : key-string.c tty-keys.c > > > > Log message: > > Fixes for extended keys: 1) allow C-x and C-X to be bound separately > > since some terminals report them differently 2) use the "backspace" > > option to translate backspace 3) map ctrl which are have the ctrl > > implied (such as C-x) properly when the terminal reports both the key > > and the modifier. > > > > Note that any key bindings for C-X where C-x is meant must now be > > changed. > > > > I think this is going to affect a lot of people. > Does this sound about right for an upgrade note? > > Index: current.html > =================================================================== > RCS file: /cvs/www/faq/current.html,v > retrieving revision 1.1068 > diff -u -p -r1.1068 current.html > --- current.html 29 Mar 2021 12:11:22 -0000 1.1068 > +++ current.html 7 Apr 2021 12:30:48 -0000 > @@ -289,6 +289,19 @@ relayd or nginx). It no longer uses a co > line arguments. > > > +<h3 id="r20210407">2021/04/07 - tmux: ^X / C-X binding changes</h3> > + > +Some terminals report differently for uppercase and lowercase control > +character sequences. > +<a href="https://man.openbsd.org/tmux">tmux(1)</a> now handles these > separately; > +if you previously had bindings or prefix using an upper-case variant > +and need them to continue working with lower-case or with a terminal > +that does not distinguish between them, you will need to adjust your > +configuration. > +This applies to bindings using <tt>C-<letter></tt> or > +<tt>^<letter></tt>. > + > + > <!-- > Two blank lines before new sections. > New sentences start on new lines. >
