a simple output filter that flushes at each end of line