Bug#711758: buffers not cleaned before creating full screen
Thomas Dickey <[email protected]> Tue, 2 Jun 2026 04:30:03 -0400
| Newsgroups | gmane.linux.debian.devel.x |
|---|---|
| Message-ID | <ah6Ui3J0_CHSKB7r__5196.6254062549$1780389213$gmane$org@prl-debianold-64.jexium-island.net> |
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
signature.asc
(application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmoelIgACgkQzCr0RyFn vgNwKgv8DHFH7JrOpQcuqcdbrXWzmcPHKScDmFroP/Gnzv9Z5v7zt8wMjTrFcFsU a6kp7m+BY6q3a45S3gDt71g0p59SBkPYU0SfnYDP8FI2rUkox8S9xm6GifyMgVt3 JxdMfqr0xR8x48w7OOE6x/JoJZ7jnK78flHEj8eSKYMHZ3q1m4xd3EwlG44iMBi9 SvDhDyWfcHMQb8YG2D7cHEYbemfgrxgYjZeYmU4gwk4yHfmjbZmqDl9tMET36X2W /TcvJFXl8TsUKLwqZVHg5B/x0pZKSPzXK6hA4ExMWAvLxcSN+TbJz+uJzH4boGP5 0dvuH/5+GcOygAlMNeIUUnUymZeBp8tiDwUH3OEf41OY2ryh98Kw+1jFnccxCdMZ mq+eL7D/JkO3GoU/XWAmOr4Nf7RGgs6RTwXgHcg5bzmy3+8JZn/UiZme3QN4h8we KfCDcpg5IoC7M9Japz6411WhRn5ewpkXHIr2sYxnKepKzwQyoNfNZPl5flCAilrW 8xXuGEiR =Tz1d -----END PGP SIGNATURE-----