diff options
author | Eoghan Sherry <ejsherry@gmail.com> | 2010-03-19 13:10:14 -0700 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2010-03-19 13:10:14 -0700 |
commit | bea7c49aad36d539bf950d30643fbf87d0964269 (patch) | |
tree | 5805d6fd4ea618b0df0ae78c662d776956d6e647 /src/cmd/9term | |
parent | be856b940fb5abb22abe649256bb4283c07c3d85 (diff) | |
download | plan9port-bea7c49aad36d539bf950d30643fbf87d0964269.tar.gz plan9port-bea7c49aad36d539bf950d30643fbf87d0964269.tar.bz2 plan9port-bea7c49aad36d539bf950d30643fbf87d0964269.zip |
win: scroll
R=rsc
CC=codebot
http://codereview.appspot.com/643041
Diffstat (limited to 'src/cmd/9term')
-rw-r--r-- | src/cmd/9term/win.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/9term/win.c b/src/cmd/9term/win.c index 926d806b..bed7f2aa 100644 --- a/src/cmd/9term/win.c +++ b/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); |