Opal::UI::ScreenStack
Screen stack orchestrator inspired by Python Textual's Screen Stack. Manages navigation flow, modal dialog layering, backdrop dimming, and dismissal callbacks.
Constructors
new(initial_screen : Screen | Nil = nil)
SourceInstance methods
empty?
Sourcepush_screen(screen : Screen, &callback : ModalResult -> Nil) : Screen
Pushes a new screen onto the stack with optional dismissal callback
record_cast(output_path : String, width : Int32 = 80, height : Int32 = 24, title : String = "Opal Session", &block : Asciicast::ScreenRecorder -> Nil) : Nil
Sourcerender(buffer : Buffer, x : Int32 = 0, y : Int32 = 0, width : Int32 = buffer.width, height : Int32 = buffer.height) : Nil
Renders the screen stack with automatic modal backdrop compositing
size
Sourcestack
Source