On Tue, Jun 02, 2026 at 04:30:03AM -0400, Thomas Dickey wrote:
> 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.

fwiw, this was mentioned in

                            Patch #294 - 2013/07/05

     * add  note  in ctlseqs.ms for CPR response pointing out a potential
       point  of  confusion  with  the  string  sent by a modified F1 key
       (suggested by Bram Moolenaar).
     * improve   plink.sh   by   checking  if  the  linker  supports  the
       --as-needed option (suggested by David Philippi).
     * improve  clearing  for  private  mode  1049  when switching to the
       alternate screen (Debian #711758).
     * amend  fix  from  [567]patch  #292  by removing now-unneeded chunk
       which introduced problem in selection (Debian #714527).
     * add  definition to optionally override compiled-in class for xterm
       from makefile, needed for test-packages.
     * add configure option --enable-sixel-graphics
     * add experimental support for sixel graphics (Ross Combs).

but overlooked in Debian, for which "apt changelog xterm" tells me that
patches 293 and 295 were noted, but not 294.

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

Attachment: signature.asc
Description: PGP signature

Reply via email to