Re: [PATCH] mg: batch mode leaves terminal in insane mode

2023-10-24 Thread Omar Polo
On 2023/10/23 21:09:00 +0100, Mark Willson wrote: > Hi Folks, > > When mg(1) is run in batch mode (-b), at exit the terminal is left in a > non-sane state. Entering ^Jstty sane^J at the shell prompt corrects the > display. This behaviour was observed on OpenBSD 7.4. It there since the introducti

[PATCH] mg: batch mode leaves terminal in insane mode

2023-10-23 Thread Mark Willson
Hi Folks, When mg(1) is run in batch mode (-b), at exit the terminal is left in a non-sane state. Entering ^Jstty sane^J at the shell prompt corrects the display. This behaviour was observed on OpenBSD 7.4. The following patch fixes the issue: --- main.c.orig 2023-10-23 19:07:36.007621269 +0100