I’m on Windows 10 and have a pretty large (I think) console application written in C. 90+ files and about 17.000 lines of code.
It compiles without errors/warnings in emcc. However, when I run it, the text input does not seem to work correctly. It keeps popping up the input window and buffering text. So I went back to basics and to reproduce and isolate the issue added a scanf() statement to the hello_world program that comes with the emscripten package:
I compiled the file with command “emcc tests/hello_world.c –o hello_world.html”.
This little program has the same issue. It keeps asking for input and only when I cancel the input window it prints “hello, world!” “Enter input: “ and “Input is: <what I entered>“.
The program is at this link on my website so you can see the behavior: hello_world
What I don't understand: why is the input window coming back each time and why is the text buffered until I cancel the input window?
I did search the group, but actually I don’t know what I’m looking for.
--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/29395d49-9ada-4100-b542-f1e59602137bn%40googlegroups.com.
“How do you indent that you users interact with your app?’The application is an Interactive Fiction Interpreter. All user input is text (keyboard) and so is the application’s output. When running locally, the application runs ins a CMD-window (windows) or a terminal window (linux and macos). So I think what I need is one web page with an input prompt and output on the same page. Sort of like a chat conversation: enter some text and get a reply.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/217e6a32-b62b-4693-8799-28f19d9a08d8n%40googlegroups.com.