mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 17:41:41 +01:00
16 lines
520 B
C
16 lines
520 B
C
#include "fastfetch.h"
|
|
|
|
void ffPrintTitle(FFinstance* instance)
|
|
{
|
|
char hostname[256];
|
|
gethostname(hostname, 256);
|
|
|
|
instance->config.titleLength = strlen(instance->state.passwd->pw_name) + 1 + strlen(hostname);
|
|
|
|
ffPrintLogoLine(instance);
|
|
|
|
printf(FASTFETCH_TEXT_MODIFIER_BOLT"%s%s"FASTFETCH_TEXT_MODIFIER_RESET"@"FASTFETCH_TEXT_MODIFIER_BOLT"%s%s"FASTFETCH_TEXT_MODIFIER_RESET"\n",
|
|
instance->config.color.chars, instance->state.passwd->pw_name, instance->config.color.chars, hostname
|
|
);
|
|
}
|