From 3b7b62efc4cdc2997d36dea58b13d43bfe5544da Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Wed, 15 Feb 2017 11:42:46 +0100 Subject: Fix slide name coloring --- src/sls.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sls.cpp') diff --git a/src/sls.cpp b/src/sls.cpp index 0ad3123..cb6e750 100644 --- a/src/sls.cpp +++ b/src/sls.cpp @@ -357,7 +357,7 @@ bool SLSManager::encodeFile(const std::string& fname, int fidx, bool raw_slides) orig_is_jpeg = true; if (verbose) { - fprintf(stderr, "ODR-PadEnc image: '%s' (id=%d)." + fprintf(stderr, "ODR-PadEnc image: '" "\x1B[33m" "%s" "\x1B[0m" "' (id=%d)." " Original size: %zu x %zu. (%s, q=%zu, progr=%s)\n", fname.c_str(), fidx, width, height, orig_format, orig_quality, jpeg_progr ? "y" : "n"); } @@ -367,13 +367,13 @@ bool SLSManager::encodeFile(const std::string& fname, int fidx, bool raw_slides) jfif_not_png = false; if (verbose) { - fprintf(stderr, "ODR-PadEnc image: '%s' (id=%d)." + fprintf(stderr, "ODR-PadEnc image: '" "\x1B[33m" "%s" "\x1B[0m" "' (id=%d)." " Original size: %zu x %zu. (%s)\n", fname.c_str(), fidx, width, height, orig_format); } } else if (verbose) { - fprintf(stderr, "ODR-PadEnc image: '%s' (id=%d)." + fprintf(stderr, "ODR-PadEnc image: '" "\x1B[33m" "%s" "\x1B[0m" "' (id=%d)." " Original size: %zu x %zu. (%s)\n", fname.c_str(), fidx, width, height, orig_format); } @@ -394,7 +394,7 @@ bool SLSManager::encodeFile(const std::string& fname, int fidx, bool raw_slides) if (blobsize <= MAXSLIDESIZE) { if (verbose) { - fprintf(stderr, "ODR-PadEnc image: '%s' (id=%d). No resize needed: %zu Bytes\n", + fprintf(stderr, "ODR-PadEnc image: '" "\x1B[33m" "%s" "\x1B[0m" "' (id=%d). No resize needed: %zu Bytes\n", fname.c_str(), fidx, blobsize); } resize_required = false; -- cgit v1.2.3