From: Dave Voutila Subject: switch printing newline on exit to To: Game of Trees Cc: Christian Weisgerber Date: Thu, 19 Jan 2023 15:05:29 -0500 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. 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++)