source check.vim
source term_util.vim
+source shared.vim
func CheckSuspended(buf, fileExists)
call WaitForAssert({-> assert_match('[$#] $', term_getline(a:buf, '.'))})
CheckFeature terminal
CheckExecutable /bin/sh
+ call WaitForResponses()
+
let buf = term_start('/bin/sh')
" Wait for shell prompt.
call WaitForAssert({-> assert_match('[$#] $', term_getline(buf, '.'))})
CheckFeature terminal
CheckExecutable /bin/sh
+ call WaitForResponses()
+
let buf = term_start('/bin/sh', #{term_rows: 6})
" Wait for shell prompt.
call WaitForAssert({-> assert_match('[$#] $', term_getline(buf, '.'))})