Hi! I'm new working with emscripten and I also want to change the input method like you describe in the first point. I'm getting an infinite loop if I try to wait the user input via HTML because the input method (stdin) is called until returns the characters needed or null.
Could you achieve that? On Friday, March 14, 2014 at 4:32:13 AM UTC-4:30, tb. wrote: > > Hi, I could finally compile GNU APL and make it work; now I have to work > on the web interface. I asume the first thing to do is to hack the HTML/CSS > part. > Some questions though: > > 1) the program is a Read-Eval-Print-Loop; it is an interpreter for a > language (think to a big calculator in command line). > Having the pop-up dialog box for stdin coming over and over above the > console (with some fading effect) is not > very exciting; is there a way to have a more usable line of input > Something like a text field under the console. I think that if I get > that, I can probably even use CSS to make the user believe the text field > is the last line of the console. > > 2) Is there a way to have a very rudimentary history mechanism in the > input field (browsing the previous entered lines with arrow up/arrow down)? > > 3) Is there a way to get some permalink mechanism: > clicking on a link on the page should redirect to an URL > containing the last input line like: > http://<BASE_URL>/?code=<whatever_last_line> > in order to allow the user to send by email or in a forum a link > containing the one-line code to be executed > Of course it would imply some way for the web page to detect such > ?code=<whatever> part and directly feed it in the input box when the page > is loaded? > > 4) Is there some equivalent to VT100/ANSI escape codes for getting > minimal colors in the console? > > Regards, > > tb. > -- 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.
