mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:57:35 +00:00
LibVT: Move most of key press handling logic into VT::Terminal
This will let us share it between the userspace (TerminalWidget) and the Kernel.
This commit is contained in:
parent
fce49b3e32
commit
620697d924
3 changed files with 88 additions and 74 deletions
|
@ -30,6 +30,7 @@
|
|||
#include <AK/NonnullOwnPtrVector.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <Kernel/KeyCode.h>
|
||||
#include <LibVT/Line.h>
|
||||
#include <LibVT/Position.h>
|
||||
|
||||
|
@ -95,6 +96,7 @@ public:
|
|||
const NonnullOwnPtrVector<Line>& history() const { return m_history; }
|
||||
|
||||
void inject_string(const StringView&);
|
||||
void handle_key_press(KeyCode, u8 charatcter, u8 flags);
|
||||
|
||||
Attribute attribute_at(const Position&) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue