summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--xkbcat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xkbcat.c b/xkbcat.c
index 7d7e708..0143a3d 100644
--- a/xkbcat.c
+++ b/xkbcat.c
@@ -92,6 +92,9 @@ int main(int argc, char * argv[]) {
printf("\n");
}
}
+ // Make sure the data is sent right away if it's being written to a
+ // pipe.
+ fflush(stdout);
{ // Swap buffers
KbBuffer * temp = oldKeys;