"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Tracey Emery <tracey@traceyemery.net>
Subject:
Re: switch printing newline on exit to
To:
Dave Voutila <dv@sisu.io>
Cc:
Game of Trees <gameoftrees@openbsd.org>, Christian Weisgerber <naddy@openbsd.org>
Date:
Thu, 19 Jan 2023 13:14:10 -0700

Download raw body.

Thread
On Thu, Jan 19, 2023 at 03:05:29PM -0500, Dave Voutila wrote:
> This has been driving me mildly crazy :)
> 
> When I exit tog, I always get some blank line in my terminal
> (xterm). I've noticed this is the same behavior in st and alacritty.

Same annoyance, but too lazy to fix. I like this very much.
ok for me

(dv, you have commit privs yet?)

> 
> I'm no curses guru, but this seems to work for me. Curious if those that
> saw the original issue have it solved using a curses function instead?
> 
> -dv
> 
> diff refs/heads/main refs/heads/ws-on-exit
> commit - 8fcd5cccdccdf61486b86753d28252df3bd5444a
> commit + 2280e77f04994426fe9138392c3b20b68e399ffd
> blob - 35282ce50aa4dec0745aa6402cd0b50d87b7416b
> blob + cb1e0dae600af3d85f32d8e6b15f93b38549e1da
> --- tog/tog.c
> +++ tog/tog.c
> @@ -9438,7 +9438,7 @@ main(int argc, char *argv[])
>  	}
> 
>  	endwin();
> -	putchar('\n');
> +	clrtobot();
>  	if (cmd_argv) {
>  		int i;
>  		for (i = 0; i < argc; i++)
> 

-- 

Tracey Emery