X-Git-Url: https://git.distorted.org.uk/~mdw/dvdrip/blobdiff_plain/85218b4283ca8e1b4d78db17aab3cea3f0b042c4..35951074cd3c77789c39d6e8a7d9eeb0bba7209e:/multiprogress.h diff --git a/multiprogress.h b/multiprogress.h index a1121eb..b501292 100644 --- a/multiprogress.h +++ b/multiprogress.h @@ -13,11 +13,12 @@ struct progress_ttyinfo { const char *cr, *nw, *up, *ce, *cd; /* cursor motion */ const char *mr, *md, *me; /* reverse video, bold */ const char *af, *ab, *op; /* colour */ + char pc; /* pad character (termcap) */ } cap; unsigned defwd, defht; /* default width and height */ }; #define PROGRESS_TTYINFO_INIT \ - { 0, 0, 0, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, 80, 25 } + { 0, 0, 0, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, 80, 25 } struct progress_state { struct progress_ttyinfo tty; /* terminal state */ @@ -35,7 +36,7 @@ struct progress_render_state { char *tempbuf; size_t tempsz; /* scratch buffer */ size_t leftsz, rightsz; /* left and right cursors */ unsigned leftwd, rightwd; /* left and right widths */ - char *old_bc, *old_up; /* old fixup strings */ + char *old_bc, *old_up, old_pc; /* saved `termcap' globals */ }; struct progress_item {