mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 10:31:48 +00:00
feat(term): trigger TermRequest for APC (#32407)
Co-authored-by: Gregory Anders <greg@gpanders.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
@@ -1004,8 +1004,8 @@ TermClose When a |terminal| job ends.
|
||||
Sets these |v:event| keys:
|
||||
status
|
||||
*TermRequest*
|
||||
TermRequest When a |:terminal| child process emits an OSC
|
||||
or DCS sequence. Sets |v:termrequest|. The
|
||||
TermRequest When a |:terminal| child process emits an OSC,
|
||||
DCS or APC sequence. Sets |v:termrequest|. The
|
||||
|event-data| is the request string.
|
||||
*TermResponse*
|
||||
TermResponse When Nvim receives an OSC or DCS response from
|
||||
|
||||
@@ -372,6 +372,8 @@ TERMINAL
|
||||
• The |terminal| has experimental support for the Kitty keyboard protocol
|
||||
(sometimes called "CSI u" key encoding). Only the "Disambiguate escape
|
||||
codes" mode is currently supported.
|
||||
• The |terminal| emits a |TermRequest| autocommand event when the child process
|
||||
emits an APC control sequence.
|
||||
|
||||
TREESITTER
|
||||
|
||||
|
||||
@@ -663,7 +663,7 @@ v:t_string Value of |String| type. Read-only. See: |type()|
|
||||
|
||||
*v:termrequest* *termrequest-variable*
|
||||
v:termrequest
|
||||
The value of the most recent OSC or DCS control sequence
|
||||
The value of the most recent OSC, DCS or APC control sequence
|
||||
sent from a process running in the embedded |terminal|.
|
||||
This can be read in a |TermRequest| event handler to respond
|
||||
to queries from embedded applications.
|
||||
|
||||
2
runtime/lua/vim/_meta/vvars.lua
generated
2
runtime/lua/vim/_meta/vvars.lua
generated
@@ -700,7 +700,7 @@ vim.v.t_number = ...
|
||||
--- @type integer
|
||||
vim.v.t_string = ...
|
||||
|
||||
--- The value of the most recent OSC or DCS control sequence
|
||||
--- The value of the most recent OSC, DCS or APC control sequence
|
||||
--- sent from a process running in the embedded `terminal`.
|
||||
--- This can be read in a `TermRequest` event handler to respond
|
||||
--- to queries from embedded applications.
|
||||
|
||||
Reference in New Issue
Block a user