Thomas Adam
bf14bf6259
Merge branch 'obsd-master' into master
2022-03-01 18:01:10 +00:00
nicm
f39a71aaad
Don't convert codes for special keys (Tab, Enter, Escape).
2022-03-01 15:20:22 +00:00
Thomas Adam
2750195709
Merge branch 'obsd-master' into master
2022-02-28 10:01:11 +00:00
nicm
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
Thomas Adam
722f395e61
Merge branch 'obsd-master' into master
2022-02-16 22:01:11 +00:00
nicm
0027ee13a0
Support more mouse buttons when the terminal sends them, GitHub issue
...
3055.
2022-02-16 18:55:05 +00:00
Thomas Adam
944fde7c57
Merge branch 'obsd-master' into master
2021-08-20 20:01:27 +01:00
nicm
e463e8622d
Remove stray spaces after function names.
2021-08-20 17:50:42 +00:00
nicm
f706a7e236
Remove old shift function keys which interfere with xterm keys now.
...
GitHub issue 2696.
2021-06-10 07:52:07 +00:00
nicm
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
Nicholas Marriott
f2951bd4a5
Remove old shift function keys which interfere with xterm keys now. GitHub
...
issue 2696.
2021-05-05 07:23:23 +01:00
Nicholas Marriott
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
Thomas Adam
7579097db6
Merge branch 'obsd-master' into master
2021-04-09 10:01:19 +01:00
nicm
73cbe46f8d
Change a type to fix a warning with some compilers.
2021-04-09 07:02:00 +00:00
Thomas Adam
caf7aeb3a9
Merge branch 'obsd-master' into master
2021-04-08 16:01:17 +01:00
nicm
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
nicm
5c275c2a1a
Log missing keys when extended keys is on rather than fatal().
2021-02-16 09:41:55 +00:00
nicm
0d28ee9274
Log missing keys when extended keys is on rather than fatal().
2020-11-17 08:13:35 +00:00
Thomas Adam
ca5afb34bf
Merge branch 'obsd-master'
2020-09-18 14:01:19 +01:00
nicm
ed946dccc7
Some other warnings, GitHub issue 2382.
2020-09-18 11:20:59 +00:00
Thomas Adam
191a836560
Merge branch 'obsd-master'
2020-06-01 18:01:18 +01:00
nicm
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
Thomas Adam
967e5f8be3
Merge branch 'obsd-master'
2020-05-26 08:42:55 +01:00
nicm
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
Thomas Adam
fb9e53ba19
Merge branch 'obsd-master'
2020-05-19 14:01:17 +01:00
nicm
8425084b8a
Some other ctrl keys need to be translated with extended keys on.
2020-05-19 10:59:09 +00:00
nicm
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
Nicholas Marriott
53c84fd4aa
If the application has not requested extended keys, then C-1 sends 1 not
...
nothing.
2020-05-16 07:39:22 +01:00
Nicholas Marriott
401f197750
Er, misread this and it is not needed.
2020-05-15 18:58:13 +01:00
Nicholas Marriott
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
Nicholas Marriott
e6b17e77db
C-M-S keys need the implied flag also.
2020-05-15 15:11:08 +01:00
Nicholas Marriott
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
Nicholas Marriott
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
Nicholas Marriott
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
Nicholas Marriott
031d4864a9
Rename KEYC_ESCAPE to KEYC_META.
2020-05-15 11:24:30 +01:00
Nicholas Marriott
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
Thomas Adam
6a2f32b4fd
Merge branch 'obsd-master'
2020-04-07 16:01:29 +01:00
nicm
eff881b15a
Do not send mouse events if the program has not requested them.
2020-04-07 13:38:30 +00:00
Thomas Adam
66db12db31
Merge branch 'obsd-master'
2020-04-01 12:01:27 +01:00
nicm
dd2fdcda79
Support mouse in popups.
2020-04-01 09:05:27 +00:00
Thomas Adam
35c4897d8f
Merge branch 'obsd-master'
2020-03-19 16:01:29 +00:00
nicm
de34436d4c
Change input path so it doesn't require a pane.
2020-03-19 14:03:48 +00:00
Thomas Adam
f584fe1b00
Merge branch 'obsd-master'
2020-03-16 08:01:27 +00:00
nicm
d162ff48f3
Send mouse down event immediately rather than waiting for double click
...
to finish which would now mean it was out of order. Reported by Mark
Kelly.
2020-03-16 06:12:42 +00:00
Thomas Adam
8457f54edc
Merge branch 'obsd-master'
2020-01-13 10:01:27 +00:00
nicm
04eee2410d
Treat plausible but invalid keys (like C-BSpace) as literal like any
...
other unrecognised string passed to send-keys. Reported by Anthony
Sottile in GitHub issue 2049.
2020-01-13 07:51:54 +00:00
Thomas Adam
0d3f306c8e
Merge branch 'obsd-master'
2019-11-18 10:01:25 +00:00
nicm
4bc445f080
Keep modifiers on backspace when translating it.
2019-11-18 09:42:09 +00:00
Thomas Adam
518a687886
Merge branch 'obsd-master'
2019-11-14 10:01:29 +00:00
nicm
08b07b1a08
Add an option to set the key sent by backspace for those whose system
...
uses ^H rather than ^?. GitHub issue 1969.
2019-11-14 07:55:01 +00:00