aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/helpers.lua
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2017-03-28 18:07:58 +0900
committerJustin M. Keyes <justinkz@gmail.com>2017-08-16 09:13:43 +0200
commit4b1f21de75f9981007d80aca8355239e8615d6bd (patch)
treeb0322a5b61eacbd6207603b346fca2f7d957458a /test/functional/terminal/helpers.lua
parenta79785675564a4c1f02f9aa54249fc6000187c0d (diff)
downloadrneovim-4b1f21de75f9981007d80aca8355239e8615d6bd.tar.gz
rneovim-4b1f21de75f9981007d80aca8355239e8615d6bd.tar.bz2
rneovim-4b1f21de75f9981007d80aca8355239e8615d6bd.zip
win: support :terminal
Diffstat (limited to 'test/functional/terminal/helpers.lua')
-rw-r--r--test/functional/terminal/helpers.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/functional/terminal/helpers.lua b/test/functional/terminal/helpers.lua
index 3b04d17705..29381ab4f0 100644
--- a/test/functional/terminal/helpers.lua
+++ b/test/functional/terminal/helpers.lua
@@ -30,10 +30,14 @@ 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()
+ helpers.sleep(1000)
+ hide_cursor()
+ show_cursor()
+end
local default_command = '["'..nvim_dir..'/tty-test'..'"]'
-
local function screen_setup(extra_rows, command, cols)
extra_rows = extra_rows and extra_rows or 0
command = command and command or default_command
@@ -112,5 +116,6 @@ return {
clear_attrs = clear_attrs,
enable_mouse = enable_mouse,
disable_mouse = disable_mouse,
+ wait_sigwinch = wait_sigwinch,
screen_setup = screen_setup
}