diff options
-rw-r--r-- | Userland/Libraries/LibVT/TerminalWidget.cpp | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibVT/TerminalWidget.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibVT/TerminalWidget.cpp b/Userland/Libraries/LibVT/TerminalWidget.cpp index 064c77b376..58e524f2db 100644 --- a/Userland/Libraries/LibVT/TerminalWidget.cpp +++ b/Userland/Libraries/LibVT/TerminalWidget.cpp @@ -548,6 +548,11 @@ void TerminalWidget::set_opacity(u8 new_opacity) update(); } +void TerminalWidget::set_show_scrollbar(bool show_scrollbar) +{ + m_scrollbar->set_visible(show_scrollbar); +} + bool TerminalWidget::has_selection() const { return m_selection.is_valid(); diff --git a/Userland/Libraries/LibVT/TerminalWidget.h b/Userland/Libraries/LibVT/TerminalWidget.h index c6e16d02c0..109e3cb418 100644 --- a/Userland/Libraries/LibVT/TerminalWidget.h +++ b/Userland/Libraries/LibVT/TerminalWidget.h @@ -43,6 +43,8 @@ public: void set_opacity(u8); float opacity() { return m_opacity; }; + void set_show_scrollbar(bool); + enum class BellMode { Visible, AudibleBeep, |