function main() cprintf(cli.lightgreen,"\n LUA command line\n") print("Type in 'q' (without quotes) to quit.") keyboardBufferClear() repeat cprintf(cli.yellow,"Lua> "); local name = io.stdin:read(); if string.lower(name) == "q" then error("Closing.",0) end funct=loadstring(name) if type(funct) == "function" then local status,err = pcall(funct); if status == false then printf("onLoad error: %s\n", err); end else print ("Invalid Command") end until false end startMacro(main,true);