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).
This commit is contained in:
Gregory Anders
2025-07-09 17:30:34 -05:00
parent 977e91b424
commit 112092271b
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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([[

View File

@@ -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)