On Sun, Jul 07, 2013 at 02:55:41PM -0400, Thomas Dickey wrote:
> > The alternate screen buffer can be cleared with the commands 
> > "tput smcup; tput rmcup".  Or maybe you want to set the
> > Xterm*titeInhibit resource to false to disable the alternate screen
> > altogether.
> 
> that's a simple solution

simpler to point out that the default configuration already does what's asked.

The terminal description uses 

        smcup=\E[?1049h\E[22;0;0t,
                  ^^^^

As noted in the control sequences document:

            Ps = 1 0 4 9  -> Save cursor as in DECSC, xterm.  After
          saving the cursor, switch to the Alternate Screen Buffer,
          clearing it first.  This may be disabled by the titeInhibit
          resource.  This control combines the effects of the 1 0 4 7
          and 1 0 4 8  modes.  Use this with terminfo-based applications
          rather than the 4 7  mode.

I introduced 1049 in 1998.  The xterm-wannabe's all copied that (though
some don't clear the screen first, etc., that's not an "xterm" bug).

If you were using the 

        smcup=\E7\E[?47h, 

that's never going to clear the screen first.  Since there's no mention of
TERM in this report, it's the former case and this bug can be closed.

-- 
Thomas E. Dickey <[email protected]>
https://invisible-island.net

Attachment: signature.asc
Description: PGP signature

Reply via email to