call term_sendkeys(buf, "echo hello > temp.txt\<CR>")
call TermWait(buf, 200)
- call term_sendkeys(buf, "bash -c '../vim --not-a-term -u NONE -c \":q!\" -' < temp.txt\<CR>")
+ call term_sendkeys(buf, "bash -c '../vim --cmd \"set trz=sigwinch notsy\"'
+ \ ' --not-a-term -u NONE -c \":q!\" -' < temp.txt\<CR>")
call TermWait(buf, 200)
" Capture terminal output
endif
" Clean up temp file and exit shell
- call term_sendkeys(buf, "rm -f temp.txt\<CR>")
+ call term_sendkeys(buf, "\<C-U>rm -f temp.txt\<CR>")
call term_sendkeys(buf, "exit\<CR>")
call TermWait(buf, 200)