← all modules

Std.Tui

Std.Tui
  Std.Tui — terminal UI backend (Layer 3 Sky source).

Types
  type AppConfig = AppConfig_OPAQUE

Values
  app : AppConfig model msg -> Task Error ()
      Run a full-screen Std.Ui-rendered terminal app.
  config : { init : a -> ( model, Cmd msg ) , update : msg -> model -> ( model, Cmd msg ) , view : model -> render , subscriptions : model -> Sub msg } -> AppConfig model msg
      Build the app config from the four required fields. `view` is
  program : AppConfig model msg -> Task Error ()
      Run the lighter terminal loop (string `view`); requires an `onKey`
  withCanvasHeight : Int -> AppConfig model msg -> AppConfig model msg
      Override the logical design height in pixels (default 720).
  withCanvasWidth : Int -> AppConfig model msg -> AppConfig model msg
      Override the logical design width in pixels (default 1280).
  withGuard : (msg -> model -> Result Error ()) -> AppConfig model msg -> AppConfig model msg
      Attach a per-Msg guard — `guard msg model` returns `Err` to reject the
  withOnKey : (key -> msg) -> AppConfig model msg -> AppConfig model msg
      Attach a raw key-event handler — `onKey keyEvent` yields a `msg`. The