Skip to content

Documentation on input, output and error handlers too sparse #13

Description

@Kappie

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions