Improved shell by adding font changing. Type the font file you want to change to and it will!

This commit is contained in:
2024-05-02 10:02:48 +02:00
parent 4a620a2e45
commit 6d0c07568f
+6 -2
View File
@@ -48,7 +48,7 @@ void main() {
// Screen setup // Screen setup
// TODO: Find font in filetable // TODO: Find font in filetable
diskRead(36, 4, (char*)0x6000); // Read font from disk diskRead(36, 4, font); // Read font from disk
clear(); clear();
print("kern.\n\n"); print("kern.\n\n");
@@ -260,7 +260,11 @@ void main() {
} else if (strcmp(fileType, "tab") == 0) { } else if (strcmp(fileType, "tab") == 0) {
printFiletable(address); printFiletable(address);
} else if (strcmp(fileType, "fnt") == 0) { } else if (strcmp(fileType, "fnt") == 0) {
print("Loading...\n"); print("Loading ");
print(filename);
print("...\n");
memcopy(address, font, size * 512);
print("Font loaded\n");
} else { } else {
for (size_t i = 0; i < size * 512; i++) { for (size_t i = 0; i < size * 512; i++) {
if (address[i] != '\0') { if (address[i] != '\0') {