On Thu, 30 Mar 2023, Mouse wrote:
Another option is to use newterm() in curses with a funopen()ed stream for output which queues the output to be written (nonblockingly) to the real stdout.
Would toggling O_NONBLOCK using fcntl() work for you? A bit tedious, but it can be done "per operation". -RVP