Welcome to awesome bug tracking system.

FS#29 - Add a 'flush'-like function to awesome-client

Attached to Project: awesome
Opened by Nikos Ntarmos (ntarmos) - Monday, 07 January 2008, 18:49 GMT
Last edited by Julien Danjou (jd) - Monday, 07 January 2008, 18:59 GMT
Task Type Bug Report
Category Core
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version git/master
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


With the new caching and all-in-one-message logic of awesome-client, it is no longer possible to do something like:

while true; do
done | awesome-client

The attached patch strips input of empty lines (i.e. lines consisting of just '\n') and treats them as a 'flush' flag. That is, you can now do:

while true; do
echo; # flush output
done | awesome-client

and your good old script will continue to work. This kind of piping is needed when the script keeps state between loops, as the alternative of 'stuff | awesome-client' inside the loop spawns new subshells and breaks things a bit.
This task depends upon

Closed by  Julien Danjou (jd)
Monday, 07 January 2008, 18:59 GMT
Reason for closing:  Implemented
Additional comments about closing:  Created commit a44277c: Add a 'flush'-like function to awesome-client