2021-02-18 22:25:36 +01:00
|
|
|
#include "fastfetch.h"
|
|
|
|
|
|
2021-02-27 18:30:05 +01:00
|
|
|
void ffPrintColors(FFinstance* instance)
|
2021-02-18 22:25:36 +01:00
|
|
|
{
|
2022-06-06 14:02:21 +02:00
|
|
|
if(instance->config.pipe)
|
|
|
|
|
{
|
2022-06-08 10:59:33 +02:00
|
|
|
ffLogoPrintLine(instance);
|
2022-06-06 14:02:21 +02:00
|
|
|
puts("████████████████████████");
|
2022-06-08 10:59:33 +02:00
|
|
|
ffLogoPrintLine(instance);
|
2022-06-06 14:02:21 +02:00
|
|
|
puts("████████████████████████");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-08 10:59:33 +02:00
|
|
|
ffLogoPrintLine(instance);
|
2021-02-18 22:25:36 +01:00
|
|
|
|
2022-03-14 17:31:16 +01:00
|
|
|
// 4%d: Set the background color
|
|
|
|
|
// 3%d: Set the foreground color
|
2021-02-18 22:25:36 +01:00
|
|
|
for(uint8_t i = 0; i < 8; i++)
|
2022-03-14 17:31:16 +01:00
|
|
|
printf("\033[4%d;3%dm███", i, i);
|
2021-02-18 22:25:36 +01:00
|
|
|
|
2022-03-14 17:31:16 +01:00
|
|
|
puts(FASTFETCH_TEXT_MODIFIER_RESET);
|
2021-02-18 22:25:36 +01:00
|
|
|
|
2022-06-08 10:59:33 +02:00
|
|
|
ffLogoPrintLine(instance);
|
2021-02-18 22:25:36 +01:00
|
|
|
|
2022-03-14 17:31:16 +01:00
|
|
|
// 1: Set everything to bolt. This causes normal colors on some systems to be bright.
|
|
|
|
|
// 4%d: Set the backgound to the not bright color
|
|
|
|
|
// 3%d: Set the foreground to the not bright color
|
|
|
|
|
// 10%d: Set the background to the bright color
|
|
|
|
|
// 9%d: Set the foreground to the bright color
|
|
|
|
|
for(uint8_t i = 0; i < 8; i++)
|
|
|
|
|
printf("\033[1;4%d;3%d;10%d;9%dm███", i, i, i, i);
|
2021-02-18 22:25:36 +01:00
|
|
|
|
2022-03-14 17:31:16 +01:00
|
|
|
puts(FASTFETCH_TEXT_MODIFIER_RESET);
|
2021-03-27 18:14:19 +01:00
|
|
|
}
|