aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/kapi/io.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-07-24 20:51:55 +0000
committerFelix Morgner <felix.morgner@ost.ch>2025-07-24 20:51:55 +0000
commitdd04850c27e8bc273506f4a64bb28b7ddf111dc5 (patch)
treea00212f5c903e80e4e729c87ce34ece2c40e4ee6 /arch/x86_64/kapi/io.cpp
parentfeac668578a35aac280b59d478a57b6937bb68da (diff)
downloadteachos-dd04850c27e8bc273506f4a64bb28b7ddf111dc5.tar.xz
teachos-dd04850c27e8bc273506f4a64bb28b7ddf111dc5.zip
kapi: rework text device interface
Diffstat (limited to 'arch/x86_64/kapi/io.cpp')
-rw-r--r--arch/x86_64/kapi/io.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/arch/x86_64/kapi/io.cpp b/arch/x86_64/kapi/io.cpp
deleted file mode 100644
index eab6473..0000000
--- a/arch/x86_64/kapi/io.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-#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