From: Christian Weisgerber Subject: Re: switch printing newline on exit to To: Dave Voutila Cc: Game of Trees Date: Thu, 19 Jan 2023 23:13:37 +0100 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