An open API service indexing awesome lists of open source software.

https://github.com/ilyaigpetrov/ncurses-for-emscripten

ncurses 6.1 compiled by emscripten for usage in a browser. It is compiled, loaded, but doesn't work! You are wanted to make it work!
https://github.com/ilyaigpetrov/ncurses-for-emscripten

emscripten ncurses xterm

Last synced: 2 months ago
JSON representation

ncurses 6.1 compiled by emscripten for usage in a browser. It is compiled, loaded, but doesn't work! You are wanted to make it work!

Awesome Lists containing this project

README

          

# ncurses for emscripten

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!

# HowTo

1. Install emscripten, [instructions](https://webassembly.org/getting-started/developers-guide/).
2. Activate emscripten by `source emsdk_env.sh`.
3. Compile ncurses app source files:
```sh-session
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:/hello.html in the browser
```
4. Alternative way:
```sh-session
./hello.sh
# Launch your favorite http-server to serve ./ (mine is: https://www.npmjs.com/package/http-server)
# Open http://localhost:/index.html in the browser
```

# About `hello2.sh`, `worm2.sh`, `*2.sh`

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](./COMPILE.md)