aboutsummaryrefslogtreecommitdiffstats
path: root/vgaterminal.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2024-09-30 11:08:46 -0400
committerClyne Sullivan <clyne@bitgloo.com>2024-09-30 11:08:46 -0400
commit19d9a04e36e7fb96eebe89e24311408460c29a70 (patch)
tree4d5f5ba595d5a5e2b59ce7b102c06b77c7be7721 /vgaterminal.hpp
parent85c8fd05f1a0c0224882c4fafa60003d3ef56cf3 (diff)
reorganize files
Diffstat (limited to 'vgaterminal.hpp')
-rw-r--r--vgaterminal.hpp51
1 files changed, 0 insertions, 51 deletions
diff --git a/vgaterminal.hpp b/vgaterminal.hpp
deleted file mode 100644
index 9f8d5f3..0000000
--- a/vgaterminal.hpp
+++ /dev/null
@@ -1,51 +0,0 @@
-#ifndef VGATERMINAL_HPP
-#define VGATERMINAL_HPP
-
-#include "textoutput.hpp"
-
-#include <cstddef>
-#include <cstdint>
-
-class VGATerminal : public TextOutput
-{
-public:
- enum class Color : std::uint8_t
- {
- Black = 0,
- Blue,
- Green,
- Cyan,
- Red,
- Magenta,
- Brown,
- LightGray,
- DarkGray,
- LightBlue,
- LightGreen,
- LightCyan,
- LightRed,
- LightMagenta,
- LightBrown,
- White
- };
-
- using enum Color;
-
- virtual void write(char c) noexcept final;
-
-private:
- static constexpr std::uintptr_t Videoram = 0xB8000;
- static constexpr unsigned Width = 80;
- static constexpr unsigned Height = 25;
-
- unsigned offset = 0;
- Color foreground = LightGray;
- Color background = Black;
-
- void put(char c) noexcept;
- void checkpos() noexcept;
- void updatecursor() const noexcept;
-};
-
-#endif // VGATERMINAL_HPP
-