Fork me on GitHub

Module ringo/shell

Functions


quit ()

Quit the shell and exit the JVM.


read ()

Read a single character from the standard input.


readln (prompt, echoChar)

Read a single line from the standard input.

Parameters

prompt {String} optional prompt to display
echoChar {String} character to use as echo, e.g. '*' for passwords or '' for no echo.

start ()

Start the shell programmatically. This uses the current thread and thus will not return. You should therefore call this function as the last statement in your script. Terminating the shell will exit the program.


write ()

Write 0..n arguments to standard output.


writeln ()

Write 0..n arguments to standard output, followed by a newline.