Commandline support functions.
cmdhandler
string |
cmdhandler
|
msgtype
integer, 0 .. 1 0 = Standard1 = Server style |
message type
|
script
multiline string |
script
|
stdin
object |
standard input file
|
stdout
object |
standard output file
|
addMacro
doesn't return a value |
add macro
function addMacro(string name, integer numargs, string definition, string helptext)
|
execute
doesn't return a value |
execute
function execute(string command)
|
listMacros
doesn't return a value |
list macros
function listMacros()
|
print
doesn't return a value |
print
function print(string text)
|
println
doesn't return a value |
println
function println(string text)
|
quit
|
quit
function quit()
|
removeMacro
doesn't return a value |
remove macro
function removeMacro(string name, integer numargs)
(numargs==-2) means remove all macros matching the name, otherwise only one definition is removed
|