mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Er, ahem. Other half of r6788. :-/
[originally from svn r6791]
[r6788 == 09f86ce7ec
]
This commit is contained in:
parent
92e75acbb5
commit
6104963b9b
@ -1211,7 +1211,8 @@ static void power_on(Terminal *term, int clear)
|
||||
term->in_vbell = FALSE;
|
||||
term->cursor_on = 1;
|
||||
term->big_cursor = 0;
|
||||
term->default_attr = term->save_attr = term->curr_attr = ATTR_DEFAULT;
|
||||
term->default_attr = term->save_attr =
|
||||
term->alt_save_attr = term->curr_attr = ATTR_DEFAULT;
|
||||
term->term_editing = term->term_echoing = FALSE;
|
||||
term->app_cursor_keys = term->cfg.app_cursor;
|
||||
term->app_keypad_keys = term->cfg.app_keypad;
|
||||
@ -1812,6 +1813,10 @@ static void swap_screen(Terminal *term, int which, int reset, int keep_cur_pos)
|
||||
if (!reset && !keep_cur_pos)
|
||||
term->save_csattr = term->alt_save_csattr;
|
||||
term->alt_save_csattr = t;
|
||||
t = term->save_attr;
|
||||
if (!reset && !keep_cur_pos)
|
||||
term->save_attr = term->alt_save_attr;
|
||||
term->alt_save_attr = t;
|
||||
t = term->save_utf;
|
||||
if (!reset && !keep_cur_pos)
|
||||
term->save_utf = term->alt_save_utf;
|
||||
|
@ -135,6 +135,13 @@ struct terminal_tag {
|
||||
bufchain printer_buf; /* buffered data for printer */
|
||||
printer_job *print_job;
|
||||
|
||||
/* ESC 7 saved state for the alternate screen */
|
||||
pos alt_savecurs;
|
||||
int alt_save_attr;
|
||||
int alt_save_cset, alt_save_csattr;
|
||||
int alt_save_utf, alt_save_wnext;
|
||||
int alt_save_sco_acs;
|
||||
|
||||
int rows, cols, savelines;
|
||||
int has_focus;
|
||||
int in_vbell;
|
||||
|
Loading…
Reference in New Issue
Block a user