From 85ac4107c35c4e9575ed9482d49f16128b1f7608 Mon Sep 17 00:00:00 2001 From: sunshineplan Date: Wed, 30 Oct 2024 15:52:15 +0800 Subject: [PATCH] converter: Print to os.Stdout (#136) --- converter/misc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/converter/misc.go b/converter/misc.go index 5047948..2726197 100644 --- a/converter/misc.go +++ b/converter/misc.go @@ -48,7 +48,7 @@ func loadImages(root string, pdf bool) (imgs []string) { return case <-ticker.C: m := message - fmt.Fprintf(os.Stderr, "\r%s\r%s", strings.Repeat(" ", width), m) + fmt.Fprintf(os.Stdout, "\r%s\r%s", strings.Repeat(" ", width), m) width = len(m) } } @@ -65,7 +65,7 @@ func loadImages(root string, pdf bool) (imgs []string) { return nil }) close(done) - fmt.Fprintf(os.Stderr, "\r%s\r", strings.Repeat(" ", width)) + fmt.Fprintf(os.Stdout, "\r%s\r", strings.Repeat(" ", width)) return }