Scroll Text Example

Demonstrates scrolling long text content within a fixed viewport.

Sometimes text exceeds the available space. The Paragraph widget supports a scroll parameter to simulate a viewport, allowing users to pan vertically and horizontally.

Features Demonstrated

Hotkeys

Usage

ruby examples/widget_scroll_text/app.rb

Learning Outcomes

Use this example if you need toโ€ฆ - Build a log viewer. - Create a โ€œterms and conditionsโ€ scrollbox. - Display code snippets that might be wider than the terminal.

Demo