In order to use functions from the readline module, you must first import it:
Seed.import_namespace("readline");
Returns: user input
Uses the GNU Readline library to display a prompt (using the prompt argument) and then wait for input from the user. The readline prompt provides history (using the up and down arrow keys) within a single Seed process.
var input = readline.readline("prompt> "); Seed.print(input);
Binds key, any valid ASCII character, to function. If the given key is then pressed while at a readline.readline prompt, the passed function will be called.
readline.readline_bind("q", function () { Seed.quit() }); var num = readline.readline("Enter a number, or q to quit:"); readline.print(num);