Merge pull request #19 from prettykool/main
(Buggy) FreeBSD + OpenBSD Support
This commit is contained in:
commit
7a90966988
1 changed files with 28 additions and 1 deletions
29
uwufetch.c
29
uwufetch.c
|
@ -15,7 +15,7 @@
|
||||||
#define GREEN "\x1b[32m"
|
#define GREEN "\x1b[32m"
|
||||||
#define YELLOW "\x1b[33m"
|
#define YELLOW "\x1b[33m"
|
||||||
#define BLUE "\x1b[34m"
|
#define BLUE "\x1b[34m"
|
||||||
#define MAGENTA "\x1b[35m"
|
#define MAGENTA "\x1b[0;35m"
|
||||||
#define CYAN "\x1b[36m"
|
#define CYAN "\x1b[36m"
|
||||||
#define WHITE "\x1b[37m"
|
#define WHITE "\x1b[37m"
|
||||||
|
|
||||||
|
@ -153,6 +153,9 @@ void get_info() { // get all necessary info
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_ascii() { // prints logo (as ascii art) of the given system. distributions listed alphabetically.
|
void print_ascii() { // prints logo (as ascii art) of the given system. distributions listed alphabetically.
|
||||||
|
|
||||||
|
// linux
|
||||||
|
|
||||||
if (strcmp(version_name, "arch") == 0) {
|
if (strcmp(version_name, "arch") == 0) {
|
||||||
sprintf(version_name, "%s", "Nyarch Linuwu");
|
sprintf(version_name, "%s", "Nyarch Linuwu");
|
||||||
printf( "\033[1E\033[8C%s/\\\n"
|
printf( "\033[1E\033[8C%s/\\\n"
|
||||||
|
@ -222,7 +225,31 @@ void print_ascii() { // prints logo (as ascii art) of the given system. distribu
|
||||||
sprintf(version_name, "%s", "Nyandroid");
|
sprintf(version_name, "%s", "Nyandroid");
|
||||||
printf( "\n\n\nascii icon\n nedds to be\n added\n\n\n\n\n");
|
printf( "\n\n\nascii icon\n nedds to be\n added\n\n\n\n\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// BSD
|
||||||
|
|
||||||
|
else if (strcmp(version_name, "openbsd") == 0) {
|
||||||
|
sprintf(version_name, "%s", "OwOpenBSD");
|
||||||
|
printf( "\033[1E\033[3C%s ______ \n"
|
||||||
|
" \\- -/ %s\u2665 \n"
|
||||||
|
"%s\\_/ \\ \n"
|
||||||
|
"| %s> < %s| \n"
|
||||||
|
"|_ < %s// %sW %s// \n"
|
||||||
|
"%s/ \\ / \n"
|
||||||
|
" /-________-\\ \n\n", YELLOW, RED, YELLOW, WHITE, YELLOW, RED, WHITE, RED, YELLOW);
|
||||||
|
|
||||||
|
} else if (strcmp(version_name, "freebsd") == 0) {
|
||||||
|
sprintf(version_name, "%s", "FweeBSD");
|
||||||
|
printf( "\033[1E\033[3C%s\n"
|
||||||
|
" /\\,-'''''-,/\\\n"
|
||||||
|
" \\_) (_/\n"
|
||||||
|
" | \\ / |\n"
|
||||||
|
" | O w O |\n"
|
||||||
|
" ; ;\n"
|
||||||
|
" '-_____-'\n", RED);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_image() { // prints logo (as an image) of the given system. distributions listed alphabetically.
|
void print_image() { // prints logo (as an image) of the given system. distributions listed alphabetically.
|
||||||
char command[256];
|
char command[256];
|
||||||
sprintf(command, "viu -t -w 18 -h 8 /usr/lib/uwufetch/%s.png", version_name);
|
sprintf(command, "viu -t -w 18 -h 8 /usr/lib/uwufetch/%s.png", version_name);
|
||||||
|
|
Loading…
Reference in a new issue