fflush for xev

Jeremy C. Reed reed at reedmedia.net
Mon Dec 18 20:17:58 PST 2006


I noticed I didn't get immediate feedback from xev when piping the output.

I didn't find a maintainer for app/xev/

If nobody objects, I will go ahead and commit the following change in a 
couple days.

 --- xev.c.orig	2006-12-18 19:14:21.000000000 -0600
+++ xev.c	2006-12-18 19:16:02.000000000 -0600
@@ -1045,6 +1045,8 @@
 	    printf ("Unknown event type %d\n", event.type);
 	    break;
 	}
+
+	fflush(stdout);
     }
 
     XCloseDisplay (dpy);


Various other app applications use fflush() with their output.



More information about the xorg mailing list