aboutsummaryrefslogtreecommitdiff
path: root/src/cfetch.c
diff options
context:
space:
mode:
authorAnser <rostgans@tutamail.com>2026-07-31 09:16:23 +0200
committerAnser <rostgans@tutamail.com>2026-07-31 14:27:57 +0200
commit9ad584b5762433f7c99d7cc7b65ad21ebe4ff932 (patch)
tree7f3299370afc4f0d1794918e279d9715ab0b009f /src/cfetch.c
parent1a474dce46260fb043bd8ce74e221379e36af1a4 (diff)
TO BE SQUISHED:safe of current working stand, to get the logos vom ascii directory
Diffstat (limited to 'src/cfetch.c')
-rw-r--r--src/cfetch.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/cfetch.c b/src/cfetch.c
index 8108ab6..ac5c6a6 100644
--- a/src/cfetch.c
+++ b/src/cfetch.c
@@ -11,11 +11,28 @@
#include "modules/memory/memory.h"
#include "modules/cpu/cpu.h"
#include "logo/logo.h"
+#include "modules/utils/utils.h"
+
+#include <stdio.h>
+#include <sys/ioctl.h>
+#include <stdlib.h>
+#include <unistd.h>
int main(void) {
os();
memory();
cpu();
print_logo();
+
+ struct winsize w;
+ ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
+
+ printf("lines %d\n", w.ws_row);
+ printf("columns %d\n", w.ws_col);
+
+ /* char *s = concat("derp", "herp");
+ printf("%s\n", s);
+ free(s); */
+
return 0;
}