diff options
author | erw7 <erw7.github@gmail.com> | 2017-03-31 05:40:37 +0900 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-08-16 09:13:44 +0200 |
commit | 1614e805b33bf159a7af06ed54a0fb5823d8e407 (patch) | |
tree | 0b4224a61b5d2c45519b25c4d6010e6c0a1f6e71 /test/functional/terminal/helpers.lua | |
parent | 3b992f16889b45215ab6f867edaec5201776d579 (diff) | |
download | rneovim-1614e805b33bf159a7af06ed54a0fb5823d8e407.tar.gz rneovim-1614e805b33bf159a7af06ed54a0fb5823d8e407.tar.bz2 rneovim-1614e805b33bf159a7af06ed54a0fb5823d8e407.zip |
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.
Diffstat (limited to 'test/functional/terminal/helpers.lua')
-rw-r--r-- | test/functional/terminal/helpers.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/functional/terminal/helpers.lua b/test/functional/terminal/helpers.lua index 29381ab4f0..c67640f048 100644 --- a/test/functional/terminal/helpers.lua +++ b/test/functional/terminal/helpers.lua @@ -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 } |