Emscripten integration rewrite by RReverser · Pull Request #10 · mame/xterm-pty

Apologies in advance, this is a large rewrite and might be hard to review as a diff rather than as just new code. What this does: Switches off-main-thread proxying to the native -s PROXY_TO_PTHREA...