diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-07-14 16:25:00 +0000 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-07-14 16:25:00 +0000 |
| commit | ec572bff8150e2f8cd2dc99e053c5e8c8a0b99e3 (patch) | |
| tree | f66048c99b5015bf9cb7603b7be09c2a28d766ee /arch/x86_64/src/io.cpp | |
| parent | 25483b7af8df6b08d460f807fda04c6d409bd44e (diff) | |
| download | teachos-ec572bff8150e2f8cd2dc99e053c5e8c8a0b99e3.tar.xz teachos-ec572bff8150e2f8cd2dc99e053c5e8c8a0b99e3.zip | |
arch: prepare interfaces
Diffstat (limited to 'arch/x86_64/src/io.cpp')
| -rw-r--r-- | arch/x86_64/src/io.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/x86_64/src/io.cpp b/arch/x86_64/src/io.cpp new file mode 100644 index 0000000..8808dbb --- /dev/null +++ b/arch/x86_64/src/io.cpp @@ -0,0 +1,22 @@ +namespace teachos::arch::io +{ + + // using x86_64::vga::text_mode::attributes; + // using x86_64::vga::text_mode::color; + + // namespace + // { + // auto constexpr error_attributes = + // attributes{.foreground = color::light_gray, .bright = true, .background = color::red, .blink = true}; + // } // namespace + + auto init() -> void + { + // kernel::set_print_handler([](auto text) { return x86_64::vga::text_mode::print(text); }); + // kernel::set_println_handler([](auto text) { return x86_64::vga::text_mode::println(text); }); + // kernel::set_print_error_handler([](auto text) { return x86_64::vga::text_mode::print(text, error_attributes); }); + // kernel::set_println_error_handler( + // [](auto text) { return x86_64::vga::text_mode::println(text, error_attributes); }); + } + +} // namespace teachos::arch::io |
