Paul Eggert writes: > On 03/12/2015 02:18 PM, Giuseppe Scrivano wrote: > >> +mbiter > > Ouch. I was hoping we didn't need to do that. I expect the use of > mbiter to hurt performance significantly. I hope there's a better > way, one that doesn't require counting individual multibyte > characters. It may be time to think about having a signal handler > that resets the output tty. Thanks once again for your prompt and detailed review. I have dropped that and implemented the solution you suggested: now the signal handler directly write(2) to reset the tty if needed and then restore the default handler. It contributes to simplify the code in util.c as the output throttling is not required anymore. Giuseppe