Apparently, when the buffer for stdout is flushed either manually, when you call .flush(), or if the buffer is full. The thing is, I don't want it to flush when the buffer is full, only when I want it to do so. How can I achieve that ?
I need that because, as you can see, sometimes, a bottom window will 'flicker' on top of an other window. That's because the output is flushed (and rendered) when the bottom window is redrawn, but not the top one yet. That's why I want to flush only when all windows are drawn https://imgur.com/gallery/osXjwiw