Author: Tom <tom@trap.mtview.ca.us>
        Andreas Tille <tille@debian.org>
Description: print_event should flush it's output
Last-Update: Mon, 16 Sep 2024 09:13:11 +0200
Bug-Debian: https://bugs.debian.org/606202

--- a/input.c
+++ b/input.c
@@ -196,6 +196,7 @@ int device_info(int nr, int fd, int verb
                 }
 
                 printf("\n");
+                fflush(stdout);
         }
 
         return 0;
@@ -233,6 +234,7 @@ void print_event(struct input_event *eve
 			(unsigned int)event->code, event->value);
 	}
 	printf("\n");
+        fflush(stdout);
 }
 
 /* ---------------------------------------------------------------------
