nicer banner

This commit is contained in:
Quinten Mennen 2025-02-06 16:37:28 +01:00
parent 43583e5795
commit 0c23778911
2 changed files with 21 additions and 8 deletions

View File

@ -24,7 +24,7 @@ char *get_user(t_enviroment *enviroment)
}
str2 = ft_strjoin(GREEN, str1);
free(str1);
str1 = ft_strjoin(str2, RESET "@" GREEN "minishell" RESET ": ");
str1 = ft_strjoin(str2, RESET "🐚" GREEN "minishell" RESET ": ");
free(str2);
return (str1);
}

View File

@ -14,15 +14,28 @@
void print_banner(void)
{
/*
printf("%s\n", RED "\n"
"██████████████████████████████████████████████████\n\n"
"▒▒▓▓███████████████████████████████████████████████████████████████████████████████████████████████████████████▓▓▒▒\n\n"
GREEN
" • ▌ ▄ ·. ▪ ▐ ▄ ▪ .▄▄ · ▄ .▄▄▄▄ .▄▄▌ ▄▄▌ \n"
" ·██ ▐███▪██ •█▌▐███ ▐█ ▀. ██▪▐█▀▄.▀·██• ██• \n"
" ▐█ ▌▐▌▐█·▐█·▐█▐▐▌▐█·▄▀▀▀█▄██▀▐█▐▀▀▪▄██▪ ██▪ \n"
" ██ ██▌▐█▌▐█▌██▐█▌▐█▌▐█▄▪▐███▌▐▀▐█▄▄▌▐█▌▐▌▐█▌▐▌\n"
" ▀▀ █▪▀▀▀▀▀▀▀▀ █▪▀▀▀ ▀▀▀▀ ▀▀▀ · ▀▀▀ .▀▀▀ .▀▀▀ \n\n"
" ░▒▓██████████████▓▒░░▒▓█▓▒░▒▓███████▓▒░░▒▓█▓▒░░▒▓███████▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓████████▓▒░▒▓█▓▒░ ░▒▓█▓▒░ \n"
" ░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ \n"
" ░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ \n"
" ░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓██████▓▒░░▒▓████████▓▒░▒▓██████▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ \n"
" ░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ \n"
" ░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ \n"
" ░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░▒▓███████▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓████████▓▒░▒▓████████▓▒░▒▓████████▓▒░ \n\n"
RED
"██████████████████████████████████████████████████\n"
"▒▒▓▓███████████████████████████████████████████████████████████████████████████████████████████████████████████▓▓▒▒\n\n"
RESET);
*/
printf("%s\n",
"\033[2J\033[1;1H" GREEN
" • • ┓ ┓┓\n"
" ┏┳┓┓┏┓┓┏┣┓┏┓┃┃\n"
" ┛┗┗┗┛┗┗┛┛┗┗ ┗┗\n"
RED
"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"
RESET);
}