mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-28 16:29:34 +08:00
Restore cursor shape on exit. (#793)
Fixed: https://github.com/ArthurSonzogni/FTXUI/issues/792
This commit is contained in:
@@ -31,12 +31,13 @@ class TerminalInputParser {
|
||||
UNCOMPLETED,
|
||||
DROP,
|
||||
CHARACTER,
|
||||
SPECIAL,
|
||||
MOUSE,
|
||||
CURSOR_REPORTING,
|
||||
CURSOR_POSITION,
|
||||
CURSOR_SHAPE,
|
||||
SPECIAL,
|
||||
};
|
||||
|
||||
struct CursorReporting {
|
||||
struct CursorPosition {
|
||||
int x;
|
||||
int y;
|
||||
};
|
||||
@@ -45,7 +46,8 @@ class TerminalInputParser {
|
||||
Type type;
|
||||
union {
|
||||
Mouse mouse;
|
||||
CursorReporting cursor;
|
||||
CursorPosition cursor;
|
||||
int cursor_shape;
|
||||
};
|
||||
|
||||
Output(Type t) : type(t) {}
|
||||
@@ -59,7 +61,7 @@ class TerminalInputParser {
|
||||
Output ParseCSI();
|
||||
Output ParseOSC();
|
||||
Output ParseMouse(bool altered, bool pressed, std::vector<int> arguments);
|
||||
Output ParseCursorReporting(std::vector<int> arguments);
|
||||
Output ParseCursorPosition(std::vector<int> arguments);
|
||||
|
||||
Sender<Task> out_;
|
||||
int position_ = -1;
|
||||
|
Reference in New Issue
Block a user