Std.Ui.Desktop.drive
1 declaration
fn
drive: &Std.Ui.Desktop.Session -> &Std.Ui.Screen.Screen[S] -> Int -> fn(S, Str) -> Option[S] -> Result[Std.Ui.Screen.Screen[S], Std.Ui.Desktop.DriveError]Runs screen in the window until the person closes it.
Each turn pumps for at most frameMillis, hands every input to the screen, offers every shortcut to onShortcut (a new state re-renders, None ignores it), and presents only when a frame changed. Every frame presented is exposed to assistive clients with its layout and focus. Chosen menu commands are ignored; driveCommands routes them. Answers the screen as it was when the window closed; the caller still closes the session.
