Clear (Popup, Modal) Example

widget_popup

Demonstrates how to render opaque overlays on top of content.

Terminal renders are additive. If you draw a new widget over an old one, the background colors might mix if not handled correctly. The Clear widget resets the area to default (usually transparent/black) to ensure a clean canvas for popups.

Features Demonstrated

Hotkeys

Usage

ruby examples/widget_popup/app.rb

Learning Outcomes

Use this example if you need to…

Read the source code β†’