Files
gex/web/nt.html
velzieandClaude Opus 5.5 a758e655fb nt: the browser NtDisplay, and a Windows window in headless Chromium
WlDisplay (shims/browser/src/nt.rs) publishes each visible top-level
window as a toplevel in this process's block of the compositor's scene
arena and decodes its input ring into NtDisplayEvents, so a Windows
program's windows are the page compositor's windows and its input is
hardware input.

web/nt.html runs a Windows program from a tar (prefix under /wine plus
the program) with the canvas as the compositor's output.
tests/nt/browser-gui.mjs drives it in headless Chromium with its own vite
and browser: tests/nt/window.c's window is checked by its pixels, a click
by the coordinates the program prints and the mark it draws, Escape by
the exit. Passes for x64 and x86 (milestone b). window.exe also joins
both console gates (35/35).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FD9dkkmiprztLDZmgKXS62
2026-10-01 11:42:42 -04:00

20 lines
563 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>gex NT test page</title>
<style>
html, body { margin: 0; background: #000; }
canvas { display: block; }
pre { color: #ccc; font: 12px monospace; margin: 4px; }
</style>
</head>
<body>
<!-- A Windows program on gex's NT layer, its windows in the page's
compositor: tests/nt/browser-gui.mjs drives this. -->
<canvas id="out"></canvas>
<pre id="log"></pre>
<script type="module" src="/src/nt-page.js"></script>
</body>
</html>