Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Commit

Permalink
Stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinAlavik committed Mar 26, 2024
1 parent be51253 commit 7bd2b2e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 32 deletions.
8 changes: 0 additions & 8 deletions kernel/entry/kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,10 @@ return codes)
#include <printf.h>
#include <transform.h>
#include <vector.h>

void terminal_launch()
{
tty_spawn(1, "/usr/share/fonts/Uni3-Terminus20x10.psf");
keyboard.out = true;
}

int main()
{
keyboard.out = false;
tty_spawn(0, "/usr/share/fonts/Uni3-Terminus12x6.psf");
register_pci();
terminal_launch();
return KERNEL_QUIT_HANG;
}
24 changes: 1 addition & 23 deletions kernel/system/devices/keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,29 +84,7 @@ void keyboard_handler(int_frame_t *frame)

if ((keyboard.out) && letterString)
{
if (strcmp(letterString, "0") == 0) {
tty_spawn(0, "/usr/share/fonts/Uni3-Terminus20x10.psf");
} else if (strcmp(letterString, "1") == 0) {
tty_spawn(1, "/usr/share/fonts/Uni3-Terminus20x10.psf");
} else if (strcmp(letterString, "2") == 0) {
tty_spawn(2, "/usr/share/fonts/Uni3-Terminus20x10.psf");
} else if (strcmp(letterString, "3") == 0) {
tty_spawn(3, "/usr/share/fonts/Uni3-Terminus20x10.psf");
} else if (strcmp(letterString, "4") == 0) {
tty_spawn(4, "/usr/share/fonts/Uni3-Terminus20x10.psf");
} else if (strcmp(letterString, "5") == 0) {
tty_spawn(5, "/usr/share/fonts/Uni3-Terminus20x10.psf");
} else if (strcmp(letterString, "6") == 0) {
tty_spawn(6, "/usr/share/fonts/Uni3-Terminus20x10.psf");
} else if (strcmp(letterString, "7") == 0) {
tty_spawn(7, "/usr/share/fonts/Uni3-Terminus20x10.psf");
} else if (strcmp(letterString, "8") == 0) {
tty_spawn(8, "/usr/share/fonts/Uni3-Terminus20x10.psf");
} else if (strcmp(letterString, "9") == 0) {
tty_spawn(9, "/usr/share/fonts/Uni3-Terminus20x10.psf");
} else {
printf("%s", letterString);
}
printf("%s", letterString);
}

i8259_SendEndOfInterrupt(1);
Expand Down
2 changes: 1 addition & 1 deletion kernel/tty/tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void tty_switch(uint8_t id) {

cur_tty = ttys[id];
cur_tty_id = id;
tty_flush();
// tty_flush();
printf("Paradox 1.4.1-dev (tty%d)\n\n", cur_tty_id);
}

Expand Down

0 comments on commit 7bd2b2e

Please sign in to comment.