--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]] _init = function(args) print("Hello from TSTL!") print( ("There are in total " .. tostring(#args)) .. " argument(s)" ) print( (((("Date is " .. tostring( ({ sys.date() })[1] )) .. "/") .. tostring( ({ sys.date() })[2] )) .. "/") .. tostring( ({ sys.date() })[3] ) ) print("The drive is " .. _DRIVE) print("The working directory is " .. _DIR) print("The executed file is " .. _FILE) local myFont = text.loadfont("Victoria.8b") view.newscreen(5, 1) gfx.fgcolor(1) gfx.line(2, 2, 10, 5) text.draw("TypeScriptToLua", myFont, 15, 15) end _step = function(time) if input.hotkey() == "" then sys.exit() end end _shutdown = function(exitcode) print( ("Program terminated with code " .. tostring(exitcode)) .. "." ) end