Hi Sasha! I'm new working with emscripten and I want to achieve exactly 
what you describe here, I want change the input method (window.prompt) for 
something like a C console. Overwrite the output method (stdout or print) 
was kind of easy, but as the input method (stdin) is called until returns 
the characters needed or null, it turns into an infinite loop if I try to 
wait the user input via the console (HTML element).

Could you do what you needed??

Thanks in advance!

On Sunday, November 17, 2013 at 11:17:07 AM UTC-4:30, Sasha Fonseca wrote:
>
> Hello, 
>
> I'm using Emscripten to convert a game to a Web format. The original code 
> is in C++ and as it is converted to JavaScript, it runs just fine. However, 
> my game is text based right now (I'm going to try to implement a graphical 
> interface soon) and it needs some input from the user. When I run the 
> program in a browser, the input method is a pop-up prompt (I guess this is 
> done by Emscripten by default). 
>
> How can I change this? I do a few stdout prints with instructions to the 
> user and these can't been seen correctly because the window prompt blocks 
> the message. I would like this to be done in a more "console/terminal" like 
> manner. Is this possible? I tried looking at the converted code, but it's 
> got more than 160 000 lines of low level JavaScript code or something 
> similiar.
>
> Thank you for your time
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to