Despite having not yet been reported by testers, buffer switching is currently done in an unsafe manner. Current code attepts to resize the buffer according to the terminal's dimensions, but it won't work in most cases -- buffer.ResizeView() should be called directly (instead of calling terminal.SetSize()). Also, scroll position should obviously be adjusted.
To Reproduce
So far, no steps to reproduce incorrect behaviour.
Buffer switching is done by (un)setting ?47 and ?1047 DEC modes
Expected behavior
Find out what precautions xterm does when switching buffers and implement that in aminal.
Environment (please complete the following information):
Despite having not yet been reported by testers, buffer switching is currently done in an unsafe manner. Current code attepts to resize the buffer according to the terminal's dimensions, but it won't work in most cases -- buffer.ResizeView() should be called directly (instead of calling terminal.SetSize()). Also, scroll position should obviously be adjusted.
To Reproduce So far, no steps to reproduce incorrect behaviour. Buffer switching is done by (un)setting ?47 and ?1047 DEC modes
Expected behavior Find out what precautions
xterm
does when switching buffers and implement that inaminal
.Environment (please complete the following information):