Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("menu")
- title = "Batters is a ginger" --Maximum of 28 characters
- items = {
- "Hello World", --Menu item One
- "Restart Computer", --Menu item two
- "Exit" --Menu item three
- }
- blurb = {
- "Prints Hello world", --Menu item 1 blurb
- "Restarts the Computer", --Menu item 2 blurb
- "Runs shell",--Menu item 3 blurb
- }
- func = {
- 'print("Hello World")',
- 'os.reboot()',
- 'term.clear();term.setCursorPos(1,1);os.run( {}, "rom/programs/shell" )',
- }
- menu.create(title,items,blurb,func)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement