42895efac3
Merge branch 'obsd-master'
2023-01-12 22:01:09 +00:00
483cc77c1c
Have tmux recognise pasted texts wrapped in bracket paste sequences,
...
rather than only forwarding them to the program inside. From Andrew
Onyshchuk in GitHub issue 3431.
2023-01-12 18:49:11 +00:00
6fb80527f3
Merge branch 'obsd-master'
2022-11-08 12:01:11 +00:00
f86eba2129
Fix C-S-Tab without extended keys, from Aaron Jensen.
2022-11-08 10:04:31 +00:00
dbfbd8a195
Merge branch 'obsd-master'
2022-11-02 08:01:11 +00:00
9614f51560
Instead of always setting the extended flag, set it only when searching.
...
Allows send-keys to work. From Aaron Jensen.
2022-11-02 07:36:07 +00:00
36896f6dd0
Merge branch 'obsd-master'
2022-11-01 12:01:10 +00:00
2d08235987
Add modified Tab key sequences, from Aaron Jensen, GitHub issue 3368.
2022-11-01 09:54:13 +00:00
2b60ff588e
If a mouse position was above the maximum supported by the normal mouse
...
protocol (223), tmux was allowing it to wrap around. However, since tmux
was not correctly handling this on input, other programs also do not
handle it correctly, and the alternative SGR mouse mode is now
widespread, this seems unnecessary, so remove this feature. Also define
some constants to make it clearer what the numbers mean. Mostly from
Leonid S Usov in GitHub issue 3165.
2022-05-30 13:02:55 +00:00
c6b51cea92
If a mouse position was above the maximum supported by the normal mouse
...
protocol (223), tmux was allowing it to wrap around. However, since tmux was
not correctly handling this on input, other programs also do not handle it
correctly, and the alternative SGR mouse mode is now widespread, this seems
unnecessary, so remove this feature. Also define some constants to make it
clearer what the numbers mean. Mostly from Leonid S Usov in GitHub issue 3165.
2022-04-27 11:34:08 +01:00
bf14bf6259
Merge branch 'obsd-master' into master
2022-03-01 18:01:10 +00:00
f39a71aaad
Don't convert codes for special keys (Tab, Enter, Escape).
2022-03-01 15:20:22 +00:00
2750195709
Merge branch 'obsd-master' into master
2022-02-28 10:01:11 +00:00
2e59ff2db9
Map control keys back to an ASCII uppercase letter when passing them on
...
as extended keys.
2022-02-28 09:24:22 +00:00
722f395e61
Merge branch 'obsd-master' into master
2022-02-16 22:01:11 +00:00
0027ee13a0
Support more mouse buttons when the terminal sends them, GitHub issue
...
3055.
2022-02-16 18:55:05 +00:00
944fde7c57
Merge branch 'obsd-master' into master
2021-08-20 20:01:27 +01:00
e463e8622d
Remove stray spaces after function names.
2021-08-20 17:50:42 +00:00
f706a7e236
Remove old shift function keys which interfere with xterm keys now.
...
GitHub issue 2696.
2021-06-10 07:52:07 +00:00
f02a6c34e0
Move "special" keys into the Unicode PUA rather than making them top bit
...
set, some compilers do not allow enums that are larger than int. GitHub
issue 2673.
2021-06-10 07:38:28 +00:00
f2951bd4a5
Remove old shift function keys which interfere with xterm keys now. GitHub
...
issue 2696.
2021-05-05 07:23:23 +01:00
e2d01795d2
Move "special" keys into the Unicode PUA rather than making them high a top bit
...
set, some compilers cannot handle enums that are larger than int. GitHub issue
2673.
2021-04-28 09:18:04 +01:00
7579097db6
Merge branch 'obsd-master' into master
2021-04-09 10:01:19 +01:00
73cbe46f8d
Change a type to fix a warning with some compilers.
2021-04-09 07:02:00 +00:00
caf7aeb3a9
Merge branch 'obsd-master' into master
2021-04-08 16:01:17 +01:00
30fb628388
Log the key written to the terminal as well as tmux's idea of what it
...
is.
2021-04-08 14:16:12 +00:00
5c275c2a1a
Log missing keys when extended keys is on rather than fatal().
2021-02-16 09:41:55 +00:00
0d28ee9274
Log missing keys when extended keys is on rather than fatal().
2020-11-17 08:13:35 +00:00
ca5afb34bf
Merge branch 'obsd-master'
2020-09-18 14:01:19 +01:00
ed946dccc7
Some other warnings, GitHub issue 2382.
2020-09-18 11:20:59 +00:00
191a836560
Merge branch 'obsd-master'
2020-06-01 18:01:18 +01:00
674ec410b7
Try without cursor/keypad flags if a key doesn't exist, and limit ctrl
...
key translation to ASCII keys. Fixes send-keys, GitHub issue 2247.
2020-06-01 16:09:35 +00:00
967e5f8be3
Merge branch 'obsd-master'
2020-05-26 08:42:55 +01:00
6f03e49e68
Use the internal representation for UTF-8 keys instead of wchar_t and
...
drop some code only needed for that.
2020-05-25 18:57:24 +00:00
fb9e53ba19
Merge branch 'obsd-master'
2020-05-19 14:01:17 +01:00
8425084b8a
Some other ctrl keys need to be translated with extended keys on.
2020-05-19 10:59:09 +00:00
0ab82d9531
Add a terminal feature for enable/disable extended keys (supported by
...
xterm and mintty) and add an option to make tmux send it. Only forward
extended keys if the application has requested them, even though we use
the CSI u sequence and xterm uses CSI 27 ~ - this is what mintty does as
well.
2020-05-16 16:44:54 +00:00
53c84fd4aa
If the application has not requested extended keys, then C-1 sends 1 not
...
nothing.
2020-05-16 07:39:22 +01:00
401f197750
Er, misread this and it is not needed.
2020-05-15 18:58:13 +01:00
c364a7142c
Only forward extended keys if the application has requested them, even though
...
we use the CSI u sequence and xterm uses CSI 27 ~ - this is what mintty does as
well.
2020-05-15 17:40:24 +01:00
e6b17e77db
C-M-S keys need the implied flag also.
2020-05-15 15:11:08 +01:00
3e60ab1caf
Send conventional \033 sequences for keys with just Meta even if they came in
...
as an extended CSI u key sequence. It is much more useful for applications that
don't understand CSI u to receive \033> for M-S-. rather than \033[62;3u.
2020-05-15 13:15:12 +01:00
7501e297dd
Send CSI u sequences for any keys that do not have a defined sequence already -
...
this should only be similar sequences sent by the terminal outside tmux if
enabled.
2020-05-15 12:39:37 +01:00
340fd691cb
Separate key flags and modifiers, log key flags, make the "xterm" flag more
...
explicit and fix M- keys with a leading escape.
2020-05-15 12:16:41 +01:00
031d4864a9
Rename KEYC_ESCAPE to KEYC_META.
2020-05-15 11:24:30 +01:00
5ee4d991b6
xterm-keys has been on by default for 5 years and all other modern terminals
...
use these key sequences by default. Merge the code into the main tty and input
tree processing (convering the latter to use a tree rather than a table at the
same time) and make the option a no-op.
2020-05-15 10:31:54 +01:00
6a2f32b4fd
Merge branch 'obsd-master'
2020-04-07 16:01:29 +01:00
eff881b15a
Do not send mouse events if the program has not requested them.
2020-04-07 13:38:30 +00:00
66db12db31
Merge branch 'obsd-master'
2020-04-01 12:01:27 +01:00
dd2fdcda79
Support mouse in popups.
2020-04-01 09:05:27 +00:00