1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

LibLine: Parse CSI parameters and immediates

No behavior change, but it makes it easy to handle
page up and page down if we wanted to make them do something
in libline.
This commit is contained in:
Nico Weber 2020-09-13 20:33:04 -04:00 committed by Andreas Kling
parent 365fa05a82
commit 2fe127d96f
2 changed files with 52 additions and 22 deletions

View file

@ -471,8 +471,9 @@ private:
enum class InputState {
Free,
GotEscape,
GotEscapeFollowedByLeftBracket,
ExpectTerminator,
CSIExpectParameter,
CSIExpectIntermediate,
CSIExpectFinal,
};
InputState m_state { InputState::Free };