#include "kern/print.hpp" #include "x86_64/vga/text.hpp" namespace teachos::arch::io { auto init() -> void { teachos::set_print_handler( [](auto text) { return x86_64::vga::text::write(text, x86_64::vga::text::common_attributes::green_on_black); }); teachos::set_println_handler( [](auto text) { return x86_64::vga::text::write(text, x86_64::vga::text::common_attributes::green_on_black); }); teachos::set_print_error_handler( [](auto text) { return x86_64::vga::text::write(text, x86_64::vga::text::common_attributes::red_on_black); }); teachos::set_println_error_handler( [](auto text) { return x86_64::vga::text::write(text, x86_64::vga::text::common_attributes::red_on_black); }); teachos::println("[x86-64] Basic VGA text output initialized."); } } // namespace teachos::arch::io