multiprogress.h: Add the right number of zeros to `PROGRESS_TTYINFO_INIT'.
[dvdrip] / multiprogress.h
index 1db97a8..a1121eb 100644 (file)
@@ -10,13 +10,14 @@ struct progress_ttyinfo {
   struct {                             /* terminal capabilities */
     unsigned f;                                /*   various flags */
 #define TCF_BCE 1u                     /*   erases to background colour */
-    const char *cr, *up, *ce, *cd;     /*   cursor motion */
+    const char *cr, *nw, *up, *ce, *cd;        /*   cursor motion */
     const char *mr, *md, *me;          /*   reverse video, bold */
     const char *af, *ab, *op;          /*   colour */
   } cap;
-    unsigned defwd, defht;             /* default width and height */
+  unsigned defwd, defht;               /* default width and height */
 };
-#define PROGRESS_TTYINFO_INIT { 0, 0, 0, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
+#define PROGRESS_TTYINFO_INIT                                          \
+       { 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 */