summary |
log |
commit |
diff |
tree
raw |
patch |
inline | side by side (from parent 1:
0f7a34f)
To reproduce the issue:
$ slstatus -s | tee
then it would print only when the stdout buffer is full, by block
of multiple lines.
fflush() makes sure the line is printed at every loop iteration
if (sflag) {
printf("%s\n", status);
if (sflag) {
printf("%s\n", status);
} else {
XStoreName(dpy, DefaultRootWindow(dpy), status);
XSync(dpy, False);
} else {
XStoreName(dpy, DefaultRootWindow(dpy), status);
XSync(dpy, False);