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

Add a visual bell to TerminalWidget. Also backspace.

This commit is contained in:
Andreas Kling 2018-10-12 20:05:11 +02:00
parent 20a1795218
commit fb4ae12bc2
4 changed files with 82 additions and 14 deletions

View file

@ -25,6 +25,9 @@ private:
virtual void onPaint(PaintEvent&) override;
virtual void onKeyDown(KeyEvent&) override;
virtual void onKeyUp(KeyEvent&) override;
virtual void onTimer(TimerEvent&) override;
void bell();
unsigned m_columns { 80 };
unsigned m_rows { 25 };
@ -33,4 +36,6 @@ private:
unsigned m_cursorColumn { 0 };
CharacterWithAttributes* m_screen { nullptr };
bool m_belling { false };
};