On 2023/10/23 21:09:00 +0100, Mark Willson <m...@hydrus.org.uk> 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 introduction of the batch mode.

> The following patch fixes the issue:

I've committed it, thanks!

> --- 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


Reply via email to