On Sat, Apr 19, 2025 at 11:20:48AM +0000, NRK wrote: > On Sat, Apr 19, 2025 at 12:37:35PM +0200, Quentin Rameau wrote: > This I'm fairly certain isn't allowed, we need to read a *single line* > not "discard what's there and then read a line". > Also, the line may not be coming from a tty either:
And not only that, flushing an input stream is undefined behaviour, though it was a common practice in many different unix systems. Regards,