report_term_error(char *error_msg, char_u *term)
{
struct builtin_term *termp;
+ int i;
mch_errmsg("\r\n");
if (error_msg != NULL)
mch_errmsg("\r\n");
}
}
+ // Output extra 'cmdheight' line breaks to avoid that the following error
+ // message overwrites the last terminal name.
+ for (i = 1; i < p_ch; ++i)
+ mch_errmsg("\r\n");
}
static void
source shared.vim
source mouse.vim
+source view_util.vim
func Test_term_mouse_left_click()
new
set ttybuiltin
endfunc
+func Test_list_builtin_terminals()
+ let buf = RunVimInTerminal('', #{rows: 14})
+ call term_sendkeys(buf, ":set cmdheight=3\<CR>")
+ call term_wait(buf, 100)
+ call term_sendkeys(buf, ":set term=xxx\<CR>")
+ call term_wait(buf, 100)
+ call assert_match('builtin_dumb', term_getline(buf, 11))
+ call assert_match('Not found in termcap', term_getline(buf, 12))
+ call StopVimInTerminal(buf)
+endfunc
+
func GetEscCodeCSI27(key, modifier)
let key = printf("%d", char2nr(a:key))
let mod = printf("%d", a:modifier)