… | |
… | |
158 | * ------------------------------------------------------------------------- */ |
158 | * ------------------------------------------------------------------------- */ |
159 | |
159 | |
160 | void |
160 | void |
161 | rxvt_term::scr_reset () |
161 | rxvt_term::scr_reset () |
162 | { |
162 | { |
|
|
163 | scr_soft_reset (); |
|
|
164 | |
163 | view_start = 0; |
165 | view_start = 0; |
164 | num_scr = 0; |
166 | num_scr = 0; |
165 | |
167 | |
166 | if (ncol == 0) |
168 | if (ncol == 0) |
167 | ncol = 80; |
169 | ncol = 80; |
… | |
… | |
434 | void |
436 | void |
435 | rxvt_term::scr_poweron () |
437 | rxvt_term::scr_poweron () |
436 | { |
438 | { |
437 | scr_release (); |
439 | scr_release (); |
438 | prev_nrow = prev_ncol = 0; |
440 | prev_nrow = prev_ncol = 0; |
439 | scr_soft_reset (); |
|
|
440 | scr_reset (); |
441 | scr_reset (); |
441 | |
442 | |
442 | scr_clear (true); |
443 | scr_clear (true); |
443 | scr_refresh (); |
444 | scr_refresh (); |
444 | } |
445 | } |
… | |
… | |
459 | free (tabs); |
460 | free (tabs); |
460 | tabs = (char *)rxvt_malloc (ncol); |
461 | tabs = (char *)rxvt_malloc (ncol); |
461 | |
462 | |
462 | for (int col = ncol; --col; ) |
463 | for (int col = ncol; --col; ) |
463 | tabs [col] = col % TABSIZE == 0; |
464 | tabs [col] = col % TABSIZE == 0; |
464 | |
|
|
465 | if (current_screen != PRIMARY) |
|
|
466 | scr_swap_screen (); |
|
|
467 | |
465 | |
468 | scr_scroll_region (0, MAX_ROWS - 1); |
466 | scr_scroll_region (0, MAX_ROWS - 1); |
469 | scr_rendition (0, ~RS_None); |
467 | scr_rendition (0, ~RS_None); |
470 | scr_insert_mode (0); |
468 | scr_insert_mode (0); |
471 | } |
469 | } |