Introduction
Introduction Statistics Contact Development Disclaimer Help
tfflush stdout after printing on tty mode - spoon - dwm status utility (2f30 fo…
git clone git://src.adamsgaard.dk/spoon
Log
Files
Refs
LICENSE
---
commit 0cd95a66fd4f86341168740f3402bc07690cbe3f
parent f7217172b18eca79e7e16e053edfdd113d0a2851
Author: Lucas Gabriel Vuotto <[email protected]>
Date: Tue, 22 May 2018 15:54:08 -0300
fflush stdout after printing on tty mode
This allows spoon to work smoothly in tmux status line or when feeding
pipes.
Signed-off-by: Lucas Gabriel Vuotto <[email protected]>
Diffstat:
M spoon.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
diff --git a/spoon.c b/spoon.c
t@@ -91,6 +91,7 @@ ttyloop(void)
for (;;) {
entcat(line, sizeof(line));
puts(line);
+ fflush(stdout);
if (single)
break;
sleep(delay);
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.