#include "kapi/io.hpp" #include "x86_64/vga/text.hpp" namespace teachos::io { auto init() -> void { x86_64::vga::text::clear(); x86_64::vga::text::cursor(false); } auto print(std::string_view text) -> void { x86_64::vga::text::write(text, x86_64::vga::text::common_attributes::green_on_black); } auto println(std::string_view text) -> void { x86_64::vga::text::write(text, x86_64::vga::text::common_attributes::green_on_black); x86_64::vga::text::newline(); } auto print_error(std::string_view text) -> void { x86_64::vga::text::write(text, x86_64::vga::text::common_attributes::red_on_black); } auto println_error(std::string_view text) -> void { x86_64::vga::text::write(text, x86_64::vga::text::common_attributes::red_on_black); x86_64::vga::text::newline(); } } // namespace teachos::io