"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:
Christian Weisgerber <naddy@mips.inka.de>
Cc:
Dave Voutila <dv@sisu.io>, Game of Trees <gameoftrees@openbsd.org>
Date:
Thu, 19 Jan 2023 16:24:39 -0700

Download raw body.

Thread
  • Christian Weisgerber:

    switch printing newline on exit to

  • On Thu, Jan 19, 2023 at 11:13:37PM +0100, Christian Weisgerber wrote:
    > 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
    > 
    
    Then what about this. It seems to just work in both cases.
    
    -- 
    
    Tracey Emery
    
    diff /home/tracey/src/got
    commit - 8fcd5cccdccdf61486b86753d28252df3bd5444a
    path + /home/tracey/src/got
    blob - 35282ce50aa4dec0745aa6402cd0b50d87b7416b
    file + tog/tog.c
    --- tog/tog.c
    +++ tog/tog.c
    @@ -9438,7 +9438,6 @@ main(int argc, char *argv[])
     	}
     
     	endwin();
    -	putchar('\n');
     	if (cmd_argv) {
     		int i;
     		for (i = 0; i < argc; i++)
    
    
  • Christian Weisgerber:

    switch printing newline on exit to