… | |
… | |
387 | qline->l = llen ? MOD (llen - 1, ncol) + 1 : 0; |
387 | qline->l = llen ? MOD (llen - 1, ncol) + 1 : 0; |
388 | qline->is_longer (0); |
388 | qline->is_longer (0); |
389 | scr_blank_line (*qline, qline->l, ncol - qline->l, DEFAULT_RSTYLE); |
389 | scr_blank_line (*qline, qline->l, ncol - qline->l, DEFAULT_RSTYLE); |
390 | } |
390 | } |
391 | while (p != pend && q > 0); |
391 | while (p != pend && q > 0); |
392 | |
|
|
393 | term_start = total_rows - nrow; |
|
|
394 | top_row = q - term_start; |
|
|
395 | |
|
|
396 | // make sure all terminal lines exist |
|
|
397 | while (top_row > 0) |
|
|
398 | scr_blank_screen_mem (ROW (--top_row), DEFAULT_RSTYLE); |
|
|
399 | } |
392 | } |
400 | else |
393 | else |
401 | #endif |
394 | #endif |
402 | { |
395 | { |
403 | // wing, instead of wrap |
396 | // wing, instead of wrap |
|
|
397 | screen.cur.row += nrow - prev_nrow; |
|
|
398 | |
404 | do |
399 | do |
405 | { |
400 | { |
406 | p = MOD (p - 1, prev_total_rows); |
401 | p = MOD (p - 1, prev_total_rows); |
407 | q--; |
402 | q--; |
408 | |
403 | |
409 | copy_line (row_buf [q], prev_row_buf [p]); |
404 | copy_line (row_buf [q], prev_row_buf [p]); |
410 | } |
405 | } |
411 | while (p != pend); |
406 | while (p != pend && q > 0); |
412 | |
407 | |
413 | screen.cur.row += nrow - prev_nrow; |
408 | } |
|
|
409 | |
414 | term_start = total_rows - nrow; |
410 | term_start = total_rows - nrow; |
415 | } |
411 | top_row = q - term_start; |
|
|
412 | |
|
|
413 | // make sure all terminal lines exist |
|
|
414 | while (top_row > 0) |
|
|
415 | scr_blank_screen_mem (ROW (--top_row), DEFAULT_RSTYLE); |
416 | |
416 | |
417 | clamp_it (screen.cur.row, 0, nrow - 1); |
417 | clamp_it (screen.cur.row, 0, nrow - 1); |
418 | clamp_it (screen.cur.col, 0, ncol - 1); |
418 | clamp_it (screen.cur.col, 0, ncol - 1); |
419 | } |
419 | } |
420 | |
420 | |