twin: scroll - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit bea7c49aad36d539bf950d30643fbf87d0964269
(DIR) parent be856b940fb5abb22abe649256bb4283c07c3d85
(HTM) Author: Eoghan Sherry <ejsherry@gmail.com>
Date: Fri, 19 Mar 2010 13:10:14 -0700
win: scroll
R=rsc
CC=codebot
http://codereview.appspot.com/643041
Diffstat:
M src/cmd/9term/win.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/src/cmd/9term/win.c b/src/cmd/9term/win.c
t@@ -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);