You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jing Lu edited this page Jun 19, 2013
·
5 revisions
Standard I/O Interface for script
There are 4 built-in functions available in script:
function __stdin__() {} // read a byte from Standard Input
function __stdout__(obj) {} // write an object to Standard Output
function __stdinln__() {} // read a string line from Standard Input
function __stdoutln__(line) {} // write a string line to Standard Output
ReoScript forward the data between script and .NET worlds, once the data is transformed from script, the implementation of the interfaces above will be invoked. To provide your own standard input or output listener, you would have to make your class implementing the interface and register them into ScriptRunningMachine.