Advertisement
LazerAio

hi.lua

Feb 23rd, 2022
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. --Following is a template of how a program should work
  2. --ALWAYS PREVENT ctrl+T
  3. os.pullEvent = os.pullEventRaw
  4. --Include the taskbar
  5. local function drawTaskBar(s,x)
  6. term.setCursorPos(x,18)
  7. term.setBackgroundColor( colors.black )
  8. term.clearLine()
  9. term.write(s)
  10. term.setBackgroundColor( colors.gray )
  11. end
  12. drawTaskBar("hi.lua", 1)
  13. --consider noting other background tasks aswell
  14. --remember to be descriptive and one-worded
  15.  
  16. print("Hello, World!")
  17. sleep(2)
  18.  
  19. --Finally issue a return to menu
  20. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement