summary refs log tree commit diff
path: root/scoop.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-05-21 14:06:18 -0400
committerJune McEnroe <june@causal.agency>2020-05-21 14:06:18 -0400
commit08a9f9fcfdb2d34e9d760177da566b6294c68ca4 (patch)
tree32689952cc80effcbdd802ce52b0f92821ed3b99 /scoop.c
parentDo not sort results in scoop by default (diff)
downloadlitterbox-08a9f9fcfdb2d34e9d760177da566b6294c68ca4.tar.gz
litterbox-08a9f9fcfdb2d34e9d760177da566b6294c68ca4.zip
Explicitly set stdout line buffered when paging
Diffstat (limited to '')
-rw-r--r--scoop.c1
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;