WASM wait for user input

Somehow this is an old Problem, isn’t it? There was a prototype of
Web Prolog by @torbjorn.lager which even showcased a working
terminal! Maybe from some library? But I don’t find it anymore…

I was playing with the new WAM shell. The announcement says:

I tried a query [user]. Is this supposed to work? A ask dialog
appears, I entered “foo(bar).” pressed ok and then entered
“end_of_file.” and pressed ok. And then I pressed cancel:

But the result is only: