I'm trying to make a ruby REPL on my site, but the documentation on the input, output and error args in the Ruby.initialize function needs more examples.
How, for example, do I set up the input callback with jq-console?
input = ->
jqconsole.Input( (input) ->
jqconsole.Write(input) )
console.log("input callback fired")
return null
"input callback fired" is logged before I can type input in the console. How do I pass user input from the console to the input callback when jqconsole.Input seems to wait for other functions to finish?