ncurses 6.1 compiled by emscripten for usage in a browser. They are compiled, loaded, but don't work! You are wanted to make it work!
- Install emscripten, instructions.
- Activate emscripten by
source emsdk_env.sh
. - Compile ncurses app source files:
vim hello.c
vim min-shell.html
./hello2.sh
# Launch your favorite http-server to serve ./ (mine is: https://www.npmjs.com/package/http-server)
# Open http://localhost:<YOUR_PORT>/hello.html in the browser
- Alternative way:
./hello.sh
# Launch your favorite http-server to serve ./ (mine is: https://www.npmjs.com/package/http-server)
# Open http://localhost:<YOUR_PORT>/index.html in the browser
These files make use of ./min-shell.html
and compile to hello.html
, worm.html
, *.html
.
Sometimes index.html
fails, but min-shell.html
works, that's why I recommend *2.sh
files for a robust experience.
If You Want to Compile ncurses Yourself or Get More Debug Info from ncurses