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

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
Re: switch printing newline on exit to
To:
Dave Voutila <dv@sisu.io>
Cc:
Game of Trees <gameoftrees@openbsd.org>
Date:
Thu, 19 Jan 2023 23:13:37 +0100

Download raw body.

Thread
Dave Voutila:

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

Hmm, I see.  The problem relates to the switching to an alternate
screen.  In termcap(5) terms, the ti/te capabilities.  On OpenBSD
this is enabled by default.  On FreeBSD it isn't, because haters.

This will give you an xterm with alternate screen switching disabled...

$ xterm -xrm 'XTerm*titeInhibit: 1'

... which should allow you to see the other side of the problem.

>  	endwin();
> -	putchar('\n');
> +	clrtobot();

No, that restores the original problem.

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de