Guide
Terminal
Run the same view inside kitty or Ghostty instead of a window.
render takes terminal: true, and the runtime paints the app into the terminal it was started from:
import { render } from "@gpuix/react";
render(<App />, { terminal: true });GPUIX_TERMINAL=1 sets the same option, so an unchanged entrypoint runs either way:
GPUIX_TERMINAL=1 nub src/main.tsxThe playground in this repository:
nub run --filter playground build
GPUIX_TERMINAL=1 nub apps/playground/dist/main.jsEdit this page on GitHubapps/docs/content/docs/getting-started/terminal.mdx