mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
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:
@@ -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
|
||||
|
||||
|
@@ -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([[
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user