mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:47:46 +00:00
Add save/unsave cursor escape sequences.
Also added a little terminal test program called /bin/tst.
This commit is contained in:
parent
ea6221dd06
commit
43475f248b
6 changed files with 41 additions and 5 deletions
|
@ -21,12 +21,18 @@ private:
|
|||
void escape$H(const Vector<unsigned>&);
|
||||
void escape$J(const Vector<unsigned>&);
|
||||
void escape$m(const Vector<unsigned>&);
|
||||
void escape$s(const Vector<unsigned>&);
|
||||
void escape$u(const Vector<unsigned>&);
|
||||
|
||||
const byte m_rows { 25 };
|
||||
const byte m_columns { 80 };
|
||||
|
||||
byte m_cursorRow { 0 };
|
||||
byte m_cursorColumn { 0 };
|
||||
|
||||
byte m_savedCursorRow { 0 };
|
||||
byte m_savedCursorColumn { 0 };
|
||||
|
||||
byte m_currentAttribute { 0x07 };
|
||||
|
||||
void executeEscapeSequence(byte final);
|
||||
|
@ -41,7 +47,5 @@ private:
|
|||
EscapeState m_escState { Normal };
|
||||
Vector<byte> m_parameters;
|
||||
Vector<byte> m_intermediates;
|
||||
|
||||
const byte* s_vgaMemory { (const byte*)0xb8000 };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue