diff --git a/Userland/Libraries/LibVT/TerminalWidget.cpp b/Userland/Libraries/LibVT/TerminalWidget.cpp index 064c77b3765..58e524f2db0 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 c6e16d02c0b..109e3cb4186 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,