aboutsummaryrefslogtreecommitdiff
path: root/test/unit/vterm_spec.lua
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2025-01-15 11:07:51 -0600
committerGregory Anders <greg@gpanders.com>2025-01-16 16:41:08 -0600
commit6f0bde11ccd82d257fcda25ecad26227eba3335e (patch)
tree846d1ac87aa3ef423f441414934a9a4ba50f45f8 /test/unit/vterm_spec.lua
parentbbf36ef8ef86534e317e4e0153730a40ae4c936e (diff)
downloadrneovim-6f0bde11ccd82d257fcda25ecad26227eba3335e.tar.gz
rneovim-6f0bde11ccd82d257fcda25ecad26227eba3335e.tar.bz2
rneovim-6f0bde11ccd82d257fcda25ecad26227eba3335e.zip
feat(terminal): add support for kitty keyboard protocol
This commit adds basic support for the kitty keyboard protocol to Neovim's builtin terminal. For now only the first mode ("Disambiguate escape codes") is supported.
Diffstat (limited to 'test/unit/vterm_spec.lua')
-rw-r--r--test/unit/vterm_spec.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/vterm_spec.lua b/test/unit/vterm_spec.lua
index 6ff3c18d2a..9f70187fad 100644
--- a/test/unit/vterm_spec.lua
+++ b/test/unit/vterm_spec.lua
@@ -2324,6 +2324,9 @@ putglyph 1f3f4,200d,2620,fe0f 2 0,4]])
local vt = init()
local state = wantstate(vt)
+ -- Disambiguate escape codes
+ push('\x1b[>1u', vt)
+
-- Unmodified ASCII
inchar(41, vt)
expect('output 29')
@@ -2478,6 +2481,8 @@ putglyph 1f3f4,200d,2620,fe0f 2 0,4]])
expect_output('\x1b[I')
vterm.vterm_state_focus_out(state)
expect_output('\x1b[O')
+
+ push('\x1b[<u', vt)
end)
itp('26state_query', function()