From: Christian Weisgerber Subject: Re: switch printing newline on exit to To: gameoftrees@openbsd.org Date: Sat, 21 Jan 2023 20:59:34 +0100 Mark Jamsek: > A solution is to do this in the view_loop() once we know the user is > quitting tog (Q), or killing the current window (q) when it's the last > one remaining. In the first case, we need to check if there are other > windows and do the line deletion on them too. In the second case, we > also need to then make sure tog doesn't redraw the full window (i.e., > restore the line we deleted), so we set the done flag and bypass > a redraw. > Does the below diff produce the desired behaviour? Yes, it does! I also tried various combinations of split-screen layout and it all works as expected. -- Christian "naddy" Weisgerber naddy@mips.inka.de