Kyle
03377b9552
feat(terminal): include sequence terminator in TermRequest event ( #37152 )
...
Problem:
Terminals should respond with the terminator (either BEL or ST) used in
the query so that clients can reliably parse the responses. The
`TermRequest` autocmd used to handle background color requests in the
terminal does not have access to the original sequence terminator, so it
always uses BEL. #37018
Solution:
Update vterm parsing to include the terminator type, then forward this
data into the emitted `TermRequest` events for OSC/DCS/APC sequences.
Update the foreground/background `TermRequest` callback to use the same
terminator as the original request.
Details:
I didn't add the terminator to the `TermResponse` event. However, I
assume the `TermResponse` event doesn't care about the terminator
because the sequence is already parsed. I also didn't update any of the
functions in `src/nvim/vterm/state.c` that write out responses. It
looked like those all pretty much used ST, and it would be a much larger
set of changes. In that same file, there's also logic for 8 bit ST
sequences, but from what I can tell, 8 bit doesn't really work (see `:h
xterm-8bit`), so I didn't use the 8 bit ST at all.
2025-12-29 16:30:23 -06:00
..
2025-12-15 13:55:15 -05:00
2025-12-15 13:55:15 -05:00
2025-12-29 16:30:23 -06:00
2025-12-15 13:55:15 -05:00
2025-12-15 13:55:15 -05:00
2025-11-10 11:13:56 +08:00
2025-11-28 10:10:31 +08:00
2025-12-20 22:07:27 -05:00
2025-12-07 15:13:31 -05:00
2025-12-08 01:43:02 -05:00
2025-12-05 16:04:24 -05:00
2024-05-15 23:19:26 +02:00
2025-11-19 13:07:32 +00:00
2025-12-15 13:55:15 -05:00
2025-12-15 13:55:15 -05:00
2025-12-15 13:55:15 -05:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-12-06 20:33:02 -05:00
2025-12-06 20:33:02 -05:00
2025-12-09 09:08:09 +08:00
2025-11-10 11:13:56 +08:00
2025-12-06 20:33:02 -05:00
2025-05-03 10:08:53 -07:00
2025-05-03 10:08:53 -07:00
2023-06-25 17:14:28 +02:00
2025-12-09 20:42:12 +08:00
2025-09-07 20:45:22 -07:00
2025-11-30 02:14:28 -08:00
2025-04-27 10:32:25 -07:00
2025-11-16 00:55:28 -05:00
2025-12-06 20:33:02 -05:00
2025-11-10 11:13:56 +08:00
2025-10-13 08:53:21 +00:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-12-16 13:46:04 -05:00
2025-12-15 13:55:15 -05:00
2025-12-06 20:33:02 -05:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-12-26 00:08:12 -05:00
2025-08-02 15:58:11 -07:00
2025-12-15 13:55:15 -05:00
2025-12-15 13:55:15 -05:00
2025-12-20 19:26:44 -05:00
2025-12-15 13:55:15 -05:00
2025-06-14 17:24:36 +02:00
2025-11-15 22:47:38 -05:00
2025-12-15 13:55:15 -05:00
2025-12-09 22:25:47 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-09-28 20:57:59 -07:00
2025-10-04 21:09:13 -07:00
2025-05-27 06:50:20 -07:00
2025-12-29 16:30:23 -06:00
2025-12-15 13:55:15 -05:00
2025-12-28 08:14:45 +08:00
2025-12-25 12:57:59 +02:00
2025-12-20 22:07:27 -05:00
2025-11-10 11:13:56 +08:00
2025-12-15 13:55:15 -05:00
2025-11-10 11:13:56 +08:00
2023-01-01 15:05:13 +01:00
2025-08-11 00:04:30 +00:00
2025-05-20 00:21:30 +00:00
2025-12-06 20:33:02 -05:00
2025-12-15 13:55:15 -05:00
2025-11-10 11:13:56 +08:00
2025-12-22 08:13:20 +08:00
2025-12-20 22:07:27 -05:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-12-06 20:33:02 -05:00
2025-12-21 07:12:38 +08:00
2025-12-16 12:55:32 +08:00
2025-12-06 20:33:02 -05:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-12-15 02:09:36 -05:00
2025-12-15 02:07:51 -05:00
2025-11-13 23:28:34 +00:00
2025-11-12 09:00:27 -08:00
2025-12-21 07:12:38 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-12-06 20:33:02 -05:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-27 07:49:44 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-12-06 20:33:02 -05:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-12-15 13:55:15 -05:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-29 00:22:24 +00:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-28 10:10:31 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-11-10 11:13:56 +08:00
2025-12-16 13:46:04 -05:00
2025-12-28 08:18:48 +08:00
2025-12-12 09:13:15 +08:00
2025-11-10 11:13:56 +08:00
2025-12-16 12:55:32 +08:00
2025-12-15 13:55:15 -05:00