How to clear output buffers

I found something related: