ludic/docs/language/app/app-window_show.md
Orkuncakilkaya 43d5eb5b88 feat(launcher): Process.*, Http.save_to/received/expected, App.window_hide/show
Process.spawn/poll/kill/free - non-blocking child processes with no shell: posix_spawn on
macOS (process.ll), CreateProcessW with MSVC-quoted arguments and no console window on
Windows (process_win.ll), linked only when a program uses Process.*.

Http.save_to streams a response body into a file (NSURLSession with a run-time delegate
class on macOS, the WinHTTP read loop on Windows); Http.received / Http.expected report
progress while it is pending. Freeing a pending request cancels it and parks the slot
until the worker has finished.

App.window_hide / App.window_show take the game's window off the screen and back without
closing it; the run goes on while hidden. Docs, examples, tests and a changeset.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 13:32:23 +03:00

897 B

id name category kind tokens sig tip order ns member
app-window_show App.window_show app namespace-method App.window_show App.window_show() -> void Bring the game's window back. 4 App window_show

Puts a window hidden by App.window_hide back on screen, in front and focused, as it was. Safe to call on a window that is already showing, when there is no window, and headless, where it lowers to nothing.

program Demo {
  entry {
    App.window_hide()
    wait_for_the_game()
    App.window_show()
  }
}

On macOS makeKeyAndOrderFront: and the application is activated. On Windows ShowWindow(SW_SHOW) and SetForegroundWindow; Windows may refuse the focus to a program that is not in the foreground, in which case the window comes back and its taskbar button flashes instead.