https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: 4d44bfb1bdd728c77febca067f792b6be66875bd authored by alex@thinkpad on 11 August 2018, 07:06:34 UTC
Tasks: new method for checking whether an interrupt is active
Tip revision: 4d44bfb
hello.lua
-- A very simple script.

function main()
    menu.close()
    console.show()
    print "Hello, World!"
    print "Press any key to exit."
    key.wait()
    console.hide()
end

keymenu = menu.new
{
    name   = "Hello, World!",
    help   = "Prints 'Hello World' on the console",
    select = function(this) task.create(main) end,
}

back to top