summaryrefslogtreecommitdiff
path: root/Widgets/TerminalWidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'Widgets/TerminalWidget.h')
-rw-r--r--Widgets/TerminalWidget.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/Widgets/TerminalWidget.h b/Widgets/TerminalWidget.h
deleted file mode 100644
index 78b9415475..0000000000
--- a/Widgets/TerminalWidget.h
+++ /dev/null
@@ -1,41 +0,0 @@
-#pragma once
-
-#include "Widget.h"
-#include <AK/ByteBuffer.h>
-
-struct CharacterWithAttributes {
- byte character;
- byte attribute;
-};
-
-class TerminalWidget final : public Widget {
-public:
- explicit TerminalWidget(Widget* parent);
- virtual ~TerminalWidget() override;
-
- 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 paintEvent(PaintEvent&) override;
- virtual void keyDownEvent(KeyEvent&) override;
- virtual void keyUpEvent(KeyEvent&) override;
- virtual void timerEvent(TimerEvent&) override;
-
- void bell();
-
- unsigned m_columns { 80 };
- unsigned m_rows { 25 };
-
- unsigned m_cursorRow { 0 };
- unsigned m_cursorColumn { 0 };
-
- CharacterWithAttributes* m_screen { nullptr };
-
- bool m_belling { false };
-};