diff options
| author | 2020-03-22 22:36:45 +0100 | |
|---|---|---|
| committer | 2020-03-22 22:36:45 +0100 | |
| commit | 723b066423fa9c458c82e23d3daf364767fd77ff (patch) | |
| tree | 5eb4bde07b1c9eac44c1a19d00ec04ffcccff2ac | |
| parent | f06b95fbf08375f0447b63e8cfa05b55272f0e52 (diff) | |
| download | xkbcat-723b066423fa9c458c82e23d3daf364767fd77ff.tar.gz xkbcat-723b066423fa9c458c82e23d3daf364767fd77ff.zip | |
Only fflush on loop iterations that print
Saves cycles.
| -rw-r--r-- | xkbcat.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -94,10 +94,10 @@ int main(int argc, char * argv[]) { if (printKeyUps) printf("%s", cookie->evtype == XI_RawKeyPress ? "+" : "-"); printf("%s\n", str); + fflush(stdout); break; } } } - fflush(stdout); } } |
