Lines Matching refs:buf
6 func CheckSuspended(buf, fileExists) argument
7 call WaitForAssert({-> assert_match('[$#] $', term_getline(a:buf, '.'))})
16 call term_sendkeys(a:buf, "fg\<CR>\<C-L>")
17 call WaitForAssert({-> assert_equal(' 1 foo', term_getline(a:buf, '.'))})
24 let buf = term_start('/bin/sh')
26 call WaitForAssert({-> assert_match('[$#] $', term_getline(buf, '.'))})
28 call term_sendkeys(buf, v:progpath
34 call WaitForAssert({-> assert_equal(' 1 foo', term_getline(buf, '.'))})
42 call term_sendkeys(buf, suspend_cmd)
43 call CheckSuspended(buf, 0)
47 call term_sendkeys(buf, ":set autowrite\<CR>")
49 call term_sendkeys(buf, ":suspend\<CR>")
51 call CheckSuspended(buf, 1)
54 call term_sendkeys(buf, ":qall!\<CR>")
55 call TermWait(buf)
57 call WaitForAssert({-> assert_match('[$#] $', term_getline(buf, '.'))})
58 call StopShellInTerminal(buf)
60 exe buf . 'bwipe!'
68 let buf = term_start('/bin/sh', #{term_rows: 6})
70 call WaitForAssert({-> assert_match('[$#] $', term_getline(buf, '.'))})
72 call term_sendkeys(buf, v:progpath
81 call WaitForAssert({-> assert_equal(' 1 foo', term_getline(buf, '.'))})
89 call term_sendkeys(buf, suspend_cmd)
90 call CheckSuspended(buf, 0)
93 call term_sendkeys(buf, ":echo g:count\<CR>")
94 call TermWait(buf)
95 call WaitForAssert({-> assert_match('^10', term_getline(buf, 6))})
98 call term_sendkeys(buf, ":qall!\<CR>")
99 call TermWait(buf)
101 call WaitForAssert({-> assert_match('[$#] $', term_getline(buf, '.'))})
102 call StopShellInTerminal(buf)
104 exe buf . 'bwipe!'