diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2022-04-25 20:49:45 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 20:49:45 -0600 |
commit | 5d159a7faad913852c65c81dcc976cf4be902fc1 (patch) | |
tree | 62036e25637bc65eca683b170375cffdb1cc9b02 /test/functional/core/main_spec.lua | |
parent | d7a731595752244380090dfbe776b8c1334b93cb (diff) | |
download | rneovim-5d159a7faad913852c65c81dcc976cf4be902fc1.tar.gz rneovim-5d159a7faad913852c65c81dcc976cf4be902fc1.tar.bz2 rneovim-5d159a7faad913852c65c81dcc976cf4be902fc1.zip |
feat(tui): query terminal for CSI u support (#18181)
On startup query the terminal for CSI u support and enable it using
the escape sequence from kitty's progressive enhancement protocol [1].
[1]: https://sw.kovidgoyal.net/kitty/keyboard-protocol/
Diffstat (limited to 'test/functional/core/main_spec.lua')
-rw-r--r-- | test/functional/core/main_spec.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/functional/core/main_spec.lua b/test/functional/core/main_spec.lua index 37a9f0b836..f6fb859ccc 100644 --- a/test/functional/core/main_spec.lua +++ b/test/functional/core/main_spec.lua @@ -52,11 +52,15 @@ describe('Command-line option', function() if helpers.pending_win32(pending) then return end local screen = Screen.new(40, 8) screen:attach() - funcs.termopen({ + local args = { nvim_prog_abs(), '-u', 'NONE', '-i', 'NONE', - '--cmd', 'set noswapfile shortmess+=IFW fileformats=unix', - '-s', '-' - }) + '--cmd', 'set noswapfile shortmess+=IFW fileformats=unix', + '-s', '-' + } + + -- Need to explicitly pipe to stdin so that the embedded Nvim instance doesn't try to read + -- data from the terminal #18181 + funcs.termopen(string.format([[echo "" | %s]], table.concat(args, " "))) screen:expect([[ ^ | {1:~ }| |