blob: 3f169a1711c1faf0b80091cf3cff6636c82a2df5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "kapi/cio.hpp"
#include "x86_64/vga/text.hpp"
namespace teachos::cio
{
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
auto static constinit vga_device = std::optional<vga::x86_64::text::device>{};
auto init() -> void
{
vga_device.emplace();
vga_device->cursor(false);
set_output_device(*vga_device);
}
} // namespace teachos::cio
|