We can do better than line-buffered output
- November 05, 2026 nullprogram.com/blog/2026/11/05/ Buffered output typically comes in two flavors: fully buffered and line buffered.
- If output goes to a terminal then the implementation automatically selects line buffering, flushing its buffer when a line is completed so that it reaches the user immediately.
- Otherwise it fully buffers, holding output until the buffer is full or an explicit flush event at some arbitrary point in the future.
Unverified
- November 05, 2026 nullprogram.com/blog/2026/11/05/ Buffered output typically comes in two flavors: fully buffered and line buffered.
- If output goes to a terminal then the implementation automatically selects line buffering, flushing its buffer when a line is completed so that it reaches the user immediately.
- Otherwise it fully buffers, holding output until the buffer is full or an explicit flush event at some arbitrary point in the future.
Sources: Nullprogram