From eb6f986361713d6ce47c6d4572bb24d9f6207ddf Mon Sep 17 00:00:00 2001 From: Anser Date: Tue, 11 Aug 2026 00:18:57 +0200 Subject: TOBESQUISHED: safe in reconstruction of the codes layout and rework of information handeling also ascii art printing --- src/cfetch.c | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) (limited to 'src/cfetch.c') diff --git a/src/cfetch.c b/src/cfetch.c index ac5c6a6..3977bb1 100644 --- a/src/cfetch.c +++ b/src/cfetch.c @@ -7,32 +7,24 @@ * (at your option) any later version. */ -#include "modules/os/os.h" -#include "modules/memory/memory.h" -#include "modules/cpu/cpu.h" -#include "logo/logo.h" -#include "modules/utils/utils.h" +#include "../include/cfetch.h" -#include -#include -#include #include +#include -int main(void) { - os(); - memory(); - cpu(); - print_logo(); - struct winsize w; - ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); +int main(void) { - printf("lines %d\n", w.ws_row); - printf("columns %d\n", w.ws_col); + system_info_t info = { 0 }; + // set default artwork + int art_logo = 0; - /* char *s = concat("derp", "herp"); - printf("%s\n", s); - free(s); */ + // set systeminformation + // use // to uncomment or comment + get_os(&info); + get_memory(&info); + get_cpu(&info); + print_ascii_art(&info, art_logo); return 0; } -- cgit v1.2.3