version 1.172, 2020/04/18 17:20:25 |
version 1.173, 2020/04/20 14:59:31 |
|
|
ttyctx->orupper = s->rupper; |
ttyctx->orupper = s->rupper; |
|
|
if (sync && !ctx->sync && ttyctx->wp != NULL) { |
if (sync && !ctx->sync && ttyctx->wp != NULL) { |
log_debug("%s: starting sync", __func__); |
|
tty_write(tty_cmd_syncstart, ttyctx); |
tty_write(tty_cmd_syncstart, ttyctx); |
ctx->sync = 1; |
ctx->sync = 1; |
} |
} |
|
|
void |
void |
screen_write_stop(struct screen_write_ctx *ctx) |
screen_write_stop(struct screen_write_ctx *ctx) |
{ |
{ |
struct tty_ctx ttyctx; |
|
|
|
screen_write_collect_end(ctx); |
screen_write_collect_end(ctx); |
screen_write_collect_flush(ctx, 0, __func__); |
screen_write_collect_flush(ctx, 0, __func__); |
|
|
|
|
if (ctx->wp != NULL) { |
if (ctx->wp != NULL) { |
ctx->wp->written += ctx->written; |
ctx->wp->written += ctx->written; |
ctx->wp->skipped += ctx->skipped; |
ctx->wp->skipped += ctx->skipped; |
} |
|
|
|
if (ctx->sync) { |
|
screen_write_initctx(ctx, &ttyctx, 0); |
|
tty_write(tty_cmd_syncend, &ttyctx); |
|
log_debug("%s: ending sync", __func__); |
|
} |
} |
|
|
free(ctx->item); |
free(ctx->item); |