moo.shell.window.build_window_app

moo.shell.window.build_window_app(state, on_accept, style=None)

Build the full-screen windowed-display Application.

Parameters:
  • state (WindowState) – the shared WindowState

  • on_accept – sync Buffer accept handler (buffer) -> bool that bridges the typed line to the command pipeline (returns False so the input buffer clears)

  • style – optional prompt_toolkit Style (the driver passes its own palette so colours match the normal shell)

Return type:

Application