Add arch based distros

This commit is contained in:
Guaxinim5573 2021-07-22 20:33:04 -03:00
parent 3c9d9d113c
commit f0342ef54e
5 changed files with 36 additions and 3 deletions

View file

@ -0,0 +1,8 @@
△ △ ◠◠◠◠
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL}{BACKGROUND_GREEN}{BLACK} > ω < {NORMAL}{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}

8
res/ascii/artix.txt Normal file
View file

@ -0,0 +1,8 @@
{BLUE} /\
/ \
/`'.,\
/• w • \
/ ,`\
/ ,.'`. \
/.,'` `'.\

View file

@ -0,0 +1,7 @@
{MAGENTA} /\
{RED}/{MAGENTA}/ \{BLUE}\
{RED}/{MAGENTA}/>ω<\{BLUE}\
{RED}/{MAGENTA}/ \ {BLUE}\
{RED}/ {MAGENTA}/ _) {BLUE})
{RED}/_{MAGENTA}/___-- {BLUE}___-
/____---

8
res/ascii/manjaro.txt Normal file
View file

@ -0,0 +1,8 @@
△ △ ◠◠◠◠
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL}{BACKGROUND_GREEN}{BLACK} > ω < {NORMAL}{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}

View file

@ -631,7 +631,7 @@ replace("Hello World!", "World", "everyone")
This returns "Hello everyone!".
*/
void replace(char *original, char *search, char *replacer) {
char buffer[4096];
char buffer[1024];
char *ch;
if(!(ch = strstr(original, search))) return;
@ -670,8 +670,8 @@ void print_ascii()
return print_ascii();
}
}
char line[64];
while(fgets(line, 64, file)) {
char line[256];
while(fgets(line, 256, file)) {
replace(line, "{NORMAL}", NORMAL);
replace(line, "{BOLD}", BOLD);
replace(line, "{BLACK}", BLACK);
@ -684,6 +684,8 @@ void print_ascii()
replace(line, "{WHITE}", WHITE);
replace(line, "{PINK}", PINK);
replace(line, "{LPINK}", LPINK);
// For manjaro
replace(line, "{BACKGROUND_GREEN}", "\e[0;42m");
printf(line);
}
// Always set color to NORMAL, so there's no need to do this in every ascii file.