@@ -67,24 +67,24 @@ void push_command_to_list(command_list* lst, const char* value, size_t length)
6767bool running = true;
6868
6969void welcome_message (){
70- print ("\e[1;34m ______ _ _ _____ _ _ _ \n" );
71- printf ("| ____| | | | |/ ____| | | | |" );
72- printf ("| |__ _ __ ___ ___| |_ ___ __| | (___ | |__ ___| | |" );
73- printf ("| __| '__/ _ \\/ __| __/ _ \\/ _` |\\___ \\| '_ \\ / _ \\ | |" );
74- printf ("| | | | | (_) \\__ \\ || __/ (_| |____) | | | | __/ | |" );
75- print ("|_| |_| \\___/|___/\\__\\___|\\__,_|_____/|_| |_|\\___|_|_|\e[0m\n\n" );
76-
77- print ("\033[1;32mWelcome to frosted shell!\033[0m This is an implementation of \033[0;34msh\033[0m.\n" );
78- print ("We as the developers try to make this shell as similar as \033[0;34msh\033[0m.\n\n" );
79-
80- print ("Website : \e[1;34mhttps://prad.digital\033[0m\n" );
81- print ("Wiki : \e[1;34mhttps://github.com/Frost-Wing/osdev/wiki\033[0m\n" );
82- print ("Github : \e[1;34mhttps://github.com/Frost-Wing\033[0m\n\n" );
83-
70+ printf (blue_color " ______ _ _ _____ _ _ _ " );
71+ printf (blue_color "| ____| | | | |/ ____| | | | |" );
72+ printf (blue_color "| |__ _ __ ___ ___| |_ ___ __| | (___ | |__ ___| | |" );
73+ printf (blue_color "| __| '__/ _ \\/ __| __/ _ \\/ _` |\\___ \\| '_ \\ / _ \\ | |" );
74+ printf (blue_color "| | | | | (_) \\__ \\ || __/ (_| |____) | | | | __/ | |" );
75+ printf (blue_color "|_| |_| \\___/|___/\\__\\___|\\__,_|_____/|_| |_|\\___|_|_|" reset_color "\n" );
76+
77+ printf (green_color "Welcome to frosted shell!" reset_color " This is an implementation of " blue_color "sh" reset_color "." );
78+ printf ("We as the developers try to make this shell as similar as " blue_color "sh" reset_color ".\n" );
79+
80+ printf ("Wiki : " blue_color "https://github.com/Frost-Wing/osdev/wiki" reset_color "" );
81+ printf ("Github : " blue_color "https://github.com/Frost-Wing" reset_color "\n" );
82+
8483 uint8_t second , minute , hour , day , month , year ;
8584 update_system_time (& second , & minute , & hour , & day , & month , & year );
8685
87- printf ("Time : %d:%d:%d %d/%d/%d" , hour , minute , second , day , month , year );
86+ printf ("Time : %02d:%02d:%02d %02d/%02d/%02d" ,
87+ hour , minute , second , day , month , year );
8888}
8989
9090extern int64 * wm_addr ;
@@ -393,7 +393,8 @@ static command_t commands[] = {
393393 { "lspci" , cmd_lspci },
394394 { "lsblk" , cmd_lsblk },
395395 { "mount" , cmd_mount },
396- { "mv" , cmd_mv }
396+ { "mv" , cmd_mv },
397+ { "umount" , cmd_umount }
397398 // { "fwfetch", cmd_fwfetch },
398399 // { "help", cmd_help },
399400};
0 commit comments