Bug#711758: buffers not cleaned before creating full screen
Thomas Dickey <[email protected]> Tue, 2 Jun 2026 16:25:27 -0400
| Newsgroups | gmane.linux.debian.devel.x |
|---|---|
| Message-ID | <ah88N9WR1XBEpBNm__46159.9951771618$1780432052$gmane$org@prl-debianold-64.jexium-island.net> |
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
signature.asc
(application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmofPDMACgkQzCr0RyFn vgPCKAv/Teh7Ik9ySj7911N1O9gW1tokgvXZH3sAfHGBrrDqTj0odVzmqBMMrTV8 vhfin/6DkdotljUT6OPWkbIcm44qOdVte2/MFqgAknuGhC4sigRe5Qk2P/QdNa9H iyxJsK6se938I+rpzVAhTgSAS3a5dlLt+YyWIZtO59/IhI+sDfJglqxKN5wRr0JX sJc5drB7/bso9HCK8sLkBVSMKpDbNMLK7Q8Gdh19lkpGZRXMc51VvEcCTu53fttN mMCg04vm7I3jUhHl+lr9L/79P/1+AP6BYKWBPe4VWi0x4kf+MXtp8uECBY8fxAso yljjZgXWHYO5kaQYB2dJUHcUTDg9z6Jyj7QBJq0+eaH0OODV+tw8kFHswkNCHDse bDC8ZL7aJFeHF+tF/OYs3W29SrCMrObxA7yS7QiM1wOn8IOu6IPfZnYyJRJSYm+T MwGX41qpi2D6vDs7x3KYpdnoyfWuyO8u3XmvEWe5MUz6XZ3W4rKjn6DHXZk2nIY8 rSItTmBl =aco6 -----END PGP SIGNATURE-----