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 +++ main.c 2023-10-23 19:08:15.622234480 +0100 @@ -167,8 +167,10 @@ ffclose(ffp, NULL); } - if (batch) + if (batch) { + vttidy(); return (0); + } /* * Now ensure any default buffer modes from the startup file are Best Regards, Mark -- Mark Willson