1
0
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:
Simon Tatham
2003-03-07 18:18:38 +00:00
parent 4efe692e88
commit e9cc328501
2 changed files with 66 additions and 20 deletions

View File

@ -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) */