commit 112092271be5993e8050665b066a0e924463b2a7
parent 977e91b424f4cf6b9eacfa21d491d312f585dd6f
Author: Gregory Anders <greg@gpanders.com>
Date: Wed, 9 Jul 2025 17:30:34 -0500
refactor(vterm): update vterm DA1 response
Update vterm's DA1 response to the more modern version that indicates
level 1 support for VT100 emulation (61) as well as ANSI color support
(22).
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/nvim/vterm/state.c b/src/nvim/vterm/state.c
@@ -20,7 +20,7 @@
// Primary Device Attributes (DA1) response.
// We make this a global (extern) variable so that we can override it with FFI
// in tests.
-char vterm_primary_device_attr[] = "1;2;52";
+char vterm_primary_device_attr[] = "61;22;52";
// Some convenient wrappers to make callback functions easier
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua
@@ -3539,7 +3539,7 @@ describe('TUI', function()
extern char vterm_primary_device_attr[]
]]
- ffi.copy(ffi.C.vterm_primary_device_attr, '1;2')
+ ffi.copy(ffi.C.vterm_primary_device_attr, '61;22')
end)
exec_lua([[
diff --git a/test/unit/vterm_spec.lua b/test/unit/vterm_spec.lua
@@ -2659,7 +2659,7 @@ putglyph 1f3f4,200d,2620,fe0f 2 0,4]])
-- DA
reset(state, nil)
push('\x1b[c', vt)
- expect_output('\x1b[?1;2;52c')
+ expect_output('\x1b[?61;22;52c')
-- XTVERSION
reset(state, nil)