version 1.55, 2009/10/21 09:36:53 |
version 1.56, 2009/10/21 13:42:44 |
|
|
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
struct screen *s = wp->screen; |
struct screen *s = wp->screen; |
|
|
|
if (ctx->ocy != ctx->orupper) |
|
return; |
|
|
if (wp->xoff != 0 || screen_size_x(s) < tty->sx || |
if (wp->xoff != 0 || screen_size_x(s) < tty->sx || |
!tty_term_has(tty->term, TTYC_CSR)) { |
!tty_term_has(tty->term, TTYC_CSR)) { |
tty_redraw_region(tty, ctx); |
tty_redraw_region(tty, ctx); |
return; |
return; |
} |
} |
|
|
if (ctx->ocy == ctx->orupper) { |
tty_reset(tty); |
tty_reset(tty); |
|
|
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower); |
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower); |
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->orupper); |
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->orupper); |
|
|
tty_putcode(tty, TTYC_RI); |
tty_putcode(tty, TTYC_RI); |
|
} |
|
} |
} |
|
|
void |
void |
|
|
struct window_pane *wp = ctx->wp; |
struct window_pane *wp = ctx->wp; |
struct screen *s = wp->screen; |
struct screen *s = wp->screen; |
|
|
|
if (ctx->ocy != ctx->orlower) |
|
return; |
|
|
if (wp->xoff != 0 || screen_size_x(s) < tty->sx || |
if (wp->xoff != 0 || screen_size_x(s) < tty->sx || |
!tty_term_has(tty->term, TTYC_CSR)) { |
!tty_term_has(tty->term, TTYC_CSR)) { |
tty_redraw_region(tty, ctx); |
tty_redraw_region(tty, ctx); |
|
|
if (ctx->num && !(tty->term->flags & TERM_EARLYWRAP)) |
if (ctx->num && !(tty->term->flags & TERM_EARLYWRAP)) |
return; |
return; |
|
|
if (ctx->ocy == ctx->orlower) { |
tty_reset(tty); |
tty_reset(tty); |
|
|
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower); |
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower); |
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy); |
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy); |
|
|
tty_putc(tty, '\n'); |
tty_putc(tty, '\n'); |
|
} |
|
} |
} |
|
|
void |
void |