diff options
| author | Aleksa Vučković <aleksav013@gmail.com> | 2022-06-03 01:18:48 +0200 |
|---|---|---|
| committer | Aleksa Vučković <aleksav013@gmail.com> | 2022-06-03 01:18:48 +0200 |
| commit | 4fc9a5b06a0b50db6fc12d4ab7d937766e9ec8a7 (patch) | |
| tree | e992513313b988746ffc67e1753b1888e7ead69d /src/c/shell/neofetch.c | |
| parent | dd038cfb10cae6dba5afabc786a129224da5ef8c (diff) | |
cpuid_vendor_string
Diffstat (limited to 'src/c/shell/neofetch.c')
| -rw-r--r-- | src/c/shell/neofetch.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/c/shell/neofetch.c b/src/c/shell/neofetch.c index e770428..4cfc250 100644 --- a/src/c/shell/neofetch.c +++ b/src/c/shell/neofetch.c @@ -3,6 +3,7 @@ #include<source/vga.h> #include<source/stdio.h> #include<source/timer.h> +#include<source/cpuid.h> void neofetch(void) { @@ -34,7 +35,16 @@ void neofetch(void) } printf("\n"); - set_color(VGA_COLOR_LIGHT_GREY,VGA_COLOR_BLACK); + + uint8_t cpuid_vendor_string[12]; + cpuid_vendor(cpuid_vendor_string); + + for (int i = 0; i < 12; i++) + { + printf("%c", cpuid_vendor_string[i]); + } + printf("\n"); + uptime(); } |
