How to `wasiHack` with [email protected]?
How could one connect WASI to xterm in the newer versions of xterm-pty that does away with TtyServer and TtyClient? Specifically here.
https://github.com/container2wasm/container2wasm/blob/b65b27f041da6a6dec90a6c223f5f944df05c4f8/examples/wasi-browser/htdocs/worker.js#L65
It seems that the recent version of xterm-pty replaced them to emscripte-pty.js so we need to port this for the WASI-on-browser setting.
How would that look on a high level?
How would that look on a high level?
One possible view would be to make the "PTY Slave" object of xterm-pty accessible in the worker then use it in wasiHack. ShardArrayBuffer can be used for the bridging. If you have better ideas, suggestions are welcome.
It seems this is currently not possible but will be worked on. See here.