Minor program improvements

This commit is contained in:
xamidev
2024-08-05 19:25:13 +02:00
parent c988b281ad
commit 4b6beb5ba9
6 changed files with 47 additions and 2 deletions

View File

@@ -33,6 +33,7 @@ int kmain(int retvalue)
clear();
colorputs(ascii_title, 10);
colorputs(" by @xamidev - star the repo for a cookie!\n\n", 11);
// TODO: Grub modules to load programs

View File

@@ -21,7 +21,7 @@ void shell_install()
}
else if (strcmp(input_buffer, "help") == 0)
{
printf("This is the Blank Operating System\ndesigned for fun by xamidev\n\nCommand help:\n\n\thelp - shows this message\n\tpanic - makes the kernel panic\n\twords - generates random words\n\tprimes - computes prime numbers\n");
printf("help\tpanic\twords\tprimes\trainbow\tclear\n");
}
else if (strcmp(input_buffer, "panic") == 0)
{
@@ -35,6 +35,14 @@ void shell_install()
{
program_primes();
}
else if (strcmp(input_buffer, "rainbow") == 0)
{
program_rainbow();
}
else if (strcmp(input_buffer, "clear") == 0)
{
program_clear();
}
else {
printf("Unknown command %s\n", input_buffer);
}