I customized it
This commit is contained in:
BIN
BUGS/bugs.bin
BIN
BUGS/bugs.bin
Binary file not shown.
BIN
BUGS/bugs.iso
BIN
BUGS/bugs.iso
Binary file not shown.
Binary file not shown.
@@ -167,25 +167,32 @@ void kernel_main(void) {
|
|||||||
for (size_t i = 0; i < VGA_WIDTH * VGA_HEIGHT; i++) vga_buffer[i] = (uint16_t)' ' | (uint16_t)7 << 8;
|
for (size_t i = 0; i < VGA_WIDTH * VGA_HEIGHT; i++) vga_buffer[i] = (uint16_t)' ' | (uint16_t)7 << 8;
|
||||||
update_cursor(0, 0);
|
update_cursor(0, 0);
|
||||||
|
|
||||||
printf("BUGS v1.2 (Scroll & Shift Enabled)\n");
|
printf("BUGS-1 A-1-i (Study Edition)\n");
|
||||||
|
printf("Testing and Study Edition, features unverified.\n");
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
printf("BUGS> ");
|
printf("BUGS > ");
|
||||||
char input[64];
|
char input[64];
|
||||||
scanf(input);
|
scanf(input);
|
||||||
|
|
||||||
if (strcmp(input, "clear") == 0) {
|
if (strcmp(input, "about") == 0){
|
||||||
|
printf("Buggy Unverified Greatish Script - Implementation 1\n");
|
||||||
|
printf("Version: BUGS-1 A-1-i \"Study Edition\"\n");
|
||||||
|
printf("Made with Gemini, customized and compiled by P7MJ\n");
|
||||||
|
} else if (strcmp(input, "clear") == 0) {
|
||||||
for (size_t i = 0; i < VGA_WIDTH * VGA_HEIGHT; i++) vga_buffer[i] = (uint16_t)' ' | (uint16_t)7 << 8;
|
for (size_t i = 0; i < VGA_WIDTH * VGA_HEIGHT; i++) vga_buffer[i] = (uint16_t)' ' | (uint16_t)7 << 8;
|
||||||
terminal_row = 0; terminal_col = 0;
|
terminal_row = 0; terminal_col = 0;
|
||||||
update_cursor(0,0);
|
update_cursor(0,0);
|
||||||
} else if (strcmp(input, "help") == 0) {
|
|
||||||
printf("Commands: help, clear, color, test\n");
|
|
||||||
} else if (strcmp(input, "color") == 0) {
|
} else if (strcmp(input, "color") == 0) {
|
||||||
terminal_color = (terminal_color + 1) % 15;
|
terminal_color = (terminal_color + 1) % 15;
|
||||||
if (terminal_color == 0) terminal_color = 1;
|
if (terminal_color == 0) terminal_color = 1;
|
||||||
printf("Text color changed!\n");
|
printf("Text color changed!\n");
|
||||||
} else if (strcmp(input, "test") == 0) {
|
} else if (strcmp(input, "help") == 0) {
|
||||||
printf("Symbols: !@#$%^&*()_+\n");
|
printf("BUILT-IN COMMANDS:\nabout clear color help poweroff test-symbols\n");
|
||||||
|
} else if (strcmp(input, "poweroff") == 0) {
|
||||||
|
printf("Maybe some day I'll do this.\n");
|
||||||
|
} else if (strcmp(input, "test-symbols") == 0) {
|
||||||
|
printf("Symbols: !@#$%%^&*()_+\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BIN
BUGS/kernel.o
BIN
BUGS/kernel.o
Binary file not shown.
Reference in New Issue
Block a user