Compare commits

...

2 Commits

Author SHA1 Message Date
Bram Moolenaar
42b23fad1d patch 8.0.1454: when in silent mode too much output is buffered
Problem:    When in silent mode too much output is buffered.
Solution:   Use line buffering instead of fully buffered. (Brian M. Carlson,
            closes #2537)
2018-02-03 14:46:45 +01:00
Bram Moolenaar
218101442e patch 8.0.1453: terminal test fails on some slow terminals
Problem:    Terminal test fails on some slow terminals.
Solution:   Increase timeout to 10 seconds.
2018-02-02 18:30:36 +01:00
3 changed files with 13 additions and 2 deletions

View File

@@ -359,6 +359,13 @@ main
*/
check_tty(&params);
#ifdef _IOLBF
/* Ensure output works usefully without a tty: buffer lines instead of
* fully buffered. */
if (silent_mode)
setvbuf(stdout, NULL, _IOLBF, 0);
#endif
/* This message comes before term inits, but after setting "silent_mode"
* when the input is not a tty. */
if (GARGCOUNT > 1 && !silent_mode)
@@ -2532,7 +2539,7 @@ scripterror:
/*
* Print a warning if stdout is not a terminal.
* When starting in Ex mode and commands come from a file, set Silent mode.
* When starting in Ex mode and commands come from a file, set silent_mode.
*/
static void
check_tty(mparm_T *parmp)

View File

@@ -522,7 +522,7 @@ func Test_terminal_noblock()
" On MS-Windows there is an extra empty line below "done". Find "done" in
" the last-but-one or the last-but-two line.
let lnum = term_getsize(buf)[0] - 1
call WaitFor({-> term_getline(buf, lnum) =~ "done" || term_getline(buf, lnum - 1) =~ "done"}, 3000)
call WaitFor({-> term_getline(buf, lnum) =~ "done" || term_getline(buf, lnum - 1) =~ "done"}, 10000)
let line = term_getline(buf, lnum)
if line !~ 'done'
let line = term_getline(buf, lnum - 1)

View File

@@ -771,6 +771,10 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1454,
/**/
1453,
/**/
1452,
/**/