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!
- Host: GitHub
- URL: https://github.com/ilyaigpetrov/ncurses-for-emscripten
- Owner: ilyaigpetrov
- Created: 2018-07-04T11:31:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-02T15:13:43.000Z (over 6 years ago)
- Last Synced: 2024-10-23T12:42:38.591Z (12 months ago)
- Topics: emscripten, ncurses, xterm
- Language: WebAssembly
- Homepage:
- Size: 53.5 MB
- Stars: 14
- Watchers: 4
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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)