mirror of
https://github.com/vim/vim.git
synced 2025-10-25 09:04:09 -04:00
patch 9.1.1703: Cannot react to terminal OSC responses
Problem: Cannot react to terminal OSC responses
Solution: Allow TermResponseAll to be triggered by Terminal OSC
responses (Foxe Chen)
fixes: #14995
closes: #17975
Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
7f380259cf
commit
1f51bbc3b9
@@ -1290,6 +1290,19 @@ typedef struct
|
||||
#endif
|
||||
} tasave_T;
|
||||
|
||||
// Holds state for current OSC response.
|
||||
typedef struct
|
||||
{
|
||||
int processing; // If we are in the middle of an OSC response
|
||||
char_u start_char; // First char in the OSC response
|
||||
garray_T buf; // Buffer holding the OSC response, to be
|
||||
// placed in the "v:termosc" vim var.
|
||||
|
||||
struct timeval start; // Set at the beginning of an OSC response.
|
||||
// Used to timeout after a set amount of
|
||||
// time.
|
||||
} oscstate_T;
|
||||
|
||||
/*
|
||||
* Used for conversion of terminal I/O and script files.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user