From 6f54758123abe9f137922df1e8d7e33835e9a9f2 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 10 Feb 2021 22:53:50 +0200 Subject: Update VGA cursor position on printk --- src/vga.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/vga.h') diff --git a/src/vga.h b/src/vga.h index 32c152f..7a8c755 100644 --- a/src/vga.h +++ b/src/vga.h @@ -1,5 +1,6 @@ #pragma once #include +#include "ports.h" class VGA : public Console { public: @@ -28,6 +29,10 @@ public: void set_color(vga_color fg, vga_color bg); + void enable_cursor(uint8_t start, uint8_t end); + void disable_cursor(); + void update_cursor() override; + void write(char c) override; void write(ViewIterator& iter) override; @@ -46,5 +51,9 @@ private: vga_color color_bg; Entry* buffer; + + // ports + vga_horizontal_total p_3d4; + vga_horizontal_display_enable_end p_3d5; }; -- cgit v1.2.1