version 1.355, 2020/04/18 06:10:15 |
version 1.356, 2020/04/18 06:15:07 |
|
|
void |
void |
tty_sync_start(struct tty *tty) |
tty_sync_start(struct tty *tty) |
{ |
{ |
if ((~tty->flags & TTY_SYNCING) && (tty_get_flags(tty) & TERM_SYNC)) { |
if (tty_get_flags(tty) & TERM_SYNC) |
tty_puts(tty, "\033P=1s\033\\"); |
tty_puts(tty, "\033P=1s\033\\"); |
tty->flags |= TTY_SYNCING; |
|
} |
|
} |
} |
|
|
void |
void |
tty_sync_end(struct tty *tty) |
tty_sync_end(struct tty *tty) |
{ |
{ |
if (tty_get_flags(tty) & TERM_SYNC) { |
if (tty_get_flags(tty) & TERM_SYNC) |
tty_puts(tty, "\033P=2s\033\\"); |
tty_puts(tty, "\033P=2s\033\\"); |
tty->flags &= ~TTY_SYNCING; |
|
} |
|
} |
} |
|
|
static int |
static int |
|
|
TAILQ_FOREACH(c, &clients, entry) { |
TAILQ_FOREACH(c, &clients, entry) { |
if (!tty_client_ready(c, wp)) |
if (!tty_client_ready(c, wp)) |
continue; |
continue; |
if (c->flags & CLIENT_REDRAWPANES) { |
|
/* |
|
* Redraw is already deferred to redraw another pane - |
|
* redraw this one also when that happens. |
|
*/ |
|
wp->flags |= PANE_REDRAW; |
|
break; |
|
} |
|
|
|
ctx->bigger = tty_window_offset(&c->tty, &ctx->ox, &ctx->oy, |
ctx->bigger = tty_window_offset(&c->tty, &ctx->ox, &ctx->oy, |
&ctx->sx, &ctx->sy); |
&ctx->sx, &ctx->sy); |