Commit 505d93f
authored
fix(execution): provide host_tty.isatty/get_size + wire set_raw_mode for wasm-c TTY guests (#167)
wasm-runner.mjs's host_tty import only provided read() + a stubbed set_raw_mode,
missing isatty/get_size — so any wasm-c program importing host_tty.{isatty,get_size}
(pty_probe, vim) failed to instantiate (LinkError) and produced no output. Wire all
three to the existing kernel sync-RPCs (__kernel_isatty / __kernel_tty_size /
__pty_set_raw_mode) already served on the same dispatch as __kernel_stdin_read.1 parent 2e90d52 commit 505d93f
1 file changed
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5046 | 5046 | | |
5047 | 5047 | | |
5048 | 5048 | | |
5049 | | - | |
5050 | | - | |
5051 | | - | |
| 5049 | + | |
| 5050 | + | |
| 5051 | + | |
| 5052 | + | |
| 5053 | + | |
| 5054 | + | |
| 5055 | + | |
| 5056 | + | |
| 5057 | + | |
| 5058 | + | |
| 5059 | + | |
| 5060 | + | |
| 5061 | + | |
| 5062 | + | |
| 5063 | + | |
| 5064 | + | |
| 5065 | + | |
| 5066 | + | |
| 5067 | + | |
| 5068 | + | |
5052 | 5069 | | |
5053 | 5070 | | |
5054 | 5071 | | |
| |||
0 commit comments