]> granicus.if.org Git - handbrake/commitdiff
cli: Restore previous CLI progress separator.
authorBradley Sepos <bradley@bradleysepos.com>
Sun, 24 Dec 2017 22:19:09 +0000 (17:19 -0500)
committerBradley Sepos <bradley@bradleysepos.com>
Sun, 24 Dec 2017 22:19:52 +0000 (17:19 -0500)
This basically reverts 7c438ad5ae81c31c660fc9a208dacd7177f54a24 and fixes #1067 for the upcoming release and until such a time as I can review further.

test/test.c

index f2ab5ab9341d4df7bc4217df4ffa8747d7c297f3..67e125ea9cb4a5cccbbb54a2986c372e23b20aea 100644 (file)
@@ -224,8 +224,8 @@ static int show_mux_warning = 1;
 /* Terminal detection */
 static int stdout_tty = 0;
 static int stderr_tty = 0;
-static char * stdout_sep = "\n";
-static char * stderr_sep = "\n";
+static char * stdout_sep = "\r";
+static char * stderr_sep = "\r";
 static void test_tty()
 {
 #if defined(__MINGW32__)
@@ -251,8 +251,8 @@ static void test_tty()
     }
 #endif
 
-    if (stdout_tty == 1) stdout_sep = "\r";
-    if (stderr_tty == 1) stderr_sep = "\r";
+    #if (stdout_tty == 1) stdout_sep = "\r";
+    #if (stderr_tty == 1) stderr_sep = "\r";
 }
 
 /****************************************************************************