nicm
cfb906a0ce
Increase the escape delay when waiting for an RGB response no matter
...
when it is triggered (they can also be sent on resize). GitHub issue
4569.
2025-09-01 07:58:09 +00:00
nicm
6378c87d15
Only accept DA and DA2 when they end in 'c', stops them being confused
...
with theme responses.. GitHub issue 4561.
2025-07-19 19:20:10 +00:00
nicm
e6bac234db
Increase delay for foreground and background queries as well as device
...
attributes, GitHub issue 4541.
2025-07-13 06:32:34 +00:00
nicm
d858ad1179
Detect support for OSC 52 using the device attributes report. Some
...
terminals are using this to indicate that they support copying to the
clipboard with XTerm's OSC 52 sequence. From James Holderness in GitHub
issue 4539.
2025-06-24 10:57:35 +00:00
nicm
ef923d28ff
Do not try to trigger theme changed if session is NULL.
2025-03-30 22:01:55 +00:00
nicm
f41dc91357
Only copy the key string not two bytes extra, found by David Mandelberg.
2025-03-28 17:15:25 +00:00
nicm
817b621d20
If there is an active query, set escape time temporarily to a higher
...
value (the old default - 500). Some Windows terminals are very slow to
respond, or the network may be slow. From github at jyn dot dev.
2025-03-17 20:43:29 +00:00
nicm
eaf70c955b
Add mode 2031 support to automatically report dark or light theme. tmux
...
will guess the theme from the background colour on terminals which do
not themselves support the escape sequence. Written by Jonathan
Slenders, GitHub issue 4353.
2025-03-04 08:45:04 +00:00
nicm
21f7db4c4d
Do not allow meta prefix on paste start and end sequences, GitHub issue 4387.
2025-02-26 08:55:27 +00:00
nicm
2a5eba7899
Check backspace against VERASE earlier before it is translated to an
...
internal key and do not go through the mapping on output. Fixes problems
reported by Ben Price in GitHub issue 4284 and by tb@.
2025-01-02 10:34:45 +00:00
nicm
6d792e4123
Fix backspace option for new key format, GitHub issue 4284.
2024-12-04 19:11:15 +00:00
nicm
72cd0eac29
Add extended keys flag for foot terminal.
2024-11-28 08:49:14 +00:00
nicm
34775fc235
Do not translate BSpace as Unicode, GitHub issue 4156.
2024-10-04 14:55:17 +00:00
nicm
780a87be9a
Improve fix for shifted keys so it works for all the keys it should,
...
Stanislav Kljuhhin in GitHub issue 4146.
2024-10-03 05:41:59 +00:00
nicm
17bab32794
Change pasting to bypass the output key processing entirely and write
...
what was originally received. Fixes problems with pasted text being
interpreted as extended keys reported by Mark Kelly.
2024-10-01 06:15:47 +00:00
nicm
89adec0ca5
On some Windows terminals, if TIOCWINSZ does not return xpixel and
...
ypixel (they are zero), if this is the case then try the query escape
sequences. From Dmitry Galchinsky in GitHub issue 4099.
2024-09-30 08:10:20 +00:00
nicm
31b6c9356c
C-h should not be treated specially and represented internally as \b but
...
as C-h like the other Ctrl keys. Backspace is already handled separately
if it VERASE.
2024-08-26 07:45:05 +00:00
nicm
c7e61a01e5
Revamp extended keys support to more closely match xterm and support
...
mode 2 as well as mode 1. From Stanislav Kljuhhin (GitHub issue 4038).
This changes tmux to always request mode 2 from parent terminal, change
to an unambiguous internal representation of keys, and adds an option
(extended-keys-format) to control the format similar to the xterm(1)
formatOtherKeys resource.
2024-08-21 04:17:09 +00:00
nicm
937ba1d8dd
Both terminators \007 and \033\\ leave the index pointing to the final
...
character of the terminator, so correct the size calculation to always
add one. GitHub issue 4082.
2024-08-19 08:29:16 +00:00
nicm
aa1353947e
UTF-8 keys now contain the internal representation and not the Unicode
...
codepoint, so convert extended keys properly. From Stanislav Kljuhhin.
2024-07-12 11:21:18 +00:00
nicm
093b5a5518
Add a way (refresh-client -r) for control mode clients to provide OSC 10
...
and 11 responses to tmux so they can set the default foreground and
background colours, from George Nachman in GitHub issue 4014.
2024-06-24 08:30:50 +00:00
nicm
6f0254e6a8
Look for feature code 21 for DECSLRM and 28 for DECFRA in the device
...
attributes and also accept level 1 (there is no hardware with this but
some emulators may use it). Pointed out by James Holderness.
2024-03-21 11:47:55 +00:00
nicm
c02bc4dbe9
On second thoughts, do check DA2 for DECFRA and DECSLRM since that will
...
catch terminals that say they are VT520 even if we can't use DA1
(because of VTE).
2023-09-08 07:05:06 +00:00
nicm
4872811ba7
Use DECSLRM and DECFRA only at level 4 rather than checking the terminal
...
id.
2023-09-08 06:52:31 +00:00
nicm
9653a52a6a
Use DECSLRM and DECFRA on terminals pretending to be VT520 or VT525 as
...
well as VT420.
2023-09-07 10:21:46 +00:00
nicm
c99f9e92e0
Accept 65 for VT525 as well.
2023-09-07 07:19:21 +00:00
nicm
c767d62329
Request terminal colours again on SIGWINCH but at most once every 30
...
seconds, GitHub issue 3582.
2023-09-02 20:03:10 +00:00
nicm
4e57894e85
Get rid of some warnings with GCC 10, from Thomas Klausner.
2023-06-30 13:19:32 +00:00
nicm
280fe77edd
Discard mouse sequences that have the right form but actually are
...
invalid (for example have column zero rather than one).
2023-04-17 17:57:35 +00:00
nicm
b41892622d
Fix behaviour with \007 (used the wrong tree for last change).
2023-01-09 14:12:41 +00:00
nicm
c0031f8b85
Accept \007 as terminator to OSC 10 or 11.
2023-01-09 07:57:14 +00:00
nicm
a41a927441
Query the client terminal for foreground and background colours and if
...
OSC 10 or 11 is received but no colour has been set inside tmux, return
the colour from the first attached client (probably most people will
have all light or or all dark terminals).
2023-01-03 11:43:24 +00:00
nicm
20da167377
Tweak previous to set and log the feature instead of just setting the
...
flag.
2022-11-11 08:44:11 +00:00
nicm
fe475bd856
Parse primary device attributes as well as secondary and add a SIXEL
...
flag (not used yet), from Anindya Mukherjee.
2022-11-11 08:37:55 +00:00
nicm
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
nicm
2d08235987
Add modified Tab key sequences, from Aaron Jensen, GitHub issue 3368.
2022-11-01 09:54:13 +00:00
nicm
86dfbda0e4
Process modifiers as bits rather than using a switch, from Koichi Murase.
2022-07-19 06:51:31 +00:00
nicm
616bde08ac
kf* terminfo capabilities are poorly defined and rxvt uses them in a
...
different way from xterm, so add a feature flag for rxvt to make tmux
ignore the capabilities and instead rely on its builtin definitions.
2022-06-14 07:29:00 +00:00
nicm
201a8d8e7e
If escape-time is 0, force to 1 instead - not waiting at all is asking
...
for problems on some platforms.
2022-06-01 15:43:22 +00:00
nicm
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
nicm
ad9b805983
Add argument to refresh-client -l to forward clipboard to a pane. GitHub
...
issue 3068.
2022-03-08 12:01:19 +00:00
nicm
0027ee13a0
Support more mouse buttons when the terminal sends them, GitHub issue
...
3055.
2022-02-16 18:55:05 +00:00
nicm
f85208602d
Do not create a buffer from an OSC 52 response if we have not sent a
...
query.
2022-02-15 13:03:02 +00:00
nicm
289ac55ebd
Correctly adjust the end pointer for a two character terminator before
...
decoding OSC 52 response, from Daniel Ekloef in GitHub issue 2942.
2021-10-21 08:36:51 +00:00
nicm
13a0da205b
Break message type stuff out into its own header.
2021-08-13 07:37:58 +00:00
nicm
2bb0b9d6c5
Change focus to be driven by events rather than walking all panes at end
...
of event loop, this way the ordering of in and out can be enforced.
GitHub issue 2808.
2021-08-13 06:52:51 +00:00
nicm
19812b2d29
Add client focus hooks.
2021-08-06 09:19:02 +00:00
nicm
e5106bfb96
Add another couple of keys needed for extended keys, GitHub issue 2658.
...
Handle modifier 9 as Meta, GitHub issue 2647.
2021-06-10 07:21:09 +00:00
nicm
bbb3509bc5
Change how extended ctrl keys are processed to fix C-S-Tab and C-;.
2021-04-13 12:26:34 +00:00
nicm
715835510b
Handle C-Tab correctly with extended keys, GitHub issue 2642.
2021-04-13 05:23:34 +00:00