ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/screen.C
(Generate patch)

Comparing rxvt-unicode/src/screen.C (file contents):
Revision 1.318 by root, Tue Nov 4 22:44:09 2008 UTC vs.
Revision 1.321 by root, Tue Nov 4 23:21:00 2008 UTC

158 * ------------------------------------------------------------------------- */ 158 * ------------------------------------------------------------------------- */
159 159
160void 160void
161rxvt_term::scr_reset () 161rxvt_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;
434void 436void
435rxvt_term::scr_poweron () 437rxvt_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}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines