mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:27:45 +00:00
Rage hacking on TerminalWidget.
There's some really hideous plumbing with globals going on here, but my priority right now is getting a basic VT100 terminal emulator working.
This commit is contained in:
parent
f282df6617
commit
ab5266b924
8 changed files with 136 additions and 15 deletions
|
@ -15,13 +15,16 @@ public:
|
|||
|
||||
unsigned rows() const { return m_rows; }
|
||||
unsigned columns() const { return m_columns; }
|
||||
|
||||
void onReceive(const ByteBuffer&);
|
||||
void onReceive(byte);
|
||||
|
||||
private:
|
||||
CharacterWithAttributes& at(unsigned row, unsigned column);
|
||||
|
||||
virtual void onPaint(PaintEvent&) override;
|
||||
void onReceive(const ByteBuffer&);
|
||||
void onReceive(byte);
|
||||
virtual void onKeyDown(KeyEvent&) override;
|
||||
virtual void onKeyUp(KeyEvent&) override;
|
||||
|
||||
unsigned m_columns { 80 };
|
||||
unsigned m_rows { 25 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue