commit bea7c49aad36d539bf950d30643fbf87d0964269 from: Eoghan Sherry via: Russ Cox date: Fri Mar 19 20:10:14 2010 UTC win: scroll R=rsc CC=codebot http://codereview.appspot.com/643041 commit - be856b940fb5abb22abe649256bb4283c07c3d85 commit + bea7c49aad36d539bf950d30643fbf87d0964269 blob - 926d806bf2d7cb3a926114c8e09754fe95ad8a5c blob + bed7f2aae93aaf0f1c69873148f221b1e60484f8 --- src/cmd/9term/win.c +++ src/cmd/9term/win.c @@ -535,6 +535,9 @@ stdoutproc(void *v) } if(fswrite(dfd, buf, n) != n) error("stdout writing body"); + /* Make sure acme scrolls to the end of the above write. */ + if(fswrite(dfd, nil, 0) != 0) + error("stdout flushing body"); q.p += nrunes(buf, n); qunlock(&q.lk); memmove(buf, hold, npart);