comparison src/testdir/test_terminal.vim @ 12309:e1f44e4afe67 v8.0.1034

patch 8.0.1034: sending buffer lines to terminal doesn't work on MS-Windows commit https://github.com/vim/vim/commit/3346cc4ffb459ecddb97a8c19bcc5834afa4dead Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 2 14:54:21 2017 +0200 patch 8.0.1034: sending buffer lines to terminal doesn't work on MS-Windows Problem: Sending buffer lines to terminal doesn't work on MS-Windows. Solution: Send CTRL-D to mark the end of the text. (Yasuhiro Matsumoto, closes #2043) Add the "eof_chars" option.
author Christian Brabandt <cb@256bit.org>
date Sat, 02 Sep 2017 15:00:04 +0200
parents e4aa68825575
children 44f3c9b7eec4
comparison
equal deleted inserted replaced
12308:30acf035d5c2 12309:e1f44e4afe67
487 unlet g:lnum 487 unlet g:lnum
488 bwipe 488 bwipe
489 endfunc 489 endfunc
490 490
491 func Test_terminal_write_stdin() 491 func Test_terminal_write_stdin()
492 " Todo: make this work on all systems. 492 if !executable('wc')
493 if !has('unix') 493 call ch_log('Test_terminal_write_stdin() is skipped because system doesn''t have wc command')
494 return 494 return
495 endif 495 endif
496 new 496 new
497 call setline(1, ['one', 'two', 'three']) 497 call setline(1, ['one', 'two', 'three'])
498 %term wc 498 %term wc
499 call WaitFor('getline(1) != ""') 499 call WaitFor('getline(1) != ""')
500 let nrs = split(getline(1)) 500 let nrs = split(getline('$'))
501 call assert_equal(['3', '3', '14'], nrs) 501 call assert_equal(['3', '3', '14'], nrs)
502 bwipe 502 bwipe
503 503
504 call setline(1, ['one', 'two', 'three', 'four']) 504 call setline(1, ['one', 'two', 'three', 'four'])
505 2,3term wc 505 2,3term wc
506 call WaitFor('getline(1) != ""') 506 call WaitFor('getline(1) != ""')
507 let nrs = split(getline(1)) 507 let nrs = split(getline('$'))
508 call assert_equal(['2', '2', '10'], nrs) 508 call assert_equal(['2', '2', '10'], nrs)
509 bwipe 509 bwipe
510 510
511 bwipe! 511 bwipe!
512 endfunc 512 endfunc