Files
dev/third_party/pi/packages/tui/native/win32
alexion 6081e3e325 chore(vendor): import pi 1.3.0
Imported as a linear vendor commit so forge rebases do not replay the upstream root tree.

git-subtree-dir: third_party/pi

git-subtree-split: 71023aec1546d6d677a65669c5665c0927ce0dd0
2026-10-15 17:58:48 -04:00
..
2026-10-15 17:58:48 -04:00
2026-10-15 17:58:48 -04:00
2026-10-15 17:58:48 -04:00
2026-10-15 17:58:48 -04:00

Windows native prebuilds

Provides console input setup, modifier-key state, and asynchronous text/image clipboard access. Links to kernel32 and user32; no Node headers are required.

Building

On Windows, install Visual Studio's "Desktop development with C++" workload, then run from the repository root to build x64 and arm64:

npm --prefix packages/tui run build:native:win32

For cross-builds or custom toolchains, provide MinGW-compatible compilers:

PI_TUI_WIN32_TOOLCHAIN=mingw \
CC_X64=/path/to/x86_64-w64-mingw32-gcc \
CC_ARM64=/path/to/aarch64-w64-mingw32-gcc \
npm --prefix packages/tui run build:native:win32

Testing clipboard writes

On a Windows test desktop, run from packages/tui in PowerShell:

$env:PI_TEST_NATIVE_CLIPBOARD = "1"
node --test test/native-platform.test.ts

This opt-in test checks native text writes and reads. It replaces the system clipboard contents.