moo.sdk.output.open_window

moo.sdk.output.open_window(obj, *args, height=1, title=None, callback_verb=None)

Switch the player’s rich client into windowed display mode.

Opens a persistent split-screen layout: a fixed top region of height rows (painted with window_write(), or window_cursor() + window_emit()), a scrolling output region, and an input line. The session stays in window mode until close_window(), the player presses the close key, or they disconnect. Window mode is mutually exclusive with the editor and paginator.

No-ops for non-rich clients. GMCP-capable clients (e.g. Mudlet) instead receive a Window.Open event so they can render a native status area.

Parameters:
  • obj – the player Object whose client should enter window mode

  • height (int) – number of rows in the fixed top region

  • title (str | None) – optional title for the top region

  • callback_verb – optional Verb invoked when the window closes, with the close reason as args[0] followed by any extra positional args