OmarCastro / rofi-blocks

A Rofi modi that allows controlling rofi content throug communication with an external program
GNU General Public License v3.0
107 stars 9 forks source link

It does't work when use python as an interactive program #34

Closed DreamMaoMao closed 1 year ago

DreamMaoMao commented 1 year ago

image The same input and output that works with a shell does not respond with python python image

shell image

DreamMaoMao commented 1 year ago
print(json.dumps(jt),flush=True)

I found the problem that is caused by the python print output buffering

adding flush=True to solve the problem