mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:27:43 +00:00
LibVT+Kernel: Separate the caret shapes and its steadiness
Currently CursorStyle enum handles both the styles and the steadiness or blinking of the terminal caret, which doubles the amount of its entries. This commit changes CursorStyle to CursorShape and moves the blinking option to a seperate boolean value.
This commit is contained in:
parent
1950e79d48
commit
e2b0f6795f
6 changed files with 101 additions and 81 deletions
|
@ -358,7 +358,12 @@ void VirtualConsole::emit(u8 const* data, size_t size)
|
|||
TTY::emit(data[i], true);
|
||||
}
|
||||
|
||||
void VirtualConsole::set_cursor_style(VT::CursorStyle)
|
||||
void VirtualConsole::set_cursor_shape(VT::CursorShape)
|
||||
{
|
||||
// Do nothing
|
||||
}
|
||||
|
||||
void VirtualConsole::set_cursor_blinking(bool)
|
||||
{
|
||||
// Do nothing
|
||||
}
|
||||
|
|
|
@ -101,7 +101,8 @@ private:
|
|||
virtual void terminal_did_resize(u16 columns, u16 rows) override;
|
||||
virtual void terminal_history_changed(int) override;
|
||||
virtual void emit(u8 const*, size_t) override;
|
||||
virtual void set_cursor_style(VT::CursorStyle) override;
|
||||
virtual void set_cursor_shape(VT::CursorShape) override;
|
||||
virtual void set_cursor_blinking(bool) override;
|
||||
|
||||
// ^CharacterDevice
|
||||
virtual StringView class_name() const override { return "VirtualConsole"sv; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue