mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Richard B's patch for resize behaviour. The scrollback now contains
a marker which defines everything before it as `permanent' scrollback and everything after it as `temporary'; only temporary scrollback lines are returned to the main screen when the window height is increased. Screen clears mark the lines pushed into the scrollback as permanent; so lines explicitly cleared off the screen by ESC[2J are never returned to it by mistake. This patch also fixes the incorrect state the primary screen is left in when the window is resized while the alternate screen is active. [originally from svn r2923]
This commit is contained in:
@ -37,6 +37,8 @@ struct terminal_tag {
|
||||
tree234 *screen; /* lines on primary screen */
|
||||
tree234 *alt_screen; /* lines on alternate screen */
|
||||
int disptop; /* distance scrolled back (0 or -ve) */
|
||||
int tempsblines; /* number of lines in temporary
|
||||
scrollback */
|
||||
|
||||
unsigned long *cpos; /* cursor position (convenience) */
|
||||
|
||||
|
Reference in New Issue
Block a user