You can define Module.print to print to wherever you want. Either define

var Module = { print: function... };

before the compiled code, or assign to Module.print later on.

- Alon



On Wed, Mar 19, 2014 at 11:36 AM, tb. <[email protected]> wrote:

> Le mardi 18 mars 2014 22:11:42 UTC+1, Alon Zakai a écrit :
>
>> Just like a native executable, you really need to run it from scratch to
>> restart, because there are things like global initializers, atexit, etc.
>>
>> To do so, you can put the generated code inside a function, then each
>> call to the function creates a new instance of the application.
>>
>
> OK, it works but stdout is now printed in the debug console of the
> browser, rather than in the HTML console inside the page.
> How can I fix it?
>
> --
> 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.
>

-- 
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