mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
win/test: tty-test: print screen size explicitly with CTRL-Q
tty-test.exe causes abnormal termination with low repeatability, try changing it so as not to use SIGWINCH.
This commit is contained in:
@@ -30,10 +30,9 @@ local function clear_attrs() feed_termcode('[0;10m') end
|
||||
-- mouse
|
||||
local function enable_mouse() feed_termcode('[?1002h') end
|
||||
local function disable_mouse() feed_termcode('[?1002l') end
|
||||
local function wait_sigwinch()
|
||||
local function print_screen_size()
|
||||
helpers.sleep(1000)
|
||||
hide_cursor()
|
||||
show_cursor()
|
||||
nvim('command', 'call jobsend(b:terminal_job_id, "\\<C-q>")')
|
||||
end
|
||||
|
||||
local default_command = '["'..nvim_dir..'/tty-test'..'"]'
|
||||
@@ -116,6 +115,6 @@ return {
|
||||
clear_attrs = clear_attrs,
|
||||
enable_mouse = enable_mouse,
|
||||
disable_mouse = disable_mouse,
|
||||
wait_sigwinch = wait_sigwinch,
|
||||
print_screen_size = print_screen_size,
|
||||
screen_setup = screen_setup
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user