Which is a nice feature except.... xterm doesn't do that. Pity.
This comes about because under the covers the xterm alternate screen is just an extra page with some special rules (can't get to/from it with NP/PP/etc, DECCRA can't copy between it and another page, has its own saved cursor buffer, etc). And I guess one additional special rule needs to be that it can't have distinct margins from page 1.
Probably the setmargins() function should just set margins for both page 1 and the alternate screen page whenever the current page is one of those two.
Which is a nice feature except.... xterm doesn't do that. Pity.
This comes about because under the covers the xterm alternate screen is just an extra page with some special rules (can't get to/from it with NP/PP/etc, DECCRA can't copy between it and another page, has its own saved cursor buffer, etc). And I guess one additional special rule needs to be that it can't have distinct margins from page 1.
Probably the setmargins() function should just set margins for both page 1 and the alternate screen page whenever the current page is one of those two.