mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-08 22:20:17 +01:00
17 lines
473 B
C
17 lines
473 B
C
|
|
#include "fastfetch.h"
|
||
|
|
|
||
|
|
#include <string.h>
|
||
|
|
|
||
|
|
void ffPrintTitle(FFstate* state)
|
||
|
|
{
|
||
|
|
char hostname[256];
|
||
|
|
gethostname(hostname, 256);
|
||
|
|
|
||
|
|
state->titleLength = strlen(state->passwd->pw_name) + 1 + strlen(hostname);
|
||
|
|
|
||
|
|
ffPrintLogoLine(state);
|
||
|
|
|
||
|
|
printf("%s"FASTFETCH_TEXT_MODIFIER_BOLT"%s"FASTFETCH_TEXT_MODIFIER_RESET"@%s"FASTFETCH_TEXT_MODIFIER_BOLT"%s"FASTFETCH_TEXT_MODIFIER_RESET"\n",
|
||
|
|
state->color, state->passwd->pw_name, state->color, hostname
|
||
|
|
);
|
||
|
|
}
|