mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 00:37:23 +01:00
--pipe option
This commit is contained in:
@@ -2,6 +2,15 @@
|
||||
|
||||
void ffPrintColors(FFinstance* instance)
|
||||
{
|
||||
if(instance->config.pipe)
|
||||
{
|
||||
ffPrintLogoLine(instance);
|
||||
puts("████████████████████████");
|
||||
ffPrintLogoLine(instance);
|
||||
puts("████████████████████████");
|
||||
return;
|
||||
}
|
||||
|
||||
ffPrintLogoLine(instance);
|
||||
|
||||
// 4%d: Set the background color
|
||||
|
||||
+9
-3
@@ -30,10 +30,16 @@ const FFTitleResult* ffDetectTitle(FFinstance* instance)
|
||||
|
||||
static inline void printTitlePart(FFinstance* instance, const FFstrbuf* content)
|
||||
{
|
||||
fputs(FASTFETCH_TEXT_MODIFIER_BOLT, stdout);
|
||||
ffPrintColor(&instance->config.mainColor);
|
||||
if(!instance->config.pipe)
|
||||
{
|
||||
fputs(FASTFETCH_TEXT_MODIFIER_BOLT, stdout);
|
||||
ffPrintColor(&instance->config.mainColor);
|
||||
}
|
||||
|
||||
ffStrbufWriteTo(content, stdout);
|
||||
fputs(FASTFETCH_TEXT_MODIFIER_RESET, stdout);
|
||||
|
||||
if(!instance->config.pipe)
|
||||
fputs(FASTFETCH_TEXT_MODIFIER_RESET, stdout);
|
||||
}
|
||||
|
||||
void ffPrintTitle(FFinstance* instance)
|
||||
|
||||
Reference in New Issue
Block a user