summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibVT/TerminalWidget.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-15 19:58:18 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-15 19:58:47 +0100
commitfc2a4511ece972886c0e6caa16313d9a097339ae (patch)
treea347228793f170df192e1cbd020485b88f6fca73 /Userland/Libraries/LibVT/TerminalWidget.h
parentd9aaa8afe929cb10c65b6dd746fa99bbb8daca97 (diff)
downloadserenity-fc2a4511ece972886c0e6caa16313d9a097339ae.zip
LibVT: Clean up TerminalWidget a bit, removing unused cruft
Diffstat (limited to 'Userland/Libraries/LibVT/TerminalWidget.h')
-rw-r--r--Userland/Libraries/LibVT/TerminalWidget.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/Userland/Libraries/LibVT/TerminalWidget.h b/Userland/Libraries/LibVT/TerminalWidget.h
index a9a8370ecc..49d76ca4b4 100644
--- a/Userland/Libraries/LibVT/TerminalWidget.h
+++ b/Userland/Libraries/LibVT/TerminalWidget.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
+ * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -37,9 +37,11 @@
#include <LibVT/Range.h>
#include <LibVT/Terminal.h>
-class TerminalWidget final : public GUI::Frame
+class TerminalWidget final
+ : public GUI::Frame
, public VT::TerminalClient {
- C_OBJECT(TerminalWidget)
+ C_OBJECT(TerminalWidget);
+
public:
TerminalWidget(int ptm_fd, bool automatic_size_policy, RefPtr<Core::ConfigFile> config);
virtual ~TerminalWidget() override;
@@ -51,10 +53,7 @@ public:
flush_dirty_lines();
}
- void create_window();
-
void flush_dirty_lines();
- void force_repaint();
void apply_size_increments_to_window(GUI::Window&);
@@ -172,7 +171,6 @@ private:
String m_context_menu_href;
BellMode m_bell_mode { BellMode::Visible };
- bool m_belling { false };
bool m_alt_key_held { false };
bool m_rectangle_selection { false };
@@ -190,14 +188,11 @@ private:
RefPtr<Core::Notifier> m_notifier;
u8 m_opacity { 255 };
- bool m_needs_background_fill { true };
bool m_cursor_blink_state { true };
bool m_automatic_size_policy { false };
RefPtr<Gfx::Font> m_bold_font;
- int m_glyph_width { 0 };
-
enum class AutoScrollDirection {
None,
Up,