aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/io.cpp
blob: 8808dbb6a31fcaa0231adc2e3fdf900dacc7325e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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