Lines Matching refs:cmd
163 let cmd = Get_cat_123_cmd()
164 let buf = term_start(cmd, {'term_name': 'foo'})
182 return 'cmd /c "cls && color 2 && echo 123"'
185 return 'cmd /c "cls && cls && color 2 && echo 123"'
194 let cmd = Get_cat_123_cmd()
195 let g:buf = term_start(cmd, {'exit_cb': function('s:Nasty_exit_cb')})
241 let cmd = Get_cat_123_cmd()
242 let buf = term_start(cmd)
270 " Run cmd with UTF-8 codepage to make the type command print the expected
272 let buf = term_start("cmd /K chcp 65001")
320 let cmd = 'cmd /c "type Xtext"'
322 let cmd = "cat Xtext"
324 let buf = term_start(cmd)
428 let cmd = Get_cat_123_cmd()
430 exe 'terminal ++rows=5 ' . cmd
435 call term_start(cmd, {'term_rows': 6})
441 exe 'terminal ++rows=5 ++cols=33 ' . cmd
456 call term_start(cmd, {'term_rows': 6, 'term_cols': 36})
461 exe 'vertical terminal ++cols=20 ' . cmd
466 eval cmd->term_start({'vertical': 1, 'term_cols': 26})
472 exe 'vertical terminal ++rows=6 ++cols=20 ' . cmd
477 call term_start(cmd, {'vertical': 1, 'term_rows': 7, 'term_cols': 27})
482 call assert_fails("call term_start(cmd, {'term_rows': -1})", 'E475:')
483 call assert_fails("call term_start(cmd, {'term_rows': 1001})", 'E475:')
485 call assert_fails("call term_start(cmd, {'term_rows': 10.0})", 'E805:')
505 let cmd = Get_cat_123_cmd()
512 exe 'terminal ++curwin ' . cmd
518 call term_start(cmd, {'curwin': 1})
524 call assert_fails('terminal ++curwin ' . cmd, 'E37:')
526 exe 'terminal! ++curwin ' . cmd
532 call assert_fails("call term_start(cmd, {'curwin': 1})", 'E37:')
544 let cmd = s:python . " test_short_sleep.py"
551 let cmd = $windir . '\system32\timeout.exe 1'
553 let cmd = 'sleep 1'
556 return [cmd, waittime]
562 let [cmd, waittime] = s:get_sleep_cmd()
584 exe 'terminal ++close ' . cmd
589 call term_start(cmd, {'term_finish': 'close'})
595 exe 'terminal ++open ' . cmd
600 call term_start(cmd, {'term_finish': 'open'})
605 exe 'terminal ++hidden ++open ' . cmd
610 call term_start(cmd, {'term_finish': 'open', 'hidden': 1})
615 call assert_fails("call term_start(cmd, {'term_opencmd': 'open'})", 'E475:')
616 call assert_fails("call term_start(cmd, {'term_opencmd': 'split %x'})", 'E475:')
617 call assert_fails("call term_start(cmd, {'term_opencmd': 'split %d and %s'})", 'E475:')
618 call assert_fails("call term_start(cmd, {'term_opencmd': 'split % and %d'})", 'E475:')
620 …call term_start(cmd, {'term_finish': 'open', 'term_opencmd': '4split | buffer %d | let g:result = …
631 let cmd = 'cmd /c cd'
634 let cmd = 'pwd'
637 let buf = term_start(cmd, {'cwd': 'Xdir'})
879 let cmd = Get_cat_123_cmd()
880 let buf = term_start(cmd, {'out_io': 'file', 'out_name': 'Xfile'})
975 let cmd = "cmd /K chcp 65001"
978 let cmd = &shell
983 let buf = term_start(cmd, {'curwin': 1})
988 call assert_equal('cmd', job_info(g:job).cmd[0])
990 call assert_equal(&shell, job_info(g:job).cmd[0])
1051 let [cmd, waittime] = s:get_sleep_cmd()
1056 exe 'term ++close ' . cmd
1068 let cmd = "call term_start('', {'curwin' : 1, 'term_finish' : 'close'})"
1069 call assert_fails(cmd, 'E474:')
1070 let cmd = "call term_start('', {'curwin' : 1, 'term_finish' : 'close'})"
1071 call assert_fails(cmd, 'E474:')
1072 let cmd = "call term_start({}, {'curwin' : 1, 'term_finish' : 'close'})"
1073 call assert_fails(cmd, 'E474:')
1074 let cmd = "call term_start(0, {'curwin' : 1, 'term_finish' : 'close'})"
1075 call assert_fails(cmd, 'E474:')
1076 let cmd = "call term_start('', {'term_name' : []})"
1077 call assert_fails(cmd, 'E730:')
1078 let cmd = "call term_start('', {'term_finish' : 'axby'})"
1079 call assert_fails(cmd, 'E475:')
1080 let cmd = "call term_start('', {'eof_chars' : []})"
1081 call assert_fails(cmd, 'E730:')
1082 let cmd = "call term_start('', {'term_kill' : []})"
1083 call assert_fails(cmd, 'E730:')
1084 let cmd = "call term_start('', {'tty_type' : []})"
1085 call assert_fails(cmd, 'E730:')
1086 let cmd = "call term_start('', {'tty_type' : 'abc'})"
1087 call assert_fails(cmd, 'E475:')
1088 let cmd = "call term_start('', {'term_highlight' : []})"
1089 call assert_fails(cmd, 'E730:')
1091 let cmd = "call term_start('', {'ansi_colors' : 'abc'})"
1092 call assert_fails(cmd, 'E475:')
1093 let cmd = "call term_start('', {'ansi_colors' : [[]]})"
1094 call assert_fails(cmd, 'E730:')
1095 let cmd = "call term_start('', {'ansi_colors' : repeat(['blue'], 18)})"
1097 call assert_fails(cmd, 'E475:')
1099 call assert_fails(cmd, 'E254:')
1369 let buf = RunVimInTerminal('--cmd "set encoding=utf-8" Xcomposing', {})
2042 let cmd = Get_cat_123_cmd()
2043 let buf = term_start(cmd, #{term_finish: 'close', hidden: 1})