projects
/
st.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cb6793
)
simplify flushing
author
Matthias-Christian Ott
<ott@enolink.de>
Sun, 15 Jun 2008 15:31:24 +0000
(17:31 +0200)
committer
Matthias-Christian Ott
<ott@enolink.de>
Sun, 15 Jun 2008 15:31:24 +0000
(17:31 +0200)
std.c
patch
|
blob
|
history
diff --git
a/std.c
b/std.c
index
b0142fe
..
84048e4
100644
(file)
--- a/
std.c
+++ b/
std.c
@@
-279,7
+279,7
@@
main(int argc, char *argv[]) {
r = select(ptm + 1, &rfds, NULL, NULL, NULL);
if(r == -1)
eprintn("error, cannot select");
- if(FD_ISSET(ptm, &rfds))
+ if(FD_ISSET(ptm, &rfds))
{
do {
c = getch();
switch(c) {
@@
-289,8
+289,9
@@
main(int argc, char *argv[]) {
default:
putchar(c);
}
- fflush(stdout);
} while(rbuf.i < rbuf.n);
+ fflush(stdout);
+ }
}
return 0;
}