Загрузить файлы в «»
This commit is contained in:
parent
a3f8da336a
commit
e4b10c792f
8
funcs.h
8
funcs.h
@ -127,7 +127,7 @@ char *GetOs(void) {
|
|||||||
while (getline(&line, &len, fp) != EOF) {
|
while (getline(&line, &len, fp) != EOF) {
|
||||||
if (strstr(line, "PRETTY_NAME=") != NULL) {
|
if (strstr(line, "PRETTY_NAME=") != NULL) {
|
||||||
line[strlen(line) - 2] = '\0';
|
line[strlen(line) - 2] = '\0';
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
|
||||||
//Need free (in main())
|
//Need free (in main())
|
||||||
return line;
|
return line;
|
||||||
@ -183,9 +183,9 @@ LOGO GetArt(void) {
|
|||||||
else if (strstr(Os, "Arch") || strstr(Os, "Artix")) {
|
else if (strstr(Os, "Arch") || strstr(Os, "Artix")) {
|
||||||
art.size = sizeof(Arch) / sizeof(char *);
|
art.size = sizeof(Arch) / sizeof(char *);
|
||||||
art.pkg_cmd = "pacman -Qq | wc -l";
|
art.pkg_cmd = "pacman -Qq | wc -l";
|
||||||
art.art = Arch;
|
art.art = Arch;
|
||||||
art.color = "\033[0;34m";
|
art.color = "\033[0;34";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
|
14
logos.h
14
logos.h
@ -41,13 +41,13 @@ char *Arch[] = {
|
|||||||
|
|
||||||
char *Unknow[] = {
|
char *Unknow[] = {
|
||||||
" ",
|
" ",
|
||||||
"\033[35m ___ ",
|
"\033[1;36m ___ ",
|
||||||
"\033[35m (\033[0m..\033[35m | ",
|
"\033[1;36m (\033[0m..\033[1;36m | ",
|
||||||
"\033[35m (\033[33m<> \033[35m| ",
|
"\033[1;36m (\033[33m<> \033[1;36m| ",
|
||||||
"\033[35m / \033[0m__\033[35m \\ ",
|
"\033[1;36m / \033[0m__\033[1;36m \\ ",
|
||||||
"\033[35m ( \033[0m/ \\\033[35m /| ",
|
"\033[1;36m ( \033[0m/ \\\033[1;36m /| ",
|
||||||
"\033[33m_\033[35m/ \033[0m\\__/\033[35m/_) ",
|
"\033[33m_\033[1;36m/ \033[0m\\__/\033[1;36m/_) ",
|
||||||
"\033[35m\\/\033[35m-____\033[33m\\/ ",
|
"\033[1;36m\\/\033[1;36m-____\033[33m\\/ ",
|
||||||
" "
|
" "
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user