diff options
author | June McEnroe <june@causal.agency> | 2020-05-21 14:06:18 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-05-21 14:06:18 -0400 |
commit | 08a9f9fcfdb2d34e9d760177da566b6294c68ca4 (patch) | |
tree | 32689952cc80effcbdd802ce52b0f92821ed3b99 /scoop.c | |
parent | Do not sort results in scoop by default (diff) | |
download | litterbox-08a9f9fcfdb2d34e9d760177da566b6294c68ca4.tar.gz litterbox-08a9f9fcfdb2d34e9d760177da566b6294c68ca4.zip |
Explicitly set stdout line buffered when paging
Diffstat (limited to '')
-rw-r--r-- | scoop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scoop.c b/scoop.c index 3ab6e5d..2906ddd 100644 --- a/scoop.c +++ b/scoop.c @@ -514,6 +514,7 @@ int main(int argc, char *argv[]) { dup2(rw[1], STDOUT_FILENO); close(rw[0]); close(rw[1]); + setlinebuf(stdout); } int result; |