Mercurial > vim
comparison src/testdir/test_termcodes.vim @ 21626:ebceee9391cf v8.2.1363
patch 8.2.1363: test trying to run terminal when it is not supported
Commit: https://github.com/vim/vim/commit/e46a2ed0d8471b93a8b9edd98280d5de4a02c623
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 4 21:04:57 2020 +0200
patch 8.2.1363: test trying to run terminal when it is not supported
Problem: Test trying to run terminal when it is not supported.
Solution: Check if Vim can be run in a terminal.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 04 Aug 2020 21:15:03 +0200 |
parents | 1d75baa22d9a |
children | 08940efa6b4e |
comparison
equal
deleted
inserted
replaced
21625:0ae62405d6fb | 21626:ebceee9391cf |
---|---|
6 CheckUnix | 6 CheckUnix |
7 | 7 |
8 source shared.vim | 8 source shared.vim |
9 source mouse.vim | 9 source mouse.vim |
10 source view_util.vim | 10 source view_util.vim |
11 source term_util.vim | |
11 | 12 |
12 func Test_term_mouse_left_click() | 13 func Test_term_mouse_left_click() |
13 new | 14 new |
14 let save_mouse = &mouse | 15 let save_mouse = &mouse |
15 let save_term = &term | 16 let save_term = &term |
1893 | 1894 |
1894 set ttybuiltin | 1895 set ttybuiltin |
1895 endfunc | 1896 endfunc |
1896 | 1897 |
1897 func Test_list_builtin_terminals() | 1898 func Test_list_builtin_terminals() |
1899 CheckRunVimInTerminal | |
1898 let buf = RunVimInTerminal('', #{rows: 14}) | 1900 let buf = RunVimInTerminal('', #{rows: 14}) |
1899 call term_sendkeys(buf, ":set cmdheight=3\<CR>") | 1901 call term_sendkeys(buf, ":set cmdheight=3\<CR>") |
1900 call term_wait(buf, 100) | 1902 call term_wait(buf, 100) |
1901 call term_sendkeys(buf, ":set term=xxx\<CR>") | 1903 call term_sendkeys(buf, ":set term=xxx\<CR>") |
1902 call term_wait(buf, 100) | 1904 call term_wait(buf, 100) |