You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this would allow applications that require this mode to be ported to wasm, such as htop, MC, alsamixer and others (in fact, 95% of the software uses ncurses doing it).
(i found this in c. termios.h functions: tcsetattr tcgetattr)
The text was updated successfully, but these errors were encountered:
Hey thanks for writing this up. I'm not super familiar with this particular API, but looked into it a bit. It doesn't seem too crazy to implement in terms of defining the data types and WASI function interface, then forwarding them to the platform. I did find this issue that is basically a proposal to integrate these functions into WASI so adding them is obviously something people want. WebAssembly/WASI#161
The main problem I see is that the compiler needs to know that the WASI host environment exposes these functions to attempt to import them. Maybe it's enough to define a .h of function prototypes that are custom WASI function extensions within the bytebox project and people can copy the header into their project, calling them if the program is being compiled for the wasm target. That means building the program for wasm won't work without source code modifications, though maybe that's ok since it's a different target anyway.
this would allow applications that require this mode to be ported to wasm, such as htop, MC, alsamixer and others (in fact, 95% of the software uses ncurses doing it).
(i found this in c. termios.h functions: tcsetattr tcgetattr)
The text was updated successfully, but these errors were encountered: