🆕 输入about即可展示系统的“关于”信息

This commit is contained in:
fslongjin
2022-06-08 00:19:08 +08:00
parent 4e04ab9eee
commit 8f180254bc
5 changed files with 124 additions and 67 deletions

View File

@ -1,8 +1,31 @@
#include <libc/stdio.h>
void print_ascii_logo()
{
printf(" ____ ___ ____ \n");
printf("| _ \\ _ __ __ _ __ _ ___ _ __ / _ \\ / ___| \n");
printf("| | | || '__| / _` | / _` | / _ \\ | '_ \\ | | | |\\___ \\ \n");
printf("| |_| || | | (_| || (_| || (_) || | | || |_| | ___) |\n");
printf("|____/ |_| \\__,_| \\__, | \\___/ |_| |_| \\___/ |____/ \n");
printf(" |___/ \n");
}
void print_copyright()
{
printf(" DragonOS - An opensource operating system.\n");
printf(" Copyright: fslongjin. 2022, All rights reserved.\n");
printf(" You can visit the project via:\n");
printf("\n");
put_string(" https://github.com/fslongjin/DragonOS\n", COLOR_ORANGE, COLOR_BLACK);
printf("\n");
printf(" Email: longjin@RinGoTek.cn\n");
printf("\n");
}
int main()
{
printf("Hello World!\n");
exit(0);
while(1);
// printf("Hello World!\n");
print_ascii_logo();
print_copyright();
exit(1);
while (1)
;
}