Add formats for pane written/skipped bytes for debugging.

This commit is contained in:
nicm
2020-04-18 07:19:28 +00:00
parent baf1fca273
commit e153b928ff
4 changed files with 12 additions and 0 deletions

View File

@ -174,6 +174,10 @@ screen_write_stop(struct screen_write_ctx *ctx)
log_debug("%s: %u cells (%u written, %u skipped)", __func__,
ctx->cells, ctx->written, ctx->skipped);
if (ctx->wp != NULL) {
ctx->wp->written += ctx->written;
ctx->wp->skipped += ctx->skipped;
}
if (ctx->sync) {
screen_write_initctx(ctx, &ttyctx, 0);