mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
Kernel: Mark Console::{hide,show}_cursor methods protected
Only the Console code in the Graphics directory should be able to call on these methods. The set_cursor method stays public as VirtualConsole uses that method to change the cursor position.
This commit is contained in:
parent
a40f289ee5
commit
0a5416a87a
3 changed files with 9 additions and 6 deletions
|
@ -50,8 +50,6 @@ public:
|
|||
virtual bool has_hardware_cursor() const = 0;
|
||||
|
||||
virtual void set_cursor(size_t x, size_t y) = 0;
|
||||
virtual void hide_cursor() = 0;
|
||||
virtual void show_cursor() = 0;
|
||||
|
||||
virtual void clear(size_t x, size_t y, size_t length) = 0;
|
||||
virtual void write(size_t x, size_t y, char ch, Color background, Color foreground, bool critical = false) = 0;
|
||||
|
@ -62,6 +60,9 @@ public:
|
|||
virtual ~Console() = default;
|
||||
|
||||
protected:
|
||||
virtual void hide_cursor() = 0;
|
||||
virtual void show_cursor() = 0;
|
||||
|
||||
Console(size_t width, size_t height)
|
||||
: m_width(width)
|
||||
, m_height(height)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue