… | |
… | |
775 | rxvt_term::scr_add_lines (const wchar_t *str, int len, int minlines) NOTHROW |
775 | rxvt_term::scr_add_lines (const wchar_t *str, int len, int minlines) NOTHROW |
776 | { |
776 | { |
777 | if (len <= 0) /* sanity */ |
777 | if (len <= 0) /* sanity */ |
778 | return; |
778 | return; |
779 | |
779 | |
780 | unsigned char checksel; |
780 | bool checksel; |
781 | unicode_t c; |
781 | unicode_t c; |
782 | int ncol = this->ncol; |
782 | int ncol = this->ncol; |
783 | const wchar_t *strend = str + len; |
783 | const wchar_t *strend = str + len; |
784 | |
784 | |
785 | want_refresh = 1; |
785 | want_refresh = 1; |
… | |
… | |
1326 | ZERO_SCROLLBACK (); |
1326 | ZERO_SCROLLBACK (); |
1327 | |
1327 | |
1328 | switch (mode) |
1328 | switch (mode) |
1329 | { |
1329 | { |
1330 | case 0: /* erase to end of screen */ |
1330 | case 0: /* erase to end of screen */ |
1331 | selection_check (1); |
|
|
1332 | scr_erase_line (0); |
1331 | scr_erase_line (0); |
1333 | row = screen.cur.row + 1; /* possible OOB */ |
1332 | row = screen.cur.row + 1; /* possible OOB */ |
1334 | num = nrow - row; |
1333 | num = nrow - row; |
1335 | break; |
1334 | break; |
1336 | case 1: /* erase to beginning of screen */ |
1335 | case 1: /* erase to beginning of screen */ |
1337 | selection_check (3); |
|
|
1338 | scr_erase_line (1); |
1336 | scr_erase_line (1); |
1339 | row = 0; |
1337 | row = 0; |
1340 | num = screen.cur.row; |
1338 | num = screen.cur.row; |
1341 | break; |
1339 | break; |
1342 | case 2: /* erase whole screen */ |
1340 | case 2: /* erase whole screen */ |
1343 | selection_check (3); |
|
|
1344 | row = 0; |
1341 | row = 0; |
1345 | num = nrow; |
1342 | num = nrow; |
1346 | break; |
1343 | break; |
1347 | default: |
1344 | default: |
1348 | return; |
1345 | return; |
… | |
… | |
2042 | * A: set up vars |
2039 | * A: set up vars |
2043 | */ |
2040 | */ |
2044 | refresh_count = 0; |
2041 | refresh_count = 0; |
2045 | |
2042 | |
2046 | unsigned int old_screen_flags = screen.flags; |
2043 | unsigned int old_screen_flags = screen.flags; |
2047 | char have_bg = 0; |
2044 | bool have_bg = 0; |
2048 | #ifdef HAVE_BG_PIXMAP |
2045 | #ifdef HAVE_BG_PIXMAP |
2049 | have_bg = bg_pixmap != None; |
2046 | have_bg = bg_pixmap != None; |
2050 | #endif |
2047 | #endif |
2051 | ocrow = oldcursor.row; /* is there an old outline cursor on screen? */ |
2048 | ocrow = oldcursor.row; /* is there an old outline cursor on screen? */ |
2052 | |
2049 | |
… | |
… | |
2058 | HOOK_INVOKE ((this, HOOK_REFRESH_BEGIN, DT_END)); |
2055 | HOOK_INVOKE ((this, HOOK_REFRESH_BEGIN, DT_END)); |
2059 | #if ENABLE_OVERLAY |
2056 | #if ENABLE_OVERLAY |
2060 | scr_swap_overlay (); |
2057 | scr_swap_overlay (); |
2061 | #endif |
2058 | #endif |
2062 | |
2059 | |
2063 | char showcursor = screen.flags & Screen_VisibleCursor; |
2060 | bool showcursor = screen.flags & Screen_VisibleCursor; |
2064 | |
2061 | |
2065 | /* |
2062 | /* |
2066 | * C: set the cursor character (s) |
2063 | * C: set the cursor character (s) |
2067 | */ |
2064 | */ |
2068 | { |
2065 | { |
2069 | unsigned char setoldcursor; |
2066 | bool setoldcursor; |
2070 | |
2067 | |
2071 | #ifdef CURSOR_BLINK |
2068 | #ifdef CURSOR_BLINK |
2072 | if (hidden_cursor) |
2069 | if (hidden_cursor) |
2073 | showcursor = 0; |
2070 | showcursor = 0; |
2074 | #endif |
2071 | #endif |