mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-31 18:13:38 +01:00
refactored project structure
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#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(FASTFETCH_TEXT_MODIFIER_BOLT"%s%s"FASTFETCH_TEXT_MODIFIER_RESET"@"FASTFETCH_TEXT_MODIFIER_BOLT"%s%s"FASTFETCH_TEXT_MODIFIER_RESET"\n",
|
||||
state->color, state->passwd->pw_name, state->color, hostname
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user