File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 44#include "util/stringUtils.h"
55#include "util/mallocHelper.h"
66#include "util/wcwidth.h"
7+ #include "util/textModifier.h"
78
89#include <locale.h>
910
@@ -46,7 +47,7 @@ void ffPrintSeparator(FFSeparatorOptions* options)
4647 + (fqdn ? platform -> hostName .length : ffStrbufFirstIndexC (& platform -> hostName , '.' )); // host name
4748 ffLogoPrintLine ();
4849
49- if (options -> outputColor .length )
50+ if (options -> outputColor .length && ! instance . config . display . pipe )
5051 ffPrintColor (& options -> outputColor );
5152 if (__builtin_expect (options -> string .length == 1 , 1 ))
5253 {
@@ -88,6 +89,8 @@ void ffPrintSeparator(FFSeparatorOptions* options)
8889 }
8990 }
9091 }
92+ if (options -> outputColor .length && !instance .config .display .pipe )
93+ fputs (FASTFETCH_TEXT_MODIFIER_RESET , stdout );
9194 putchar ('\n' );
9295 setlocale (LC_CTYPE , "C" );
9396}
You can’t perform that action at this time.
0 commit comments