[core/output] Make bar actually work (flush output)

Seems adding a \n isn't sufficient for flushing, instead explicitly
flush stdout to produce a result reliably in the i3bar.
This commit is contained in:
Tobias Witek 2020-02-02 21:21:24 +01:00
parent eb38e1ce96
commit 74e74bb78b

View file

@ -19,6 +19,7 @@ class i3(object):
if 'suffix' in data: if 'suffix' in data:
sys.stdout.write(data['suffix']) sys.stdout.write(data['suffix'])
sys.stdout.write('\n') sys.stdout.write('\n')
sys.stdout.flush()
def start(self): def start(self):
return { return {